Debian Codegraph @

contrib/cfengine/cfengine-2.2.10/0001-Run-libtoolize-copy.patch

raw
1 From 3bd80bd6736fd4715614e62f98e25255ad0586df Mon Sep 17 00:00:00 2001
2 From: Mark A. Grondona <[email protected]>
3 Date: Tue, 8 Jun 2010 16:02:44 -0700
4 Subject: [PATCH 1/5] Run libtoolize --copy
5
6 ---
7 libltdl/COPYING.LIB | 515 ++
8 libltdl/Makefile.am | 164 +
9 libltdl/Makefile.in | 1050 +++
10 libltdl/README | 37 +
11 libltdl/aclocal.m4 | 958 +++
12 libltdl/argz.c | 226 +
13 libltdl/argz_.h | 68 +
14 libltdl/config-h.in | 169 +
15 libltdl/config/compile | 143 +
16 libltdl/config/config.guess | 1501 ++++
17 libltdl/config/config.sub | 1705 +++++
18 libltdl/config/depcomp | 630 ++
19 libltdl/config/install-sh | 520 ++
20 libltdl/config/ltmain.sh | 8406 ++++++++++++++++++++++
21 libltdl/config/missing | 376 +
22 libltdl/configure |15619 +++++++++++++++++++++++++++++++++++++++++
23 libltdl/configure.ac | 75 +
24 libltdl/libltdl/lt__alloc.h | 58 +
25 libltdl/libltdl/lt__dirent.h | 87 +
26 libltdl/libltdl/lt__glibc.h | 83 +
27 libltdl/libltdl/lt__private.h | 149 +
28 libltdl/libltdl/lt__strl.h | 53 +
29 libltdl/libltdl/lt_dlloader.h | 90 +
30 libltdl/libltdl/lt_error.h | 85 +
31 libltdl/libltdl/lt_system.h | 154 +
32 libltdl/libltdl/slist.h | 94 +
33 libltdl/loaders/dld_link.c | 158 +
34 libltdl/loaders/dlopen.c | 235 +
35 libltdl/loaders/dyld.c | 511 ++
36 libltdl/loaders/load_add_on.c | 167 +
37 libltdl/loaders/loadlibrary.c | 251 +
38 libltdl/loaders/preopen.c | 375 +
39 libltdl/loaders/shl_load.c | 222 +
40 libltdl/lt__alloc.c | 95 +
41 libltdl/lt__dirent.c | 107 +
42 libltdl/lt__strl.c | 127 +
43 libltdl/lt_dlloader.c | 210 +
44 libltdl/lt_error.c | 110 +
45 libltdl/ltdl.c | 2421 +++++++
46 libltdl/ltdl.h | 162 +
47 libltdl/m4/argz.m4 | 79 +
48 libltdl/m4/libtool.m4 | 7360 +++++++++++++++++++
49 libltdl/m4/ltdl.m4 | 804 +++
50 libltdl/m4/ltoptions.m4 | 368 +
51 libltdl/m4/ltsugar.m4 | 123 +
52 libltdl/m4/ltversion.m4 | 23 +
53 libltdl/m4/lt~obsolete.m4 | 92 +
54 libltdl/slist.c | 375 +
55 ltmain.sh | 16 +-
56 49 files changed, 47398 insertions(+), 8 deletions(-)
57 create mode 100644 libltdl/COPYING.LIB
58 create mode 100644 libltdl/Makefile.am
59 create mode 100644 libltdl/Makefile.in
60 create mode 100644 libltdl/README
61 create mode 100644 libltdl/aclocal.m4
62 create mode 100644 libltdl/argz.c
63 create mode 100644 libltdl/argz_.h
64 create mode 100644 libltdl/config-h.in
65 create mode 100755 libltdl/config/compile
66 create mode 100755 libltdl/config/config.guess
67 create mode 100755 libltdl/config/config.sub
68 create mode 100755 libltdl/config/depcomp
69 create mode 100755 libltdl/config/install-sh
70 create mode 100755 libltdl/config/ltmain.sh
71 create mode 100755 libltdl/config/missing
72 create mode 100755 libltdl/configure
73 create mode 100644 libltdl/configure.ac
74 create mode 100644 libltdl/libltdl/lt__alloc.h
75 create mode 100644 libltdl/libltdl/lt__dirent.h
76 create mode 100644 libltdl/libltdl/lt__glibc.h
77 create mode 100644 libltdl/libltdl/lt__private.h
78 create mode 100644 libltdl/libltdl/lt__strl.h
79 create mode 100644 libltdl/libltdl/lt_dlloader.h
80 create mode 100644 libltdl/libltdl/lt_error.h
81 create mode 100644 libltdl/libltdl/lt_system.h
82 create mode 100644 libltdl/libltdl/slist.h
83 create mode 100644 libltdl/loaders/dld_link.c
84 create mode 100644 libltdl/loaders/dlopen.c
85 create mode 100644 libltdl/loaders/dyld.c
86 create mode 100644 libltdl/loaders/load_add_on.c
87 create mode 100644 libltdl/loaders/loadlibrary.c
88 create mode 100644 libltdl/loaders/preopen.c
89 create mode 100644 libltdl/loaders/shl_load.c
90 create mode 100644 libltdl/lt__alloc.c
91 create mode 100644 libltdl/lt__dirent.c
92 create mode 100644 libltdl/lt__strl.c
93 create mode 100644 libltdl/lt_dlloader.c
94 create mode 100644 libltdl/lt_error.c
95 create mode 100644 libltdl/ltdl.c
96 create mode 100644 libltdl/ltdl.h
97 create mode 100644 libltdl/m4/argz.m4
98 create mode 100644 libltdl/m4/libtool.m4
99 create mode 100644 libltdl/m4/ltdl.m4
100 create mode 100644 libltdl/m4/ltoptions.m4
101 create mode 100644 libltdl/m4/ltsugar.m4
102 create mode 100644 libltdl/m4/ltversion.m4
103 create mode 100644 libltdl/m4/lt~obsolete.m4
104 create mode 100644 libltdl/slist.c
105 mode change 100644 => 100755 ltmain.sh
106
107 diff --git a/libltdl/COPYING.LIB b/libltdl/COPYING.LIB
108 new file mode 100644
109 index 0000000..ba2be48
110 --- /dev/null
111 +++ b/libltdl/COPYING.LIB
112 @@ -0,0 +1,515 @@
113 +
114 + GNU LESSER GENERAL PUBLIC LICENSE
115 + Version 2.1, February 1999
116 +
117 + Copyright (C) 1991, 1999 Free Software Foundation, Inc.
118 + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
119 + Everyone is permitted to copy and distribute verbatim copies
120 + of this license document, but changing it is not allowed.
121 +
122 +[This is the first released version of the Lesser GPL. It also counts
123 + as the successor of the GNU Library Public License, version 2, hence
124 + the version number 2.1.]
125 +
126 + Preamble
127 +
128 + The licenses for most software are designed to take away your
129 +freedom to share and change it. By contrast, the GNU General Public
130 +Licenses are intended to guarantee your freedom to share and change
131 +free software--to make sure the software is free for all its users.
132 +
133 + This license, the Lesser General Public License, applies to some
134 +specially designated software packages--typically libraries--of the
135 +Free Software Foundation and other authors who decide to use it. You
136 +can use it too, but we suggest you first think carefully about whether
137 +this license or the ordinary General Public License is the better
138 +strategy to use in any particular case, based on the explanations
139 +below.
140 +
141 + When we speak of free software, we are referring to freedom of use,
142 +not price. Our General Public Licenses are designed to make sure that
143 +you have the freedom to distribute copies of free software (and charge
144 +for this service if you wish); that you receive source code or can get
145 +it if you want it; that you can change the software and use pieces of
146 +it in new free programs; and that you are informed that you can do
147 +these things.
148 +
149 + To protect your rights, we need to make restrictions that forbid
150 +distributors to deny you these rights or to ask you to surrender these
151 +rights. These restrictions translate to certain responsibilities for
152 +you if you distribute copies of the library or if you modify it.
153 +
154 + For example, if you distribute copies of the library, whether gratis
155 +or for a fee, you must give the recipients all the rights that we gave
156 +you. You must make sure that they, too, receive or can get the source
157 +code. If you link other code with the library, you must provide
158 +complete object files to the recipients, so that they can relink them
159 +with the library after making changes to the library and recompiling
160 +it. And you must show them these terms so they know their rights.
161 +
162 + We protect your rights with a two-step method: (1) we copyright the
163 +library, and (2) we offer you this license, which gives you legal
164 +permission to copy, distribute and/or modify the library.
165 +
166 + To protect each distributor, we want to make it very clear that
167 +there is no warranty for the free library. Also, if the library is
168 +modified by someone else and passed on, the recipients should know
169 +that what they have is not the original version, so that the original
170 +author's reputation will not be affected by problems that might be
171 +introduced by others.
172 +^L
173 + Finally, software patents pose a constant threat to the existence of
174 +any free program. We wish to make sure that a company cannot
175 +effectively restrict the users of a free program by obtaining a
176 +restrictive license from a patent holder. Therefore, we insist that
177 +any patent license obtained for a version of the library must be
178 +consistent with the full freedom of use specified in this license.
179 +
180 + Most GNU software, including some libraries, is covered by the
181 +ordinary GNU General Public License. This license, the GNU Lesser
182 +General Public License, applies to certain designated libraries, and
183 +is quite different from the ordinary General Public License. We use
184 +this license for certain libraries in order to permit linking those
185 +libraries into non-free programs.
186 +
187 + When a program is linked with a library, whether statically or using
188 +a shared library, the combination of the two is legally speaking a
189 +combined work, a derivative of the original library. The ordinary
190 +General Public License therefore permits such linking only if the
191 +entire combination fits its criteria of freedom. The Lesser General
192 +Public License permits more lax criteria for linking other code with
193 +the library.
194 +
195 + We call this license the "Lesser" General Public License because it
196 +does Less to protect the user's freedom than the ordinary General
197 +Public License. It also provides other free software developers Less
198 +of an advantage over competing non-free programs. These disadvantages
199 +are the reason we use the ordinary General Public License for many
200 +libraries. However, the Lesser license provides advantages in certain
201 +special circumstances.
202 +
203 + For example, on rare occasions, there may be a special need to
204 +encourage the widest possible use of a certain library, so that it
205 +becomes
206 +a de-facto standard. To achieve this, non-free programs must be
207 +allowed to use the library. A more frequent case is that a free
208 +library does the same job as widely used non-free libraries. In this
209 +case, there is little to gain by limiting the free library to free
210 +software only, so we use the Lesser General Public License.
211 +
212 + In other cases, permission to use a particular library in non-free
213 +programs enables a greater number of people to use a large body of
214 +free software. For example, permission to use the GNU C Library in
215 +non-free programs enables many more people to use the whole GNU
216 +operating system, as well as its variant, the GNU/Linux operating
217 +system.
218 +
219 + Although the Lesser General Public License is Less protective of the
220 +users' freedom, it does ensure that the user of a program that is
221 +linked with the Library has the freedom and the wherewithal to run
222 +that program using a modified version of the Library.
223 +
224 + The precise terms and conditions for copying, distribution and
225 +modification follow. Pay close attention to the difference between a
226 +"work based on the library" and a "work that uses the library". The
227 +former contains code derived from the library, whereas the latter must
228 +be combined with the library in order to run.
229 +^L
230 + GNU LESSER GENERAL PUBLIC LICENSE
231 + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
232 +
233 + 0. This License Agreement applies to any software library or other
234 +program which contains a notice placed by the copyright holder or
235 +other authorized party saying it may be distributed under the terms of
236 +this Lesser General Public License (also called "this License").
237 +Each licensee is addressed as "you".
238 +
239 + A "library" means a collection of software functions and/or data
240 +prepared so as to be conveniently linked with application programs
241 +(which use some of those functions and data) to form executables.
242 +
243 + The "Library", below, refers to any such software library or work
244 +which has been distributed under these terms. A "work based on the
245 +Library" means either the Library or any derivative work under
246 +copyright law: that is to say, a work containing the Library or a
247 +portion of it, either verbatim or with modifications and/or translated
248 +straightforwardly into another language. (Hereinafter, translation is
249 +included without limitation in the term "modification".)
250 +
251 + "Source code" for a work means the preferred form of the work for
252 +making modifications to it. For a library, complete source code means
253 +all the source code for all modules it contains, plus any associated
254 +interface definition files, plus the scripts used to control
255 +compilation
256 +and installation of the library.
257 +
258 + Activities other than copying, distribution and modification are not
259 +covered by this License; they are outside its scope. The act of
260 +running a program using the Library is not restricted, and output from
261 +such a program is covered only if its contents constitute a work based
262 +on the Library (independent of the use of the Library in a tool for
263 +writing it). Whether that is true depends on what the Library does
264 +and what the program that uses the Library does.
265 +
266 + 1. You may copy and distribute verbatim copies of the Library's
267 +complete source code as you receive it, in any medium, provided that
268 +you conspicuously and appropriately publish on each copy an
269 +appropriate copyright notice and disclaimer of warranty; keep intact
270 +all the notices that refer to this License and to the absence of any
271 +warranty; and distribute a copy of this License along with the
272 +Library.
273 +
274 + You may charge a fee for the physical act of transferring a copy,
275 +and you may at your option offer warranty protection in exchange for a
276 +fee.
277 +
278 + 2. You may modify your copy or copies of the Library or any portion
279 +of it, thus forming a work based on the Library, and copy and
280 +distribute such modifications or work under the terms of Section 1
281 +above, provided that you also meet all of these conditions:
282 +
283 + a) The modified work must itself be a software library.
284 +
285 + b) You must cause the files modified to carry prominent notices
286 + stating that you changed the files and the date of any change.
287 +
288 + c) You must cause the whole of the work to be licensed at no
289 + charge to all third parties under the terms of this License.
290 +
291 + d) If a facility in the modified Library refers to a function or a
292 + table of data to be supplied by an application program that uses
293 + the facility, other than as an argument passed when the facility
294 + is invoked, then you must make a good faith effort to ensure that,
295 + in the event an application does not supply such function or
296 + table, the facility still operates, and performs whatever part of
297 + its purpose remains meaningful.
298 +
299 + (For example, a function in a library to compute square roots has
300 + a purpose that is entirely well-defined independent of the
301 + application. Therefore, Subsection 2d requires that any
302 + application-supplied function or table used by this function must
303 + be optional: if the application does not supply it, the square
304 + root function must still compute square roots.)
305 +
306 +These requirements apply to the modified work as a whole. If
307 +identifiable sections of that work are not derived from the Library,
308 +and can be reasonably considered independent and separate works in
309 +themselves, then this License, and its terms, do not apply to those
310 +sections when you distribute them as separate works. But when you
311 +distribute the same sections as part of a whole which is a work based
312 +on the Library, the distribution of the whole must be on the terms of
313 +this License, whose permissions for other licensees extend to the
314 +entire whole, and thus to each and every part regardless of who wrote
315 +it.
316 +
317 +Thus, it is not the intent of this section to claim rights or contest
318 +your rights to work written entirely by you; rather, the intent is to
319 +exercise the right to control the distribution of derivative or
320 +collective works based on the Library.
321 +
322 +In addition, mere aggregation of another work not based on the Library
323 +with the Library (or with a work based on the Library) on a volume of
324 +a storage or distribution medium does not bring the other work under
325 +the scope of this License.
326 +
327 + 3. You may opt to apply the terms of the ordinary GNU General Public
328 +License instead of this License to a given copy of the Library. To do
329 +this, you must alter all the notices that refer to this License, so
330 +that they refer to the ordinary GNU General Public License, version 2,
331 +instead of to this License. (If a newer version than version 2 of the
332 +ordinary GNU General Public License has appeared, then you can specify
333 +that version instead if you wish.) Do not make any other change in
334 +these notices.
335 +^L
336 + Once this change is made in a given copy, it is irreversible for
337 +that copy, so the ordinary GNU General Public License applies to all
338 +subsequent copies and derivative works made from that copy.
339 +
340 + This option is useful when you wish to copy part of the code of
341 +the Library into a program that is not a library.
342 +
343 + 4. You may copy and distribute the Library (or a portion or
344 +derivative of it, under Section 2) in object code or executable form
345 +under the terms of Sections 1 and 2 above provided that you accompany
346 +it with the complete corresponding machine-readable source code, which
347 +must be distributed under the terms of Sections 1 and 2 above on a
348 +medium customarily used for software interchange.
349 +
350 + If distribution of object code is made by offering access to copy
351 +from a designated place, then offering equivalent access to copy the
352 +source code from the same place satisfies the requirement to
353 +distribute the source code, even though third parties are not
354 +compelled to copy the source along with the object code.
355 +
356 + 5. A program that contains no derivative of any portion of the
357 +Library, but is designed to work with the Library by being compiled or
358 +linked with it, is called a "work that uses the Library". Such a
359 +work, in isolation, is not a derivative work of the Library, and
360 +therefore falls outside the scope of this License.
361 +
362 + However, linking a "work that uses the Library" with the Library
363 +creates an executable that is a derivative of the Library (because it
364 +contains portions of the Library), rather than a "work that uses the
365 +library". The executable is therefore covered by this License.
366 +Section 6 states terms for distribution of such executables.
367 +
368 + When a "work that uses the Library" uses material from a header file
369 +that is part of the Library, the object code for the work may be a
370 +derivative work of the Library even though the source code is not.
371 +Whether this is true is especially significant if the work can be
372 +linked without the Library, or if the work is itself a library. The
373 +threshold for this to be true is not precisely defined by law.
374 +
375 + If such an object file uses only numerical parameters, data
376 +structure layouts and accessors, and small macros and small inline
377 +functions (ten lines or less in length), then the use of the object
378 +file is unrestricted, regardless of whether it is legally a derivative
379 +work. (Executables containing this object code plus portions of the
380 +Library will still fall under Section 6.)
381 +
382 + Otherwise, if the work is a derivative of the Library, you may
383 +distribute the object code for the work under the terms of Section 6.
384 +Any executables containing that work also fall under Section 6,
385 +whether or not they are linked directly with the Library itself.
386 +^L
387 + 6. As an exception to the Sections above, you may also combine or
388 +link a "work that uses the Library" with the Library to produce a
389 +work containing portions of the Library, and distribute that work
390 +under terms of your choice, provided that the terms permit
391 +modification of the work for the customer's own use and reverse
392 +engineering for debugging such modifications.
393 +
394 + You must give prominent notice with each copy of the work that the
395 +Library is used in it and that the Library and its use are covered by
396 +this License. You must supply a copy of this License. If the work
397 +during execution displays copyright notices, you must include the
398 +copyright notice for the Library among them, as well as a reference
399 +directing the user to the copy of this License. Also, you must do one
400 +of these things:
401 +
402 + a) Accompany the work with the complete corresponding
403 + machine-readable source code for the Library including whatever
404 + changes were used in the work (which must be distributed under
405 + Sections 1 and 2 above); and, if the work is an executable linked
406 + with the Library, with the complete machine-readable "work that
407 + uses the Library", as object code and/or source code, so that the
408 + user can modify the Library and then relink to produce a modified
409 + executable containing the modified Library. (It is understood
410 + that the user who changes the contents of definitions files in the
411 + Library will not necessarily be able to recompile the application
412 + to use the modified definitions.)
413 +
414 + b) Use a suitable shared library mechanism for linking with the
415 + Library. A suitable mechanism is one that (1) uses at run time a
416 + copy of the library already present on the user's computer system,
417 + rather than copying library functions into the executable, and (2)
418 + will operate properly with a modified version of the library, if
419 + the user installs one, as long as the modified version is
420 + interface-compatible with the version that the work was made with.
421 +
422 + c) Accompany the work with a written offer, valid for at
423 + least three years, to give the same user the materials
424 + specified in Subsection 6a, above, for a charge no more
425 + than the cost of performing this distribution.
426 +
427 + d) If distribution of the work is made by offering access to copy
428 + from a designated place, offer equivalent access to copy the above
429 + specified materials from the same place.
430 +
431 + e) Verify that the user has already received a copy of these
432 + materials or that you have already sent this user a copy.
433 +
434 + For an executable, the required form of the "work that uses the
435 +Library" must include any data and utility programs needed for
436 +reproducing the executable from it. However, as a special exception,
437 +the materials to be distributed need not include anything that is
438 +normally distributed (in either source or binary form) with the major
439 +components (compiler, kernel, and so on) of the operating system on
440 +which the executable runs, unless that component itself accompanies
441 +the executable.
442 +
443 + It may happen that this requirement contradicts the license
444 +restrictions of other proprietary libraries that do not normally
445 +accompany the operating system. Such a contradiction means you cannot
446 +use both them and the Library together in an executable that you
447 +distribute.
448 +^L
449 + 7. You may place library facilities that are a work based on the
450 +Library side-by-side in a single library together with other library
451 +facilities not covered by this License, and distribute such a combined
452 +library, provided that the separate distribution of the work based on
453 +the Library and of the other library facilities is otherwise
454 +permitted, and provided that you do these two things:
455 +
456 + a) Accompany the combined library with a copy of the same work
457 + based on the Library, uncombined with any other library
458 + facilities. This must be distributed under the terms of the
459 + Sections above.
460 +
461 + b) Give prominent notice with the combined library of the fact
462 + that part of it is a work based on the Library, and explaining
463 + where to find the accompanying uncombined form of the same work.
464 +
465 + 8. You may not copy, modify, sublicense, link with, or distribute
466 +the Library except as expressly provided under this License. Any
467 +attempt otherwise to copy, modify, sublicense, link with, or
468 +distribute the Library is void, and will automatically terminate your
469 +rights under this License. However, parties who have received copies,
470 +or rights, from you under this License will not have their licenses
471 +terminated so long as such parties remain in full compliance.
472 +
473 + 9. You are not required to accept this License, since you have not
474 +signed it. However, nothing else grants you permission to modify or
475 +distribute the Library or its derivative works. These actions are
476 +prohibited by law if you do not accept this License. Therefore, by
477 +modifying or distributing the Library (or any work based on the
478 +Library), you indicate your acceptance of this License to do so, and
479 +all its terms and conditions for copying, distributing or modifying
480 +the Library or works based on it.
481 +
482 + 10. Each time you redistribute the Library (or any work based on the
483 +Library), the recipient automatically receives a license from the
484 +original licensor to copy, distribute, link with or modify the Library
485 +subject to these terms and conditions. You may not impose any further
486 +restrictions on the recipients' exercise of the rights granted herein.
487 +You are not responsible for enforcing compliance by third parties with
488 +this License.
489 +^L
490 + 11. If, as a consequence of a court judgment or allegation of patent
491 +infringement or for any other reason (not limited to patent issues),
492 +conditions are imposed on you (whether by court order, agreement or
493 +otherwise) that contradict the conditions of this License, they do not
494 +excuse you from the conditions of this License. If you cannot
495 +distribute so as to satisfy simultaneously your obligations under this
496 +License and any other pertinent obligations, then as a consequence you
497 +may not distribute the Library at all. For example, if a patent
498 +license would not permit royalty-free redistribution of the Library by
499 +all those who receive copies directly or indirectly through you, then
500 +the only way you could satisfy both it and this License would be to
501 +refrain entirely from distribution of the Library.
502 +
503 +If any portion of this section is held invalid or unenforceable under
504 +any particular circumstance, the balance of the section is intended to
505 +apply, and the section as a whole is intended to apply in other
506 +circumstances.
507 +
508 +It is not the purpose of this section to induce you to infringe any
509 +patents or other property right claims or to contest validity of any
510 +such claims; this section has the sole purpose of protecting the
511 +integrity of the free software distribution system which is
512 +implemented by public license practices. Many people have made
513 +generous contributions to the wide range of software distributed
514 +through that system in reliance on consistent application of that
515 +system; it is up to the author/donor to decide if he or she is willing
516 +to distribute software through any other system and a licensee cannot
517 +impose that choice.
518 +
519 +This section is intended to make thoroughly clear what is believed to
520 +be a consequence of the rest of this License.
521 +
522 + 12. If the distribution and/or use of the Library is restricted in
523 +certain countries either by patents or by copyrighted interfaces, the
524 +original copyright holder who places the Library under this License
525 +may add an explicit geographical distribution limitation excluding those
526 +countries, so that distribution is permitted only in or among
527 +countries not thus excluded. In such case, this License incorporates
528 +the limitation as if written in the body of this License.
529 +
530 + 13. The Free Software Foundation may publish revised and/or new
531 +versions of the Lesser General Public License from time to time.
532 +Such new versions will be similar in spirit to the present version,
533 +but may differ in detail to address new problems or concerns.
534 +
535 +Each version is given a distinguishing version number. If the Library
536 +specifies a version number of this License which applies to it and
537 +"any later version", you have the option of following the terms and
538 +conditions either of that version or of any later version published by
539 +the Free Software Foundation. If the Library does not specify a
540 +license version number, you may choose any version ever published by
541 +the Free Software Foundation.
542 +^L
543 + 14. If you wish to incorporate parts of the Library into other free
544 +programs whose distribution conditions are incompatible with these,
545 +write to the author to ask for permission. For software which is
546 +copyrighted by the Free Software Foundation, write to the Free
547 +Software Foundation; we sometimes make exceptions for this. Our
548 +decision will be guided by the two goals of preserving the free status
549 +of all derivatives of our free software and of promoting the sharing
550 +and reuse of software generally.
551 +
552 + NO WARRANTY
553 +
554 + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
555 +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
556 +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
557 +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
558 +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
559 +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
560 +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
561 +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
562 +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
563 +
564 + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
565 +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
566 +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
567 +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
568 +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
569 +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
570 +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
571 +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
572 +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
573 +DAMAGES.
574 +
575 + END OF TERMS AND CONDITIONS
576 +^L
577 + How to Apply These Terms to Your New Libraries
578 +
579 + If you develop a new library, and you want it to be of the greatest
580 +possible use to the public, we recommend making it free software that
581 +everyone can redistribute and change. You can do so by permitting
582 +redistribution under these terms (or, alternatively, under the terms
583 +of the ordinary General Public License).
584 +
585 + To apply these terms, attach the following notices to the library.
586 +It is safest to attach them to the start of each source file to most
587 +effectively convey the exclusion of warranty; and each file should
588 +have at least the "copyright" line and a pointer to where the full
589 +notice is found.
590 +
591 +
592 + <one line to give the library's name and a brief idea of what it
593 +does.>
594 + Copyright (C) <year> <name of author>
595 +
596 + This library is free software; you can redistribute it and/or
597 + modify it under the terms of the GNU Lesser General Public
598 + License as published by the Free Software Foundation; either
599 + version 2 of the License, or (at your option) any later version.
600 +
601 + This library is distributed in the hope that it will be useful,
602 + but WITHOUT ANY WARRANTY; without even the implied warranty of
603 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
604 + Lesser General Public License for more details.
605 +
606 + You should have received a copy of the GNU Lesser General Public
607 + License along with this library; if not, write to the Free Software
608 + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
609 +
610 +Also add information on how to contact you by electronic and paper
611 +mail.
612 +
613 +You should also get your employer (if you work as a programmer) or
614 +your
615 +school, if any, to sign a "copyright disclaimer" for the library, if
616 +necessary. Here is a sample; alter the names:
617 +
618 + Yoyodyne, Inc., hereby disclaims all copyright interest in the
619 + library `Frob' (a library for tweaking knobs) written by James
620 +Random Hacker.
621 +
622 + <signature of Ty Coon>, 1 April 1990
623 + Ty Coon, President of Vice
624 +
625 +That's all there is to it!
626 +
627 +
628 diff --git a/libltdl/Makefile.am b/libltdl/Makefile.am
629 new file mode 100644
630 index 0000000..5dfe0bf
631 --- /dev/null
632 +++ b/libltdl/Makefile.am
633 @@ -0,0 +1,164 @@
634 +## Makefile.am -- Process this file with automake to produce Makefile.in
635 +##
636 +## Copyright (C) 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
637 +## Written by Gary V. Vaughan, 2003
638 +##
639 +## NOTE: The canonical source of this file is maintained with the
640 +## GNU Libtool package. Report bugs to [email protected].
641 +##
642 +## GNU Libltdl is free software; you can redistribute it and/or
643 +## modify it under the terms of the GNU Lesser General Public
644 +## License as published by the Free Software Foundation; either
645 +## version 2 of the License, or (at your option) any later version.
646 +##
647 +## As a special exception to the GNU Lesser General Public License,
648 +## if you distribute this file as part of a program or library that
649 +## is built using GNU libtool, you may include this file under the
650 +## same distribution terms that you use for the rest of that program.
651 +##
652 +## GNU Libltdl is distributed in the hope that it will be useful,
653 +## but WITHOUT ANY WARRANTY; without even the implied warranty of
654 +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
655 +## GNU Lesser General Public License for more details.
656 +##
657 +## You should have received a copy of the GNU LesserGeneral Public
658 +## License along with GNU Libltdl; see the file COPYING.LIB. If not, a
659 +## copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
660 +## or obtained by writing to the Free Software Foundation, Inc.,
661 +## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
662 +#####
663 +
664 +ACLOCAL_AMFLAGS = -I m4
665 +AUTOMAKE_OPTIONS = foreign
666 +AM_CPPFLAGS =
667 +AM_LDFLAGS =
668 +BUILT_SOURCES =
669 +include_HEADERS =
670 +noinst_LTLIBRARIES =
671 +lib_LTLIBRARIES =
672 +EXTRA_LTLIBRARIES =
673 +EXTRA_DIST =
674 +CLEANFILES =
675 +MOSTLYCLEANFILES =
676 +
677 +# -I$(srcdir) is needed for user that built libltdl with a sub-Automake
678 +# (not as a sub-package!) using 'nostdinc':
679 +AM_CPPFLAGS += -DLT_CONFIG_H='<$(LT_CONFIG_H)>' \
680 + -DLTDL -I. -I$(srcdir) -Ilibltdl \
681 + -I$(srcdir)/libltdl -I$(srcdir)/libltdl
682 +AM_LDFLAGS += -no-undefined
683 +LTDL_VERSION_INFO = -version-info 9:1:2
684 +
685 +noinst_LTLIBRARIES += $(LT_DLLOADERS)
686 +
687 +if INSTALL_LTDL
688 +ltdlincludedir = $(includedir)/libltdl
689 +ltdlinclude_HEADERS = libltdl/lt_system.h \
690 + libltdl/lt_error.h \
691 + libltdl/lt_dlloader.h
692 +include_HEADERS += ltdl.h
693 +lib_LTLIBRARIES += libltdl.la
694 +endif
695 +
696 +if CONVENIENCE_LTDL
697 +noinst_LTLIBRARIES += libltdlc.la
698 +endif
699 +
700 +libltdl_la_SOURCES = libltdl/lt__alloc.h \
701 + libltdl/lt__dirent.h \
702 + libltdl/lt__glibc.h \
703 + libltdl/lt__private.h \
704 + libltdl/lt__strl.h \
705 + libltdl/lt_dlloader.h \
706 + libltdl/lt_error.h \
707 + libltdl/lt_system.h \
708 + libltdl/slist.h \
709 + loaders/preopen.c \
710 + lt__alloc.c \
711 + lt_dlloader.c \
712 + lt_error.c \
713 + ltdl.c \
714 + ltdl.h \
715 + slist.c
716 +
717 +EXTRA_DIST += lt__dirent.c \
718 + lt__strl.c
719 +
720 +libltdl_la_CPPFLAGS = -DLTDLOPEN=$(LTDLOPEN) $(AM_CPPFLAGS)
721 +libltdl_la_LDFLAGS = $(AM_LDFLAGS) $(LTDL_VERSION_INFO) $(LT_DLPREOPEN)
722 +libltdl_la_LIBADD = $(LTLIBOBJS)
723 +libltdl_la_DEPENDENCIES = $(LT_DLLOADERS) $(LTLIBOBJS)
724 +
725 +libltdlc_la_SOURCES = $(libltdl_la_SOURCES)
726 +libltdlc_la_CPPFLAGS = -DLTDLOPEN=$(LTDLOPEN)c $(AM_CPPFLAGS)
727 +libltdlc_la_LDFLAGS = $(AM_LDFLAGS) $(LT_DLPREOPEN)
728 +libltdlc_la_LIBADD = $(libltdl_la_LIBADD)
729 +libltdlc_la_DEPENDENCIES= $(libltdl_la_DEPENDENCIES)
730 +
731 +## The loaders are preopened by libltdl, itself always built from
732 +## pic-objects (either as a shared library, or a convenience library),
733 +## so the loaders themselves must be made from pic-objects too. We
734 +## use convenience libraries for that purpose:
735 +EXTRA_LTLIBRARIES += dlopen.la \
736 + dld_link.la \
737 + dyld.la \
738 + load_add_on.la \
739 + loadlibrary.la \
740 + shl_load.la
741 +
742 +dlopen_la_SOURCES = loaders/dlopen.c
743 +dlopen_la_LDFLAGS = -module -avoid-version
744 +dlopen_la_LIBADD = $(LIBADD_DLOPEN)
745 +
746 +dld_link_la_SOURCES = loaders/dld_link.c
747 +dld_link_la_LDFLAGS = -module -avoid-version
748 +dld_link_la_LIBADD = -ldld
749 +
750 +dyld_la_SOURCES = loaders/dyld.c
751 +dyld_la_LDFLAGS = -module -avoid-version
752 +
753 +load_add_on_la_SOURCES = loaders/load_add_on.c
754 +load_add_on_la_LDFLAGS = -module -avoid-version
755 +
756 +loadlibrary_la_SOURCES = loaders/loadlibrary.c
757 +loadlibrary_la_LDFLAGS = -module -avoid-version
758 +
759 +shl_load_la_SOURCES = loaders/shl_load.c
760 +shl_load_la_LDFLAGS = -module -avoid-version
761 +shl_load_la_LIBADD = $(LIBADD_SHL_LOAD)
762 +
763 +## Make sure these will be cleaned even when they're not built by default:
764 +CLEANFILES += libltdl.la \
765 + libltdlc.la \
766 + libdlloader.la
767 +
768 +## Automake-1.9.6 doesn't clean subdir AC_LIBOBJ compiled objects
769 +## automatically:
770 +CLEANFILES += $(LIBOBJS) $(LTLIBOBJS)
771 +
772 +EXTRA_DIST += COPYING.LIB \
773 + configure.ac \
774 + Makefile.am \
775 + aclocal.m4 \
776 + Makefile.in \
777 + configure \
778 + config-h.in \
779 + README
780 +
781 +## --------------------------- ##
782 +## Gnulib Makefile.am snippets ##
783 +## --------------------------- ##
784 +
785 +BUILT_SOURCES += $(ARGZ_H)
786 +EXTRA_DIST += argz_.h \
787 + argz.c
788 +
789 +# We need the following in order to create an <argz.h> when the system
790 +# doesn't have one that works with the given compiler.
791 +all-local $(lib_OBJECTS): $(ARGZ_H)
792 +argz.h: argz_.h
793 + $(mkinstalldirs) .
794 + cp $(srcdir)/argz_.h $@-t
795 + mv $@-t $@
796 +MOSTLYCLEANFILES += argz.h \
797 + argz.h-t
798 diff --git a/libltdl/Makefile.in b/libltdl/Makefile.in
799 new file mode 100644
800 index 0000000..0be601e
801 --- /dev/null
802 +++ b/libltdl/Makefile.in
803 @@ -0,0 +1,1050 @@
804 +# Makefile.in generated by automake 1.11.1 from Makefile.am.
805 +# @configure_input@
806 +
807 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
808 +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
809 +# Inc.
810 +# This Makefile.in is free software; the Free Software Foundation
811 +# gives unlimited permission to copy and/or distribute it,
812 +# with or without modifications, as long as this notice is preserved.
813 +
814 +# This program is distributed in the hope that it will be useful,
815 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
816 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
817 +# PARTICULAR PURPOSE.
818 +
819 +@SET_MAKE@
820 +
821 +#####
822 +
823 +
824 +VPATH = @srcdir@
825 +pkgdatadir = $(datadir)/@PACKAGE@
826 +pkgincludedir = $(includedir)/@PACKAGE@
827 +pkglibdir = $(libdir)/@PACKAGE@
828 +pkglibexecdir = $(libexecdir)/@PACKAGE@
829 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
830 +install_sh_DATA = $(install_sh) -c -m 644
831 +install_sh_PROGRAM = $(install_sh) -c
832 +install_sh_SCRIPT = $(install_sh) -c
833 +INSTALL_HEADER = $(INSTALL_DATA)
834 +transform = $(program_transform_name)
835 +NORMAL_INSTALL = :
836 +PRE_INSTALL = :
837 +POST_INSTALL = :
838 +NORMAL_UNINSTALL = :
839 +PRE_UNINSTALL = :
840 +POST_UNINSTALL = :
841 +build_triplet = @build@
842 +host_triplet = @host@
843 +@INSTALL_LTDL_TRUE@am__append_1 = ltdl.h
844 +@INSTALL_LTDL_TRUE@am__append_2 = libltdl.la
845 +@CONVENIENCE_LTDL_TRUE@am__append_3 = libltdlc.la
846 +subdir = .
847 +DIST_COMMON = README $(am__configure_deps) $(am__include_HEADERS_DIST) \
848 + $(am__ltdlinclude_HEADERS_DIST) $(srcdir)/Makefile.am \
849 + $(srcdir)/Makefile.in $(srcdir)/config-h.in \
850 + $(top_srcdir)/configure COPYING.LIB argz.c config/compile \
851 + config/config.guess config/config.sub config/depcomp \
852 + config/install-sh config/ltmain.sh \
853 + config/missing lt__dirent.c lt__strl.c
854 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
855 +am__aclocal_m4_deps = $(top_srcdir)/m4/argz.m4 \
856 + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltdl.m4 \
857 + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
858 + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
859 + $(top_srcdir)/configure.ac
860 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
861 + $(ACLOCAL_M4)
862 +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
863 + configure.lineno config.status.lineno
864 +mkinstalldirs = $(install_sh) -d
865 +CONFIG_HEADER = config.h
866 +CONFIG_CLEAN_FILES =
867 +CONFIG_CLEAN_VPATH_FILES =
868 +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
869 +am__vpath_adj = case $$p in \
870 + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
871 + *) f=$$p;; \
872 + esac;
873 +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
874 +am__install_max = 40
875 +am__nobase_strip_setup = \
876 + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
877 +am__nobase_strip = \
878 + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
879 +am__nobase_list = $(am__nobase_strip_setup); \
880 + for p in $$list; do echo "$$p $$p"; done | \
881 + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
882 + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
883 + if (++n[$$2] == $(am__install_max)) \
884 + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
885 + END { for (dir in files) print dir, files[dir] }'
886 +am__base_list = \
887 + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
888 + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
889 +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" \
890 + "$(DESTDIR)$(ltdlincludedir)"
891 +LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES)
892 +dld_link_la_DEPENDENCIES =
893 +am_dld_link_la_OBJECTS = dld_link.lo
894 +dld_link_la_OBJECTS = $(am_dld_link_la_OBJECTS)
895 +dld_link_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
896 + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
897 + $(dld_link_la_LDFLAGS) $(LDFLAGS) -o $@
898 +am__DEPENDENCIES_1 =
899 +dlopen_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
900 +am_dlopen_la_OBJECTS = dlopen.lo
901 +dlopen_la_OBJECTS = $(am_dlopen_la_OBJECTS)
902 +dlopen_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
903 + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
904 + $(dlopen_la_LDFLAGS) $(LDFLAGS) -o $@
905 +dyld_la_LIBADD =
906 +am_dyld_la_OBJECTS = dyld.lo
907 +dyld_la_OBJECTS = $(am_dyld_la_OBJECTS)
908 +dyld_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
909 + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(dyld_la_LDFLAGS) \
910 + $(LDFLAGS) -o $@
911 +am_libltdl_la_OBJECTS = libltdl_la-preopen.lo libltdl_la-lt__alloc.lo \
912 + libltdl_la-lt_dlloader.lo libltdl_la-lt_error.lo \
913 + libltdl_la-ltdl.lo libltdl_la-slist.lo
914 +libltdl_la_OBJECTS = $(am_libltdl_la_OBJECTS)
915 +libltdl_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
916 + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
917 + $(libltdl_la_LDFLAGS) $(LDFLAGS) -o $@
918 +@INSTALL_LTDL_TRUE@am_libltdl_la_rpath = -rpath $(libdir)
919 +am__objects_1 = libltdlc_la-preopen.lo libltdlc_la-lt__alloc.lo \
920 + libltdlc_la-lt_dlloader.lo libltdlc_la-lt_error.lo \
921 + libltdlc_la-ltdl.lo libltdlc_la-slist.lo
922 +am_libltdlc_la_OBJECTS = $(am__objects_1)
923 +libltdlc_la_OBJECTS = $(am_libltdlc_la_OBJECTS)
924 +libltdlc_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
925 + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
926 + $(libltdlc_la_LDFLAGS) $(LDFLAGS) -o $@
927 +@CONVENIENCE_LTDL_TRUE@am_libltdlc_la_rpath =
928 +load_add_on_la_LIBADD =
929 +am_load_add_on_la_OBJECTS = load_add_on.lo
930 +load_add_on_la_OBJECTS = $(am_load_add_on_la_OBJECTS)
931 +load_add_on_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
932 + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
933 + $(load_add_on_la_LDFLAGS) $(LDFLAGS) -o $@
934 +loadlibrary_la_LIBADD =
935 +am_loadlibrary_la_OBJECTS = loadlibrary.lo
936 +loadlibrary_la_OBJECTS = $(am_loadlibrary_la_OBJECTS)
937 +loadlibrary_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
938 + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
939 + $(loadlibrary_la_LDFLAGS) $(LDFLAGS) -o $@
940 +shl_load_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
941 +am_shl_load_la_OBJECTS = shl_load.lo
942 +shl_load_la_OBJECTS = $(am_shl_load_la_OBJECTS)
943 +shl_load_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
944 + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
945 + $(shl_load_la_LDFLAGS) $(LDFLAGS) -o $@
946 +DEFAULT_INCLUDES = -I.@am__isrc@
947 +depcomp = $(SHELL) $(top_srcdir)/config/depcomp
948 +am__depfiles_maybe = depfiles
949 +am__mv = mv -f
950 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
951 + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
952 +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
953 + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
954 + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
955 +CCLD = $(CC)
956 +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
957 + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
958 + $(LDFLAGS) -o $@
959 +SOURCES = $(dld_link_la_SOURCES) $(dlopen_la_SOURCES) \
960 + $(dyld_la_SOURCES) $(libltdl_la_SOURCES) \
961 + $(libltdlc_la_SOURCES) $(load_add_on_la_SOURCES) \
962 + $(loadlibrary_la_SOURCES) $(shl_load_la_SOURCES)
963 +DIST_SOURCES = $(dld_link_la_SOURCES) $(dlopen_la_SOURCES) \
964 + $(dyld_la_SOURCES) $(libltdl_la_SOURCES) \
965 + $(libltdlc_la_SOURCES) $(load_add_on_la_SOURCES) \
966 + $(loadlibrary_la_SOURCES) $(shl_load_la_SOURCES)
967 +am__include_HEADERS_DIST = ltdl.h
968 +am__ltdlinclude_HEADERS_DIST = libltdl/lt_system.h libltdl/lt_error.h \
969 + libltdl/lt_dlloader.h
970 +HEADERS = $(include_HEADERS) $(ltdlinclude_HEADERS)
971 +ETAGS = etags
972 +CTAGS = ctags
973 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
974 +distdir = $(PACKAGE)-$(VERSION)
975 +top_distdir = $(distdir)
976 +am__remove_distdir = \
977 + { test ! -d "$(distdir)" \
978 + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
979 + && rm -fr "$(distdir)"; }; }
980 +DIST_ARCHIVES = $(distdir).tar.gz
981 +GZIP_ENV = --best
982 +distuninstallcheck_listfiles = find . -type f -print
983 +distcleancheck_listfiles = find . -type f -print
984 +ACLOCAL = @ACLOCAL@
985 +AMTAR = @AMTAR@
986 +AR = @AR@
987 +ARGZ_H = @ARGZ_H@
988 +AS = @AS@
989 +AUTOCONF = @AUTOCONF@
990 +AUTOHEADER = @AUTOHEADER@
991 +AUTOMAKE = @AUTOMAKE@
992 +AWK = @AWK@
993 +CC = @CC@
994 +CCDEPMODE = @CCDEPMODE@
995 +CFLAGS = @CFLAGS@
996 +CPP = @CPP@
997 +CPPFLAGS = @CPPFLAGS@
998 +CYGPATH_W = @CYGPATH_W@
999 +DEFS = @DEFS@
1000 +DEPDIR = @DEPDIR@
1001 +DLLTOOL = @DLLTOOL@
1002 +DSYMUTIL = @DSYMUTIL@
1003 +DUMPBIN = @DUMPBIN@
1004 +ECHO_C = @ECHO_C@
1005 +ECHO_N = @ECHO_N@
1006 +ECHO_T = @ECHO_T@
1007 +EGREP = @EGREP@
1008 +EXEEXT = @EXEEXT@
1009 +FGREP = @FGREP@
1010 +GREP = @GREP@
1011 +INSTALL = @INSTALL@
1012 +INSTALL_DATA = @INSTALL_DATA@
1013 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
1014 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
1015 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
1016 +LD = @LD@
1017 +LDFLAGS = @LDFLAGS@
1018 +LIBADD_DL = @LIBADD_DL@
1019 +LIBADD_DLD_LINK = @LIBADD_DLD_LINK@
1020 +LIBADD_DLOPEN = @LIBADD_DLOPEN@
1021 +LIBADD_SHL_LOAD = @LIBADD_SHL_LOAD@
1022 +LIBOBJS = @LIBOBJS@
1023 +LIBS = @LIBS@
1024 +LIBTOOL = @LIBTOOL@
1025 +LIPO = @LIPO@
1026 +LN_S = @LN_S@
1027 +LTDLOPEN = @LTDLOPEN@
1028 +LTLIBOBJS = @LTLIBOBJS@
1029 +LT_CONFIG_H = @LT_CONFIG_H@
1030 +LT_DLLOADERS = @LT_DLLOADERS@
1031 +LT_DLPREOPEN = @LT_DLPREOPEN@
1032 +MAKEINFO = @MAKEINFO@
1033 +MKDIR_P = @MKDIR_P@
1034 +NM = @NM@
1035 +NMEDIT = @NMEDIT@
1036 +OBJDUMP = @OBJDUMP@
1037 +OBJEXT = @OBJEXT@
1038 +OTOOL = @OTOOL@
1039 +OTOOL64 = @OTOOL64@
1040 +PACKAGE = @PACKAGE@
1041 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
1042 +PACKAGE_NAME = @PACKAGE_NAME@
1043 +PACKAGE_STRING = @PACKAGE_STRING@
1044 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
1045 +PACKAGE_VERSION = @PACKAGE_VERSION@
1046 +PATH_SEPARATOR = @PATH_SEPARATOR@
1047 +RANLIB = @RANLIB@
1048 +SED = @SED@
1049 +SET_MAKE = @SET_MAKE@
1050 +SHELL = @SHELL@
1051 +STRIP = @STRIP@
1052 +VERSION = @VERSION@
1053 +abs_builddir = @abs_builddir@
1054 +abs_srcdir = @abs_srcdir@
1055 +abs_top_builddir = @abs_top_builddir@
1056 +abs_top_srcdir = @abs_top_srcdir@
1057 +ac_ct_CC = @ac_ct_CC@
1058 +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
1059 +am__include = @am__include@
1060 +am__leading_dot = @am__leading_dot@
1061 +am__quote = @am__quote@
1062 +am__tar = @am__tar@
1063 +am__untar = @am__untar@
1064 +bindir = @bindir@
1065 +build = @build@
1066 +build_alias = @build_alias@
1067 +build_cpu = @build_cpu@
1068 +build_os = @build_os@
1069 +build_vendor = @build_vendor@
1070 +builddir = @builddir@
1071 +datadir = @datadir@
1072 +datarootdir = @datarootdir@
1073 +docdir = @docdir@
1074 +dvidir = @dvidir@
1075 +exec_prefix = @exec_prefix@
1076 +host = @host@
1077 +host_alias = @host_alias@
1078 +host_cpu = @host_cpu@
1079 +host_os = @host_os@
1080 +host_vendor = @host_vendor@
1081 +htmldir = @htmldir@
1082 +includedir = @includedir@
1083 +infodir = @infodir@
1084 +install_sh = @install_sh@
1085 +libdir = @libdir@
1086 +libexecdir = @libexecdir@
1087 +localedir = @localedir@
1088 +localstatedir = @localstatedir@
1089 +lt_ECHO = @lt_ECHO@
1090 +mandir = @mandir@
1091 +mkdir_p = @mkdir_p@
1092 +oldincludedir = @oldincludedir@
1093 +pdfdir = @pdfdir@
1094 +prefix = @prefix@
1095 +program_transform_name = @program_transform_name@
1096 +psdir = @psdir@
1097 +sbindir = @sbindir@
1098 +sharedstatedir = @sharedstatedir@
1099 +srcdir = @srcdir@
1100 +sys_symbol_underscore = @sys_symbol_underscore@
1101 +sysconfdir = @sysconfdir@
1102 +target_alias = @target_alias@
1103 +top_build_prefix = @top_build_prefix@
1104 +top_builddir = @top_builddir@
1105 +top_srcdir = @top_srcdir@
1106 +ACLOCAL_AMFLAGS = -I m4
1107 +AUTOMAKE_OPTIONS = foreign
1108 +
1109 +# -I$(srcdir) is needed for user that built libltdl with a sub-Automake
1110 +# (not as a sub-package!) using 'nostdinc':
1111 +AM_CPPFLAGS = -DLT_CONFIG_H='<$(LT_CONFIG_H)>' -DLTDL -I. -I$(srcdir) \
1112 + -Ilibltdl -I$(srcdir)/libltdl -I$(srcdir)/libltdl
1113 +AM_LDFLAGS = -no-undefined
1114 +BUILT_SOURCES = $(ARGZ_H)
1115 +include_HEADERS = $(am__append_1)
1116 +noinst_LTLIBRARIES = $(LT_DLLOADERS) $(am__append_3)
1117 +lib_LTLIBRARIES = $(am__append_2)
1118 +EXTRA_LTLIBRARIES = dlopen.la dld_link.la dyld.la load_add_on.la \
1119 + loadlibrary.la shl_load.la
1120 +EXTRA_DIST = lt__dirent.c lt__strl.c COPYING.LIB configure.ac \
1121 + Makefile.am aclocal.m4 Makefile.in configure config-h.in \
1122 + README argz_.h argz.c
1123 +CLEANFILES = libltdl.la libltdlc.la libdlloader.la $(LIBOBJS) \
1124 + $(LTLIBOBJS)
1125 +MOSTLYCLEANFILES = argz.h argz.h-t
1126 +LTDL_VERSION_INFO = -version-info 9:1:2
1127 +@INSTALL_LTDL_TRUE@ltdlincludedir = $(includedir)/libltdl
1128 +@INSTALL_LTDL_TRUE@ltdlinclude_HEADERS = libltdl/lt_system.h \
1129 +@INSTALL_LTDL_TRUE@ libltdl/lt_error.h \
1130 +@INSTALL_LTDL_TRUE@ libltdl/lt_dlloader.h
1131 +
1132 +libltdl_la_SOURCES = libltdl/lt__alloc.h \
1133 + libltdl/lt__dirent.h \
1134 + libltdl/lt__glibc.h \
1135 + libltdl/lt__private.h \
1136 + libltdl/lt__strl.h \
1137 + libltdl/lt_dlloader.h \
1138 + libltdl/lt_error.h \
1139 + libltdl/lt_system.h \
1140 + libltdl/slist.h \
1141 + loaders/preopen.c \
1142 + lt__alloc.c \
1143 + lt_dlloader.c \
1144 + lt_error.c \
1145 + ltdl.c \
1146 + ltdl.h \
1147 + slist.c
1148 +
1149 +libltdl_la_CPPFLAGS = -DLTDLOPEN=$(LTDLOPEN) $(AM_CPPFLAGS)
1150 +libltdl_la_LDFLAGS = $(AM_LDFLAGS) $(LTDL_VERSION_INFO) $(LT_DLPREOPEN)
1151 +libltdl_la_LIBADD = $(LTLIBOBJS)
1152 +libltdl_la_DEPENDENCIES = $(LT_DLLOADERS) $(LTLIBOBJS)
1153 +libltdlc_la_SOURCES = $(libltdl_la_SOURCES)
1154 +libltdlc_la_CPPFLAGS = -DLTDLOPEN=$(LTDLOPEN)c $(AM_CPPFLAGS)
1155 +libltdlc_la_LDFLAGS = $(AM_LDFLAGS) $(LT_DLPREOPEN)
1156 +libltdlc_la_LIBADD = $(libltdl_la_LIBADD)
1157 +libltdlc_la_DEPENDENCIES = $(libltdl_la_DEPENDENCIES)
1158 +dlopen_la_SOURCES = loaders/dlopen.c
1159 +dlopen_la_LDFLAGS = -module -avoid-version
1160 +dlopen_la_LIBADD = $(LIBADD_DLOPEN)
1161 +dld_link_la_SOURCES = loaders/dld_link.c
1162 +dld_link_la_LDFLAGS = -module -avoid-version
1163 +dld_link_la_LIBADD = -ldld
1164 +dyld_la_SOURCES = loaders/dyld.c
1165 +dyld_la_LDFLAGS = -module -avoid-version
1166 +load_add_on_la_SOURCES = loaders/load_add_on.c
1167 +load_add_on_la_LDFLAGS = -module -avoid-version
1168 +loadlibrary_la_SOURCES = loaders/loadlibrary.c
1169 +loadlibrary_la_LDFLAGS = -module -avoid-version
1170 +shl_load_la_SOURCES = loaders/shl_load.c
1171 +shl_load_la_LDFLAGS = -module -avoid-version
1172 +shl_load_la_LIBADD = $(LIBADD_SHL_LOAD)
1173 +all: $(BUILT_SOURCES) config.h
1174 + $(MAKE) $(AM_MAKEFLAGS) all-am
1175 +
1176 +.SUFFIXES:
1177 +.SUFFIXES: .c .lo .o .obj
1178 +am--refresh:
1179 + @:
1180 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
1181 + @for dep in $?; do \
1182 + case '$(am__configure_deps)' in \
1183 + *$$dep*) \
1184 + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
1185 + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
1186 + && exit 0; \
1187 + exit 1;; \
1188 + esac; \
1189 + done; \
1190 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
1191 + $(am__cd) $(top_srcdir) && \
1192 + $(AUTOMAKE) --foreign Makefile
1193 +.PRECIOUS: Makefile
1194 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1195 + @case '$?' in \
1196 + *config.status*) \
1197 + echo ' $(SHELL) ./config.status'; \
1198 + $(SHELL) ./config.status;; \
1199 + *) \
1200 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
1201 + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
1202 + esac;
1203 +
1204 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
1205 + $(SHELL) ./config.status --recheck
1206 +
1207 +$(top_srcdir)/configure: $(am__configure_deps)
1208 + $(am__cd) $(srcdir) && $(AUTOCONF)
1209 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
1210 + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
1211 +$(am__aclocal_m4_deps):
1212 +
1213 +config.h: stamp-h1
1214 + @if test ! -f $@; then \
1215 + rm -f stamp-h1; \
1216 + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
1217 + else :; fi
1218 +
1219 +stamp-h1: $(srcdir)/config-h.in $(top_builddir)/config.status
1220 + @rm -f stamp-h1
1221 + cd $(top_builddir) && $(SHELL) ./config.status config.h
1222 +$(srcdir)/config-h.in: $(am__configure_deps)
1223 + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
1224 + rm -f stamp-h1
1225 + touch $@
1226 +
1227 +distclean-hdr:
1228 + -rm -f config.h stamp-h1
1229 +install-libLTLIBRARIES: $(lib_LTLIBRARIES)
1230 + @$(NORMAL_INSTALL)
1231 + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
1232 + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
1233 + list2=; for p in $$list; do \
1234 + if test -f $$p; then \
1235 + list2="$$list2 $$p"; \
1236 + else :; fi; \
1237 + done; \
1238 + test -z "$$list2" || { \
1239 + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
1240 + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
1241 + }
1242 +
1243 +uninstall-libLTLIBRARIES:
1244 + @$(NORMAL_UNINSTALL)
1245 + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
1246 + for p in $$list; do \
1247 + $(am__strip_dir) \
1248 + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
1249 + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
1250 + done
1251 +
1252 +clean-libLTLIBRARIES:
1253 + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
1254 + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
1255 + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
1256 + test "$$dir" != "$$p" || dir=.; \
1257 + echo "rm -f \"$${dir}/so_locations\""; \
1258 + rm -f "$${dir}/so_locations"; \
1259 + done
1260 +
1261 +clean-noinstLTLIBRARIES:
1262 + -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
1263 + @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
1264 + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
1265 + test "$$dir" != "$$p" || dir=.; \
1266 + echo "rm -f \"$${dir}/so_locations\""; \
1267 + rm -f "$${dir}/so_locations"; \
1268 + done
1269 +dld_link.la: $(dld_link_la_OBJECTS) $(dld_link_la_DEPENDENCIES)
1270 + $(dld_link_la_LINK) $(dld_link_la_OBJECTS) $(dld_link_la_LIBADD) $(LIBS)
1271 +dlopen.la: $(dlopen_la_OBJECTS) $(dlopen_la_DEPENDENCIES)
1272 + $(dlopen_la_LINK) $(dlopen_la_OBJECTS) $(dlopen_la_LIBADD) $(LIBS)
1273 +dyld.la: $(dyld_la_OBJECTS) $(dyld_la_DEPENDENCIES)
1274 + $(dyld_la_LINK) $(dyld_la_OBJECTS) $(dyld_la_LIBADD) $(LIBS)
1275 +libltdl.la: $(libltdl_la_OBJECTS) $(libltdl_la_DEPENDENCIES)
1276 + $(libltdl_la_LINK) $(am_libltdl_la_rpath) $(libltdl_la_OBJECTS) $(libltdl_la_LIBADD) $(LIBS)
1277 +libltdlc.la: $(libltdlc_la_OBJECTS) $(libltdlc_la_DEPENDENCIES)
1278 + $(libltdlc_la_LINK) $(am_libltdlc_la_rpath) $(libltdlc_la_OBJECTS) $(libltdlc_la_LIBADD) $(LIBS)
1279 +load_add_on.la: $(load_add_on_la_OBJECTS) $(load_add_on_la_DEPENDENCIES)
1280 + $(load_add_on_la_LINK) $(load_add_on_la_OBJECTS) $(load_add_on_la_LIBADD) $(LIBS)
1281 +loadlibrary.la: $(loadlibrary_la_OBJECTS) $(loadlibrary_la_DEPENDENCIES)
1282 + $(loadlibrary_la_LINK) $(loadlibrary_la_OBJECTS) $(loadlibrary_la_LIBADD) $(LIBS)
1283 +shl_load.la: $(shl_load_la_OBJECTS) $(shl_load_la_DEPENDENCIES)
1284 + $(shl_load_la_LINK) $(shl_load_la_OBJECTS) $(shl_load_la_LIBADD) $(LIBS)
1285 +
1286 +mostlyclean-compile:
1287 + -rm -f *.$(OBJEXT)
1288 +
1289 +distclean-compile:
1290 + -rm -f *.tab.c
1291 +
1292 +@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/argz.Plo@am__quote@
1293 +@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/lt__dirent.Plo@am__quote@
1294 +@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/lt__strl.Plo@am__quote@
1295 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dld_link.Plo@am__quote@
1296 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dlopen.Plo@am__quote@
1297 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dyld.Plo@am__quote@
1298 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libltdl_la-lt__alloc.Plo@am__quote@
1299 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libltdl_la-lt_dlloader.Plo@am__quote@
1300 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libltdl_la-lt_error.Plo@am__quote@
1301 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libltdl_la-ltdl.Plo@am__quote@
1302 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libltdl_la-preopen.Plo@am__quote@
1303 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libltdl_la-slist.Plo@am__quote@
1304 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libltdlc_la-lt__alloc.Plo@am__quote@
1305 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libltdlc_la-lt_dlloader.Plo@am__quote@
1306 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libltdlc_la-lt_error.Plo@am__quote@
1307 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libltdlc_la-ltdl.Plo@am__quote@
1308 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libltdlc_la-preopen.Plo@am__quote@
1309 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libltdlc_la-slist.Plo@am__quote@
1310 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/load_add_on.Plo@am__quote@
1311 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loadlibrary.Plo@am__quote@
1312 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/shl_load.Plo@am__quote@
1313 +
1314 +.c.o:
1315 +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
1316 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
1317 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
1318 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1319 +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
1320 +
1321 +.c.obj:
1322 +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
1323 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
1324 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
1325 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1326 +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
1327 +
1328 +.c.lo:
1329 +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
1330 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
1331 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
1332 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1333 +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
1334 +
1335 +dld_link.lo: loaders/dld_link.c
1336 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dld_link.lo -MD -MP -MF $(DEPDIR)/dld_link.Tpo -c -o dld_link.lo `test -f 'loaders/dld_link.c' || echo '$(srcdir)/'`loaders/dld_link.c
1337 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/dld_link.Tpo $(DEPDIR)/dld_link.Plo
1338 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='loaders/dld_link.c' object='dld_link.lo' libtool=yes @AMDEPBACKSLASH@
1339 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1340 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dld_link.lo `test -f 'loaders/dld_link.c' || echo '$(srcdir)/'`loaders/dld_link.c
1341 +
1342 +dlopen.lo: loaders/dlopen.c
1343 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dlopen.lo -MD -MP -MF $(DEPDIR)/dlopen.Tpo -c -o dlopen.lo `test -f 'loaders/dlopen.c' || echo '$(srcdir)/'`loaders/dlopen.c
1344 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/dlopen.Tpo $(DEPDIR)/dlopen.Plo
1345 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='loaders/dlopen.c' object='dlopen.lo' libtool=yes @AMDEPBACKSLASH@
1346 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1347 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dlopen.lo `test -f 'loaders/dlopen.c' || echo '$(srcdir)/'`loaders/dlopen.c
1348 +
1349 +dyld.lo: loaders/dyld.c
1350 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dyld.lo -MD -MP -MF $(DEPDIR)/dyld.Tpo -c -o dyld.lo `test -f 'loaders/dyld.c' || echo '$(srcdir)/'`loaders/dyld.c
1351 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/dyld.Tpo $(DEPDIR)/dyld.Plo
1352 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='loaders/dyld.c' object='dyld.lo' libtool=yes @AMDEPBACKSLASH@
1353 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1354 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dyld.lo `test -f 'loaders/dyld.c' || echo '$(srcdir)/'`loaders/dyld.c
1355 +
1356 +libltdl_la-preopen.lo: loaders/preopen.c
1357 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libltdl_la-preopen.lo -MD -MP -MF $(DEPDIR)/libltdl_la-preopen.Tpo -c -o libltdl_la-preopen.lo `test -f 'loaders/preopen.c' || echo '$(srcdir)/'`loaders/preopen.c
1358 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libltdl_la-preopen.Tpo $(DEPDIR)/libltdl_la-preopen.Plo
1359 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='loaders/preopen.c' object='libltdl_la-preopen.lo' libtool=yes @AMDEPBACKSLASH@
1360 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1361 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libltdl_la-preopen.lo `test -f 'loaders/preopen.c' || echo '$(srcdir)/'`loaders/preopen.c
1362 +
1363 +libltdl_la-lt__alloc.lo: lt__alloc.c
1364 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libltdl_la-lt__alloc.lo -MD -MP -MF $(DEPDIR)/libltdl_la-lt__alloc.Tpo -c -o libltdl_la-lt__alloc.lo `test -f 'lt__alloc.c' || echo '$(srcdir)/'`lt__alloc.c
1365 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libltdl_la-lt__alloc.Tpo $(DEPDIR)/libltdl_la-lt__alloc.Plo
1366 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lt__alloc.c' object='libltdl_la-lt__alloc.lo' libtool=yes @AMDEPBACKSLASH@
1367 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1368 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libltdl_la-lt__alloc.lo `test -f 'lt__alloc.c' || echo '$(srcdir)/'`lt__alloc.c
1369 +
1370 +libltdl_la-lt_dlloader.lo: lt_dlloader.c
1371 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libltdl_la-lt_dlloader.lo -MD -MP -MF $(DEPDIR)/libltdl_la-lt_dlloader.Tpo -c -o libltdl_la-lt_dlloader.lo `test -f 'lt_dlloader.c' || echo '$(srcdir)/'`lt_dlloader.c
1372 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libltdl_la-lt_dlloader.Tpo $(DEPDIR)/libltdl_la-lt_dlloader.Plo
1373 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lt_dlloader.c' object='libltdl_la-lt_dlloader.lo' libtool=yes @AMDEPBACKSLASH@
1374 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1375 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libltdl_la-lt_dlloader.lo `test -f 'lt_dlloader.c' || echo '$(srcdir)/'`lt_dlloader.c
1376 +
1377 +libltdl_la-lt_error.lo: lt_error.c
1378 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libltdl_la-lt_error.lo -MD -MP -MF $(DEPDIR)/libltdl_la-lt_error.Tpo -c -o libltdl_la-lt_error.lo `test -f 'lt_error.c' || echo '$(srcdir)/'`lt_error.c
1379 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libltdl_la-lt_error.Tpo $(DEPDIR)/libltdl_la-lt_error.Plo
1380 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lt_error.c' object='libltdl_la-lt_error.lo' libtool=yes @AMDEPBACKSLASH@
1381 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1382 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libltdl_la-lt_error.lo `test -f 'lt_error.c' || echo '$(srcdir)/'`lt_error.c
1383 +
1384 +libltdl_la-ltdl.lo: ltdl.c
1385 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libltdl_la-ltdl.lo -MD -MP -MF $(DEPDIR)/libltdl_la-ltdl.Tpo -c -o libltdl_la-ltdl.lo `test -f 'ltdl.c' || echo '$(srcdir)/'`ltdl.c
1386 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libltdl_la-ltdl.Tpo $(DEPDIR)/libltdl_la-ltdl.Plo
1387 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ltdl.c' object='libltdl_la-ltdl.lo' libtool=yes @AMDEPBACKSLASH@
1388 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1389 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libltdl_la-ltdl.lo `test -f 'ltdl.c' || echo '$(srcdir)/'`ltdl.c
1390 +
1391 +libltdl_la-slist.lo: slist.c
1392 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libltdl_la-slist.lo -MD -MP -MF $(DEPDIR)/libltdl_la-slist.Tpo -c -o libltdl_la-slist.lo `test -f 'slist.c' || echo '$(srcdir)/'`slist.c
1393 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libltdl_la-slist.Tpo $(DEPDIR)/libltdl_la-slist.Plo
1394 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='slist.c' object='libltdl_la-slist.lo' libtool=yes @AMDEPBACKSLASH@
1395 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1396 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libltdl_la-slist.lo `test -f 'slist.c' || echo '$(srcdir)/'`slist.c
1397 +
1398 +libltdlc_la-preopen.lo: loaders/preopen.c
1399 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdlc_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libltdlc_la-preopen.lo -MD -MP -MF $(DEPDIR)/libltdlc_la-preopen.Tpo -c -o libltdlc_la-preopen.lo `test -f 'loaders/preopen.c' || echo '$(srcdir)/'`loaders/preopen.c
1400 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libltdlc_la-preopen.Tpo $(DEPDIR)/libltdlc_la-preopen.Plo
1401 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='loaders/preopen.c' object='libltdlc_la-preopen.lo' libtool=yes @AMDEPBACKSLASH@
1402 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1403 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdlc_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libltdlc_la-preopen.lo `test -f 'loaders/preopen.c' || echo '$(srcdir)/'`loaders/preopen.c
1404 +
1405 +libltdlc_la-lt__alloc.lo: lt__alloc.c
1406 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdlc_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libltdlc_la-lt__alloc.lo -MD -MP -MF $(DEPDIR)/libltdlc_la-lt__alloc.Tpo -c -o libltdlc_la-lt__alloc.lo `test -f 'lt__alloc.c' || echo '$(srcdir)/'`lt__alloc.c
1407 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libltdlc_la-lt__alloc.Tpo $(DEPDIR)/libltdlc_la-lt__alloc.Plo
1408 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lt__alloc.c' object='libltdlc_la-lt__alloc.lo' libtool=yes @AMDEPBACKSLASH@
1409 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1410 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdlc_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libltdlc_la-lt__alloc.lo `test -f 'lt__alloc.c' || echo '$(srcdir)/'`lt__alloc.c
1411 +
1412 +libltdlc_la-lt_dlloader.lo: lt_dlloader.c
1413 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdlc_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libltdlc_la-lt_dlloader.lo -MD -MP -MF $(DEPDIR)/libltdlc_la-lt_dlloader.Tpo -c -o libltdlc_la-lt_dlloader.lo `test -f 'lt_dlloader.c' || echo '$(srcdir)/'`lt_dlloader.c
1414 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libltdlc_la-lt_dlloader.Tpo $(DEPDIR)/libltdlc_la-lt_dlloader.Plo
1415 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lt_dlloader.c' object='libltdlc_la-lt_dlloader.lo' libtool=yes @AMDEPBACKSLASH@
1416 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1417 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdlc_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libltdlc_la-lt_dlloader.lo `test -f 'lt_dlloader.c' || echo '$(srcdir)/'`lt_dlloader.c
1418 +
1419 +libltdlc_la-lt_error.lo: lt_error.c
1420 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdlc_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libltdlc_la-lt_error.lo -MD -MP -MF $(DEPDIR)/libltdlc_la-lt_error.Tpo -c -o libltdlc_la-lt_error.lo `test -f 'lt_error.c' || echo '$(srcdir)/'`lt_error.c
1421 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libltdlc_la-lt_error.Tpo $(DEPDIR)/libltdlc_la-lt_error.Plo
1422 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lt_error.c' object='libltdlc_la-lt_error.lo' libtool=yes @AMDEPBACKSLASH@
1423 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1424 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdlc_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libltdlc_la-lt_error.lo `test -f 'lt_error.c' || echo '$(srcdir)/'`lt_error.c
1425 +
1426 +libltdlc_la-ltdl.lo: ltdl.c
1427 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdlc_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libltdlc_la-ltdl.lo -MD -MP -MF $(DEPDIR)/libltdlc_la-ltdl.Tpo -c -o libltdlc_la-ltdl.lo `test -f 'ltdl.c' || echo '$(srcdir)/'`ltdl.c
1428 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libltdlc_la-ltdl.Tpo $(DEPDIR)/libltdlc_la-ltdl.Plo
1429 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ltdl.c' object='libltdlc_la-ltdl.lo' libtool=yes @AMDEPBACKSLASH@
1430 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1431 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdlc_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libltdlc_la-ltdl.lo `test -f 'ltdl.c' || echo '$(srcdir)/'`ltdl.c
1432 +
1433 +libltdlc_la-slist.lo: slist.c
1434 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdlc_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libltdlc_la-slist.lo -MD -MP -MF $(DEPDIR)/libltdlc_la-slist.Tpo -c -o libltdlc_la-slist.lo `test -f 'slist.c' || echo '$(srcdir)/'`slist.c
1435 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libltdlc_la-slist.Tpo $(DEPDIR)/libltdlc_la-slist.Plo
1436 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='slist.c' object='libltdlc_la-slist.lo' libtool=yes @AMDEPBACKSLASH@
1437 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1438 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libltdlc_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libltdlc_la-slist.lo `test -f 'slist.c' || echo '$(srcdir)/'`slist.c
1439 +
1440 +load_add_on.lo: loaders/load_add_on.c
1441 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT load_add_on.lo -MD -MP -MF $(DEPDIR)/load_add_on.Tpo -c -o load_add_on.lo `test -f 'loaders/load_add_on.c' || echo '$(srcdir)/'`loaders/load_add_on.c
1442 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/load_add_on.Tpo $(DEPDIR)/load_add_on.Plo
1443 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='loaders/load_add_on.c' object='load_add_on.lo' libtool=yes @AMDEPBACKSLASH@
1444 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1445 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o load_add_on.lo `test -f 'loaders/load_add_on.c' || echo '$(srcdir)/'`loaders/load_add_on.c
1446 +
1447 +loadlibrary.lo: loaders/loadlibrary.c
1448 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT loadlibrary.lo -MD -MP -MF $(DEPDIR)/loadlibrary.Tpo -c -o loadlibrary.lo `test -f 'loaders/loadlibrary.c' || echo '$(srcdir)/'`loaders/loadlibrary.c
1449 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/loadlibrary.Tpo $(DEPDIR)/loadlibrary.Plo
1450 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='loaders/loadlibrary.c' object='loadlibrary.lo' libtool=yes @AMDEPBACKSLASH@
1451 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1452 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o loadlibrary.lo `test -f 'loaders/loadlibrary.c' || echo '$(srcdir)/'`loaders/loadlibrary.c
1453 +
1454 +shl_load.lo: loaders/shl_load.c
1455 +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT shl_load.lo -MD -MP -MF $(DEPDIR)/shl_load.Tpo -c -o shl_load.lo `test -f 'loaders/shl_load.c' || echo '$(srcdir)/'`loaders/shl_load.c
1456 +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/shl_load.Tpo $(DEPDIR)/shl_load.Plo
1457 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='loaders/shl_load.c' object='shl_load.lo' libtool=yes @AMDEPBACKSLASH@
1458 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1459 +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o shl_load.lo `test -f 'loaders/shl_load.c' || echo '$(srcdir)/'`loaders/shl_load.c
1460 +
1461 +mostlyclean-libtool:
1462 + -rm -f *.lo
1463 +
1464 +clean-libtool:
1465 + -rm -rf .libs _libs
1466 +
1467 +distclean-libtool:
1468 + -rm -f libtool config.lt
1469 +install-includeHEADERS: $(include_HEADERS)
1470 + @$(NORMAL_INSTALL)
1471 + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
1472 + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
1473 + for p in $$list; do \
1474 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1475 + echo "$$d$$p"; \
1476 + done | $(am__base_list) | \
1477 + while read files; do \
1478 + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
1479 + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
1480 + done
1481 +
1482 +uninstall-includeHEADERS:
1483 + @$(NORMAL_UNINSTALL)
1484 + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
1485 + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
1486 + test -n "$$files" || exit 0; \
1487 + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
1488 + cd "$(DESTDIR)$(includedir)" && rm -f $$files
1489 +install-ltdlincludeHEADERS: $(ltdlinclude_HEADERS)
1490 + @$(NORMAL_INSTALL)
1491 + test -z "$(ltdlincludedir)" || $(MKDIR_P) "$(DESTDIR)$(ltdlincludedir)"
1492 + @list='$(ltdlinclude_HEADERS)'; test -n "$(ltdlincludedir)" || list=; \
1493 + for p in $$list; do \
1494 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1495 + echo "$$d$$p"; \
1496 + done | $(am__base_list) | \
1497 + while read files; do \
1498 + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(ltdlincludedir)'"; \
1499 + $(INSTALL_HEADER) $$files "$(DESTDIR)$(ltdlincludedir)" || exit $$?; \
1500 + done
1501 +
1502 +uninstall-ltdlincludeHEADERS:
1503 + @$(NORMAL_UNINSTALL)
1504 + @list='$(ltdlinclude_HEADERS)'; test -n "$(ltdlincludedir)" || list=; \
1505 + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
1506 + test -n "$$files" || exit 0; \
1507 + echo " ( cd '$(DESTDIR)$(ltdlincludedir)' && rm -f" $$files ")"; \
1508 + cd "$(DESTDIR)$(ltdlincludedir)" && rm -f $$files
1509 +
1510 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
1511 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
1512 + unique=`for i in $$list; do \
1513 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1514 + done | \
1515 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
1516 + END { if (nonempty) { for (i in files) print i; }; }'`; \
1517 + mkid -fID $$unique
1518 +tags: TAGS
1519 +
1520 +TAGS: $(HEADERS) $(SOURCES) config-h.in $(TAGS_DEPENDENCIES) \
1521 + $(TAGS_FILES) $(LISP)
1522 + set x; \
1523 + here=`pwd`; \
1524 + list='$(SOURCES) $(HEADERS) config-h.in $(LISP) $(TAGS_FILES)'; \
1525 + unique=`for i in $$list; do \
1526 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1527 + done | \
1528 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
1529 + END { if (nonempty) { for (i in files) print i; }; }'`; \
1530 + shift; \
1531 + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
1532 + test -n "$$unique" || unique=$$empty_fix; \
1533 + if test $$# -gt 0; then \
1534 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1535 + "$$@" $$unique; \
1536 + else \
1537 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1538 + $$unique; \
1539 + fi; \
1540 + fi
1541 +ctags: CTAGS
1542 +CTAGS: $(HEADERS) $(SOURCES) config-h.in $(TAGS_DEPENDENCIES) \
1543 + $(TAGS_FILES) $(LISP)
1544 + list='$(SOURCES) $(HEADERS) config-h.in $(LISP) $(TAGS_FILES)'; \
1545 + unique=`for i in $$list; do \
1546 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1547 + done | \
1548 + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
1549 + END { if (nonempty) { for (i in files) print i; }; }'`; \
1550 + test -z "$(CTAGS_ARGS)$$unique" \
1551 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
1552 + $$unique
1553 +
1554 +GTAGS:
1555 + here=`$(am__cd) $(top_builddir) && pwd` \
1556 + && $(am__cd) $(top_srcdir) \
1557 + && gtags -i $(GTAGS_ARGS) "$$here"
1558 +
1559 +distclean-tags:
1560 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
1561 +
1562 +distdir: $(DISTFILES)
1563 + $(am__remove_distdir)
1564 + test -d "$(distdir)" || mkdir "$(distdir)"
1565 + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1566 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1567 + list='$(DISTFILES)'; \
1568 + dist_files=`for file in $$list; do echo $$file; done | \
1569 + sed -e "s|^$$srcdirstrip/||;t" \
1570 + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
1571 + case $$dist_files in \
1572 + */*) $(MKDIR_P) `echo "$$dist_files" | \
1573 + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
1574 + sort -u` ;; \
1575 + esac; \
1576 + for file in $$dist_files; do \
1577 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
1578 + if test -d $$d/$$file; then \
1579 + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
1580 + if test -d "$(distdir)/$$file"; then \
1581 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1582 + fi; \
1583 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
1584 + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
1585 + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1586 + fi; \
1587 + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
1588 + else \
1589 + test -f "$(distdir)/$$file" \
1590 + || cp -p $$d/$$file "$(distdir)/$$file" \
1591 + || exit 1; \
1592 + fi; \
1593 + done
1594 + -test -n "$(am__skip_mode_fix)" \
1595 + || find "$(distdir)" -type d ! -perm -755 \
1596 + -exec chmod u+rwx,go+rx {} \; -o \
1597 + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
1598 + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
1599 + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
1600 + || chmod -R a+r "$(distdir)"
1601 +dist-gzip: distdir
1602 + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1603 + $(am__remove_distdir)
1604 +
1605 +dist-bzip2: distdir
1606 + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
1607 + $(am__remove_distdir)
1608 +
1609 +dist-lzma: distdir
1610 + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
1611 + $(am__remove_distdir)
1612 +
1613 +dist-xz: distdir
1614 + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
1615 + $(am__remove_distdir)
1616 +
1617 +dist-tarZ: distdir
1618 + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
1619 + $(am__remove_distdir)
1620 +
1621 +dist-shar: distdir
1622 + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
1623 + $(am__remove_distdir)
1624 +
1625 +dist-zip: distdir
1626 + -rm -f $(distdir).zip
1627 + zip -rq $(distdir).zip $(distdir)
1628 + $(am__remove_distdir)
1629 +
1630 +dist dist-all: distdir
1631 + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1632 + $(am__remove_distdir)
1633 +
1634 +# This target untars the dist file and tries a VPATH configuration. Then
1635 +# it guarantees that the distribution is self-contained by making another
1636 +# tarfile.
1637 +distcheck: dist
1638 + case '$(DIST_ARCHIVES)' in \
1639 + *.tar.gz*) \
1640 + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
1641 + *.tar.bz2*) \
1642 + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
1643 + *.tar.lzma*) \
1644 + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
1645 + *.tar.xz*) \
1646 + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
1647 + *.tar.Z*) \
1648 + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
1649 + *.shar.gz*) \
1650 + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
1651 + *.zip*) \
1652 + unzip $(distdir).zip ;;\
1653 + esac
1654 + chmod -R a-w $(distdir); chmod a+w $(distdir)
1655 + mkdir $(distdir)/_build
1656 + mkdir $(distdir)/_inst
1657 + chmod a-w $(distdir)
1658 + test -d $(distdir)/_build || exit 0; \
1659 + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
1660 + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
1661 + && am__cwd=`pwd` \
1662 + && $(am__cd) $(distdir)/_build \
1663 + && ../configure --srcdir=.. --prefix="$$dc_install_base" \
1664 + $(DISTCHECK_CONFIGURE_FLAGS) \
1665 + && $(MAKE) $(AM_MAKEFLAGS) \
1666 + && $(MAKE) $(AM_MAKEFLAGS) dvi \
1667 + && $(MAKE) $(AM_MAKEFLAGS) check \
1668 + && $(MAKE) $(AM_MAKEFLAGS) install \
1669 + && $(MAKE) $(AM_MAKEFLAGS) installcheck \
1670 + && $(MAKE) $(AM_MAKEFLAGS) uninstall \
1671 + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
1672 + distuninstallcheck \
1673 + && chmod -R a-w "$$dc_install_base" \
1674 + && ({ \
1675 + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
1676 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
1677 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
1678 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
1679 + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
1680 + } || { rm -rf "$$dc_destdir"; exit 1; }) \
1681 + && rm -rf "$$dc_destdir" \
1682 + && $(MAKE) $(AM_MAKEFLAGS) dist \
1683 + && rm -rf $(DIST_ARCHIVES) \
1684 + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
1685 + && cd "$$am__cwd" \
1686 + || exit 1
1687 + $(am__remove_distdir)
1688 + @(echo "$(distdir) archives ready for distribution: "; \
1689 + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
1690 + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
1691 +distuninstallcheck:
1692 + @$(am__cd) '$(distuninstallcheck_dir)' \
1693 + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
1694 + || { echo "ERROR: files left after uninstall:" ; \
1695 + if test -n "$(DESTDIR)"; then \
1696 + echo " (check DESTDIR support)"; \
1697 + fi ; \
1698 + $(distuninstallcheck_listfiles) ; \
1699 + exit 1; } >&2
1700 +distcleancheck: distclean
1701 + @if test '$(srcdir)' = . ; then \
1702 + echo "ERROR: distcleancheck can only run from a VPATH build" ; \
1703 + exit 1 ; \
1704 + fi
1705 + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
1706 + || { echo "ERROR: files left in build directory after distclean:" ; \
1707 + $(distcleancheck_listfiles) ; \
1708 + exit 1; } >&2
1709 +check-am: all-am
1710 +check: $(BUILT_SOURCES)
1711 + $(MAKE) $(AM_MAKEFLAGS) check-am
1712 +all-am: Makefile $(LTLIBRARIES) $(HEADERS) config.h
1713 +installdirs:
1714 + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" "$(DESTDIR)$(ltdlincludedir)"; do \
1715 + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
1716 + done
1717 +install: $(BUILT_SOURCES)
1718 + $(MAKE) $(AM_MAKEFLAGS) install-am
1719 +install-exec: install-exec-am
1720 +install-data: install-data-am
1721 +uninstall: uninstall-am
1722 +
1723 +install-am: all-am
1724 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1725 +
1726 +installcheck: installcheck-am
1727 +install-strip:
1728 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1729 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1730 + `test -z '$(STRIP)' || \
1731 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
1732 +mostlyclean-generic:
1733 + -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
1734 +
1735 +clean-generic:
1736 + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
1737 +
1738 +distclean-generic:
1739 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
1740 + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
1741 +
1742 +maintainer-clean-generic:
1743 + @echo "This command is intended for maintainers to use"
1744 + @echo "it deletes files that may require special tools to rebuild."
1745 + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
1746 +clean: clean-am
1747 +
1748 +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
1749 + clean-noinstLTLIBRARIES mostlyclean-am
1750 +
1751 +distclean: distclean-am
1752 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1753 + -rm -rf $(DEPDIR) ./$(DEPDIR)
1754 + -rm -f Makefile
1755 +distclean-am: clean-am distclean-compile distclean-generic \
1756 + distclean-hdr distclean-libtool distclean-tags
1757 +
1758 +dvi: dvi-am
1759 +
1760 +dvi-am:
1761 +
1762 +html: html-am
1763 +
1764 +html-am:
1765 +
1766 +info: info-am
1767 +
1768 +info-am:
1769 +
1770 +install-data-am: install-includeHEADERS install-ltdlincludeHEADERS
1771 +
1772 +install-dvi: install-dvi-am
1773 +
1774 +install-dvi-am:
1775 +
1776 +install-exec-am: install-libLTLIBRARIES
1777 +
1778 +install-html: install-html-am
1779 +
1780 +install-html-am:
1781 +
1782 +install-info: install-info-am
1783 +
1784 +install-info-am:
1785 +
1786 +install-man:
1787 +
1788 +install-pdf: install-pdf-am
1789 +
1790 +install-pdf-am:
1791 +
1792 +install-ps: install-ps-am
1793 +
1794 +install-ps-am:
1795 +
1796 +installcheck-am:
1797 +
1798 +maintainer-clean: maintainer-clean-am
1799 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1800 + -rm -rf $(top_srcdir)/autom4te.cache
1801 + -rm -rf $(DEPDIR) ./$(DEPDIR)
1802 + -rm -f Makefile
1803 +maintainer-clean-am: distclean-am maintainer-clean-generic
1804 +
1805 +mostlyclean: mostlyclean-am
1806 +
1807 +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
1808 + mostlyclean-libtool
1809 +
1810 +pdf: pdf-am
1811 +
1812 +pdf-am:
1813 +
1814 +ps: ps-am
1815 +
1816 +ps-am:
1817 +
1818 +uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES \
1819 + uninstall-ltdlincludeHEADERS
1820 +
1821 +.MAKE: all check install install-am install-strip
1822 +
1823 +.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
1824 + clean-generic clean-libLTLIBRARIES clean-libtool \
1825 + clean-noinstLTLIBRARIES ctags dist dist-all dist-bzip2 \
1826 + dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
1827 + distcheck distclean distclean-compile distclean-generic \
1828 + distclean-hdr distclean-libtool distclean-tags distcleancheck \
1829 + distdir distuninstallcheck dvi dvi-am html html-am info \
1830 + info-am install install-am install-data install-data-am \
1831 + install-dvi install-dvi-am install-exec install-exec-am \
1832 + install-html install-html-am install-includeHEADERS \
1833 + install-info install-info-am install-libLTLIBRARIES \
1834 + install-ltdlincludeHEADERS install-man install-pdf \
1835 + install-pdf-am install-ps install-ps-am install-strip \
1836 + installcheck installcheck-am installdirs maintainer-clean \
1837 + maintainer-clean-generic mostlyclean mostlyclean-compile \
1838 + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1839 + tags uninstall uninstall-am uninstall-includeHEADERS \
1840 + uninstall-libLTLIBRARIES uninstall-ltdlincludeHEADERS
1841 +
1842 +
1843 +# We need the following in order to create an <argz.h> when the system
1844 +# doesn't have one that works with the given compiler.
1845 +all-local $(lib_OBJECTS): $(ARGZ_H)
1846 +argz.h: argz_.h
1847 + $(mkinstalldirs) .
1848 + cp $(srcdir)/argz_.h $@-t
1849 + mv $@-t $@
1850 +
1851 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
1852 +# Otherwise a system limit (for SysV at least) may be exceeded.
1853 +.NOEXPORT:
1854 diff --git a/libltdl/README b/libltdl/README
1855 new file mode 100644
1856 index 0000000..e533467
1857 --- /dev/null
1858 +++ b/libltdl/README
1859 @@ -0,0 +1,37 @@
1860 +This is GNU libltdl, a system independent dlopen wrapper for GNU libtool.
1861 +
1862 +It supports the following dlopen interfaces:
1863 +* dlopen (Solaris, Linux and various BSD flavors)
1864 +* shl_load (HP-UX)
1865 +* LoadLibrary (Win16 and Win32)
1866 +* load_add_on (BeOS)
1867 +* GNU DLD (emulates dynamic linking for static libraries)
1868 +* dyld (darwin/Mac OS X)
1869 +* libtool's dlpreopen
1870 +--
1871 + Copyright (C) 1999, 2003 Free Software Foundation, Inc.
1872 + Written by Thomas Tanner, 1999
1873 +
1874 + This file is part of GNU Libtool.
1875 +
1876 +GNU Libtool is free software; you can redistribute it and/or
1877 +modify it under the terms of the GNU General Public License as
1878 +published by the Free Software Foundation; either version 2 of
1879 +the License, or (at your option) any later version.
1880 +
1881 +As a special exception to the GNU General Public License,
1882 +if you distribute this file as part of a program or library that
1883 +is built using GNU Libtool, you may include this file under the
1884 +same distribution terms that you use for the rest of that program.
1885 +
1886 +GNU Libtool is distributed in the hope that it will be useful,
1887 +but WITHOUT ANY WARRANTY; without even the implied warranty of
1888 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1889 +GNU General Public License for more details.
1890 +
1891 +You should have received a copy of the GNU General Public License
1892 +along with GNU Libtool; see the file COPYING. If not, a copy
1893 +can be downloaded from http://www.gnu.org/licenses/gpl.html,
1894 +or obtained by writing to the Free Software Foundation, Inc.,
1895 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1896 +
1897 diff --git a/libltdl/aclocal.m4 b/libltdl/aclocal.m4
1898 new file mode 100644
1899 index 0000000..d10a660
1900 --- /dev/null
1901 +++ b/libltdl/aclocal.m4
1902 @@ -0,0 +1,958 @@
1903 +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
1904 +
1905 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1906 +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1907 +# This file is free software; the Free Software Foundation
1908 +# gives unlimited permission to copy and/or distribute it,
1909 +# with or without modifications, as long as this notice is preserved.
1910 +
1911 +# This program is distributed in the hope that it will be useful,
1912 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
1913 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1914 +# PARTICULAR PURPOSE.
1915 +
1916 +m4_ifndef([AC_AUTOCONF_VERSION],
1917 + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
1918 +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
1919 +[m4_warning([this file was generated for autoconf 2.63.
1920 +You have another version of autoconf. It may work, but is not guaranteed to.
1921 +If you have problems, you may need to regenerate the build system entirely.
1922 +To do so, use the procedure documented by the package, typically `autoreconf'.])])
1923 +
1924 +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1925 +#
1926 +# This file is free software; the Free Software Foundation
1927 +# gives unlimited permission to copy and/or distribute it,
1928 +# with or without modifications, as long as this notice is preserved.
1929 +
1930 +# AM_AUTOMAKE_VERSION(VERSION)
1931 +# ----------------------------
1932 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
1933 +# generated from the m4 files accompanying Automake X.Y.
1934 +# (This private macro should not be called outside this file.)
1935 +AC_DEFUN([AM_AUTOMAKE_VERSION],
1936 +[am__api_version='1.11'
1937 +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
1938 +dnl require some minimum version. Point them to the right macro.
1939 +m4_if([$1], [1.11.1], [],
1940 + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
1941 +])
1942 +
1943 +# _AM_AUTOCONF_VERSION(VERSION)
1944 +# -----------------------------
1945 +# aclocal traces this macro to find the Autoconf version.
1946 +# This is a private macro too. Using m4_define simplifies
1947 +# the logic in aclocal, which can simply ignore this definition.
1948 +m4_define([_AM_AUTOCONF_VERSION], [])
1949 +
1950 +# AM_SET_CURRENT_AUTOMAKE_VERSION
1951 +# -------------------------------
1952 +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
1953 +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
1954 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1955 +[AM_AUTOMAKE_VERSION([1.11.1])dnl
1956 +m4_ifndef([AC_AUTOCONF_VERSION],
1957 + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
1958 +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
1959 +
1960 +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
1961 +
1962 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1963 +#
1964 +# This file is free software; the Free Software Foundation
1965 +# gives unlimited permission to copy and/or distribute it,
1966 +# with or without modifications, as long as this notice is preserved.
1967 +
1968 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
1969 +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
1970 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
1971 +#
1972 +# Of course, Automake must honor this variable whenever it calls a
1973 +# tool from the auxiliary directory. The problem is that $srcdir (and
1974 +# therefore $ac_aux_dir as well) can be either absolute or relative,
1975 +# depending on how configure is run. This is pretty annoying, since
1976 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
1977 +# source directory, any form will work fine, but in subdirectories a
1978 +# relative path needs to be adjusted first.
1979 +#
1980 +# $ac_aux_dir/missing
1981 +# fails when called from a subdirectory if $ac_aux_dir is relative
1982 +# $top_srcdir/$ac_aux_dir/missing
1983 +# fails if $ac_aux_dir is absolute,
1984 +# fails when called from a subdirectory in a VPATH build with
1985 +# a relative $ac_aux_dir
1986 +#
1987 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
1988 +# are both prefixed by $srcdir. In an in-source build this is usually
1989 +# harmless because $srcdir is `.', but things will broke when you
1990 +# start a VPATH build or use an absolute $srcdir.
1991 +#
1992 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
1993 +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
1994 +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
1995 +# and then we would define $MISSING as
1996 +# MISSING="\${SHELL} $am_aux_dir/missing"
1997 +# This will work as long as MISSING is not called from configure, because
1998 +# unfortunately $(top_srcdir) has no meaning in configure.
1999 +# However there are other variables, like CC, which are often used in
2000 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
2001 +#
2002 +# Another solution, used here, is to always expand $ac_aux_dir to an
2003 +# absolute PATH. The drawback is that using absolute paths prevent a
2004 +# configured tree to be moved without reconfiguration.
2005 +
2006 +AC_DEFUN([AM_AUX_DIR_EXPAND],
2007 +[dnl Rely on autoconf to set up CDPATH properly.
2008 +AC_PREREQ([2.50])dnl
2009 +# expand $ac_aux_dir to an absolute path
2010 +am_aux_dir=`cd $ac_aux_dir && pwd`
2011 +])
2012 +
2013 +# AM_CONDITIONAL -*- Autoconf -*-
2014 +
2015 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
2016 +# Free Software Foundation, Inc.
2017 +#
2018 +# This file is free software; the Free Software Foundation
2019 +# gives unlimited permission to copy and/or distribute it,
2020 +# with or without modifications, as long as this notice is preserved.
2021 +
2022 +# serial 9
2023 +
2024 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
2025 +# -------------------------------------
2026 +# Define a conditional.
2027 +AC_DEFUN([AM_CONDITIONAL],
2028 +[AC_PREREQ(2.52)dnl
2029 + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
2030 + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
2031 +AC_SUBST([$1_TRUE])dnl
2032 +AC_SUBST([$1_FALSE])dnl
2033 +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
2034 +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
2035 +m4_define([_AM_COND_VALUE_$1], [$2])dnl
2036 +if $2; then
2037 + $1_TRUE=
2038 + $1_FALSE='#'
2039 +else
2040 + $1_TRUE='#'
2041 + $1_FALSE=
2042 +fi
2043 +AC_CONFIG_COMMANDS_PRE(
2044 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
2045 + AC_MSG_ERROR([[conditional "$1" was never defined.
2046 +Usually this means the macro was only invoked conditionally.]])
2047 +fi])])
2048 +
2049 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
2050 +# Free Software Foundation, Inc.
2051 +#
2052 +# This file is free software; the Free Software Foundation
2053 +# gives unlimited permission to copy and/or distribute it,
2054 +# with or without modifications, as long as this notice is preserved.
2055 +
2056 +# serial 10
2057 +
2058 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
2059 +# written in clear, in which case automake, when reading aclocal.m4,
2060 +# will think it sees a *use*, and therefore will trigger all it's
2061 +# C support machinery. Also note that it means that autoscan, seeing
2062 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
2063 +
2064 +
2065 +# _AM_DEPENDENCIES(NAME)
2066 +# ----------------------
2067 +# See how the compiler implements dependency checking.
2068 +# NAME is "CC", "CXX", "GCJ", or "OBJC".
2069 +# We try a few techniques and use that to set a single cache variable.
2070 +#
2071 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
2072 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
2073 +# dependency, and given that the user is not expected to run this macro,
2074 +# just rely on AC_PROG_CC.
2075 +AC_DEFUN([_AM_DEPENDENCIES],
2076 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
2077 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
2078 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
2079 +AC_REQUIRE([AM_DEP_TRACK])dnl
2080 +
2081 +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
2082 + [$1], CXX, [depcc="$CXX" am_compiler_list=],
2083 + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
2084 + [$1], UPC, [depcc="$UPC" am_compiler_list=],
2085 + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
2086 + [depcc="$$1" am_compiler_list=])
2087 +
2088 +AC_CACHE_CHECK([dependency style of $depcc],
2089 + [am_cv_$1_dependencies_compiler_type],
2090 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2091 + # We make a subdir and do the tests there. Otherwise we can end up
2092 + # making bogus files that we don't know about and never remove. For
2093 + # instance it was reported that on HP-UX the gcc test will end up
2094 + # making a dummy file named `D' -- because `-MD' means `put the output
2095 + # in D'.
2096 + mkdir conftest.dir
2097 + # Copy depcomp to subdir because otherwise we won't find it if we're
2098 + # using a relative directory.
2099 + cp "$am_depcomp" conftest.dir
2100 + cd conftest.dir
2101 + # We will build objects and dependencies in a subdirectory because
2102 + # it helps to detect inapplicable dependency modes. For instance
2103 + # both Tru64's cc and ICC support -MD to output dependencies as a
2104 + # side effect of compilation, but ICC will put the dependencies in
2105 + # the current directory while Tru64 will put them in the object
2106 + # directory.
2107 + mkdir sub
2108 +
2109 + am_cv_$1_dependencies_compiler_type=none
2110 + if test "$am_compiler_list" = ""; then
2111 + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
2112 + fi
2113 + am__universal=false
2114 + m4_case([$1], [CC],
2115 + [case " $depcc " in #(
2116 + *\ -arch\ *\ -arch\ *) am__universal=true ;;
2117 + esac],
2118 + [CXX],
2119 + [case " $depcc " in #(
2120 + *\ -arch\ *\ -arch\ *) am__universal=true ;;
2121 + esac])
2122 +
2123 + for depmode in $am_compiler_list; do
2124 + # Setup a source with many dependencies, because some compilers
2125 + # like to wrap large dependency lists on column 80 (with \), and
2126 + # we should not choose a depcomp mode which is confused by this.
2127 + #
2128 + # We need to recreate these files for each test, as the compiler may
2129 + # overwrite some of them when testing with obscure command lines.
2130 + # This happens at least with the AIX C compiler.
2131 + : > sub/conftest.c
2132 + for i in 1 2 3 4 5 6; do
2133 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
2134 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2135 + # Solaris 8's {/usr,}/bin/sh.
2136 + touch sub/conftst$i.h
2137 + done
2138 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2139 +
2140 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
2141 + # mode. It turns out that the SunPro C++ compiler does not properly
2142 + # handle `-M -o', and we need to detect this. Also, some Intel
2143 + # versions had trouble with output in subdirs
2144 + am__obj=sub/conftest.${OBJEXT-o}
2145 + am__minus_obj="-o $am__obj"
2146 + case $depmode in
2147 + gcc)
2148 + # This depmode causes a compiler race in universal mode.
2149 + test "$am__universal" = false || continue
2150 + ;;
2151 + nosideeffect)
2152 + # after this tag, mechanisms are not by side-effect, so they'll
2153 + # only be used when explicitly requested
2154 + if test "x$enable_dependency_tracking" = xyes; then
2155 + continue
2156 + else
2157 + break
2158 + fi
2159 + ;;
2160 + msvisualcpp | msvcmsys)
2161 + # This compiler won't grok `-c -o', but also, the minuso test has
2162 + # not run yet. These depmodes are late enough in the game, and
2163 + # so weak that their functioning should not be impacted.
2164 + am__obj=conftest.${OBJEXT-o}
2165 + am__minus_obj=
2166 + ;;
2167 + none) break ;;
2168 + esac
2169 + if depmode=$depmode \
2170 + source=sub/conftest.c object=$am__obj \
2171 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2172 + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2173 + >/dev/null 2>conftest.err &&
2174 + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2175 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2176 + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2177 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2178 + # icc doesn't choke on unknown options, it will just issue warnings
2179 + # or remarks (even with -Werror). So we grep stderr for any message
2180 + # that says an option was ignored or not supported.
2181 + # When given -MP, icc 7.0 and 7.1 complain thusly:
2182 + # icc: Command line warning: ignoring option '-M'; no argument required
2183 + # The diagnosis changed in icc 8.0:
2184 + # icc: Command line remark: option '-MP' not supported
2185 + if (grep 'ignoring option' conftest.err ||
2186 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2187 + am_cv_$1_dependencies_compiler_type=$depmode
2188 + break
2189 + fi
2190 + fi
2191 + done
2192 +
2193 + cd ..
2194 + rm -rf conftest.dir
2195 +else
2196 + am_cv_$1_dependencies_compiler_type=none
2197 +fi
2198 +])
2199 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
2200 +AM_CONDITIONAL([am__fastdep$1], [
2201 + test "x$enable_dependency_tracking" != xno \
2202 + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
2203 +])
2204 +
2205 +
2206 +# AM_SET_DEPDIR
2207 +# -------------
2208 +# Choose a directory name for dependency files.
2209 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
2210 +AC_DEFUN([AM_SET_DEPDIR],
2211 +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
2212 +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
2213 +])
2214 +
2215 +
2216 +# AM_DEP_TRACK
2217 +# ------------
2218 +AC_DEFUN([AM_DEP_TRACK],
2219 +[AC_ARG_ENABLE(dependency-tracking,
2220 +[ --disable-dependency-tracking speeds up one-time build
2221 + --enable-dependency-tracking do not reject slow dependency extractors])
2222 +if test "x$enable_dependency_tracking" != xno; then
2223 + am_depcomp="$ac_aux_dir/depcomp"
2224 + AMDEPBACKSLASH='\'
2225 +fi
2226 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
2227 +AC_SUBST([AMDEPBACKSLASH])dnl
2228 +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
2229 +])
2230 +
2231 +# Generate code to set up dependency tracking. -*- Autoconf -*-
2232 +
2233 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
2234 +# Free Software Foundation, Inc.
2235 +#
2236 +# This file is free software; the Free Software Foundation
2237 +# gives unlimited permission to copy and/or distribute it,
2238 +# with or without modifications, as long as this notice is preserved.
2239 +
2240 +#serial 5
2241 +
2242 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
2243 +# ------------------------------
2244 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
2245 +[{
2246 + # Autoconf 2.62 quotes --file arguments for eval, but not when files
2247 + # are listed without --file. Let's play safe and only enable the eval
2248 + # if we detect the quoting.
2249 + case $CONFIG_FILES in
2250 + *\'*) eval set x "$CONFIG_FILES" ;;
2251 + *) set x $CONFIG_FILES ;;
2252 + esac
2253 + shift
2254 + for mf
2255 + do
2256 + # Strip MF so we end up with the name of the file.
2257 + mf=`echo "$mf" | sed -e 's/:.*$//'`
2258 + # Check whether this is an Automake generated Makefile or not.
2259 + # We used to match only the files named `Makefile.in', but
2260 + # some people rename them; so instead we look at the file content.
2261 + # Grep'ing the first line is not enough: some people post-process
2262 + # each Makefile.in and add a new line on top of each file to say so.
2263 + # Grep'ing the whole file is not good either: AIX grep has a line
2264 + # limit of 2048, but all sed's we know have understand at least 4000.
2265 + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
2266 + dirpart=`AS_DIRNAME("$mf")`
2267 + else
2268 + continue
2269 + fi
2270 + # Extract the definition of DEPDIR, am__include, and am__quote
2271 + # from the Makefile without running `make'.
2272 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
2273 + test -z "$DEPDIR" && continue
2274 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
2275 + test -z "am__include" && continue
2276 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
2277 + # When using ansi2knr, U may be empty or an underscore; expand it
2278 + U=`sed -n 's/^U = //p' < "$mf"`
2279 + # Find all dependency output files, they are included files with
2280 + # $(DEPDIR) in their names. We invoke sed twice because it is the
2281 + # simplest approach to changing $(DEPDIR) to its actual value in the
2282 + # expansion.
2283 + for file in `sed -n "
2284 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
2285 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
2286 + # Make sure the directory exists.
2287 + test -f "$dirpart/$file" && continue
2288 + fdir=`AS_DIRNAME(["$file"])`
2289 + AS_MKDIR_P([$dirpart/$fdir])
2290 + # echo "creating $dirpart/$file"
2291 + echo '# dummy' > "$dirpart/$file"
2292 + done
2293 + done
2294 +}
2295 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
2296 +
2297 +
2298 +# AM_OUTPUT_DEPENDENCY_COMMANDS
2299 +# -----------------------------
2300 +# This macro should only be invoked once -- use via AC_REQUIRE.
2301 +#
2302 +# This code is only required when automatic dependency tracking
2303 +# is enabled. FIXME. This creates each `.P' file that we will
2304 +# need in order to bootstrap the dependency handling code.
2305 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
2306 +[AC_CONFIG_COMMANDS([depfiles],
2307 + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
2308 + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
2309 +])
2310 +
2311 +# Do all the work for Automake. -*- Autoconf -*-
2312 +
2313 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2314 +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
2315 +#
2316 +# This file is free software; the Free Software Foundation
2317 +# gives unlimited permission to copy and/or distribute it,
2318 +# with or without modifications, as long as this notice is preserved.
2319 +
2320 +# serial 16
2321 +
2322 +# This macro actually does too much. Some checks are only needed if
2323 +# your package does certain things. But this isn't really a big deal.
2324 +
2325 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
2326 +# AM_INIT_AUTOMAKE([OPTIONS])
2327 +# -----------------------------------------------
2328 +# The call with PACKAGE and VERSION arguments is the old style
2329 +# call (pre autoconf-2.50), which is being phased out. PACKAGE
2330 +# and VERSION should now be passed to AC_INIT and removed from
2331 +# the call to AM_INIT_AUTOMAKE.
2332 +# We support both call styles for the transition. After
2333 +# the next Automake release, Autoconf can make the AC_INIT
2334 +# arguments mandatory, and then we can depend on a new Autoconf
2335 +# release and drop the old call support.
2336 +AC_DEFUN([AM_INIT_AUTOMAKE],
2337 +[AC_PREREQ([2.62])dnl
2338 +dnl Autoconf wants to disallow AM_ names. We explicitly allow
2339 +dnl the ones we care about.
2340 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
2341 +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
2342 +AC_REQUIRE([AC_PROG_INSTALL])dnl
2343 +if test "`cd $srcdir && pwd`" != "`pwd`"; then
2344 + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2345 + # is not polluted with repeated "-I."
2346 + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
2347 + # test to see if srcdir already configured
2348 + if test -f $srcdir/config.status; then
2349 + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
2350 + fi
2351 +fi
2352 +
2353 +# test whether we have cygpath
2354 +if test -z "$CYGPATH_W"; then
2355 + if (cygpath --version) >/dev/null 2>/dev/null; then
2356 + CYGPATH_W='cygpath -w'
2357 + else
2358 + CYGPATH_W=echo
2359 + fi
2360 +fi
2361 +AC_SUBST([CYGPATH_W])
2362 +
2363 +# Define the identity of the package.
2364 +dnl Distinguish between old-style and new-style calls.
2365 +m4_ifval([$2],
2366 +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
2367 + AC_SUBST([PACKAGE], [$1])dnl
2368 + AC_SUBST([VERSION], [$2])],
2369 +[_AM_SET_OPTIONS([$1])dnl
2370 +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
2371 +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
2372 + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
2373 + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
2374 + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
2375 +
2376 +_AM_IF_OPTION([no-define],,
2377 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
2378 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
2379 +
2380 +# Some tools Automake needs.
2381 +AC_REQUIRE([AM_SANITY_CHECK])dnl
2382 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
2383 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
2384 +AM_MISSING_PROG(AUTOCONF, autoconf)
2385 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
2386 +AM_MISSING_PROG(AUTOHEADER, autoheader)
2387 +AM_MISSING_PROG(MAKEINFO, makeinfo)
2388 +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
2389 +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
2390 +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
2391 +# We need awk for the "check" target. The system "awk" is bad on
2392 +# some platforms.
2393 +AC_REQUIRE([AC_PROG_AWK])dnl
2394 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
2395 +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
2396 +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
2397 + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
2398 + [_AM_PROG_TAR([v7])])])
2399 +_AM_IF_OPTION([no-dependencies],,
2400 +[AC_PROVIDE_IFELSE([AC_PROG_CC],
2401 + [_AM_DEPENDENCIES(CC)],
2402 + [define([AC_PROG_CC],
2403 + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
2404 +AC_PROVIDE_IFELSE([AC_PROG_CXX],
2405 + [_AM_DEPENDENCIES(CXX)],
2406 + [define([AC_PROG_CXX],
2407 + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
2408 +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
2409 + [_AM_DEPENDENCIES(OBJC)],
2410 + [define([AC_PROG_OBJC],
2411 + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
2412 +])
2413 +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
2414 +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
2415 +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
2416 +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
2417 +AC_CONFIG_COMMANDS_PRE(dnl
2418 +[m4_provide_if([_AM_COMPILER_EXEEXT],
2419 + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
2420 +])
2421 +
2422 +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
2423 +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
2424 +dnl mangled by Autoconf and run in a shell conditional statement.
2425 +m4_define([_AC_COMPILER_EXEEXT],
2426 +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
2427 +
2428 +
2429 +# When config.status generates a header, we must update the stamp-h file.
2430 +# This file resides in the same directory as the config header
2431 +# that is generated. The stamp files are numbered to have different names.
2432 +
2433 +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
2434 +# loop where config.status creates the headers, so we can generate
2435 +# our stamp files there.
2436 +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
2437 +[# Compute $1's index in $config_headers.
2438 +_am_arg=$1
2439 +_am_stamp_count=1
2440 +for _am_header in $config_headers :; do
2441 + case $_am_header in
2442 + $_am_arg | $_am_arg:* )
2443 + break ;;
2444 + * )
2445 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
2446 + esac
2447 +done
2448 +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
2449 +
2450 +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
2451 +#
2452 +# This file is free software; the Free Software Foundation
2453 +# gives unlimited permission to copy and/or distribute it,
2454 +# with or without modifications, as long as this notice is preserved.
2455 +
2456 +# AM_PROG_INSTALL_SH
2457 +# ------------------
2458 +# Define $install_sh.
2459 +AC_DEFUN([AM_PROG_INSTALL_SH],
2460 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
2461 +if test x"${install_sh}" != xset; then
2462 + case $am_aux_dir in
2463 + *\ * | *\ *)
2464 + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2465 + *)
2466 + install_sh="\${SHELL} $am_aux_dir/install-sh"
2467 + esac
2468 +fi
2469 +AC_SUBST(install_sh)])
2470 +
2471 +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
2472 +#
2473 +# This file is free software; the Free Software Foundation
2474 +# gives unlimited permission to copy and/or distribute it,
2475 +# with or without modifications, as long as this notice is preserved.
2476 +
2477 +# serial 2
2478 +
2479 +# Check whether the underlying file-system supports filenames
2480 +# with a leading dot. For instance MS-DOS doesn't.
2481 +AC_DEFUN([AM_SET_LEADING_DOT],
2482 +[rm -rf .tst 2>/dev/null
2483 +mkdir .tst 2>/dev/null
2484 +if test -d .tst; then
2485 + am__leading_dot=.
2486 +else
2487 + am__leading_dot=_
2488 +fi
2489 +rmdir .tst 2>/dev/null
2490 +AC_SUBST([am__leading_dot])])
2491 +
2492 +# Check to see how 'make' treats includes. -*- Autoconf -*-
2493 +
2494 +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
2495 +#
2496 +# This file is free software; the Free Software Foundation
2497 +# gives unlimited permission to copy and/or distribute it,
2498 +# with or without modifications, as long as this notice is preserved.
2499 +
2500 +# serial 4
2501 +
2502 +# AM_MAKE_INCLUDE()
2503 +# -----------------
2504 +# Check to see how make treats includes.
2505 +AC_DEFUN([AM_MAKE_INCLUDE],
2506 +[am_make=${MAKE-make}
2507 +cat > confinc << 'END'
2508 +am__doit:
2509 + @echo this is the am__doit target
2510 +.PHONY: am__doit
2511 +END
2512 +# If we don't find an include directive, just comment out the code.
2513 +AC_MSG_CHECKING([for style of include used by $am_make])
2514 +am__include="#"
2515 +am__quote=
2516 +_am_result=none
2517 +# First try GNU make style include.
2518 +echo "include confinc" > confmf
2519 +# Ignore all kinds of additional output from `make'.
2520 +case `$am_make -s -f confmf 2> /dev/null` in #(
2521 +*the\ am__doit\ target*)
2522 + am__include=include
2523 + am__quote=
2524 + _am_result=GNU
2525 + ;;
2526 +esac
2527 +# Now try BSD make style include.
2528 +if test "$am__include" = "#"; then
2529 + echo '.include "confinc"' > confmf
2530 + case `$am_make -s -f confmf 2> /dev/null` in #(
2531 + *the\ am__doit\ target*)
2532 + am__include=.include
2533 + am__quote="\""
2534 + _am_result=BSD
2535 + ;;
2536 + esac
2537 +fi
2538 +AC_SUBST([am__include])
2539 +AC_SUBST([am__quote])
2540 +AC_MSG_RESULT([$_am_result])
2541 +rm -f confinc confmf
2542 +])
2543 +
2544 +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
2545 +
2546 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
2547 +# Free Software Foundation, Inc.
2548 +#
2549 +# This file is free software; the Free Software Foundation
2550 +# gives unlimited permission to copy and/or distribute it,
2551 +# with or without modifications, as long as this notice is preserved.
2552 +
2553 +# serial 6
2554 +
2555 +# AM_MISSING_PROG(NAME, PROGRAM)
2556 +# ------------------------------
2557 +AC_DEFUN([AM_MISSING_PROG],
2558 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
2559 +$1=${$1-"${am_missing_run}$2"}
2560 +AC_SUBST($1)])
2561 +
2562 +
2563 +# AM_MISSING_HAS_RUN
2564 +# ------------------
2565 +# Define MISSING if not defined so far and test if it supports --run.
2566 +# If it does, set am_missing_run to use it, otherwise, to nothing.
2567 +AC_DEFUN([AM_MISSING_HAS_RUN],
2568 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
2569 +AC_REQUIRE_AUX_FILE([missing])dnl
2570 +if test x"${MISSING+set}" != xset; then
2571 + case $am_aux_dir in
2572 + *\ * | *\ *)
2573 + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2574 + *)
2575 + MISSING="\${SHELL} $am_aux_dir/missing" ;;
2576 + esac
2577 +fi
2578 +# Use eval to expand $SHELL
2579 +if eval "$MISSING --run true"; then
2580 + am_missing_run="$MISSING --run "
2581 +else
2582 + am_missing_run=
2583 + AC_MSG_WARN([`missing' script is too old or missing])
2584 +fi
2585 +])
2586 +
2587 +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2588 +#
2589 +# This file is free software; the Free Software Foundation
2590 +# gives unlimited permission to copy and/or distribute it,
2591 +# with or without modifications, as long as this notice is preserved.
2592 +
2593 +# AM_PROG_MKDIR_P
2594 +# ---------------
2595 +# Check for `mkdir -p'.
2596 +AC_DEFUN([AM_PROG_MKDIR_P],
2597 +[AC_PREREQ([2.60])dnl
2598 +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
2599 +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
2600 +dnl while keeping a definition of mkdir_p for backward compatibility.
2601 +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
2602 +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
2603 +dnl Makefile.ins that do not define MKDIR_P, so we do our own
2604 +dnl adjustment using top_builddir (which is defined more often than
2605 +dnl MKDIR_P).
2606 +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
2607 +case $mkdir_p in
2608 + [[\\/$]]* | ?:[[\\/]]*) ;;
2609 + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2610 +esac
2611 +])
2612 +
2613 +# Helper functions for option handling. -*- Autoconf -*-
2614 +
2615 +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
2616 +#
2617 +# This file is free software; the Free Software Foundation
2618 +# gives unlimited permission to copy and/or distribute it,
2619 +# with or without modifications, as long as this notice is preserved.
2620 +
2621 +# serial 4
2622 +
2623 +# _AM_MANGLE_OPTION(NAME)
2624 +# -----------------------
2625 +AC_DEFUN([_AM_MANGLE_OPTION],
2626 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
2627 +
2628 +# _AM_SET_OPTION(NAME)
2629 +# ------------------------------
2630 +# Set option NAME. Presently that only means defining a flag for this option.
2631 +AC_DEFUN([_AM_SET_OPTION],
2632 +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
2633 +
2634 +# _AM_SET_OPTIONS(OPTIONS)
2635 +# ----------------------------------
2636 +# OPTIONS is a space-separated list of Automake options.
2637 +AC_DEFUN([_AM_SET_OPTIONS],
2638 +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
2639 +
2640 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
2641 +# -------------------------------------------
2642 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
2643 +AC_DEFUN([_AM_IF_OPTION],
2644 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
2645 +
2646 +# Check to make sure that the build environment is sane. -*- Autoconf -*-
2647 +
2648 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
2649 +# Free Software Foundation, Inc.
2650 +#
2651 +# This file is free software; the Free Software Foundation
2652 +# gives unlimited permission to copy and/or distribute it,
2653 +# with or without modifications, as long as this notice is preserved.
2654 +
2655 +# serial 5
2656 +
2657 +# AM_SANITY_CHECK
2658 +# ---------------
2659 +AC_DEFUN([AM_SANITY_CHECK],
2660 +[AC_MSG_CHECKING([whether build environment is sane])
2661 +# Just in case
2662 +sleep 1
2663 +echo timestamp > conftest.file
2664 +# Reject unsafe characters in $srcdir or the absolute working directory
2665 +# name. Accept space and tab only in the latter.
2666 +am_lf='
2667 +'
2668 +case `pwd` in
2669 + *[[\\\"\#\$\&\'\`$am_lf]]*)
2670 + AC_MSG_ERROR([unsafe absolute working directory name]);;
2671 +esac
2672 +case $srcdir in
2673 + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
2674 + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
2675 +esac
2676 +
2677 +# Do `set' in a subshell so we don't clobber the current shell's
2678 +# arguments. Must try -L first in case configure is actually a
2679 +# symlink; some systems play weird games with the mod time of symlinks
2680 +# (eg FreeBSD returns the mod time of the symlink's containing
2681 +# directory).
2682 +if (
2683 + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2684 + if test "$[*]" = "X"; then
2685 + # -L didn't work.
2686 + set X `ls -t "$srcdir/configure" conftest.file`
2687 + fi
2688 + rm -f conftest.file
2689 + if test "$[*]" != "X $srcdir/configure conftest.file" \
2690 + && test "$[*]" != "X conftest.file $srcdir/configure"; then
2691 +
2692 + # If neither matched, then we have a broken ls. This can happen
2693 + # if, for instance, CONFIG_SHELL is bash and it inherits a
2694 + # broken ls alias from the environment. This has actually
2695 + # happened. Such a system could not be considered "sane".
2696 + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
2697 +alias in your environment])
2698 + fi
2699 +
2700 + test "$[2]" = conftest.file
2701 + )
2702 +then
2703 + # Ok.
2704 + :
2705 +else
2706 + AC_MSG_ERROR([newly created file is older than distributed files!
2707 +Check your system clock])
2708 +fi
2709 +AC_MSG_RESULT(yes)])
2710 +
2711 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
2712 +#
2713 +# This file is free software; the Free Software Foundation
2714 +# gives unlimited permission to copy and/or distribute it,
2715 +# with or without modifications, as long as this notice is preserved.
2716 +
2717 +# AM_PROG_INSTALL_STRIP
2718 +# ---------------------
2719 +# One issue with vendor `install' (even GNU) is that you can't
2720 +# specify the program used to strip binaries. This is especially
2721 +# annoying in cross-compiling environments, where the build's strip
2722 +# is unlikely to handle the host's binaries.
2723 +# Fortunately install-sh will honor a STRIPPROG variable, so we
2724 +# always use install-sh in `make install-strip', and initialize
2725 +# STRIPPROG with the value of the STRIP variable (set by the user).
2726 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
2727 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
2728 +# Installed binaries are usually stripped using `strip' when the user
2729 +# run `make install-strip'. However `strip' might not be the right
2730 +# tool to use in cross-compilation environments, therefore Automake
2731 +# will honor the `STRIP' environment variable to overrule this program.
2732 +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
2733 +if test "$cross_compiling" != no; then
2734 + AC_CHECK_TOOL([STRIP], [strip], :)
2735 +fi
2736 +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2737 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
2738 +
2739 +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
2740 +#
2741 +# This file is free software; the Free Software Foundation
2742 +# gives unlimited permission to copy and/or distribute it,
2743 +# with or without modifications, as long as this notice is preserved.
2744 +
2745 +# serial 2
2746 +
2747 +# _AM_SUBST_NOTMAKE(VARIABLE)
2748 +# ---------------------------
2749 +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
2750 +# This macro is traced by Automake.
2751 +AC_DEFUN([_AM_SUBST_NOTMAKE])
2752 +
2753 +# AM_SUBST_NOTMAKE(VARIABLE)
2754 +# ---------------------------
2755 +# Public sister of _AM_SUBST_NOTMAKE.
2756 +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
2757 +
2758 +# Check how to create a tarball. -*- Autoconf -*-
2759 +
2760 +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
2761 +#
2762 +# This file is free software; the Free Software Foundation
2763 +# gives unlimited permission to copy and/or distribute it,
2764 +# with or without modifications, as long as this notice is preserved.
2765 +
2766 +# serial 2
2767 +
2768 +# _AM_PROG_TAR(FORMAT)
2769 +# --------------------
2770 +# Check how to create a tarball in format FORMAT.
2771 +# FORMAT should be one of `v7', `ustar', or `pax'.
2772 +#
2773 +# Substitute a variable $(am__tar) that is a command
2774 +# writing to stdout a FORMAT-tarball containing the directory
2775 +# $tardir.
2776 +# tardir=directory && $(am__tar) > result.tar
2777 +#
2778 +# Substitute a variable $(am__untar) that extract such
2779 +# a tarball read from stdin.
2780 +# $(am__untar) < result.tar
2781 +AC_DEFUN([_AM_PROG_TAR],
2782 +[# Always define AMTAR for backward compatibility.
2783 +AM_MISSING_PROG([AMTAR], [tar])
2784 +m4_if([$1], [v7],
2785 + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
2786 + [m4_case([$1], [ustar],, [pax],,
2787 + [m4_fatal([Unknown tar format])])
2788 +AC_MSG_CHECKING([how to create a $1 tar archive])
2789 +# Loop over all known methods to create a tar archive until one works.
2790 +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
2791 +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
2792 +# Do not fold the above two line into one, because Tru64 sh and
2793 +# Solaris sh will not grok spaces in the rhs of `-'.
2794 +for _am_tool in $_am_tools
2795 +do
2796 + case $_am_tool in
2797 + gnutar)
2798 + for _am_tar in tar gnutar gtar;
2799 + do
2800 + AM_RUN_LOG([$_am_tar --version]) && break
2801 + done
2802 + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
2803 + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
2804 + am__untar="$_am_tar -xf -"
2805 + ;;
2806 + plaintar)
2807 + # Must skip GNU tar: if it does not support --format= it doesn't create
2808 + # ustar tarball either.
2809 + (tar --version) >/dev/null 2>&1 && continue
2810 + am__tar='tar chf - "$$tardir"'
2811 + am__tar_='tar chf - "$tardir"'
2812 + am__untar='tar xf -'
2813 + ;;
2814 + pax)
2815 + am__tar='pax -L -x $1 -w "$$tardir"'
2816 + am__tar_='pax -L -x $1 -w "$tardir"'
2817 + am__untar='pax -r'
2818 + ;;
2819 + cpio)
2820 + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
2821 + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
2822 + am__untar='cpio -i -H $1 -d'
2823 + ;;
2824 + none)
2825 + am__tar=false
2826 + am__tar_=false
2827 + am__untar=false
2828 + ;;
2829 + esac
2830 +
2831 + # If the value was cached, stop now. We just wanted to have am__tar
2832 + # and am__untar set.
2833 + test -n "${am_cv_prog_tar_$1}" && break
2834 +
2835 + # tar/untar a dummy directory, and stop if the command works
2836 + rm -rf conftest.dir
2837 + mkdir conftest.dir
2838 + echo GrepMe > conftest.dir/file
2839 + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
2840 + rm -rf conftest.dir
2841 + if test -s conftest.tar; then
2842 + AM_RUN_LOG([$am__untar <conftest.tar])
2843 + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2844 + fi
2845 +done
2846 +rm -rf conftest.dir
2847 +
2848 +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
2849 +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
2850 +AC_SUBST([am__tar])
2851 +AC_SUBST([am__untar])
2852 +]) # _AM_PROG_TAR
2853 +
2854 +m4_include([m4/argz.m4])
2855 +m4_include([m4/libtool.m4])
2856 +m4_include([m4/ltdl.m4])
2857 +m4_include([m4/ltoptions.m4])
2858 +m4_include([m4/ltsugar.m4])
2859 +m4_include([m4/ltversion.m4])
2860 +m4_include([m4/lt~obsolete.m4])
2861 diff --git a/libltdl/argz.c b/libltdl/argz.c
2862 new file mode 100644
2863 index 0000000..8567723
2864 --- /dev/null
2865 +++ b/libltdl/argz.c
2866 @@ -0,0 +1,226 @@
2867 +/* argz.c -- argz implementation for non-glibc systems
2868 +
2869 + Copyright (C) 2004, 2006, 2007, 2008 Free Software Foundation, Inc.
2870 + Written by Gary V. Vaughan, 2004
2871 +
2872 + NOTE: The canonical source of this file is maintained with the
2873 + GNU Libtool package. Report bugs to [email protected].
2874 +
2875 +GNU Libltdl is free software; you can redistribute it and/or
2876 +modify it under the terms of the GNU Lesser General Public
2877 +License as published by the Free Software Foundation; either
2878 +version 2 of the License, or (at your option) any later version.
2879 +
2880 +As a special exception to the GNU Lesser General Public License,
2881 +if you distribute this file as part of a program or library that
2882 +is built using GNU Libtool, you may include this file under the
2883 +same distribution terms that you use for the rest of that program.
2884 +
2885 +GNU Libltdl is distributed in the hope that it will be useful,
2886 +but WITHOUT ANY WARRANTY; without even the implied warranty of
2887 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2888 +GNU Lesser General Public License for more details.
2889 +
2890 +You should have received a copy of the GNU Lesser General Public
2891 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
2892 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
2893 +or obtained by writing to the Free Software Foundation, Inc.,
2894 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2895 +*/
2896 +
2897 +#if defined(LTDL) && defined LT_CONFIG_H
2898 +# include LT_CONFIG_H
2899 +#else
2900 +# include <config.h>
2901 +#endif
2902 +
2903 +#include <argz.h>
2904 +
2905 +#include <assert.h>
2906 +#include <stddef.h>
2907 +#include <stdlib.h>
2908 +#include <sys/types.h>
2909 +#include <errno.h>
2910 +#include <string.h>
2911 +
2912 +#define EOS_CHAR '\0'
2913 +
2914 +error_t
2915 +argz_append (char **pargz, size_t *pargz_len, const char *buf, size_t buf_len)
2916 +{
2917 + size_t argz_len;
2918 + char *argz;
2919 +
2920 + assert (pargz);
2921 + assert (pargz_len);
2922 + assert ((*pargz && *pargz_len) || (!*pargz && !*pargz_len));
2923 +
2924 + /* If nothing needs to be appended, no more work is required. */
2925 + if (buf_len == 0)
2926 + return 0;
2927 +
2928 + /* Ensure there is enough room to append BUF_LEN. */
2929 + argz_len = *pargz_len + buf_len;
2930 + argz = (char *) realloc (*pargz, argz_len);
2931 + if (!argz)
2932 + return ENOMEM;
2933 +
2934 + /* Copy characters from BUF after terminating '\0' in ARGZ. */
2935 + memcpy (argz + *pargz_len, buf, buf_len);
2936 +
2937 + /* Assign new values. */
2938 + *pargz = argz;
2939 + *pargz_len = argz_len;
2940 +
2941 + return 0;
2942 +}
2943 +
2944 +
2945 +error_t
2946 +argz_create_sep (const char *str, int delim, char **pargz, size_t *pargz_len)
2947 +{
2948 + size_t argz_len;
2949 + char *argz = 0;
2950 +
2951 + assert (str);
2952 + assert (pargz);
2953 + assert (pargz_len);
2954 +
2955 + /* Make a copy of STR, but replacing each occurrence of
2956 + DELIM with '\0'. */
2957 + argz_len = 1+ strlen (str);
2958 + if (argz_len)
2959 + {
2960 + const char *p;
2961 + char *q;
2962 +
2963 + argz = (char *) malloc (argz_len);
2964 + if (!argz)
2965 + return ENOMEM;
2966 +
2967 + for (p = str, q = argz; *p != EOS_CHAR; ++p)
2968 + {
2969 + if (*p == delim)
2970 + {
2971 + /* Ignore leading delimiters, and fold consecutive
2972 + delimiters in STR into a single '\0' in ARGZ. */
2973 + if ((q > argz) && (q[-1] != EOS_CHAR))
2974 + *q++ = EOS_CHAR;
2975 + else
2976 + --argz_len;
2977 + }
2978 + else
2979 + *q++ = *p;
2980 + }
2981 + /* Copy terminating EOS_CHAR. */
2982 + *q = *p;
2983 + }
2984 +
2985 + /* If ARGZ_LEN has shrunk to nothing, release ARGZ's memory. */
2986 + if (!argz_len)
2987 + argz = (free (argz), (char *) 0);
2988 +
2989 + /* Assign new values. */
2990 + *pargz = argz;
2991 + *pargz_len = argz_len;
2992 +
2993 + return 0;
2994 +}
2995 +
2996 +
2997 +error_t
2998 +argz_insert (char **pargz, size_t *pargz_len, char *before, const char *entry)
2999 +{
3000 + assert (pargz);
3001 + assert (pargz_len);
3002 + assert (entry && *entry);
3003 +
3004 + /* No BEFORE address indicates ENTRY should be inserted after the
3005 + current last element. */
3006 + if (!before)
3007 + return argz_append (pargz, pargz_len, entry, 1+ strlen (entry));
3008 +
3009 + /* This probably indicates a programmer error, but to preserve
3010 + semantics, scan back to the start of an entry if BEFORE points
3011 + into the middle of it. */
3012 + while ((before > *pargz) && (before[-1] != EOS_CHAR))
3013 + --before;
3014 +
3015 + {
3016 + size_t entry_len = 1+ strlen (entry);
3017 + size_t argz_len = *pargz_len + entry_len;
3018 + size_t offset = before - *pargz;
3019 + char *argz = (char *) realloc (*pargz, argz_len);
3020 +
3021 + if (!argz)
3022 + return ENOMEM;
3023 +
3024 + /* Make BEFORE point to the equivalent offset in ARGZ that it
3025 + used to have in *PARGZ incase realloc() moved the block. */
3026 + before = argz + offset;
3027 +
3028 + /* Move the ARGZ entries starting at BEFORE up into the new
3029 + space at the end -- making room to copy ENTRY into the
3030 + resulting gap. */
3031 + memmove (before + entry_len, before, *pargz_len - offset);
3032 + memcpy (before, entry, entry_len);
3033 +
3034 + /* Assign new values. */
3035 + *pargz = argz;
3036 + *pargz_len = argz_len;
3037 + }
3038 +
3039 + return 0;
3040 +}
3041 +
3042 +
3043 +char *
3044 +argz_next (char *argz, size_t argz_len, const char *entry)
3045 +{
3046 + assert ((argz && argz_len) || (!argz && !argz_len));
3047 +
3048 + if (entry)
3049 + {
3050 + /* Either ARGZ/ARGZ_LEN is empty, or ENTRY points into an address
3051 + within the ARGZ vector. */
3052 + assert ((!argz && !argz_len)
3053 + || ((argz <= entry) && (entry < (argz + argz_len))));
3054 +
3055 + /* Move to the char immediately after the terminating
3056 + '\0' of ENTRY. */
3057 + entry = 1+ strchr (entry, EOS_CHAR);
3058 +
3059 + /* Return either the new ENTRY, or else NULL if ARGZ is
3060 + exhausted. */
3061 + return (entry >= argz + argz_len) ? 0 : (char *) entry;
3062 + }
3063 + else
3064 + {
3065 + /* This should probably be flagged as a programmer error,
3066 + since starting an argz_next loop with the iterator set
3067 + to ARGZ is safer. To preserve semantics, handle the NULL
3068 + case by returning the start of ARGZ (if any). */
3069 + if (argz_len > 0)
3070 + return argz;
3071 + else
3072 + return 0;
3073 + }
3074 +}
3075 +
3076 +
3077 +void
3078 +argz_stringify (char *argz, size_t argz_len, int sep)
3079 +{
3080 + assert ((argz && argz_len) || (!argz && !argz_len));
3081 +
3082 + if (sep)
3083 + {
3084 + --argz_len; /* don't stringify the terminating EOS */
3085 + while (--argz_len > 0)
3086 + {
3087 + if (argz[argz_len] == EOS_CHAR)
3088 + argz[argz_len] = sep;
3089 + }
3090 + }
3091 +}
3092 +
3093 diff --git a/libltdl/argz_.h b/libltdl/argz_.h
3094 new file mode 100644
3095 index 0000000..0557575
3096 --- /dev/null
3097 +++ b/libltdl/argz_.h
3098 @@ -0,0 +1,68 @@
3099 +/* lt__argz.h -- internal argz interface for non-glibc systems
3100 +
3101 + Copyright (C) 2004, 2007, 2008 Free Software Foundation, Inc.
3102 + Written by Gary V. Vaughan, 2004
3103 +
3104 + NOTE: The canonical source of this file is maintained with the
3105 + GNU Libtool package. Report bugs to [email protected].
3106 +
3107 +GNU Libltdl is free software; you can redistribute it and/or
3108 +modify it under the terms of the GNU Lesser General Public
3109 +License as published by the Free Software Foundation; either
3110 +version 2 of the License, or (at your option) any later version.
3111 +
3112 +As a special exception to the GNU Lesser General Public License,
3113 +if you distribute this file as part of a program or library that
3114 +is built using GNU Libtool, you may include this file under the
3115 +same distribution terms that you use for the rest of that program.
3116 +
3117 +GNU Libltdl is distributed in the hope that it will be useful,
3118 +but WITHOUT ANY WARRANTY; without even the implied warranty of
3119 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3120 +GNU Lesser General Public License for more details.
3121 +
3122 +You should have received a copy of the GNU Lesser General Public
3123 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
3124 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
3125 +or obtained by writing to the Free Software Foundation, Inc.,
3126 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
3127 +*/
3128 +
3129 +#if !defined(LT__ARGZ_H)
3130 +#define LT__ARGZ_H 1
3131 +
3132 +#include <stdlib.h>
3133 +#define __need_error_t
3134 +#include <errno.h>
3135 +#include <sys/types.h>
3136 +
3137 +#if defined(LTDL)
3138 +# include "lt__glibc.h"
3139 +# include "lt_system.h"
3140 +#else
3141 +# define LT_SCOPE
3142 +#endif
3143 +
3144 +#if defined(__cplusplus)
3145 +extern "C" {
3146 +#endif
3147 +
3148 +LT_SCOPE error_t argz_append (char **pargz, size_t *pargz_len,
3149 + const char *buf, size_t buf_len);
3150 +LT_SCOPE error_t argz_create_sep(const char *str, int delim,
3151 + char **pargz, size_t *pargz_len);
3152 +LT_SCOPE error_t argz_insert (char **pargz, size_t *pargz_len,
3153 + char *before, const char *entry);
3154 +LT_SCOPE char * argz_next (char *argz, size_t argz_len,
3155 + const char *entry);
3156 +LT_SCOPE void argz_stringify (char *argz, size_t argz_len, int sep);
3157 +
3158 +#if defined(__cplusplus)
3159 +}
3160 +#endif
3161 +
3162 +#if !defined(LTDL)
3163 +# undef LT_SCOPE
3164 +#endif
3165 +
3166 +#endif /*!defined(LT__ARGZ_H)*/
3167 diff --git a/libltdl/config-h.in b/libltdl/config-h.in
3168 new file mode 100644
3169 index 0000000..176428a
3170 --- /dev/null
3171 +++ b/libltdl/config-h.in
3172 @@ -0,0 +1,169 @@
3173 +/* config-h.in. Generated from configure.ac by autoheader. */
3174 +
3175 +/* Define to 1 if you have the `argz_add' function. */
3176 +#undef HAVE_ARGZ_ADD
3177 +
3178 +/* Define to 1 if you have the `argz_append' function. */
3179 +#undef HAVE_ARGZ_APPEND
3180 +
3181 +/* Define to 1 if you have the `argz_count' function. */
3182 +#undef HAVE_ARGZ_COUNT
3183 +
3184 +/* Define to 1 if you have the `argz_create_sep' function. */
3185 +#undef HAVE_ARGZ_CREATE_SEP
3186 +
3187 +/* Define to 1 if you have the <argz.h> header file. */
3188 +#undef HAVE_ARGZ_H
3189 +
3190 +/* Define to 1 if you have the `argz_insert' function. */
3191 +#undef HAVE_ARGZ_INSERT
3192 +
3193 +/* Define to 1 if you have the `argz_next' function. */
3194 +#undef HAVE_ARGZ_NEXT
3195 +
3196 +/* Define to 1 if you have the `argz_stringify' function. */
3197 +#undef HAVE_ARGZ_STRINGIFY
3198 +
3199 +/* Define to 1 if you have the `closedir' function. */
3200 +#undef HAVE_CLOSEDIR
3201 +
3202 +/* Define to 1 if you have the declaration of `cygwin_conv_path', and to 0 if
3203 + you don't. */
3204 +#undef HAVE_DECL_CYGWIN_CONV_PATH
3205 +
3206 +/* Define to 1 if you have the <dirent.h> header file. */
3207 +#undef HAVE_DIRENT_H
3208 +
3209 +/* Define if you have the GNU dld library. */
3210 +#undef HAVE_DLD
3211 +
3212 +/* Define to 1 if you have the <dld.h> header file. */
3213 +#undef HAVE_DLD_H
3214 +
3215 +/* Define to 1 if you have the `dlerror' function. */
3216 +#undef HAVE_DLERROR
3217 +
3218 +/* Define to 1 if you have the <dlfcn.h> header file. */
3219 +#undef HAVE_DLFCN_H
3220 +
3221 +/* Define to 1 if you have the <dl.h> header file. */
3222 +#undef HAVE_DL_H
3223 +
3224 +/* Define if you have the _dyld_func_lookup function. */
3225 +#undef HAVE_DYLD
3226 +
3227 +/* Define to 1 if the system has the type `error_t'. */
3228 +#undef HAVE_ERROR_T
3229 +
3230 +/* Define to 1 if you have the <inttypes.h> header file. */
3231 +#undef HAVE_INTTYPES_H
3232 +
3233 +/* Define if you have the libdl library or equivalent. */
3234 +#undef HAVE_LIBDL
3235 +
3236 +/* Define if libdlloader will be built on this platform */
3237 +#undef HAVE_LIBDLLOADER
3238 +
3239 +/* Define to 1 if you have the <mach-o/dyld.h> header file. */
3240 +#undef HAVE_MACH_O_DYLD_H
3241 +
3242 +/* Define to 1 if you have the <memory.h> header file. */
3243 +#undef HAVE_MEMORY_H
3244 +
3245 +/* Define to 1 if you have the `opendir' function. */
3246 +#undef HAVE_OPENDIR
3247 +
3248 +/* Define if libtool can extract symbol lists from object files. */
3249 +#undef HAVE_PRELOADED_SYMBOLS
3250 +
3251 +/* Define to 1 if you have the `readdir' function. */
3252 +#undef HAVE_READDIR
3253 +
3254 +/* Define if you have the shl_load function. */
3255 +#undef HAVE_SHL_LOAD
3256 +
3257 +/* Define to 1 if you have the <stdint.h> header file. */
3258 +#undef HAVE_STDINT_H
3259 +
3260 +/* Define to 1 if you have the <stdlib.h> header file. */
3261 +#undef HAVE_STDLIB_H
3262 +
3263 +/* Define to 1 if you have the <strings.h> header file. */
3264 +#undef HAVE_STRINGS_H
3265 +
3266 +/* Define to 1 if you have the <string.h> header file. */
3267 +#undef HAVE_STRING_H
3268 +
3269 +/* Define to 1 if you have the `strlcat' function. */
3270 +#undef HAVE_STRLCAT
3271 +
3272 +/* Define to 1 if you have the `strlcpy' function. */
3273 +#undef HAVE_STRLCPY
3274 +
3275 +/* Define to 1 if you have the <sys/dl.h> header file. */
3276 +#undef HAVE_SYS_DL_H
3277 +
3278 +/* Define to 1 if you have the <sys/stat.h> header file. */
3279 +#undef HAVE_SYS_STAT_H
3280 +
3281 +/* Define to 1 if you have the <sys/types.h> header file. */
3282 +#undef HAVE_SYS_TYPES_H
3283 +
3284 +/* Define to 1 if you have the <unistd.h> header file. */
3285 +#undef HAVE_UNISTD_H
3286 +
3287 +/* This value is set to 1 to indicate that the system argz facility works */
3288 +#undef HAVE_WORKING_ARGZ
3289 +
3290 +/* Define if the OS needs help to load dependent libraries for dlopen(). */
3291 +#undef LTDL_DLOPEN_DEPLIBS
3292 +
3293 +/* Define to the system default library search path. */
3294 +#undef LT_DLSEARCH_PATH
3295 +
3296 +/* The archive extension */
3297 +#undef LT_LIBEXT
3298 +
3299 +/* Define to the extension used for runtime loadable modules, say, ".so". */
3300 +#undef LT_MODULE_EXT
3301 +
3302 +/* Define to the name of the environment variable that determines the run-time
3303 + module search path. */
3304 +#undef LT_MODULE_PATH_VAR
3305 +
3306 +/* Define to the sub-directory in which libtool stores uninstalled libraries.
3307 + */
3308 +#undef LT_OBJDIR
3309 +
3310 +/* Define if dlsym() requires a leading underscore in symbol names. */
3311 +#undef NEED_USCORE
3312 +
3313 +/* Name of package */
3314 +#undef PACKAGE
3315 +
3316 +/* Define to the address where bug reports for this package should be sent. */
3317 +#undef PACKAGE_BUGREPORT
3318 +
3319 +/* Define to the full name of this package. */
3320 +#undef PACKAGE_NAME
3321 +
3322 +/* Define to the full name and version of this package. */
3323 +#undef PACKAGE_STRING
3324 +
3325 +/* Define to the one symbol short name of this package. */
3326 +#undef PACKAGE_TARNAME
3327 +
3328 +/* Define to the version of this package. */
3329 +#undef PACKAGE_VERSION
3330 +
3331 +/* Define to 1 if you have the ANSI C header files. */
3332 +#undef STDC_HEADERS
3333 +
3334 +/* Version number of package */
3335 +#undef VERSION
3336 +
3337 +/* Define so that glibc/gnulib argp.h does not typedef error_t. */
3338 +#undef __error_t_defined
3339 +
3340 +/* Define to a type to use for `error_t' if it is not otherwise available. */
3341 +#undef error_t
3342 diff --git a/libltdl/config/compile b/libltdl/config/compile
3343 new file mode 100755
3344 index 0000000..c0096a7
3345 --- /dev/null
3346 +++ b/libltdl/config/compile
3347 @@ -0,0 +1,143 @@
3348 +#! /bin/sh
3349 +# Wrapper for compilers which do not understand `-c -o'.
3350 +
3351 +scriptversion=2009-10-06.20; # UTC
3352 +
3353 +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software
3354 +# Foundation, Inc.
3355 +# Written by Tom Tromey <[email protected]>.
3356 +#
3357 +# This program is free software; you can redistribute it and/or modify
3358 +# it under the terms of the GNU General Public License as published by
3359 +# the Free Software Foundation; either version 2, or (at your option)
3360 +# any later version.
3361 +#
3362 +# This program is distributed in the hope that it will be useful,
3363 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
3364 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3365 +# GNU General Public License for more details.
3366 +#
3367 +# You should have received a copy of the GNU General Public License
3368 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
3369 +
3370 +# As a special exception to the GNU General Public License, if you
3371 +# distribute this file as part of a program that contains a
3372 +# configuration script generated by Autoconf, you may include it under
3373 +# the same distribution terms that you use for the rest of that program.
3374 +
3375 +# This file is maintained in Automake, please report
3376 +# bugs to <[email protected]> or send patches to
3377 +# <[email protected]>.
3378 +
3379 +case $1 in
3380 + '')
3381 + echo "$0: No command. Try \`$0 --help' for more information." 1>&2
3382 + exit 1;
3383 + ;;
3384 + -h | --h*)
3385 + cat <<\EOF
3386 +Usage: compile [--help] [--version] PROGRAM [ARGS]
3387 +
3388 +Wrapper for compilers which do not understand `-c -o'.
3389 +Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
3390 +arguments, and rename the output as expected.
3391 +
3392 +If you are trying to build a whole package this is not the
3393 +right script to run: please start by reading the file `INSTALL'.
3394 +
3395 +Report bugs to <[email protected]>.
3396 +EOF
3397 + exit $?
3398 + ;;
3399 + -v | --v*)
3400 + echo "compile $scriptversion"
3401 + exit $?
3402 + ;;
3403 +esac
3404 +
3405 +ofile=
3406 +cfile=
3407 +eat=
3408 +
3409 +for arg
3410 +do
3411 + if test -n "$eat"; then
3412 + eat=
3413 + else
3414 + case $1 in
3415 + -o)
3416 + # configure might choose to run compile as `compile cc -o foo foo.c'.
3417 + # So we strip `-o arg' only if arg is an object.
3418 + eat=1
3419 + case $2 in
3420 + *.o | *.obj)
3421 + ofile=$2
3422 + ;;
3423 + *)
3424 + set x "$@" -o "$2"
3425 + shift
3426 + ;;
3427 + esac
3428 + ;;
3429 + *.c)
3430 + cfile=$1
3431 + set x "$@" "$1"
3432 + shift
3433 + ;;
3434 + *)
3435 + set x "$@" "$1"
3436 + shift
3437 + ;;
3438 + esac
3439 + fi
3440 + shift
3441 +done
3442 +
3443 +if test -z "$ofile" || test -z "$cfile"; then
3444 + # If no `-o' option was seen then we might have been invoked from a
3445 + # pattern rule where we don't need one. That is ok -- this is a
3446 + # normal compilation that the losing compiler can handle. If no
3447 + # `.c' file was seen then we are probably linking. That is also
3448 + # ok.
3449 + exec "$@"
3450 +fi
3451 +
3452 +# Name of file we expect compiler to create.
3453 +cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
3454 +
3455 +# Create the lock directory.
3456 +# Note: use `[/\\:.-]' here to ensure that we don't use the same name
3457 +# that we are using for the .o file. Also, base the name on the expected
3458 +# object file name, since that is what matters with a parallel build.
3459 +lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
3460 +while true; do
3461 + if mkdir "$lockdir" >/dev/null 2>&1; then
3462 + break
3463 + fi
3464 + sleep 1
3465 +done
3466 +# FIXME: race condition here if user kills between mkdir and trap.
3467 +trap "rmdir '$lockdir'; exit 1" 1 2 15
3468 +
3469 +# Run the compile.
3470 +"$@"
3471 +ret=$?
3472 +
3473 +if test -f "$cofile"; then
3474 + test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
3475 +elif test -f "${cofile}bj"; then
3476 + test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
3477 +fi
3478 +
3479 +rmdir "$lockdir"
3480 +exit $ret
3481 +
3482 +# Local Variables:
3483 +# mode: shell-script
3484 +# sh-indentation: 2
3485 +# eval: (add-hook 'write-file-hooks 'time-stamp)
3486 +# time-stamp-start: "scriptversion="
3487 +# time-stamp-format: "%:y-%02m-%02d.%02H"
3488 +# time-stamp-time-zone: "UTC"
3489 +# time-stamp-end: "; # UTC"
3490 +# End:
3491 diff --git a/libltdl/config/config.guess b/libltdl/config/config.guess
3492 new file mode 100755
3493 index 0000000..dc84c68
3494 --- /dev/null
3495 +++ b/libltdl/config/config.guess
3496 @@ -0,0 +1,1501 @@
3497 +#! /bin/sh
3498 +# Attempt to guess a canonical system name.
3499 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3500 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
3501 +# Free Software Foundation, Inc.
3502 +
3503 +timestamp='2009-11-20'
3504 +
3505 +# This file is free software; you can redistribute it and/or modify it
3506 +# under the terms of the GNU General Public License as published by
3507 +# the Free Software Foundation; either version 2 of the License, or
3508 +# (at your option) any later version.
3509 +#
3510 +# This program is distributed in the hope that it will be useful, but
3511 +# WITHOUT ANY WARRANTY; without even the implied warranty of
3512 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3513 +# General Public License for more details.
3514 +#
3515 +# You should have received a copy of the GNU General Public License
3516 +# along with this program; if not, write to the Free Software
3517 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
3518 +# 02110-1301, USA.
3519 +#
3520 +# As a special exception to the GNU General Public License, if you
3521 +# distribute this file as part of a program that contains a
3522 +# configuration script generated by Autoconf, you may include it under
3523 +# the same distribution terms that you use for the rest of that program.
3524 +
3525 +
3526 +# Originally written by Per Bothner. Please send patches (context
3527 +# diff format) to <[email protected]> and include a ChangeLog
3528 +# entry.
3529 +#
3530 +# This script attempts to guess a canonical system name similar to
3531 +# config.sub. If it succeeds, it prints the system name on stdout, and
3532 +# exits with 0. Otherwise, it exits with 1.
3533 +#
3534 +# You can get the latest version of this script from:
3535 +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
3536 +
3537 +me=`echo "$0" | sed -e 's,.*/,,'`
3538 +
3539 +usage="\
3540 +Usage: $0 [OPTION]
3541 +
3542 +Output the configuration name of the system \`$me' is run on.
3543 +
3544 +Operation modes:
3545 + -h, --help print this help, then exit
3546 + -t, --time-stamp print date of last modification, then exit
3547 + -v, --version print version number, then exit
3548 +
3549 +Report bugs and patches to <[email protected]>."
3550 +
3551 +version="\
3552 +GNU config.guess ($timestamp)
3553 +
3554 +Originally written by Per Bothner.
3555 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
3556 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
3557 +
3558 +This is free software; see the source for copying conditions. There is NO
3559 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
3560 +
3561 +help="
3562 +Try \`$me --help' for more information."
3563 +
3564 +# Parse command line
3565 +while test $# -gt 0 ; do
3566 + case $1 in
3567 + --time-stamp | --time* | -t )
3568 + echo "$timestamp" ; exit ;;
3569 + --version | -v )
3570 + echo "$version" ; exit ;;
3571 + --help | --h* | -h )
3572 + echo "$usage"; exit ;;
3573 + -- ) # Stop option processing
3574 + shift; break ;;
3575 + - ) # Use stdin as input.
3576 + break ;;
3577 + -* )
3578 + echo "$me: invalid option $1$help" >&2
3579 + exit 1 ;;
3580 + * )
3581 + break ;;
3582 + esac
3583 +done
3584 +
3585 +if test $# != 0; then
3586 + echo "$me: too many arguments$help" >&2
3587 + exit 1
3588 +fi
3589 +
3590 +trap 'exit 1' 1 2 15
3591 +
3592 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
3593 +# compiler to aid in system detection is discouraged as it requires
3594 +# temporary files to be created and, as you can see below, it is a
3595 +# headache to deal with in a portable fashion.
3596 +
3597 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
3598 +# use `HOST_CC' if defined, but it is deprecated.
3599 +
3600 +# Portable tmp directory creation inspired by the Autoconf team.
3601 +
3602 +set_cc_for_build='
3603 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
3604 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
3605 +: ${TMPDIR=/tmp} ;
3606 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
3607 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
3608 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
3609 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
3610 +dummy=$tmp/dummy ;
3611 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
3612 +case $CC_FOR_BUILD,$HOST_CC,$CC in
3613 + ,,) echo "int x;" > $dummy.c ;
3614 + for c in cc gcc c89 c99 ; do
3615 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
3616 + CC_FOR_BUILD="$c"; break ;
3617 + fi ;
3618 + done ;
3619 + if test x"$CC_FOR_BUILD" = x ; then
3620 + CC_FOR_BUILD=no_compiler_found ;
3621 + fi
3622 + ;;
3623 + ,,*) CC_FOR_BUILD=$CC ;;
3624 + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
3625 +esac ; set_cc_for_build= ;'
3626 +
3627 +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
3628 +# ([email protected] 1994-08-24)
3629 +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
3630 + PATH=$PATH:/.attbin ; export PATH
3631 +fi
3632 +
3633 +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
3634 +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
3635 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
3636 +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
3637 +
3638 +# Note: order is significant - the case branches are not exclusive.
3639 +
3640 +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
3641 + *:NetBSD:*:*)
3642 + # NetBSD (nbsd) targets should (where applicable) match one or
3643 + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
3644 + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
3645 + # switched to ELF, *-*-netbsd* would select the old
3646 + # object file format. This provides both forward
3647 + # compatibility and a consistent mechanism for selecting the
3648 + # object file format.
3649 + #
3650 + # Note: NetBSD doesn't particularly care about the vendor
3651 + # portion of the name. We always set it to "unknown".
3652 + sysctl="sysctl -n hw.machine_arch"
3653 + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
3654 + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
3655 + case "${UNAME_MACHINE_ARCH}" in
3656 + armeb) machine=armeb-unknown ;;
3657 + arm*) machine=arm-unknown ;;
3658 + sh3el) machine=shl-unknown ;;
3659 + sh3eb) machine=sh-unknown ;;
3660 + sh5el) machine=sh5le-unknown ;;
3661 + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
3662 + esac
3663 + # The Operating System including object format, if it has switched
3664 + # to ELF recently, or will in the future.
3665 + case "${UNAME_MACHINE_ARCH}" in
3666 + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
3667 + eval $set_cc_for_build
3668 + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
3669 + | grep -q __ELF__
3670 + then
3671 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
3672 + # Return netbsd for either. FIX?
3673 + os=netbsd
3674 + else
3675 + os=netbsdelf
3676 + fi
3677 + ;;
3678 + *)
3679 + os=netbsd
3680 + ;;
3681 + esac
3682 + # The OS release
3683 + # Debian GNU/NetBSD machines have a different userland, and
3684 + # thus, need a distinct triplet. However, they do not need
3685 + # kernel version information, so it can be replaced with a
3686 + # suitable tag, in the style of linux-gnu.
3687 + case "${UNAME_VERSION}" in
3688 + Debian*)
3689 + release='-gnu'
3690 + ;;
3691 + *)
3692 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
3693 + ;;
3694 + esac
3695 + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
3696 + # contains redundant information, the shorter form:
3697 + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
3698 + echo "${machine}-${os}${release}"
3699 + exit ;;
3700 + *:OpenBSD:*:*)
3701 + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
3702 + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
3703 + exit ;;
3704 + *:ekkoBSD:*:*)
3705 + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
3706 + exit ;;
3707 + *:SolidBSD:*:*)
3708 + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
3709 + exit ;;
3710 + macppc:MirBSD:*:*)
3711 + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
3712 + exit ;;
3713 + *:MirBSD:*:*)
3714 + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
3715 + exit ;;
3716 + alpha:OSF1:*:*)
3717 + case $UNAME_RELEASE in
3718 + *4.0)
3719 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
3720 + ;;
3721 + *5.*)
3722 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
3723 + ;;
3724 + esac
3725 + # According to Compaq, /usr/sbin/psrinfo has been available on
3726 + # OSF/1 and Tru64 systems produced since 1995. I hope that
3727 + # covers most systems running today. This code pipes the CPU
3728 + # types through head -n 1, so we only detect the type of CPU 0.
3729 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
3730 + case "$ALPHA_CPU_TYPE" in
3731 + "EV4 (21064)")
3732 + UNAME_MACHINE="alpha" ;;
3733 + "EV4.5 (21064)")
3734 + UNAME_MACHINE="alpha" ;;
3735 + "LCA4 (21066/21068)")
3736 + UNAME_MACHINE="alpha" ;;
3737 + "EV5 (21164)")
3738 + UNAME_MACHINE="alphaev5" ;;
3739 + "EV5.6 (21164A)")
3740 + UNAME_MACHINE="alphaev56" ;;
3741 + "EV5.6 (21164PC)")
3742 + UNAME_MACHINE="alphapca56" ;;
3743 + "EV5.7 (21164PC)")
3744 + UNAME_MACHINE="alphapca57" ;;
3745 + "EV6 (21264)")
3746 + UNAME_MACHINE="alphaev6" ;;
3747 + "EV6.7 (21264A)")
3748 + UNAME_MACHINE="alphaev67" ;;
3749 + "EV6.8CB (21264C)")
3750 + UNAME_MACHINE="alphaev68" ;;
3751 + "EV6.8AL (21264B)")
3752 + UNAME_MACHINE="alphaev68" ;;
3753 + "EV6.8CX (21264D)")
3754 + UNAME_MACHINE="alphaev68" ;;
3755 + "EV6.9A (21264/EV69A)")
3756 + UNAME_MACHINE="alphaev69" ;;
3757 + "EV7 (21364)")
3758 + UNAME_MACHINE="alphaev7" ;;
3759 + "EV7.9 (21364A)")
3760 + UNAME_MACHINE="alphaev79" ;;
3761 + esac
3762 + # A Pn.n version is a patched version.
3763 + # A Vn.n version is a released version.
3764 + # A Tn.n version is a released field test version.
3765 + # A Xn.n version is an unreleased experimental baselevel.
3766 + # 1.2 uses "1.2" for uname -r.
3767 + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
3768 + exit ;;
3769 + Alpha\ *:Windows_NT*:*)
3770 + # How do we know it's Interix rather than the generic POSIX subsystem?
3771 + # Should we change UNAME_MACHINE based on the output of uname instead
3772 + # of the specific Alpha model?
3773 + echo alpha-pc-interix
3774 + exit ;;
3775 + 21064:Windows_NT:50:3)
3776 + echo alpha-dec-winnt3.5
3777 + exit ;;
3778 + Amiga*:UNIX_System_V:4.0:*)
3779 + echo m68k-unknown-sysv4
3780 + exit ;;
3781 + *:[Aa]miga[Oo][Ss]:*:*)
3782 + echo ${UNAME_MACHINE}-unknown-amigaos
3783 + exit ;;
3784 + *:[Mm]orph[Oo][Ss]:*:*)
3785 + echo ${UNAME_MACHINE}-unknown-morphos
3786 + exit ;;
3787 + *:OS/390:*:*)
3788 + echo i370-ibm-openedition
3789 + exit ;;
3790 + *:z/VM:*:*)
3791 + echo s390-ibm-zvmoe
3792 + exit ;;
3793 + *:OS400:*:*)
3794 + echo powerpc-ibm-os400
3795 + exit ;;
3796 + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
3797 + echo arm-acorn-riscix${UNAME_RELEASE}
3798 + exit ;;
3799 + arm:riscos:*:*|arm:RISCOS:*:*)
3800 + echo arm-unknown-riscos
3801 + exit ;;
3802 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
3803 + echo hppa1.1-hitachi-hiuxmpp
3804 + exit ;;
3805 + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
3806 + # [email protected] (Earle F. Ake) contributed MIS and NILE.
3807 + if test "`(/bin/universe) 2>/dev/null`" = att ; then
3808 + echo pyramid-pyramid-sysv3
3809 + else
3810 + echo pyramid-pyramid-bsd
3811 + fi
3812 + exit ;;
3813 + NILE*:*:*:dcosx)
3814 + echo pyramid-pyramid-svr4
3815 + exit ;;
3816 + DRS?6000:unix:4.0:6*)
3817 + echo sparc-icl-nx6
3818 + exit ;;
3819 + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
3820 + case `/usr/bin/uname -p` in
3821 + sparc) echo sparc-icl-nx7; exit ;;
3822 + esac ;;
3823 + s390x:SunOS:*:*)
3824 + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3825 + exit ;;
3826 + sun4H:SunOS:5.*:*)
3827 + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3828 + exit ;;
3829 + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
3830 + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3831 + exit ;;
3832 + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
3833 + echo i386-pc-auroraux${UNAME_RELEASE}
3834 + exit ;;
3835 + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
3836 + eval $set_cc_for_build
3837 + SUN_ARCH="i386"
3838 + # If there is a compiler, see if it is configured for 64-bit objects.
3839 + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
3840 + # This test works for both compilers.
3841 + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
3842 + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
3843 + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
3844 + grep IS_64BIT_ARCH >/dev/null
3845 + then
3846 + SUN_ARCH="x86_64"
3847 + fi
3848 + fi
3849 + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3850 + exit ;;
3851 + sun4*:SunOS:6*:*)
3852 + # According to config.sub, this is the proper way to canonicalize
3853 + # SunOS6. Hard to guess exactly what SunOS6 will be like, but
3854 + # it's likely to be more like Solaris than SunOS4.
3855 + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3856 + exit ;;
3857 + sun4*:SunOS:*:*)
3858 + case "`/usr/bin/arch -k`" in
3859 + Series*|S4*)
3860 + UNAME_RELEASE=`uname -v`
3861 + ;;
3862 + esac
3863 + # Japanese Language versions have a version number like `4.1.3-JL'.
3864 + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
3865 + exit ;;
3866 + sun3*:SunOS:*:*)
3867 + echo m68k-sun-sunos${UNAME_RELEASE}
3868 + exit ;;
3869 + sun*:*:4.2BSD:*)
3870 + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
3871 + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
3872 + case "`/bin/arch`" in
3873 + sun3)
3874 + echo m68k-sun-sunos${UNAME_RELEASE}
3875 + ;;
3876 + sun4)
3877 + echo sparc-sun-sunos${UNAME_RELEASE}
3878 + ;;
3879 + esac
3880 + exit ;;
3881 + aushp:SunOS:*:*)
3882 + echo sparc-auspex-sunos${UNAME_RELEASE}
3883 + exit ;;
3884 + # The situation for MiNT is a little confusing. The machine name
3885 + # can be virtually everything (everything which is not
3886 + # "atarist" or "atariste" at least should have a processor
3887 + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
3888 + # to the lowercase version "mint" (or "freemint"). Finally
3889 + # the system name "TOS" denotes a system which is actually not
3890 + # MiNT. But MiNT is downward compatible to TOS, so this should
3891 + # be no problem.
3892 + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
3893 + echo m68k-atari-mint${UNAME_RELEASE}
3894 + exit ;;
3895 + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
3896 + echo m68k-atari-mint${UNAME_RELEASE}
3897 + exit ;;
3898 + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
3899 + echo m68k-atari-mint${UNAME_RELEASE}
3900 + exit ;;
3901 + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
3902 + echo m68k-milan-mint${UNAME_RELEASE}
3903 + exit ;;
3904 + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
3905 + echo m68k-hades-mint${UNAME_RELEASE}
3906 + exit ;;
3907 + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
3908 + echo m68k-unknown-mint${UNAME_RELEASE}
3909 + exit ;;
3910 + m68k:machten:*:*)
3911 + echo m68k-apple-machten${UNAME_RELEASE}
3912 + exit ;;
3913 + powerpc:machten:*:*)
3914 + echo powerpc-apple-machten${UNAME_RELEASE}
3915 + exit ;;
3916 + RISC*:Mach:*:*)
3917 + echo mips-dec-mach_bsd4.3
3918 + exit ;;
3919 + RISC*:ULTRIX:*:*)
3920 + echo mips-dec-ultrix${UNAME_RELEASE}
3921 + exit ;;
3922 + VAX*:ULTRIX*:*:*)
3923 + echo vax-dec-ultrix${UNAME_RELEASE}
3924 + exit ;;
3925 + 2020:CLIX:*:* | 2430:CLIX:*:*)
3926 + echo clipper-intergraph-clix${UNAME_RELEASE}
3927 + exit ;;
3928 + mips:*:*:UMIPS | mips:*:*:RISCos)
3929 + eval $set_cc_for_build
3930 + sed 's/^ //' << EOF >$dummy.c
3931 +#ifdef __cplusplus
3932 +#include <stdio.h> /* for printf() prototype */
3933 + int main (int argc, char *argv[]) {
3934 +#else
3935 + int main (argc, argv) int argc; char *argv[]; {
3936 +#endif
3937 + #if defined (host_mips) && defined (MIPSEB)
3938 + #if defined (SYSTYPE_SYSV)
3939 + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
3940 + #endif
3941 + #if defined (SYSTYPE_SVR4)
3942 + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
3943 + #endif
3944 + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
3945 + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
3946 + #endif
3947 + #endif
3948 + exit (-1);
3949 + }
3950 +EOF
3951 + $CC_FOR_BUILD -o $dummy $dummy.c &&
3952 + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
3953 + SYSTEM_NAME=`$dummy $dummyarg` &&
3954 + { echo "$SYSTEM_NAME"; exit; }
3955 + echo mips-mips-riscos${UNAME_RELEASE}
3956 + exit ;;
3957 + Motorola:PowerMAX_OS:*:*)
3958 + echo powerpc-motorola-powermax
3959 + exit ;;
3960 + Motorola:*:4.3:PL8-*)
3961 + echo powerpc-harris-powermax
3962 + exit ;;
3963 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
3964 + echo powerpc-harris-powermax
3965 + exit ;;
3966 + Night_Hawk:Power_UNIX:*:*)
3967 + echo powerpc-harris-powerunix
3968 + exit ;;
3969 + m88k:CX/UX:7*:*)
3970 + echo m88k-harris-cxux7
3971 + exit ;;
3972 + m88k:*:4*:R4*)
3973 + echo m88k-motorola-sysv4
3974 + exit ;;
3975 + m88k:*:3*:R3*)
3976 + echo m88k-motorola-sysv3
3977 + exit ;;
3978 + AViiON:dgux:*:*)
3979 + # DG/UX returns AViiON for all architectures
3980 + UNAME_PROCESSOR=`/usr/bin/uname -p`
3981 + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
3982 + then
3983 + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
3984 + [ ${TARGET_BINARY_INTERFACE}x = x ]
3985 + then
3986 + echo m88k-dg-dgux${UNAME_RELEASE}
3987 + else
3988 + echo m88k-dg-dguxbcs${UNAME_RELEASE}
3989 + fi
3990 + else
3991 + echo i586-dg-dgux${UNAME_RELEASE}
3992 + fi
3993 + exit ;;
3994 + M88*:DolphinOS:*:*) # DolphinOS (SVR3)
3995 + echo m88k-dolphin-sysv3
3996 + exit ;;
3997 + M88*:*:R3*:*)
3998 + # Delta 88k system running SVR3
3999 + echo m88k-motorola-sysv3
4000 + exit ;;
4001 + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
4002 + echo m88k-tektronix-sysv3
4003 + exit ;;
4004 + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
4005 + echo m68k-tektronix-bsd
4006 + exit ;;
4007 + *:IRIX*:*:*)
4008 + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
4009 + exit ;;
4010 + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
4011 + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
4012 + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
4013 + i*86:AIX:*:*)
4014 + echo i386-ibm-aix
4015 + exit ;;
4016 + ia64:AIX:*:*)
4017 + if [ -x /usr/bin/oslevel ] ; then
4018 + IBM_REV=`/usr/bin/oslevel`
4019 + else
4020 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
4021 + fi
4022 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
4023 + exit ;;
4024 + *:AIX:2:3)
4025 + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
4026 + eval $set_cc_for_build
4027 + sed 's/^ //' << EOF >$dummy.c
4028 + #include <sys/systemcfg.h>
4029 +
4030 + main()
4031 + {
4032 + if (!__power_pc())
4033 + exit(1);
4034 + puts("powerpc-ibm-aix3.2.5");
4035 + exit(0);
4036 + }
4037 +EOF
4038 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
4039 + then
4040 + echo "$SYSTEM_NAME"
4041 + else
4042 + echo rs6000-ibm-aix3.2.5
4043 + fi
4044 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
4045 + echo rs6000-ibm-aix3.2.4
4046 + else
4047 + echo rs6000-ibm-aix3.2
4048 + fi
4049 + exit ;;
4050 + *:AIX:*:[456])
4051 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
4052 + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
4053 + IBM_ARCH=rs6000
4054 + else
4055 + IBM_ARCH=powerpc
4056 + fi
4057 + if [ -x /usr/bin/oslevel ] ; then
4058 + IBM_REV=`/usr/bin/oslevel`
4059 + else
4060 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
4061 + fi
4062 + echo ${IBM_ARCH}-ibm-aix${IBM_REV}
4063 + exit ;;
4064 + *:AIX:*:*)
4065 + echo rs6000-ibm-aix
4066 + exit ;;
4067 + ibmrt:4.4BSD:*|romp-ibm:BSD:*)
4068 + echo romp-ibm-bsd4.4
4069 + exit ;;
4070 + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
4071 + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
4072 + exit ;; # report: romp-ibm BSD 4.3
4073 + *:BOSX:*:*)
4074 + echo rs6000-bull-bosx
4075 + exit ;;
4076 + DPX/2?00:B.O.S.:*:*)
4077 + echo m68k-bull-sysv3
4078 + exit ;;
4079 + 9000/[34]??:4.3bsd:1.*:*)
4080 + echo m68k-hp-bsd
4081 + exit ;;
4082 + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
4083 + echo m68k-hp-bsd4.4
4084 + exit ;;
4085 + 9000/[34678]??:HP-UX:*:*)
4086 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
4087 + case "${UNAME_MACHINE}" in
4088 + 9000/31? ) HP_ARCH=m68000 ;;
4089 + 9000/[34]?? ) HP_ARCH=m68k ;;
4090 + 9000/[678][0-9][0-9])
4091 + if [ -x /usr/bin/getconf ]; then
4092 + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
4093 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
4094 + case "${sc_cpu_version}" in
4095 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
4096 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
4097 + 532) # CPU_PA_RISC2_0
4098 + case "${sc_kernel_bits}" in
4099 + 32) HP_ARCH="hppa2.0n" ;;
4100 + 64) HP_ARCH="hppa2.0w" ;;
4101 + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
4102 + esac ;;
4103 + esac
4104 + fi
4105 + if [ "${HP_ARCH}" = "" ]; then
4106 + eval $set_cc_for_build
4107 + sed 's/^ //' << EOF >$dummy.c
4108 +
4109 + #define _HPUX_SOURCE
4110 + #include <stdlib.h>
4111 + #include <unistd.h>
4112 +
4113 + int main ()
4114 + {
4115 + #if defined(_SC_KERNEL_BITS)
4116 + long bits = sysconf(_SC_KERNEL_BITS);
4117 + #endif
4118 + long cpu = sysconf (_SC_CPU_VERSION);
4119 +
4120 + switch (cpu)
4121 + {
4122 + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
4123 + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
4124 + case CPU_PA_RISC2_0:
4125 + #if defined(_SC_KERNEL_BITS)
4126 + switch (bits)
4127 + {
4128 + case 64: puts ("hppa2.0w"); break;
4129 + case 32: puts ("hppa2.0n"); break;
4130 + default: puts ("hppa2.0"); break;
4131 + } break;
4132 + #else /* !defined(_SC_KERNEL_BITS) */
4133 + puts ("hppa2.0"); break;
4134 + #endif
4135 + default: puts ("hppa1.0"); break;
4136 + }
4137 + exit (0);
4138 + }
4139 +EOF
4140 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
4141 + test -z "$HP_ARCH" && HP_ARCH=hppa
4142 + fi ;;
4143 + esac
4144 + if [ ${HP_ARCH} = "hppa2.0w" ]
4145 + then
4146 + eval $set_cc_for_build
4147 +
4148 + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
4149 + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
4150 + # generating 64-bit code. GNU and HP use different nomenclature:
4151 + #
4152 + # $ CC_FOR_BUILD=cc ./config.guess
4153 + # => hppa2.0w-hp-hpux11.23
4154 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
4155 + # => hppa64-hp-hpux11.23
4156 +
4157 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
4158 + grep -q __LP64__
4159 + then
4160 + HP_ARCH="hppa2.0w"
4161 + else
4162 + HP_ARCH="hppa64"
4163 + fi
4164 + fi
4165 + echo ${HP_ARCH}-hp-hpux${HPUX_REV}
4166 + exit ;;
4167 + ia64:HP-UX:*:*)
4168 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
4169 + echo ia64-hp-hpux${HPUX_REV}
4170 + exit ;;
4171 + 3050*:HI-UX:*:*)
4172 + eval $set_cc_for_build
4173 + sed 's/^ //' << EOF >$dummy.c
4174 + #include <unistd.h>
4175 + int
4176 + main ()
4177 + {
4178 + long cpu = sysconf (_SC_CPU_VERSION);
4179 + /* The order matters, because CPU_IS_HP_MC68K erroneously returns
4180 + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
4181 + results, however. */
4182 + if (CPU_IS_PA_RISC (cpu))
4183 + {
4184 + switch (cpu)
4185 + {
4186 + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
4187 + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
4188 + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
4189 + default: puts ("hppa-hitachi-hiuxwe2"); break;
4190 + }
4191 + }
4192 + else if (CPU_IS_HP_MC68K (cpu))
4193 + puts ("m68k-hitachi-hiuxwe2");
4194 + else puts ("unknown-hitachi-hiuxwe2");
4195 + exit (0);
4196 + }
4197 +EOF
4198 + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
4199 + { echo "$SYSTEM_NAME"; exit; }
4200 + echo unknown-hitachi-hiuxwe2
4201 + exit ;;
4202 + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
4203 + echo hppa1.1-hp-bsd
4204 + exit ;;
4205 + 9000/8??:4.3bsd:*:*)
4206 + echo hppa1.0-hp-bsd
4207 + exit ;;
4208 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
4209 + echo hppa1.0-hp-mpeix
4210 + exit ;;
4211 + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
4212 + echo hppa1.1-hp-osf
4213 + exit ;;
4214 + hp8??:OSF1:*:*)
4215 + echo hppa1.0-hp-osf
4216 + exit ;;
4217 + i*86:OSF1:*:*)
4218 + if [ -x /usr/sbin/sysversion ] ; then
4219 + echo ${UNAME_MACHINE}-unknown-osf1mk
4220 + else
4221 + echo ${UNAME_MACHINE}-unknown-osf1
4222 + fi
4223 + exit ;;
4224 + parisc*:Lites*:*:*)
4225 + echo hppa1.1-hp-lites
4226 + exit ;;
4227 + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
4228 + echo c1-convex-bsd
4229 + exit ;;
4230 + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
4231 + if getsysinfo -f scalar_acc
4232 + then echo c32-convex-bsd
4233 + else echo c2-convex-bsd
4234 + fi
4235 + exit ;;
4236 + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
4237 + echo c34-convex-bsd
4238 + exit ;;
4239 + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
4240 + echo c38-convex-bsd
4241 + exit ;;
4242 + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
4243 + echo c4-convex-bsd
4244 + exit ;;
4245 + CRAY*Y-MP:*:*:*)
4246 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
4247 + exit ;;
4248 + CRAY*[A-Z]90:*:*:*)
4249 + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
4250 + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
4251 + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
4252 + -e 's/\.[^.]*$/.X/'
4253 + exit ;;
4254 + CRAY*TS:*:*:*)
4255 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
4256 + exit ;;
4257 + CRAY*T3E:*:*:*)
4258 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
4259 + exit ;;
4260 + CRAY*SV1:*:*:*)
4261 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
4262 + exit ;;
4263 + *:UNICOS/mp:*:*)
4264 + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
4265 + exit ;;
4266 + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
4267 + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
4268 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
4269 + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
4270 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
4271 + exit ;;
4272 + 5000:UNIX_System_V:4.*:*)
4273 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
4274 + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
4275 + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
4276 + exit ;;
4277 + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
4278 + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
4279 + exit ;;
4280 + sparc*:BSD/OS:*:*)
4281 + echo sparc-unknown-bsdi${UNAME_RELEASE}
4282 + exit ;;
4283 + *:BSD/OS:*:*)
4284 + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
4285 + exit ;;
4286 + *:FreeBSD:*:*)
4287 + case ${UNAME_MACHINE} in
4288 + pc98)
4289 + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
4290 + amd64)
4291 + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
4292 + *)
4293 + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
4294 + esac
4295 + exit ;;
4296 + i*:CYGWIN*:*)
4297 + echo ${UNAME_MACHINE}-pc-cygwin
4298 + exit ;;
4299 + *:MINGW*:*)
4300 + echo ${UNAME_MACHINE}-pc-mingw32
4301 + exit ;;
4302 + i*:windows32*:*)
4303 + # uname -m includes "-pc" on this system.
4304 + echo ${UNAME_MACHINE}-mingw32
4305 + exit ;;
4306 + i*:PW*:*)
4307 + echo ${UNAME_MACHINE}-pc-pw32
4308 + exit ;;
4309 + *:Interix*:*)
4310 + case ${UNAME_MACHINE} in
4311 + x86)
4312 + echo i586-pc-interix${UNAME_RELEASE}
4313 + exit ;;
4314 + authenticamd | genuineintel | EM64T)
4315 + echo x86_64-unknown-interix${UNAME_RELEASE}
4316 + exit ;;
4317 + IA64)
4318 + echo ia64-unknown-interix${UNAME_RELEASE}
4319 + exit ;;
4320 + esac ;;
4321 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
4322 + echo i${UNAME_MACHINE}-pc-mks
4323 + exit ;;
4324 + 8664:Windows_NT:*)
4325 + echo x86_64-pc-mks
4326 + exit ;;
4327 + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
4328 + # How do we know it's Interix rather than the generic POSIX subsystem?
4329 + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
4330 + # UNAME_MACHINE based on the output of uname instead of i386?
4331 + echo i586-pc-interix
4332 + exit ;;
4333 + i*:UWIN*:*)
4334 + echo ${UNAME_MACHINE}-pc-uwin
4335 + exit ;;
4336 + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
4337 + echo x86_64-unknown-cygwin
4338 + exit ;;
4339 + p*:CYGWIN*:*)
4340 + echo powerpcle-unknown-cygwin
4341 + exit ;;
4342 + prep*:SunOS:5.*:*)
4343 + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4344 + exit ;;
4345 + *:GNU:*:*)
4346 + # the GNU system
4347 + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
4348 + exit ;;
4349 + *:GNU/*:*:*)
4350 + # other systems with GNU libc and userland
4351 + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
4352 + exit ;;
4353 + i*86:Minix:*:*)
4354 + echo ${UNAME_MACHINE}-pc-minix
4355 + exit ;;
4356 + alpha:Linux:*:*)
4357 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
4358 + EV5) UNAME_MACHINE=alphaev5 ;;
4359 + EV56) UNAME_MACHINE=alphaev56 ;;
4360 + PCA56) UNAME_MACHINE=alphapca56 ;;
4361 + PCA57) UNAME_MACHINE=alphapca56 ;;
4362 + EV6) UNAME_MACHINE=alphaev6 ;;
4363 + EV67) UNAME_MACHINE=alphaev67 ;;
4364 + EV68*) UNAME_MACHINE=alphaev68 ;;
4365 + esac
4366 + objdump --private-headers /bin/sh | grep -q ld.so.1
4367 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
4368 + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
4369 + exit ;;
4370 + arm*:Linux:*:*)
4371 + eval $set_cc_for_build
4372 + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
4373 + | grep -q __ARM_EABI__
4374 + then
4375 + echo ${UNAME_MACHINE}-unknown-linux-gnu
4376 + else
4377 + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
4378 + fi
4379 + exit ;;
4380 + avr32*:Linux:*:*)
4381 + echo ${UNAME_MACHINE}-unknown-linux-gnu
4382 + exit ;;
4383 + cris:Linux:*:*)
4384 + echo cris-axis-linux-gnu
4385 + exit ;;
4386 + crisv32:Linux:*:*)
4387 + echo crisv32-axis-linux-gnu
4388 + exit ;;
4389 + frv:Linux:*:*)
4390 + echo frv-unknown-linux-gnu
4391 + exit ;;
4392 + i*86:Linux:*:*)
4393 + LIBC=gnu
4394 + eval $set_cc_for_build
4395 + sed 's/^ //' << EOF >$dummy.c
4396 + #ifdef __dietlibc__
4397 + LIBC=dietlibc
4398 + #endif
4399 +EOF
4400 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
4401 + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
4402 + exit ;;
4403 + ia64:Linux:*:*)
4404 + echo ${UNAME_MACHINE}-unknown-linux-gnu
4405 + exit ;;
4406 + m32r*:Linux:*:*)
4407 + echo ${UNAME_MACHINE}-unknown-linux-gnu
4408 + exit ;;
4409 + m68*:Linux:*:*)
4410 + echo ${UNAME_MACHINE}-unknown-linux-gnu
4411 + exit ;;
4412 + mips:Linux:*:* | mips64:Linux:*:*)
4413 + eval $set_cc_for_build
4414 + sed 's/^ //' << EOF >$dummy.c
4415 + #undef CPU
4416 + #undef ${UNAME_MACHINE}
4417 + #undef ${UNAME_MACHINE}el
4418 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
4419 + CPU=${UNAME_MACHINE}el
4420 + #else
4421 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
4422 + CPU=${UNAME_MACHINE}
4423 + #else
4424 + CPU=
4425 + #endif
4426 + #endif
4427 +EOF
4428 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
4429 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
4430 + ;;
4431 + or32:Linux:*:*)
4432 + echo or32-unknown-linux-gnu
4433 + exit ;;
4434 + padre:Linux:*:*)
4435 + echo sparc-unknown-linux-gnu
4436 + exit ;;
4437 + parisc64:Linux:*:* | hppa64:Linux:*:*)
4438 + echo hppa64-unknown-linux-gnu
4439 + exit ;;
4440 + parisc:Linux:*:* | hppa:Linux:*:*)
4441 + # Look for CPU level
4442 + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
4443 + PA7*) echo hppa1.1-unknown-linux-gnu ;;
4444 + PA8*) echo hppa2.0-unknown-linux-gnu ;;
4445 + *) echo hppa-unknown-linux-gnu ;;
4446 + esac
4447 + exit ;;
4448 + ppc64:Linux:*:*)
4449 + echo powerpc64-unknown-linux-gnu
4450 + exit ;;
4451 + ppc:Linux:*:*)
4452 + echo powerpc-unknown-linux-gnu
4453 + exit ;;
4454 + s390:Linux:*:* | s390x:Linux:*:*)
4455 + echo ${UNAME_MACHINE}-ibm-linux
4456 + exit ;;
4457 + sh64*:Linux:*:*)
4458 + echo ${UNAME_MACHINE}-unknown-linux-gnu
4459 + exit ;;
4460 + sh*:Linux:*:*)
4461 + echo ${UNAME_MACHINE}-unknown-linux-gnu
4462 + exit ;;
4463 + sparc:Linux:*:* | sparc64:Linux:*:*)
4464 + echo ${UNAME_MACHINE}-unknown-linux-gnu
4465 + exit ;;
4466 + vax:Linux:*:*)
4467 + echo ${UNAME_MACHINE}-dec-linux-gnu
4468 + exit ;;
4469 + x86_64:Linux:*:*)
4470 + echo x86_64-unknown-linux-gnu
4471 + exit ;;
4472 + xtensa*:Linux:*:*)
4473 + echo ${UNAME_MACHINE}-unknown-linux-gnu
4474 + exit ;;
4475 + i*86:DYNIX/ptx:4*:*)
4476 + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
4477 + # earlier versions are messed up and put the nodename in both
4478 + # sysname and nodename.
4479 + echo i386-sequent-sysv4
4480 + exit ;;
4481 + i*86:UNIX_SV:4.2MP:2.*)
4482 + # Unixware is an offshoot of SVR4, but it has its own version
4483 + # number series starting with 2...
4484 + # I am not positive that other SVR4 systems won't match this,
4485 + # I just have to hope. -- rms.
4486 + # Use sysv4.2uw... so that sysv4* matches it.
4487 + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
4488 + exit ;;
4489 + i*86:OS/2:*:*)
4490 + # If we were able to find `uname', then EMX Unix compatibility
4491 + # is probably installed.
4492 + echo ${UNAME_MACHINE}-pc-os2-emx
4493 + exit ;;
4494 + i*86:XTS-300:*:STOP)
4495 + echo ${UNAME_MACHINE}-unknown-stop
4496 + exit ;;
4497 + i*86:atheos:*:*)
4498 + echo ${UNAME_MACHINE}-unknown-atheos
4499 + exit ;;
4500 + i*86:syllable:*:*)
4501 + echo ${UNAME_MACHINE}-pc-syllable
4502 + exit ;;
4503 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
4504 + echo i386-unknown-lynxos${UNAME_RELEASE}
4505 + exit ;;
4506 + i*86:*DOS:*:*)
4507 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
4508 + exit ;;
4509 + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
4510 + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
4511 + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
4512 + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
4513 + else
4514 + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
4515 + fi
4516 + exit ;;
4517 + i*86:*:5:[678]*)
4518 + # UnixWare 7.x, OpenUNIX and OpenServer 6.
4519 + case `/bin/uname -X | grep "^Machine"` in
4520 + *486*) UNAME_MACHINE=i486 ;;
4521 + *Pentium) UNAME_MACHINE=i586 ;;
4522 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
4523 + esac
4524 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
4525 + exit ;;
4526 + i*86:*:3.2:*)
4527 + if test -f /usr/options/cb.name; then
4528 + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
4529 + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
4530 + elif /bin/uname -X 2>/dev/null >/dev/null ; then
4531 + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
4532 + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
4533 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
4534 + && UNAME_MACHINE=i586
4535 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
4536 + && UNAME_MACHINE=i686
4537 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
4538 + && UNAME_MACHINE=i686
4539 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
4540 + else
4541 + echo ${UNAME_MACHINE}-pc-sysv32
4542 + fi
4543 + exit ;;
4544 + pc:*:*:*)
4545 + # Left here for compatibility:
4546 + # uname -m prints for DJGPP always 'pc', but it prints nothing about
4547 + # the processor, so we play safe by assuming i586.
4548 + # Note: whatever this is, it MUST be the same as what config.sub
4549 + # prints for the "djgpp" host, or else GDB configury will decide that
4550 + # this is a cross-build.
4551 + echo i586-pc-msdosdjgpp
4552 + exit ;;
4553 + Intel:Mach:3*:*)
4554 + echo i386-pc-mach3
4555 + exit ;;
4556 + paragon:*:*:*)
4557 + echo i860-intel-osf1
4558 + exit ;;
4559 + i860:*:4.*:*) # i860-SVR4
4560 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
4561 + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
4562 + else # Add other i860-SVR4 vendors below as they are discovered.
4563 + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
4564 + fi
4565 + exit ;;
4566 + mini*:CTIX:SYS*5:*)
4567 + # "miniframe"
4568 + echo m68010-convergent-sysv
4569 + exit ;;
4570 + mc68k:UNIX:SYSTEM5:3.51m)
4571 + echo m68k-convergent-sysv
4572 + exit ;;
4573 + M680?0:D-NIX:5.3:*)
4574 + echo m68k-diab-dnix
4575 + exit ;;
4576 + M68*:*:R3V[5678]*:*)
4577 + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
4578 + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
4579 + OS_REL=''
4580 + test -r /etc/.relid \
4581 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
4582 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
4583 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
4584 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
4585 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
4586 + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
4587 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
4588 + && { echo i486-ncr-sysv4; exit; } ;;
4589 + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
4590 + OS_REL='.3'
4591 + test -r /etc/.relid \
4592 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
4593 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
4594 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
4595 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
4596 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
4597 + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
4598 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
4599 + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
4600 + echo m68k-unknown-lynxos${UNAME_RELEASE}
4601 + exit ;;
4602 + mc68030:UNIX_System_V:4.*:*)
4603 + echo m68k-atari-sysv4
4604 + exit ;;
4605 + TSUNAMI:LynxOS:2.*:*)
4606 + echo sparc-unknown-lynxos${UNAME_RELEASE}
4607 + exit ;;
4608 + rs6000:LynxOS:2.*:*)
4609 + echo rs6000-unknown-lynxos${UNAME_RELEASE}
4610 + exit ;;
4611 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
4612 + echo powerpc-unknown-lynxos${UNAME_RELEASE}
4613 + exit ;;
4614 + SM[BE]S:UNIX_SV:*:*)
4615 + echo mips-dde-sysv${UNAME_RELEASE}
4616 + exit ;;
4617 + RM*:ReliantUNIX-*:*:*)
4618 + echo mips-sni-sysv4
4619 + exit ;;
4620 + RM*:SINIX-*:*:*)
4621 + echo mips-sni-sysv4
4622 + exit ;;
4623 + *:SINIX-*:*:*)
4624 + if uname -p 2>/dev/null >/dev/null ; then
4625 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
4626 + echo ${UNAME_MACHINE}-sni-sysv4
4627 + else
4628 + echo ns32k-sni-sysv
4629 + fi
4630 + exit ;;
4631 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
4632 + # says <[email protected]>
4633 + echo i586-unisys-sysv4
4634 + exit ;;
4635 + *:UNIX_System_V:4*:FTX*)
4636 + # From Gerald Hewes <[email protected]>.
4637 + # How about differentiating between stratus architectures? -djm
4638 + echo hppa1.1-stratus-sysv4
4639 + exit ;;
4640 + *:*:*:FTX*)
4641 + # From [email protected].
4642 + echo i860-stratus-sysv4
4643 + exit ;;
4644 + i*86:VOS:*:*)
4645 + # From [email protected].
4646 + echo ${UNAME_MACHINE}-stratus-vos
4647 + exit ;;
4648 + *:VOS:*:*)
4649 + # From [email protected].
4650 + echo hppa1.1-stratus-vos
4651 + exit ;;
4652 + mc68*:A/UX:*:*)
4653 + echo m68k-apple-aux${UNAME_RELEASE}
4654 + exit ;;
4655 + news*:NEWS-OS:6*:*)
4656 + echo mips-sony-newsos6
4657 + exit ;;
4658 + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
4659 + if [ -d /usr/nec ]; then
4660 + echo mips-nec-sysv${UNAME_RELEASE}
4661 + else
4662 + echo mips-unknown-sysv${UNAME_RELEASE}
4663 + fi
4664 + exit ;;
4665 + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
4666 + echo powerpc-be-beos
4667 + exit ;;
4668 + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
4669 + echo powerpc-apple-beos
4670 + exit ;;
4671 + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
4672 + echo i586-pc-beos
4673 + exit ;;
4674 + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
4675 + echo i586-pc-haiku
4676 + exit ;;
4677 + SX-4:SUPER-UX:*:*)
4678 + echo sx4-nec-superux${UNAME_RELEASE}
4679 + exit ;;
4680 + SX-5:SUPER-UX:*:*)
4681 + echo sx5-nec-superux${UNAME_RELEASE}
4682 + exit ;;
4683 + SX-6:SUPER-UX:*:*)
4684 + echo sx6-nec-superux${UNAME_RELEASE}
4685 + exit ;;
4686 + SX-7:SUPER-UX:*:*)
4687 + echo sx7-nec-superux${UNAME_RELEASE}
4688 + exit ;;
4689 + SX-8:SUPER-UX:*:*)
4690 + echo sx8-nec-superux${UNAME_RELEASE}
4691 + exit ;;
4692 + SX-8R:SUPER-UX:*:*)
4693 + echo sx8r-nec-superux${UNAME_RELEASE}
4694 + exit ;;
4695 + Power*:Rhapsody:*:*)
4696 + echo powerpc-apple-rhapsody${UNAME_RELEASE}
4697 + exit ;;
4698 + *:Rhapsody:*:*)
4699 + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
4700 + exit ;;
4701 + *:Darwin:*:*)
4702 + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
4703 + case $UNAME_PROCESSOR in
4704 + i386)
4705 + eval $set_cc_for_build
4706 + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
4707 + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
4708 + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
4709 + grep IS_64BIT_ARCH >/dev/null
4710 + then
4711 + UNAME_PROCESSOR="x86_64"
4712 + fi
4713 + fi ;;
4714 + unknown) UNAME_PROCESSOR=powerpc ;;
4715 + esac
4716 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
4717 + exit ;;
4718 + *:procnto*:*:* | *:QNX:[0123456789]*:*)
4719 + UNAME_PROCESSOR=`uname -p`
4720 + if test "$UNAME_PROCESSOR" = "x86"; then
4721 + UNAME_PROCESSOR=i386
4722 + UNAME_MACHINE=pc
4723 + fi
4724 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
4725 + exit ;;
4726 + *:QNX:*:4*)
4727 + echo i386-pc-qnx
4728 + exit ;;
4729 + NSE-?:NONSTOP_KERNEL:*:*)
4730 + echo nse-tandem-nsk${UNAME_RELEASE}
4731 + exit ;;
4732 + NSR-?:NONSTOP_KERNEL:*:*)
4733 + echo nsr-tandem-nsk${UNAME_RELEASE}
4734 + exit ;;
4735 + *:NonStop-UX:*:*)
4736 + echo mips-compaq-nonstopux
4737 + exit ;;
4738 + BS2000:POSIX*:*:*)
4739 + echo bs2000-siemens-sysv
4740 + exit ;;
4741 + DS/*:UNIX_System_V:*:*)
4742 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
4743 + exit ;;
4744 + *:Plan9:*:*)
4745 + # "uname -m" is not consistent, so use $cputype instead. 386
4746 + # is converted to i386 for consistency with other x86
4747 + # operating systems.
4748 + if test "$cputype" = "386"; then
4749 + UNAME_MACHINE=i386
4750 + else
4751 + UNAME_MACHINE="$cputype"
4752 + fi
4753 + echo ${UNAME_MACHINE}-unknown-plan9
4754 + exit ;;
4755 + *:TOPS-10:*:*)
4756 + echo pdp10-unknown-tops10
4757 + exit ;;
4758 + *:TENEX:*:*)
4759 + echo pdp10-unknown-tenex
4760 + exit ;;
4761 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
4762 + echo pdp10-dec-tops20
4763 + exit ;;
4764 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
4765 + echo pdp10-xkl-tops20
4766 + exit ;;
4767 + *:TOPS-20:*:*)
4768 + echo pdp10-unknown-tops20
4769 + exit ;;
4770 + *:ITS:*:*)
4771 + echo pdp10-unknown-its
4772 + exit ;;
4773 + SEI:*:*:SEIUX)
4774 + echo mips-sei-seiux${UNAME_RELEASE}
4775 + exit ;;
4776 + *:DragonFly:*:*)
4777 + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
4778 + exit ;;
4779 + *:*VMS:*:*)
4780 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
4781 + case "${UNAME_MACHINE}" in
4782 + A*) echo alpha-dec-vms ; exit ;;
4783 + I*) echo ia64-dec-vms ; exit ;;
4784 + V*) echo vax-dec-vms ; exit ;;
4785 + esac ;;
4786 + *:XENIX:*:SysV)
4787 + echo i386-pc-xenix
4788 + exit ;;
4789 + i*86:skyos:*:*)
4790 + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
4791 + exit ;;
4792 + i*86:rdos:*:*)
4793 + echo ${UNAME_MACHINE}-pc-rdos
4794 + exit ;;
4795 + i*86:AROS:*:*)
4796 + echo ${UNAME_MACHINE}-pc-aros
4797 + exit ;;
4798 +esac
4799 +
4800 +#echo '(No uname command or uname output not recognized.)' 1>&2
4801 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
4802 +
4803 +eval $set_cc_for_build
4804 +cat >$dummy.c <<EOF
4805 +#ifdef _SEQUENT_
4806 +# include <sys/types.h>
4807 +# include <sys/utsname.h>
4808 +#endif
4809 +main ()
4810 +{
4811 +#if defined (sony)
4812 +#if defined (MIPSEB)
4813 + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
4814 + I don't know.... */
4815 + printf ("mips-sony-bsd\n"); exit (0);
4816 +#else
4817 +#include <sys/param.h>
4818 + printf ("m68k-sony-newsos%s\n",
4819 +#ifdef NEWSOS4
4820 + "4"
4821 +#else
4822 + ""
4823 +#endif
4824 + ); exit (0);
4825 +#endif
4826 +#endif
4827 +
4828 +#if defined (__arm) && defined (__acorn) && defined (__unix)
4829 + printf ("arm-acorn-riscix\n"); exit (0);
4830 +#endif
4831 +
4832 +#if defined (hp300) && !defined (hpux)
4833 + printf ("m68k-hp-bsd\n"); exit (0);
4834 +#endif
4835 +
4836 +#if defined (NeXT)
4837 +#if !defined (__ARCHITECTURE__)
4838 +#define __ARCHITECTURE__ "m68k"
4839 +#endif
4840 + int version;
4841 + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
4842 + if (version < 4)
4843 + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
4844 + else
4845 + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
4846 + exit (0);
4847 +#endif
4848 +
4849 +#if defined (MULTIMAX) || defined (n16)
4850 +#if defined (UMAXV)
4851 + printf ("ns32k-encore-sysv\n"); exit (0);
4852 +#else
4853 +#if defined (CMU)
4854 + printf ("ns32k-encore-mach\n"); exit (0);
4855 +#else
4856 + printf ("ns32k-encore-bsd\n"); exit (0);
4857 +#endif
4858 +#endif
4859 +#endif
4860 +
4861 +#if defined (__386BSD__)
4862 + printf ("i386-pc-bsd\n"); exit (0);
4863 +#endif
4864 +
4865 +#if defined (sequent)
4866 +#if defined (i386)
4867 + printf ("i386-sequent-dynix\n"); exit (0);
4868 +#endif
4869 +#if defined (ns32000)
4870 + printf ("ns32k-sequent-dynix\n"); exit (0);
4871 +#endif
4872 +#endif
4873 +
4874 +#if defined (_SEQUENT_)
4875 + struct utsname un;
4876 +
4877 + uname(&un);
4878 +
4879 + if (strncmp(un.version, "V2", 2) == 0) {
4880 + printf ("i386-sequent-ptx2\n"); exit (0);
4881 + }
4882 + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
4883 + printf ("i386-sequent-ptx1\n"); exit (0);
4884 + }
4885 + printf ("i386-sequent-ptx\n"); exit (0);
4886 +
4887 +#endif
4888 +
4889 +#if defined (vax)
4890 +# if !defined (ultrix)
4891 +# include <sys/param.h>
4892 +# if defined (BSD)
4893 +# if BSD == 43
4894 + printf ("vax-dec-bsd4.3\n"); exit (0);
4895 +# else
4896 +# if BSD == 199006
4897 + printf ("vax-dec-bsd4.3reno\n"); exit (0);
4898 +# else
4899 + printf ("vax-dec-bsd\n"); exit (0);
4900 +# endif
4901 +# endif
4902 +# else
4903 + printf ("vax-dec-bsd\n"); exit (0);
4904 +# endif
4905 +# else
4906 + printf ("vax-dec-ultrix\n"); exit (0);
4907 +# endif
4908 +#endif
4909 +
4910 +#if defined (alliant) && defined (i860)
4911 + printf ("i860-alliant-bsd\n"); exit (0);
4912 +#endif
4913 +
4914 + exit (1);
4915 +}
4916 +EOF
4917 +
4918 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
4919 + { echo "$SYSTEM_NAME"; exit; }
4920 +
4921 +# Apollos put the system type in the environment.
4922 +
4923 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
4924 +
4925 +# Convex versions that predate uname can use getsysinfo(1)
4926 +
4927 +if [ -x /usr/convex/getsysinfo ]
4928 +then
4929 + case `getsysinfo -f cpu_type` in
4930 + c1*)
4931 + echo c1-convex-bsd
4932 + exit ;;
4933 + c2*)
4934 + if getsysinfo -f scalar_acc
4935 + then echo c32-convex-bsd
4936 + else echo c2-convex-bsd
4937 + fi
4938 + exit ;;
4939 + c34*)
4940 + echo c34-convex-bsd
4941 + exit ;;
4942 + c38*)
4943 + echo c38-convex-bsd
4944 + exit ;;
4945 + c4*)
4946 + echo c4-convex-bsd
4947 + exit ;;
4948 + esac
4949 +fi
4950 +
4951 +cat >&2 <<EOF
4952 +$0: unable to guess system type
4953 +
4954 +This script, last modified $timestamp, has failed to recognize
4955 +the operating system you are using. It is advised that you
4956 +download the most up to date version of the config scripts from
4957 +
4958 + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
4959 +and
4960 + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
4961 +
4962 +If the version you run ($0) is already up to date, please
4963 +send the following data and any information you think might be
4964 +pertinent to <[email protected]> in order to provide the needed
4965 +information to handle your system.
4966 +
4967 +config.guess timestamp = $timestamp
4968 +
4969 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
4970 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
4971 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
4972 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
4973 +
4974 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
4975 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
4976 +
4977 +hostinfo = `(hostinfo) 2>/dev/null`
4978 +/bin/universe = `(/bin/universe) 2>/dev/null`
4979 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
4980 +/bin/arch = `(/bin/arch) 2>/dev/null`
4981 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
4982 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
4983 +
4984 +UNAME_MACHINE = ${UNAME_MACHINE}
4985 +UNAME_RELEASE = ${UNAME_RELEASE}
4986 +UNAME_SYSTEM = ${UNAME_SYSTEM}
4987 +UNAME_VERSION = ${UNAME_VERSION}
4988 +EOF
4989 +
4990 +exit 1
4991 +
4992 +# Local variables:
4993 +# eval: (add-hook 'write-file-hooks 'time-stamp)
4994 +# time-stamp-start: "timestamp='"
4995 +# time-stamp-format: "%:y-%02m-%02d"
4996 +# time-stamp-end: "'"
4997 +# End:
4998 diff --git a/libltdl/config/config.sub b/libltdl/config/config.sub
4999 new file mode 100755
5000 index 0000000..2a55a50
5001 --- /dev/null
5002 +++ b/libltdl/config/config.sub
5003 @@ -0,0 +1,1705 @@
5004 +#! /bin/sh
5005 +# Configuration validation subroutine script.
5006 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
5007 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
5008 +# Free Software Foundation, Inc.
5009 +
5010 +timestamp='2009-11-20'
5011 +
5012 +# This file is (in principle) common to ALL GNU software.
5013 +# The presence of a machine in this file suggests that SOME GNU software
5014 +# can handle that machine. It does not imply ALL GNU software can.
5015 +#
5016 +# This file is free software; you can redistribute it and/or modify
5017 +# it under the terms of the GNU General Public License as published by
5018 +# the Free Software Foundation; either version 2 of the License, or
5019 +# (at your option) any later version.
5020 +#
5021 +# This program is distributed in the hope that it will be useful,
5022 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
5023 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5024 +# GNU General Public License for more details.
5025 +#
5026 +# You should have received a copy of the GNU General Public License
5027 +# along with this program; if not, write to the Free Software
5028 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
5029 +# 02110-1301, USA.
5030 +#
5031 +# As a special exception to the GNU General Public License, if you
5032 +# distribute this file as part of a program that contains a
5033 +# configuration script generated by Autoconf, you may include it under
5034 +# the same distribution terms that you use for the rest of that program.
5035 +
5036 +
5037 +# Please send patches to <[email protected]>. Submit a context
5038 +# diff and a properly formatted GNU ChangeLog entry.
5039 +#
5040 +# Configuration subroutine to validate and canonicalize a configuration type.
5041 +# Supply the specified configuration type as an argument.
5042 +# If it is invalid, we print an error message on stderr and exit with code 1.
5043 +# Otherwise, we print the canonical config type on stdout and succeed.
5044 +
5045 +# You can get the latest version of this script from:
5046 +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
5047 +
5048 +# This file is supposed to be the same for all GNU packages
5049 +# and recognize all the CPU types, system types and aliases
5050 +# that are meaningful with *any* GNU software.
5051 +# Each package is responsible for reporting which valid configurations
5052 +# it does not support. The user should be able to distinguish
5053 +# a failure to support a valid configuration from a meaningless
5054 +# configuration.
5055 +
5056 +# The goal of this file is to map all the various variations of a given
5057 +# machine specification into a single specification in the form:
5058 +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
5059 +# or in some cases, the newer four-part form:
5060 +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
5061 +# It is wrong to echo any other type of specification.
5062 +
5063 +me=`echo "$0" | sed -e 's,.*/,,'`
5064 +
5065 +usage="\
5066 +Usage: $0 [OPTION] CPU-MFR-OPSYS
5067 + $0 [OPTION] ALIAS
5068 +
5069 +Canonicalize a configuration name.
5070 +
5071 +Operation modes:
5072 + -h, --help print this help, then exit
5073 + -t, --time-stamp print date of last modification, then exit
5074 + -v, --version print version number, then exit
5075 +
5076 +Report bugs and patches to <[email protected]>."
5077 +
5078 +version="\
5079 +GNU config.sub ($timestamp)
5080 +
5081 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
5082 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5083 +
5084 +This is free software; see the source for copying conditions. There is NO
5085 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
5086 +
5087 +help="
5088 +Try \`$me --help' for more information."
5089 +
5090 +# Parse command line
5091 +while test $# -gt 0 ; do
5092 + case $1 in
5093 + --time-stamp | --time* | -t )
5094 + echo "$timestamp" ; exit ;;
5095 + --version | -v )
5096 + echo "$version" ; exit ;;
5097 + --help | --h* | -h )
5098 + echo "$usage"; exit ;;
5099 + -- ) # Stop option processing
5100 + shift; break ;;
5101 + - ) # Use stdin as input.
5102 + break ;;
5103 + -* )
5104 + echo "$me: invalid option $1$help"
5105 + exit 1 ;;
5106 +
5107 + *local*)
5108 + # First pass through any local machine types.
5109 + echo $1
5110 + exit ;;
5111 +
5112 + * )
5113 + break ;;
5114 + esac
5115 +done
5116 +
5117 +case $# in
5118 + 0) echo "$me: missing argument$help" >&2
5119 + exit 1;;
5120 + 1) ;;
5121 + *) echo "$me: too many arguments$help" >&2
5122 + exit 1;;
5123 +esac
5124 +
5125 +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
5126 +# Here we must recognize all the valid KERNEL-OS combinations.
5127 +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
5128 +case $maybe_os in
5129 + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
5130 + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
5131 + kopensolaris*-gnu* | \
5132 + storm-chaos* | os2-emx* | rtmk-nova*)
5133 + os=-$maybe_os
5134 + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
5135 + ;;
5136 + *)
5137 + basic_machine=`echo $1 | sed 's/-[^-]*$//'`
5138 + if [ $basic_machine != $1 ]
5139 + then os=`echo $1 | sed 's/.*-/-/'`
5140 + else os=; fi
5141 + ;;
5142 +esac
5143 +
5144 +### Let's recognize common machines as not being operating systems so
5145 +### that things like config.sub decstation-3100 work. We also
5146 +### recognize some manufacturers as not being operating systems, so we
5147 +### can provide default operating systems below.
5148 +case $os in
5149 + -sun*os*)
5150 + # Prevent following clause from handling this invalid input.
5151 + ;;
5152 + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
5153 + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
5154 + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
5155 + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
5156 + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
5157 + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
5158 + -apple | -axis | -knuth | -cray | -microblaze)
5159 + os=
5160 + basic_machine=$1
5161 + ;;
5162 + -bluegene*)
5163 + os=-cnk
5164 + ;;
5165 + -sim | -cisco | -oki | -wec | -winbond)
5166 + os=
5167 + basic_machine=$1
5168 + ;;
5169 + -scout)
5170 + ;;
5171 + -wrs)
5172 + os=-vxworks
5173 + basic_machine=$1
5174 + ;;
5175 + -chorusos*)
5176 + os=-chorusos
5177 + basic_machine=$1
5178 + ;;
5179 + -chorusrdb)
5180 + os=-chorusrdb
5181 + basic_machine=$1
5182 + ;;
5183 + -hiux*)
5184 + os=-hiuxwe2
5185 + ;;
5186 + -sco6)
5187 + os=-sco5v6
5188 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5189 + ;;
5190 + -sco5)
5191 + os=-sco3.2v5
5192 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5193 + ;;
5194 + -sco4)
5195 + os=-sco3.2v4
5196 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5197 + ;;
5198 + -sco3.2.[4-9]*)
5199 + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
5200 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5201 + ;;
5202 + -sco3.2v[4-9]*)
5203 + # Don't forget version if it is 3.2v4 or newer.
5204 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5205 + ;;
5206 + -sco5v6*)
5207 + # Don't forget version if it is 3.2v4 or newer.
5208 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5209 + ;;
5210 + -sco*)
5211 + os=-sco3.2v2
5212 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5213 + ;;
5214 + -udk*)
5215 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5216 + ;;
5217 + -isc)
5218 + os=-isc2.2
5219 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5220 + ;;
5221 + -clix*)
5222 + basic_machine=clipper-intergraph
5223 + ;;
5224 + -isc*)
5225 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5226 + ;;
5227 + -lynx*)
5228 + os=-lynxos
5229 + ;;
5230 + -ptx*)
5231 + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
5232 + ;;
5233 + -windowsnt*)
5234 + os=`echo $os | sed -e 's/windowsnt/winnt/'`
5235 + ;;
5236 + -psos*)
5237 + os=-psos
5238 + ;;
5239 + -mint | -mint[0-9]*)
5240 + basic_machine=m68k-atari
5241 + os=-mint
5242 + ;;
5243 +esac
5244 +
5245 +# Decode aliases for certain CPU-COMPANY combinations.
5246 +case $basic_machine in
5247 + # Recognize the basic CPU types without company name.
5248 + # Some are omitted here because they have special meanings below.
5249 + 1750a | 580 \
5250 + | a29k \
5251 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
5252 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
5253 + | am33_2.0 \
5254 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
5255 + | bfin \
5256 + | c4x | clipper \
5257 + | d10v | d30v | dlx | dsp16xx \
5258 + | fido | fr30 | frv \
5259 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
5260 + | i370 | i860 | i960 | ia64 \
5261 + | ip2k | iq2000 \
5262 + | lm32 \
5263 + | m32c | m32r | m32rle | m68000 | m68k | m88k \
5264 + | maxq | mb | microblaze | mcore | mep | metag \
5265 + | mips | mipsbe | mipseb | mipsel | mipsle \
5266 + | mips16 \
5267 + | mips64 | mips64el \
5268 + | mips64octeon | mips64octeonel \
5269 + | mips64orion | mips64orionel \
5270 + | mips64r5900 | mips64r5900el \
5271 + | mips64vr | mips64vrel \
5272 + | mips64vr4100 | mips64vr4100el \
5273 + | mips64vr4300 | mips64vr4300el \
5274 + | mips64vr5000 | mips64vr5000el \
5275 + | mips64vr5900 | mips64vr5900el \
5276 + | mipsisa32 | mipsisa32el \
5277 + | mipsisa32r2 | mipsisa32r2el \
5278 + | mipsisa64 | mipsisa64el \
5279 + | mipsisa64r2 | mipsisa64r2el \
5280 + | mipsisa64sb1 | mipsisa64sb1el \
5281 + | mipsisa64sr71k | mipsisa64sr71kel \
5282 + | mipstx39 | mipstx39el \
5283 + | mn10200 | mn10300 \
5284 + | moxie \
5285 + | mt \
5286 + | msp430 \
5287 + | nios | nios2 \
5288 + | ns16k | ns32k \
5289 + | or32 \
5290 + | pdp10 | pdp11 | pj | pjl \
5291 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
5292 + | pyramid \
5293 + | rx \
5294 + | score \
5295 + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
5296 + | sh64 | sh64le \
5297 + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
5298 + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
5299 + | spu | strongarm \
5300 + | tahoe | thumb | tic4x | tic80 | tron \
5301 + | ubicom32 \
5302 + | v850 | v850e \
5303 + | we32k \
5304 + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
5305 + | z8k | z80)
5306 + basic_machine=$basic_machine-unknown
5307 + ;;
5308 + m6811 | m68hc11 | m6812 | m68hc12 | picochip)
5309 + # Motorola 68HC11/12.
5310 + basic_machine=$basic_machine-unknown
5311 + os=-none
5312 + ;;
5313 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
5314 + ;;
5315 + ms1)
5316 + basic_machine=mt-unknown
5317 + ;;
5318 +
5319 + # We use `pc' rather than `unknown'
5320 + # because (1) that's what they normally are, and
5321 + # (2) the word "unknown" tends to confuse beginning users.
5322 + i*86 | x86_64)
5323 + basic_machine=$basic_machine-pc
5324 + ;;
5325 + # Object if more than one company name word.
5326 + *-*-*)
5327 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
5328 + exit 1
5329 + ;;
5330 + # Recognize the basic CPU types with company name.
5331 + 580-* \
5332 + | a29k-* \
5333 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
5334 + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
5335 + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
5336 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
5337 + | avr-* | avr32-* \
5338 + | bfin-* | bs2000-* \
5339 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
5340 + | clipper-* | craynv-* | cydra-* \
5341 + | d10v-* | d30v-* | dlx-* \
5342 + | elxsi-* \
5343 + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
5344 + | h8300-* | h8500-* \
5345 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
5346 + | i*86-* | i860-* | i960-* | ia64-* \
5347 + | ip2k-* | iq2000-* \
5348 + | lm32-* \
5349 + | m32c-* | m32r-* | m32rle-* \
5350 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
5351 + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
5352 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
5353 + | mips16-* \
5354 + | mips64-* | mips64el-* \
5355 + | mips64octeon-* | mips64octeonel-* \
5356 + | mips64orion-* | mips64orionel-* \
5357 + | mips64r5900-* | mips64r5900el-* \
5358 + | mips64vr-* | mips64vrel-* \
5359 + | mips64vr4100-* | mips64vr4100el-* \
5360 + | mips64vr4300-* | mips64vr4300el-* \
5361 + | mips64vr5000-* | mips64vr5000el-* \
5362 + | mips64vr5900-* | mips64vr5900el-* \
5363 + | mipsisa32-* | mipsisa32el-* \
5364 + | mipsisa32r2-* | mipsisa32r2el-* \
5365 + | mipsisa64-* | mipsisa64el-* \
5366 + | mipsisa64r2-* | mipsisa64r2el-* \
5367 + | mipsisa64sb1-* | mipsisa64sb1el-* \
5368 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
5369 + | mipstx39-* | mipstx39el-* \
5370 + | mmix-* \
5371 + | mt-* \
5372 + | msp430-* \
5373 + | nios-* | nios2-* \
5374 + | none-* | np1-* | ns16k-* | ns32k-* \
5375 + | orion-* \
5376 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
5377 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
5378 + | pyramid-* \
5379 + | romp-* | rs6000-* | rx-* \
5380 + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
5381 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
5382 + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
5383 + | sparclite-* \
5384 + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
5385 + | tahoe-* | thumb-* \
5386 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
5387 + | tron-* \
5388 + | ubicom32-* \
5389 + | v850-* | v850e-* | vax-* \
5390 + | we32k-* \
5391 + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
5392 + | xstormy16-* | xtensa*-* \
5393 + | ymp-* \
5394 + | z8k-* | z80-*)
5395 + ;;
5396 + # Recognize the basic CPU types without company name, with glob match.
5397 + xtensa*)
5398 + basic_machine=$basic_machine-unknown
5399 + ;;
5400 + # Recognize the various machine names and aliases which stand
5401 + # for a CPU type and a company and sometimes even an OS.
5402 + 386bsd)
5403 + basic_machine=i386-unknown
5404 + os=-bsd
5405 + ;;
5406 + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
5407 + basic_machine=m68000-att
5408 + ;;
5409 + 3b*)
5410 + basic_machine=we32k-att
5411 + ;;
5412 + a29khif)
5413 + basic_machine=a29k-amd
5414 + os=-udi
5415 + ;;
5416 + abacus)
5417 + basic_machine=abacus-unknown
5418 + ;;
5419 + adobe68k)
5420 + basic_machine=m68010-adobe
5421 + os=-scout
5422 + ;;
5423 + alliant | fx80)
5424 + basic_machine=fx80-alliant
5425 + ;;
5426 + altos | altos3068)
5427 + basic_machine=m68k-altos
5428 + ;;
5429 + am29k)
5430 + basic_machine=a29k-none
5431 + os=-bsd
5432 + ;;
5433 + amd64)
5434 + basic_machine=x86_64-pc
5435 + ;;
5436 + amd64-*)
5437 + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
5438 + ;;
5439 + amdahl)
5440 + basic_machine=580-amdahl
5441 + os=-sysv
5442 + ;;
5443 + amiga | amiga-*)
5444 + basic_machine=m68k-unknown
5445 + ;;
5446 + amigaos | amigados)
5447 + basic_machine=m68k-unknown
5448 + os=-amigaos
5449 + ;;
5450 + amigaunix | amix)
5451 + basic_machine=m68k-unknown
5452 + os=-sysv4
5453 + ;;
5454 + apollo68)
5455 + basic_machine=m68k-apollo
5456 + os=-sysv
5457 + ;;
5458 + apollo68bsd)
5459 + basic_machine=m68k-apollo
5460 + os=-bsd
5461 + ;;
5462 + aros)
5463 + basic_machine=i386-pc
5464 + os=-aros
5465 + ;;
5466 + aux)
5467 + basic_machine=m68k-apple
5468 + os=-aux
5469 + ;;
5470 + balance)
5471 + basic_machine=ns32k-sequent
5472 + os=-dynix
5473 + ;;
5474 + blackfin)
5475 + basic_machine=bfin-unknown
5476 + os=-linux
5477 + ;;
5478 + blackfin-*)
5479 + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
5480 + os=-linux
5481 + ;;
5482 + bluegene*)
5483 + basic_machine=powerpc-ibm
5484 + os=-cnk
5485 + ;;
5486 + c90)
5487 + basic_machine=c90-cray
5488 + os=-unicos
5489 + ;;
5490 + cegcc)
5491 + basic_machine=arm-unknown
5492 + os=-cegcc
5493 + ;;
5494 + convex-c1)
5495 + basic_machine=c1-convex
5496 + os=-bsd
5497 + ;;
5498 + convex-c2)
5499 + basic_machine=c2-convex
5500 + os=-bsd
5501 + ;;
5502 + convex-c32)
5503 + basic_machine=c32-convex
5504 + os=-bsd
5505 + ;;
5506 + convex-c34)
5507 + basic_machine=c34-convex
5508 + os=-bsd
5509 + ;;
5510 + convex-c38)
5511 + basic_machine=c38-convex
5512 + os=-bsd
5513 + ;;
5514 + cray | j90)
5515 + basic_machine=j90-cray
5516 + os=-unicos
5517 + ;;
5518 + craynv)
5519 + basic_machine=craynv-cray
5520 + os=-unicosmp
5521 + ;;
5522 + cr16)
5523 + basic_machine=cr16-unknown
5524 + os=-elf
5525 + ;;
5526 + crds | unos)
5527 + basic_machine=m68k-crds
5528 + ;;
5529 + crisv32 | crisv32-* | etraxfs*)
5530 + basic_machine=crisv32-axis
5531 + ;;
5532 + cris | cris-* | etrax*)
5533 + basic_machine=cris-axis
5534 + ;;
5535 + crx)
5536 + basic_machine=crx-unknown
5537 + os=-elf
5538 + ;;
5539 + da30 | da30-*)
5540 + basic_machine=m68k-da30
5541 + ;;
5542 + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
5543 + basic_machine=mips-dec
5544 + ;;
5545 + decsystem10* | dec10*)
5546 + basic_machine=pdp10-dec
5547 + os=-tops10
5548 + ;;
5549 + decsystem20* | dec20*)
5550 + basic_machine=pdp10-dec
5551 + os=-tops20
5552 + ;;
5553 + delta | 3300 | motorola-3300 | motorola-delta \
5554 + | 3300-motorola | delta-motorola)
5555 + basic_machine=m68k-motorola
5556 + ;;
5557 + delta88)
5558 + basic_machine=m88k-motorola
5559 + os=-sysv3
5560 + ;;
5561 + dicos)
5562 + basic_machine=i686-pc
5563 + os=-dicos
5564 + ;;
5565 + djgpp)
5566 + basic_machine=i586-pc
5567 + os=-msdosdjgpp
5568 + ;;
5569 + dpx20 | dpx20-*)
5570 + basic_machine=rs6000-bull
5571 + os=-bosx
5572 + ;;
5573 + dpx2* | dpx2*-bull)
5574 + basic_machine=m68k-bull
5575 + os=-sysv3
5576 + ;;
5577 + ebmon29k)
5578 + basic_machine=a29k-amd
5579 + os=-ebmon
5580 + ;;
5581 + elxsi)
5582 + basic_machine=elxsi-elxsi
5583 + os=-bsd
5584 + ;;
5585 + encore | umax | mmax)
5586 + basic_machine=ns32k-encore
5587 + ;;
5588 + es1800 | OSE68k | ose68k | ose | OSE)
5589 + basic_machine=m68k-ericsson
5590 + os=-ose
5591 + ;;
5592 + fx2800)
5593 + basic_machine=i860-alliant
5594 + ;;
5595 + genix)
5596 + basic_machine=ns32k-ns
5597 + ;;
5598 + gmicro)
5599 + basic_machine=tron-gmicro
5600 + os=-sysv
5601 + ;;
5602 + go32)
5603 + basic_machine=i386-pc
5604 + os=-go32
5605 + ;;
5606 + h3050r* | hiux*)
5607 + basic_machine=hppa1.1-hitachi
5608 + os=-hiuxwe2
5609 + ;;
5610 + h8300hms)
5611 + basic_machine=h8300-hitachi
5612 + os=-hms
5613 + ;;
5614 + h8300xray)
5615 + basic_machine=h8300-hitachi
5616 + os=-xray
5617 + ;;
5618 + h8500hms)
5619 + basic_machine=h8500-hitachi
5620 + os=-hms
5621 + ;;
5622 + harris)
5623 + basic_machine=m88k-harris
5624 + os=-sysv3
5625 + ;;
5626 + hp300-*)
5627 + basic_machine=m68k-hp
5628 + ;;
5629 + hp300bsd)
5630 + basic_machine=m68k-hp
5631 + os=-bsd
5632 + ;;
5633 + hp300hpux)
5634 + basic_machine=m68k-hp
5635 + os=-hpux
5636 + ;;
5637 + hp3k9[0-9][0-9] | hp9[0-9][0-9])
5638 + basic_machine=hppa1.0-hp
5639 + ;;
5640 + hp9k2[0-9][0-9] | hp9k31[0-9])
5641 + basic_machine=m68000-hp
5642 + ;;
5643 + hp9k3[2-9][0-9])
5644 + basic_machine=m68k-hp
5645 + ;;
5646 + hp9k6[0-9][0-9] | hp6[0-9][0-9])
5647 + basic_machine=hppa1.0-hp
5648 + ;;
5649 + hp9k7[0-79][0-9] | hp7[0-79][0-9])
5650 + basic_machine=hppa1.1-hp
5651 + ;;
5652 + hp9k78[0-9] | hp78[0-9])
5653 + # FIXME: really hppa2.0-hp
5654 + basic_machine=hppa1.1-hp
5655 + ;;
5656 + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
5657 + # FIXME: really hppa2.0-hp
5658 + basic_machine=hppa1.1-hp
5659 + ;;
5660 + hp9k8[0-9][13679] | hp8[0-9][13679])
5661 + basic_machine=hppa1.1-hp
5662 + ;;
5663 + hp9k8[0-9][0-9] | hp8[0-9][0-9])
5664 + basic_machine=hppa1.0-hp
5665 + ;;
5666 + hppa-next)
5667 + os=-nextstep3
5668 + ;;
5669 + hppaosf)
5670 + basic_machine=hppa1.1-hp
5671 + os=-osf
5672 + ;;
5673 + hppro)
5674 + basic_machine=hppa1.1-hp
5675 + os=-proelf
5676 + ;;
5677 + i370-ibm* | ibm*)
5678 + basic_machine=i370-ibm
5679 + ;;
5680 +# I'm not sure what "Sysv32" means. Should this be sysv3.2?
5681 + i*86v32)
5682 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
5683 + os=-sysv32
5684 + ;;
5685 + i*86v4*)
5686 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
5687 + os=-sysv4
5688 + ;;
5689 + i*86v)
5690 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
5691 + os=-sysv
5692 + ;;
5693 + i*86sol2)
5694 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
5695 + os=-solaris2
5696 + ;;
5697 + i386mach)
5698 + basic_machine=i386-mach
5699 + os=-mach
5700 + ;;
5701 + i386-vsta | vsta)
5702 + basic_machine=i386-unknown
5703 + os=-vsta
5704 + ;;
5705 + iris | iris4d)
5706 + basic_machine=mips-sgi
5707 + case $os in
5708 + -irix*)
5709 + ;;
5710 + *)
5711 + os=-irix4
5712 + ;;
5713 + esac
5714 + ;;
5715 + isi68 | isi)
5716 + basic_machine=m68k-isi
5717 + os=-sysv
5718 + ;;
5719 + m68knommu)
5720 + basic_machine=m68k-unknown
5721 + os=-linux
5722 + ;;
5723 + m68knommu-*)
5724 + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
5725 + os=-linux
5726 + ;;
5727 + m88k-omron*)
5728 + basic_machine=m88k-omron
5729 + ;;
5730 + magnum | m3230)
5731 + basic_machine=mips-mips
5732 + os=-sysv
5733 + ;;
5734 + merlin)
5735 + basic_machine=ns32k-utek
5736 + os=-sysv
5737 + ;;
5738 + microblaze)
5739 + basic_machine=microblaze-xilinx
5740 + ;;
5741 + mingw32)
5742 + basic_machine=i386-pc
5743 + os=-mingw32
5744 + ;;
5745 + mingw32ce)
5746 + basic_machine=arm-unknown
5747 + os=-mingw32ce
5748 + ;;
5749 + miniframe)
5750 + basic_machine=m68000-convergent
5751 + ;;
5752 + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
5753 + basic_machine=m68k-atari
5754 + os=-mint
5755 + ;;
5756 + mips3*-*)
5757 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
5758 + ;;
5759 + mips3*)
5760 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
5761 + ;;
5762 + monitor)
5763 + basic_machine=m68k-rom68k
5764 + os=-coff
5765 + ;;
5766 + morphos)
5767 + basic_machine=powerpc-unknown
5768 + os=-morphos
5769 + ;;
5770 + msdos)
5771 + basic_machine=i386-pc
5772 + os=-msdos
5773 + ;;
5774 + ms1-*)
5775 + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
5776 + ;;
5777 + mvs)
5778 + basic_machine=i370-ibm
5779 + os=-mvs
5780 + ;;
5781 + ncr3000)
5782 + basic_machine=i486-ncr
5783 + os=-sysv4
5784 + ;;
5785 + netbsd386)
5786 + basic_machine=i386-unknown
5787 + os=-netbsd
5788 + ;;
5789 + netwinder)
5790 + basic_machine=armv4l-rebel
5791 + os=-linux
5792 + ;;
5793 + news | news700 | news800 | news900)
5794 + basic_machine=m68k-sony
5795 + os=-newsos
5796 + ;;
5797 + news1000)
5798 + basic_machine=m68030-sony
5799 + os=-newsos
5800 + ;;
5801 + news-3600 | risc-news)
5802 + basic_machine=mips-sony
5803 + os=-newsos
5804 + ;;
5805 + necv70)
5806 + basic_machine=v70-nec
5807 + os=-sysv
5808 + ;;
5809 + next | m*-next )
5810 + basic_machine=m68k-next
5811 + case $os in
5812 + -nextstep* )
5813 + ;;
5814 + -ns2*)
5815 + os=-nextstep2
5816 + ;;
5817 + *)
5818 + os=-nextstep3
5819 + ;;
5820 + esac
5821 + ;;
5822 + nh3000)
5823 + basic_machine=m68k-harris
5824 + os=-cxux
5825 + ;;
5826 + nh[45]000)
5827 + basic_machine=m88k-harris
5828 + os=-cxux
5829 + ;;
5830 + nindy960)
5831 + basic_machine=i960-intel
5832 + os=-nindy
5833 + ;;
5834 + mon960)
5835 + basic_machine=i960-intel
5836 + os=-mon960
5837 + ;;
5838 + nonstopux)
5839 + basic_machine=mips-compaq
5840 + os=-nonstopux
5841 + ;;
5842 + np1)
5843 + basic_machine=np1-gould
5844 + ;;
5845 + nsr-tandem)
5846 + basic_machine=nsr-tandem
5847 + ;;
5848 + op50n-* | op60c-*)
5849 + basic_machine=hppa1.1-oki
5850 + os=-proelf
5851 + ;;
5852 + openrisc | openrisc-*)
5853 + basic_machine=or32-unknown
5854 + ;;
5855 + os400)
5856 + basic_machine=powerpc-ibm
5857 + os=-os400
5858 + ;;
5859 + OSE68000 | ose68000)
5860 + basic_machine=m68000-ericsson
5861 + os=-ose
5862 + ;;
5863 + os68k)
5864 + basic_machine=m68k-none
5865 + os=-os68k
5866 + ;;
5867 + pa-hitachi)
5868 + basic_machine=hppa1.1-hitachi
5869 + os=-hiuxwe2
5870 + ;;
5871 + paragon)
5872 + basic_machine=i860-intel
5873 + os=-osf
5874 + ;;
5875 + parisc)
5876 + basic_machine=hppa-unknown
5877 + os=-linux
5878 + ;;
5879 + parisc-*)
5880 + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
5881 + os=-linux
5882 + ;;
5883 + pbd)
5884 + basic_machine=sparc-tti
5885 + ;;
5886 + pbb)
5887 + basic_machine=m68k-tti
5888 + ;;
5889 + pc532 | pc532-*)
5890 + basic_machine=ns32k-pc532
5891 + ;;
5892 + pc98)
5893 + basic_machine=i386-pc
5894 + ;;
5895 + pc98-*)
5896 + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
5897 + ;;
5898 + pentium | p5 | k5 | k6 | nexgen | viac3)
5899 + basic_machine=i586-pc
5900 + ;;
5901 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
5902 + basic_machine=i686-pc
5903 + ;;
5904 + pentiumii | pentium2 | pentiumiii | pentium3)
5905 + basic_machine=i686-pc
5906 + ;;
5907 + pentium4)
5908 + basic_machine=i786-pc
5909 + ;;
5910 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
5911 + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
5912 + ;;
5913 + pentiumpro-* | p6-* | 6x86-* | athlon-*)
5914 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
5915 + ;;
5916 + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
5917 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
5918 + ;;
5919 + pentium4-*)
5920 + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
5921 + ;;
5922 + pn)
5923 + basic_machine=pn-gould
5924 + ;;
5925 + power) basic_machine=power-ibm
5926 + ;;
5927 + ppc) basic_machine=powerpc-unknown
5928 + ;;
5929 + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
5930 + ;;
5931 + ppcle | powerpclittle | ppc-le | powerpc-little)
5932 + basic_machine=powerpcle-unknown
5933 + ;;
5934 + ppcle-* | powerpclittle-*)
5935 + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
5936 + ;;
5937 + ppc64) basic_machine=powerpc64-unknown
5938 + ;;
5939 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
5940 + ;;
5941 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
5942 + basic_machine=powerpc64le-unknown
5943 + ;;
5944 + ppc64le-* | powerpc64little-*)
5945 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
5946 + ;;
5947 + ps2)
5948 + basic_machine=i386-ibm
5949 + ;;
5950 + pw32)
5951 + basic_machine=i586-unknown
5952 + os=-pw32
5953 + ;;
5954 + rdos)
5955 + basic_machine=i386-pc
5956 + os=-rdos
5957 + ;;
5958 + rom68k)
5959 + basic_machine=m68k-rom68k
5960 + os=-coff
5961 + ;;
5962 + rm[46]00)
5963 + basic_machine=mips-siemens
5964 + ;;
5965 + rtpc | rtpc-*)
5966 + basic_machine=romp-ibm
5967 + ;;
5968 + s390 | s390-*)
5969 + basic_machine=s390-ibm
5970 + ;;
5971 + s390x | s390x-*)
5972 + basic_machine=s390x-ibm
5973 + ;;
5974 + sa29200)
5975 + basic_machine=a29k-amd
5976 + os=-udi
5977 + ;;
5978 + sb1)
5979 + basic_machine=mipsisa64sb1-unknown
5980 + ;;
5981 + sb1el)
5982 + basic_machine=mipsisa64sb1el-unknown
5983 + ;;
5984 + sde)
5985 + basic_machine=mipsisa32-sde
5986 + os=-elf
5987 + ;;
5988 + sei)
5989 + basic_machine=mips-sei
5990 + os=-seiux
5991 + ;;
5992 + sequent)
5993 + basic_machine=i386-sequent
5994 + ;;
5995 + sh)
5996 + basic_machine=sh-hitachi
5997 + os=-hms
5998 + ;;
5999 + sh5el)
6000 + basic_machine=sh5le-unknown
6001 + ;;
6002 + sh64)
6003 + basic_machine=sh64-unknown
6004 + ;;
6005 + sparclite-wrs | simso-wrs)
6006 + basic_machine=sparclite-wrs
6007 + os=-vxworks
6008 + ;;
6009 + sps7)
6010 + basic_machine=m68k-bull
6011 + os=-sysv2
6012 + ;;
6013 + spur)
6014 + basic_machine=spur-unknown
6015 + ;;
6016 + st2000)
6017 + basic_machine=m68k-tandem
6018 + ;;
6019 + stratus)
6020 + basic_machine=i860-stratus
6021 + os=-sysv4
6022 + ;;
6023 + sun2)
6024 + basic_machine=m68000-sun
6025 + ;;
6026 + sun2os3)
6027 + basic_machine=m68000-sun
6028 + os=-sunos3
6029 + ;;
6030 + sun2os4)
6031 + basic_machine=m68000-sun
6032 + os=-sunos4
6033 + ;;
6034 + sun3os3)
6035 + basic_machine=m68k-sun
6036 + os=-sunos3
6037 + ;;
6038 + sun3os4)
6039 + basic_machine=m68k-sun
6040 + os=-sunos4
6041 + ;;
6042 + sun4os3)
6043 + basic_machine=sparc-sun
6044 + os=-sunos3
6045 + ;;
6046 + sun4os4)
6047 + basic_machine=sparc-sun
6048 + os=-sunos4
6049 + ;;
6050 + sun4sol2)
6051 + basic_machine=sparc-sun
6052 + os=-solaris2
6053 + ;;
6054 + sun3 | sun3-*)
6055 + basic_machine=m68k-sun
6056 + ;;
6057 + sun4)
6058 + basic_machine=sparc-sun
6059 + ;;
6060 + sun386 | sun386i | roadrunner)
6061 + basic_machine=i386-sun
6062 + ;;
6063 + sv1)
6064 + basic_machine=sv1-cray
6065 + os=-unicos
6066 + ;;
6067 + symmetry)
6068 + basic_machine=i386-sequent
6069 + os=-dynix
6070 + ;;
6071 + t3e)
6072 + basic_machine=alphaev5-cray
6073 + os=-unicos
6074 + ;;
6075 + t90)
6076 + basic_machine=t90-cray
6077 + os=-unicos
6078 + ;;
6079 + tic54x | c54x*)
6080 + basic_machine=tic54x-unknown
6081 + os=-coff
6082 + ;;
6083 + tic55x | c55x*)
6084 + basic_machine=tic55x-unknown
6085 + os=-coff
6086 + ;;
6087 + tic6x | c6x*)
6088 + basic_machine=tic6x-unknown
6089 + os=-coff
6090 + ;;
6091 + tile*)
6092 + basic_machine=tile-unknown
6093 + os=-linux-gnu
6094 + ;;
6095 + tx39)
6096 + basic_machine=mipstx39-unknown
6097 + ;;
6098 + tx39el)
6099 + basic_machine=mipstx39el-unknown
6100 + ;;
6101 + toad1)
6102 + basic_machine=pdp10-xkl
6103 + os=-tops20
6104 + ;;
6105 + tower | tower-32)
6106 + basic_machine=m68k-ncr
6107 + ;;
6108 + tpf)
6109 + basic_machine=s390x-ibm
6110 + os=-tpf
6111 + ;;
6112 + udi29k)
6113 + basic_machine=a29k-amd
6114 + os=-udi
6115 + ;;
6116 + ultra3)
6117 + basic_machine=a29k-nyu
6118 + os=-sym1
6119 + ;;
6120 + v810 | necv810)
6121 + basic_machine=v810-nec
6122 + os=-none
6123 + ;;
6124 + vaxv)
6125 + basic_machine=vax-dec
6126 + os=-sysv
6127 + ;;
6128 + vms)
6129 + basic_machine=vax-dec
6130 + os=-vms
6131 + ;;
6132 + vpp*|vx|vx-*)
6133 + basic_machine=f301-fujitsu
6134 + ;;
6135 + vxworks960)
6136 + basic_machine=i960-wrs
6137 + os=-vxworks
6138 + ;;
6139 + vxworks68)
6140 + basic_machine=m68k-wrs
6141 + os=-vxworks
6142 + ;;
6143 + vxworks29k)
6144 + basic_machine=a29k-wrs
6145 + os=-vxworks
6146 + ;;
6147 + w65*)
6148 + basic_machine=w65-wdc
6149 + os=-none
6150 + ;;
6151 + w89k-*)
6152 + basic_machine=hppa1.1-winbond
6153 + os=-proelf
6154 + ;;
6155 + xbox)
6156 + basic_machine=i686-pc
6157 + os=-mingw32
6158 + ;;
6159 + xps | xps100)
6160 + basic_machine=xps100-honeywell
6161 + ;;
6162 + ymp)
6163 + basic_machine=ymp-cray
6164 + os=-unicos
6165 + ;;
6166 + z8k-*-coff)
6167 + basic_machine=z8k-unknown
6168 + os=-sim
6169 + ;;
6170 + z80-*-coff)
6171 + basic_machine=z80-unknown
6172 + os=-sim
6173 + ;;
6174 + none)
6175 + basic_machine=none-none
6176 + os=-none
6177 + ;;
6178 +
6179 +# Here we handle the default manufacturer of certain CPU types. It is in
6180 +# some cases the only manufacturer, in others, it is the most popular.
6181 + w89k)
6182 + basic_machine=hppa1.1-winbond
6183 + ;;
6184 + op50n)
6185 + basic_machine=hppa1.1-oki
6186 + ;;
6187 + op60c)
6188 + basic_machine=hppa1.1-oki
6189 + ;;
6190 + romp)
6191 + basic_machine=romp-ibm
6192 + ;;
6193 + mmix)
6194 + basic_machine=mmix-knuth
6195 + ;;
6196 + rs6000)
6197 + basic_machine=rs6000-ibm
6198 + ;;
6199 + vax)
6200 + basic_machine=vax-dec
6201 + ;;
6202 + pdp10)
6203 + # there are many clones, so DEC is not a safe bet
6204 + basic_machine=pdp10-unknown
6205 + ;;
6206 + pdp11)
6207 + basic_machine=pdp11-dec
6208 + ;;
6209 + we32k)
6210 + basic_machine=we32k-att
6211 + ;;
6212 + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
6213 + basic_machine=sh-unknown
6214 + ;;
6215 + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
6216 + basic_machine=sparc-sun
6217 + ;;
6218 + cydra)
6219 + basic_machine=cydra-cydrome
6220 + ;;
6221 + orion)
6222 + basic_machine=orion-highlevel
6223 + ;;
6224 + orion105)
6225 + basic_machine=clipper-highlevel
6226 + ;;
6227 + mac | mpw | mac-mpw)
6228 + basic_machine=m68k-apple
6229 + ;;
6230 + pmac | pmac-mpw)
6231 + basic_machine=powerpc-apple
6232 + ;;
6233 + *-unknown)
6234 + # Make sure to match an already-canonicalized machine name.
6235 + ;;
6236 + *)
6237 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
6238 + exit 1
6239 + ;;
6240 +esac
6241 +
6242 +# Here we canonicalize certain aliases for manufacturers.
6243 +case $basic_machine in
6244 + *-digital*)
6245 + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
6246 + ;;
6247 + *-commodore*)
6248 + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
6249 + ;;
6250 + *)
6251 + ;;
6252 +esac
6253 +
6254 +# Decode manufacturer-specific aliases for certain operating systems.
6255 +
6256 +if [ x"$os" != x"" ]
6257 +then
6258 +case $os in
6259 + # First match some system type aliases
6260 + # that might get confused with valid system types.
6261 + # -solaris* is a basic system type, with this one exception.
6262 + -auroraux)
6263 + os=-auroraux
6264 + ;;
6265 + -solaris1 | -solaris1.*)
6266 + os=`echo $os | sed -e 's|solaris1|sunos4|'`
6267 + ;;
6268 + -solaris)
6269 + os=-solaris2
6270 + ;;
6271 + -svr4*)
6272 + os=-sysv4
6273 + ;;
6274 + -unixware*)
6275 + os=-sysv4.2uw
6276 + ;;
6277 + -gnu/linux*)
6278 + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
6279 + ;;
6280 + # First accept the basic system types.
6281 + # The portable systems comes first.
6282 + # Each alternative MUST END IN A *, to match a version number.
6283 + # -sysv* is not here because it comes later, after sysvr4.
6284 + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
6285 + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
6286 + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
6287 + | -sym* | -kopensolaris* \
6288 + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
6289 + | -aos* | -aros* \
6290 + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
6291 + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
6292 + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
6293 + | -openbsd* | -solidbsd* \
6294 + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
6295 + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
6296 + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
6297 + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
6298 + | -chorusos* | -chorusrdb* | -cegcc* \
6299 + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
6300 + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
6301 + | -uxpv* | -beos* | -mpeix* | -udk* \
6302 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
6303 + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
6304 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
6305 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
6306 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
6307 + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
6308 + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
6309 + # Remember, each alternative MUST END IN *, to match a version number.
6310 + ;;
6311 + -qnx*)
6312 + case $basic_machine in
6313 + x86-* | i*86-*)
6314 + ;;
6315 + *)
6316 + os=-nto$os
6317 + ;;
6318 + esac
6319 + ;;
6320 + -nto-qnx*)
6321 + ;;
6322 + -nto*)
6323 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
6324 + ;;
6325 + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
6326 + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
6327 + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
6328 + ;;
6329 + -mac*)
6330 + os=`echo $os | sed -e 's|mac|macos|'`
6331 + ;;
6332 + -linux-dietlibc)
6333 + os=-linux-dietlibc
6334 + ;;
6335 + -linux*)
6336 + os=`echo $os | sed -e 's|linux|linux-gnu|'`
6337 + ;;
6338 + -sunos5*)
6339 + os=`echo $os | sed -e 's|sunos5|solaris2|'`
6340 + ;;
6341 + -sunos6*)
6342 + os=`echo $os | sed -e 's|sunos6|solaris3|'`
6343 + ;;
6344 + -opened*)
6345 + os=-openedition
6346 + ;;
6347 + -os400*)
6348 + os=-os400
6349 + ;;
6350 + -wince*)
6351 + os=-wince
6352 + ;;
6353 + -osfrose*)
6354 + os=-osfrose
6355 + ;;
6356 + -osf*)
6357 + os=-osf
6358 + ;;
6359 + -utek*)
6360 + os=-bsd
6361 + ;;
6362 + -dynix*)
6363 + os=-bsd
6364 + ;;
6365 + -acis*)
6366 + os=-aos
6367 + ;;
6368 + -atheos*)
6369 + os=-atheos
6370 + ;;
6371 + -syllable*)
6372 + os=-syllable
6373 + ;;
6374 + -386bsd)
6375 + os=-bsd
6376 + ;;
6377 + -ctix* | -uts*)
6378 + os=-sysv
6379 + ;;
6380 + -nova*)
6381 + os=-rtmk-nova
6382 + ;;
6383 + -ns2 )
6384 + os=-nextstep2
6385 + ;;
6386 + -nsk*)
6387 + os=-nsk
6388 + ;;
6389 + # Preserve the version number of sinix5.
6390 + -sinix5.*)
6391 + os=`echo $os | sed -e 's|sinix|sysv|'`
6392 + ;;
6393 + -sinix*)
6394 + os=-sysv4
6395 + ;;
6396 + -tpf*)
6397 + os=-tpf
6398 + ;;
6399 + -triton*)
6400 + os=-sysv3
6401 + ;;
6402 + -oss*)
6403 + os=-sysv3
6404 + ;;
6405 + -svr4)
6406 + os=-sysv4
6407 + ;;
6408 + -svr3)
6409 + os=-sysv3
6410 + ;;
6411 + -sysvr4)
6412 + os=-sysv4
6413 + ;;
6414 + # This must come after -sysvr4.
6415 + -sysv*)
6416 + ;;
6417 + -ose*)
6418 + os=-ose
6419 + ;;
6420 + -es1800*)
6421 + os=-ose
6422 + ;;
6423 + -xenix)
6424 + os=-xenix
6425 + ;;
6426 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
6427 + os=-mint
6428 + ;;
6429 + -aros*)
6430 + os=-aros
6431 + ;;
6432 + -kaos*)
6433 + os=-kaos
6434 + ;;
6435 + -zvmoe)
6436 + os=-zvmoe
6437 + ;;
6438 + -dicos*)
6439 + os=-dicos
6440 + ;;
6441 + -none)
6442 + ;;
6443 + *)
6444 + # Get rid of the `-' at the beginning of $os.
6445 + os=`echo $os | sed 's/[^-]*-//'`
6446 + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
6447 + exit 1
6448 + ;;
6449 +esac
6450 +else
6451 +
6452 +# Here we handle the default operating systems that come with various machines.
6453 +# The value should be what the vendor currently ships out the door with their
6454 +# machine or put another way, the most popular os provided with the machine.
6455 +
6456 +# Note that if you're going to try to match "-MANUFACTURER" here (say,
6457 +# "-sun"), then you have to tell the case statement up towards the top
6458 +# that MANUFACTURER isn't an operating system. Otherwise, code above
6459 +# will signal an error saying that MANUFACTURER isn't an operating
6460 +# system, and we'll never get to this point.
6461 +
6462 +case $basic_machine in
6463 + score-*)
6464 + os=-elf
6465 + ;;
6466 + spu-*)
6467 + os=-elf
6468 + ;;
6469 + *-acorn)
6470 + os=-riscix1.2
6471 + ;;
6472 + arm*-rebel)
6473 + os=-linux
6474 + ;;
6475 + arm*-semi)
6476 + os=-aout
6477 + ;;
6478 + c4x-* | tic4x-*)
6479 + os=-coff
6480 + ;;
6481 + # This must come before the *-dec entry.
6482 + pdp10-*)
6483 + os=-tops20
6484 + ;;
6485 + pdp11-*)
6486 + os=-none
6487 + ;;
6488 + *-dec | vax-*)
6489 + os=-ultrix4.2
6490 + ;;
6491 + m68*-apollo)
6492 + os=-domain
6493 + ;;
6494 + i386-sun)
6495 + os=-sunos4.0.2
6496 + ;;
6497 + m68000-sun)
6498 + os=-sunos3
6499 + # This also exists in the configure program, but was not the
6500 + # default.
6501 + # os=-sunos4
6502 + ;;
6503 + m68*-cisco)
6504 + os=-aout
6505 + ;;
6506 + mep-*)
6507 + os=-elf
6508 + ;;
6509 + mips*-cisco)
6510 + os=-elf
6511 + ;;
6512 + mips*-*)
6513 + os=-elf
6514 + ;;
6515 + or32-*)
6516 + os=-coff
6517 + ;;
6518 + *-tti) # must be before sparc entry or we get the wrong os.
6519 + os=-sysv3
6520 + ;;
6521 + sparc-* | *-sun)
6522 + os=-sunos4.1.1
6523 + ;;
6524 + *-be)
6525 + os=-beos
6526 + ;;
6527 + *-haiku)
6528 + os=-haiku
6529 + ;;
6530 + *-ibm)
6531 + os=-aix
6532 + ;;
6533 + *-knuth)
6534 + os=-mmixware
6535 + ;;
6536 + *-wec)
6537 + os=-proelf
6538 + ;;
6539 + *-winbond)
6540 + os=-proelf
6541 + ;;
6542 + *-oki)
6543 + os=-proelf
6544 + ;;
6545 + *-hp)
6546 + os=-hpux
6547 + ;;
6548 + *-hitachi)
6549 + os=-hiux
6550 + ;;
6551 + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
6552 + os=-sysv
6553 + ;;
6554 + *-cbm)
6555 + os=-amigaos
6556 + ;;
6557 + *-dg)
6558 + os=-dgux
6559 + ;;
6560 + *-dolphin)
6561 + os=-sysv3
6562 + ;;
6563 + m68k-ccur)
6564 + os=-rtu
6565 + ;;
6566 + m88k-omron*)
6567 + os=-luna
6568 + ;;
6569 + *-next )
6570 + os=-nextstep
6571 + ;;
6572 + *-sequent)
6573 + os=-ptx
6574 + ;;
6575 + *-crds)
6576 + os=-unos
6577 + ;;
6578 + *-ns)
6579 + os=-genix
6580 + ;;
6581 + i370-*)
6582 + os=-mvs
6583 + ;;
6584 + *-next)
6585 + os=-nextstep3
6586 + ;;
6587 + *-gould)
6588 + os=-sysv
6589 + ;;
6590 + *-highlevel)
6591 + os=-bsd
6592 + ;;
6593 + *-encore)
6594 + os=-bsd
6595 + ;;
6596 + *-sgi)
6597 + os=-irix
6598 + ;;
6599 + *-siemens)
6600 + os=-sysv4
6601 + ;;
6602 + *-masscomp)
6603 + os=-rtu
6604 + ;;
6605 + f30[01]-fujitsu | f700-fujitsu)
6606 + os=-uxpv
6607 + ;;
6608 + *-rom68k)
6609 + os=-coff
6610 + ;;
6611 + *-*bug)
6612 + os=-coff
6613 + ;;
6614 + *-apple)
6615 + os=-macos
6616 + ;;
6617 + *-atari*)
6618 + os=-mint
6619 + ;;
6620 + *)
6621 + os=-none
6622 + ;;
6623 +esac
6624 +fi
6625 +
6626 +# Here we handle the case where we know the os, and the CPU type, but not the
6627 +# manufacturer. We pick the logical manufacturer.
6628 +vendor=unknown
6629 +case $basic_machine in
6630 + *-unknown)
6631 + case $os in
6632 + -riscix*)
6633 + vendor=acorn
6634 + ;;
6635 + -sunos*)
6636 + vendor=sun
6637 + ;;
6638 + -cnk*|-aix*)
6639 + vendor=ibm
6640 + ;;
6641 + -beos*)
6642 + vendor=be
6643 + ;;
6644 + -hpux*)
6645 + vendor=hp
6646 + ;;
6647 + -mpeix*)
6648 + vendor=hp
6649 + ;;
6650 + -hiux*)
6651 + vendor=hitachi
6652 + ;;
6653 + -unos*)
6654 + vendor=crds
6655 + ;;
6656 + -dgux*)
6657 + vendor=dg
6658 + ;;
6659 + -luna*)
6660 + vendor=omron
6661 + ;;
6662 + -genix*)
6663 + vendor=ns
6664 + ;;
6665 + -mvs* | -opened*)
6666 + vendor=ibm
6667 + ;;
6668 + -os400*)
6669 + vendor=ibm
6670 + ;;
6671 + -ptx*)
6672 + vendor=sequent
6673 + ;;
6674 + -tpf*)
6675 + vendor=ibm
6676 + ;;
6677 + -vxsim* | -vxworks* | -windiss*)
6678 + vendor=wrs
6679 + ;;
6680 + -aux*)
6681 + vendor=apple
6682 + ;;
6683 + -hms*)
6684 + vendor=hitachi
6685 + ;;
6686 + -mpw* | -macos*)
6687 + vendor=apple
6688 + ;;
6689 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
6690 + vendor=atari
6691 + ;;
6692 + -vos*)
6693 + vendor=stratus
6694 + ;;
6695 + esac
6696 + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
6697 + ;;
6698 +esac
6699 +
6700 +echo $basic_machine$os
6701 +exit
6702 +
6703 +# Local variables:
6704 +# eval: (add-hook 'write-file-hooks 'time-stamp)
6705 +# time-stamp-start: "timestamp='"
6706 +# time-stamp-format: "%:y-%02m-%02d"
6707 +# time-stamp-end: "'"
6708 +# End:
6709 diff --git a/libltdl/config/depcomp b/libltdl/config/depcomp
6710 new file mode 100755
6711 index 0000000..df8eea7
6712 --- /dev/null
6713 +++ b/libltdl/config/depcomp
6714 @@ -0,0 +1,630 @@
6715 +#! /bin/sh
6716 +# depcomp - compile a program generating dependencies as side-effects
6717 +
6718 +scriptversion=2009-04-28.21; # UTC
6719 +
6720 +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
6721 +# Software Foundation, Inc.
6722 +
6723 +# This program is free software; you can redistribute it and/or modify
6724 +# it under the terms of the GNU General Public License as published by
6725 +# the Free Software Foundation; either version 2, or (at your option)
6726 +# any later version.
6727 +
6728 +# This program is distributed in the hope that it will be useful,
6729 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
6730 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6731 +# GNU General Public License for more details.
6732 +
6733 +# You should have received a copy of the GNU General Public License
6734 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
6735 +
6736 +# As a special exception to the GNU General Public License, if you
6737 +# distribute this file as part of a program that contains a
6738 +# configuration script generated by Autoconf, you may include it under
6739 +# the same distribution terms that you use for the rest of that program.
6740 +
6741 +# Originally written by Alexandre Oliva <[email protected]>.
6742 +
6743 +case $1 in
6744 + '')
6745 + echo "$0: No command. Try \`$0 --help' for more information." 1>&2
6746 + exit 1;
6747 + ;;
6748 + -h | --h*)
6749 + cat <<\EOF
6750 +Usage: depcomp [--help] [--version] PROGRAM [ARGS]
6751 +
6752 +Run PROGRAMS ARGS to compile a file, generating dependencies
6753 +as side-effects.
6754 +
6755 +Environment variables:
6756 + depmode Dependency tracking mode.
6757 + source Source file read by `PROGRAMS ARGS'.
6758 + object Object file output by `PROGRAMS ARGS'.
6759 + DEPDIR directory where to store dependencies.
6760 + depfile Dependency file to output.
6761 + tmpdepfile Temporary file to use when outputing dependencies.
6762 + libtool Whether libtool is used (yes/no).
6763 +
6764 +Report bugs to <[email protected]>.
6765 +EOF
6766 + exit $?
6767 + ;;
6768 + -v | --v*)
6769 + echo "depcomp $scriptversion"
6770 + exit $?
6771 + ;;
6772 +esac
6773 +
6774 +if test -z "$depmode" || test -z "$source" || test -z "$object"; then
6775 + echo "depcomp: Variables source, object and depmode must be set" 1>&2
6776 + exit 1
6777 +fi
6778 +
6779 +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
6780 +depfile=${depfile-`echo "$object" |
6781 + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
6782 +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
6783 +
6784 +rm -f "$tmpdepfile"
6785 +
6786 +# Some modes work just like other modes, but use different flags. We
6787 +# parameterize here, but still list the modes in the big case below,
6788 +# to make depend.m4 easier to write. Note that we *cannot* use a case
6789 +# here, because this file can only contain one case statement.
6790 +if test "$depmode" = hp; then
6791 + # HP compiler uses -M and no extra arg.
6792 + gccflag=-M
6793 + depmode=gcc
6794 +fi
6795 +
6796 +if test "$depmode" = dashXmstdout; then
6797 + # This is just like dashmstdout with a different argument.
6798 + dashmflag=-xM
6799 + depmode=dashmstdout
6800 +fi
6801 +
6802 +cygpath_u="cygpath -u -f -"
6803 +if test "$depmode" = msvcmsys; then
6804 + # This is just like msvisualcpp but w/o cygpath translation.
6805 + # Just convert the backslash-escaped backslashes to single forward
6806 + # slashes to satisfy depend.m4
6807 + cygpath_u="sed s,\\\\\\\\,/,g"
6808 + depmode=msvisualcpp
6809 +fi
6810 +
6811 +case "$depmode" in
6812 +gcc3)
6813 +## gcc 3 implements dependency tracking that does exactly what
6814 +## we want. Yay! Note: for some reason libtool 1.4 doesn't like
6815 +## it if -MD -MP comes after the -MF stuff. Hmm.
6816 +## Unfortunately, FreeBSD c89 acceptance of flags depends upon
6817 +## the command line argument order; so add the flags where they
6818 +## appear in depend2.am. Note that the slowdown incurred here
6819 +## affects only configure: in makefiles, %FASTDEP% shortcuts this.
6820 + for arg
6821 + do
6822 + case $arg in
6823 + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
6824 + *) set fnord "$@" "$arg" ;;
6825 + esac
6826 + shift # fnord
6827 + shift # $arg
6828 + done
6829 + "$@"
6830 + stat=$?
6831 + if test $stat -eq 0; then :
6832 + else
6833 + rm -f "$tmpdepfile"
6834 + exit $stat
6835 + fi
6836 + mv "$tmpdepfile" "$depfile"
6837 + ;;
6838 +
6839 +gcc)
6840 +## There are various ways to get dependency output from gcc. Here's
6841 +## why we pick this rather obscure method:
6842 +## - Don't want to use -MD because we'd like the dependencies to end
6843 +## up in a subdir. Having to rename by hand is ugly.
6844 +## (We might end up doing this anyway to support other compilers.)
6845 +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
6846 +## -MM, not -M (despite what the docs say).
6847 +## - Using -M directly means running the compiler twice (even worse
6848 +## than renaming).
6849 + if test -z "$gccflag"; then
6850 + gccflag=-MD,
6851 + fi
6852 + "$@" -Wp,"$gccflag$tmpdepfile"
6853 + stat=$?
6854 + if test $stat -eq 0; then :
6855 + else
6856 + rm -f "$tmpdepfile"
6857 + exit $stat
6858 + fi
6859 + rm -f "$depfile"
6860 + echo "$object : \\" > "$depfile"
6861 + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
6862 +## The second -e expression handles DOS-style file names with drive letters.
6863 + sed -e 's/^[^:]*: / /' \
6864 + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
6865 +## This next piece of magic avoids the `deleted header file' problem.
6866 +## The problem is that when a header file which appears in a .P file
6867 +## is deleted, the dependency causes make to die (because there is
6868 +## typically no way to rebuild the header). We avoid this by adding
6869 +## dummy dependencies for each header file. Too bad gcc doesn't do
6870 +## this for us directly.
6871 + tr ' ' '
6872 +' < "$tmpdepfile" |
6873 +## Some versions of gcc put a space before the `:'. On the theory
6874 +## that the space means something, we add a space to the output as
6875 +## well.
6876 +## Some versions of the HPUX 10.20 sed can't process this invocation
6877 +## correctly. Breaking it into two sed invocations is a workaround.
6878 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
6879 + rm -f "$tmpdepfile"
6880 + ;;
6881 +
6882 +hp)
6883 + # This case exists only to let depend.m4 do its work. It works by
6884 + # looking at the text of this script. This case will never be run,
6885 + # since it is checked for above.
6886 + exit 1
6887 + ;;
6888 +
6889 +sgi)
6890 + if test "$libtool" = yes; then
6891 + "$@" "-Wp,-MDupdate,$tmpdepfile"
6892 + else
6893 + "$@" -MDupdate "$tmpdepfile"
6894 + fi
6895 + stat=$?
6896 + if test $stat -eq 0; then :
6897 + else
6898 + rm -f "$tmpdepfile"
6899 + exit $stat
6900 + fi
6901 + rm -f "$depfile"
6902 +
6903 + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
6904 + echo "$object : \\" > "$depfile"
6905 +
6906 + # Clip off the initial element (the dependent). Don't try to be
6907 + # clever and replace this with sed code, as IRIX sed won't handle
6908 + # lines with more than a fixed number of characters (4096 in
6909 + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
6910 + # the IRIX cc adds comments like `#:fec' to the end of the
6911 + # dependency line.
6912 + tr ' ' '
6913 +' < "$tmpdepfile" \
6914 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
6915 + tr '
6916 +' ' ' >> "$depfile"
6917 + echo >> "$depfile"
6918 +
6919 + # The second pass generates a dummy entry for each header file.
6920 + tr ' ' '
6921 +' < "$tmpdepfile" \
6922 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
6923 + >> "$depfile"
6924 + else
6925 + # The sourcefile does not contain any dependencies, so just
6926 + # store a dummy comment line, to avoid errors with the Makefile
6927 + # "include basename.Plo" scheme.
6928 + echo "#dummy" > "$depfile"
6929 + fi
6930 + rm -f "$tmpdepfile"
6931 + ;;
6932 +
6933 +aix)
6934 + # The C for AIX Compiler uses -M and outputs the dependencies
6935 + # in a .u file. In older versions, this file always lives in the
6936 + # current directory. Also, the AIX compiler puts `$object:' at the
6937 + # start of each line; $object doesn't have directory information.
6938 + # Version 6 uses the directory in both cases.
6939 + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
6940 + test "x$dir" = "x$object" && dir=
6941 + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
6942 + if test "$libtool" = yes; then
6943 + tmpdepfile1=$dir$base.u
6944 + tmpdepfile2=$base.u
6945 + tmpdepfile3=$dir.libs/$base.u
6946 + "$@" -Wc,-M
6947 + else
6948 + tmpdepfile1=$dir$base.u
6949 + tmpdepfile2=$dir$base.u
6950 + tmpdepfile3=$dir$base.u
6951 + "$@" -M
6952 + fi
6953 + stat=$?
6954 +
6955 + if test $stat -eq 0; then :
6956 + else
6957 + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
6958 + exit $stat
6959 + fi
6960 +
6961 + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
6962 + do
6963 + test -f "$tmpdepfile" && break
6964 + done
6965 + if test -f "$tmpdepfile"; then
6966 + # Each line is of the form `foo.o: dependent.h'.
6967 + # Do two passes, one to just change these to
6968 + # `$object: dependent.h' and one to simply `dependent.h:'.
6969 + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
6970 + # That's a tab and a space in the [].
6971 + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
6972 + else
6973 + # The sourcefile does not contain any dependencies, so just
6974 + # store a dummy comment line, to avoid errors with the Makefile
6975 + # "include basename.Plo" scheme.
6976 + echo "#dummy" > "$depfile"
6977 + fi
6978 + rm -f "$tmpdepfile"
6979 + ;;
6980 +
6981 +icc)
6982 + # Intel's C compiler understands `-MD -MF file'. However on
6983 + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
6984 + # ICC 7.0 will fill foo.d with something like
6985 + # foo.o: sub/foo.c
6986 + # foo.o: sub/foo.h
6987 + # which is wrong. We want:
6988 + # sub/foo.o: sub/foo.c
6989 + # sub/foo.o: sub/foo.h
6990 + # sub/foo.c:
6991 + # sub/foo.h:
6992 + # ICC 7.1 will output
6993 + # foo.o: sub/foo.c sub/foo.h
6994 + # and will wrap long lines using \ :
6995 + # foo.o: sub/foo.c ... \
6996 + # sub/foo.h ... \
6997 + # ...
6998 +
6999 + "$@" -MD -MF "$tmpdepfile"
7000 + stat=$?
7001 + if test $stat -eq 0; then :
7002 + else
7003 + rm -f "$tmpdepfile"
7004 + exit $stat
7005 + fi
7006 + rm -f "$depfile"
7007 + # Each line is of the form `foo.o: dependent.h',
7008 + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
7009 + # Do two passes, one to just change these to
7010 + # `$object: dependent.h' and one to simply `dependent.h:'.
7011 + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
7012 + # Some versions of the HPUX 10.20 sed can't process this invocation
7013 + # correctly. Breaking it into two sed invocations is a workaround.
7014 + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
7015 + sed -e 's/$/ :/' >> "$depfile"
7016 + rm -f "$tmpdepfile"
7017 + ;;
7018 +
7019 +hp2)
7020 + # The "hp" stanza above does not work with aCC (C++) and HP's ia64
7021 + # compilers, which have integrated preprocessors. The correct option
7022 + # to use with these is +Maked; it writes dependencies to a file named
7023 + # 'foo.d', which lands next to the object file, wherever that
7024 + # happens to be.
7025 + # Much of this is similar to the tru64 case; see comments there.
7026 + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
7027 + test "x$dir" = "x$object" && dir=
7028 + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
7029 + if test "$libtool" = yes; then
7030 + tmpdepfile1=$dir$base.d
7031 + tmpdepfile2=$dir.libs/$base.d
7032 + "$@" -Wc,+Maked
7033 + else
7034 + tmpdepfile1=$dir$base.d
7035 + tmpdepfile2=$dir$base.d
7036 + "$@" +Maked
7037 + fi
7038 + stat=$?
7039 + if test $stat -eq 0; then :
7040 + else
7041 + rm -f "$tmpdepfile1" "$tmpdepfile2"
7042 + exit $stat
7043 + fi
7044 +
7045 + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
7046 + do
7047 + test -f "$tmpdepfile" && break
7048 + done
7049 + if test -f "$tmpdepfile"; then
7050 + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
7051 + # Add `dependent.h:' lines.
7052 + sed -ne '2,${
7053 + s/^ *//
7054 + s/ \\*$//
7055 + s/$/:/
7056 + p
7057 + }' "$tmpdepfile" >> "$depfile"
7058 + else
7059 + echo "#dummy" > "$depfile"
7060 + fi
7061 + rm -f "$tmpdepfile" "$tmpdepfile2"
7062 + ;;
7063 +
7064 +tru64)
7065 + # The Tru64 compiler uses -MD to generate dependencies as a side
7066 + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
7067 + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
7068 + # dependencies in `foo.d' instead, so we check for that too.
7069 + # Subdirectories are respected.
7070 + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
7071 + test "x$dir" = "x$object" && dir=
7072 + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
7073 +
7074 + if test "$libtool" = yes; then
7075 + # With Tru64 cc, shared objects can also be used to make a
7076 + # static library. This mechanism is used in libtool 1.4 series to
7077 + # handle both shared and static libraries in a single compilation.
7078 + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
7079 + #
7080 + # With libtool 1.5 this exception was removed, and libtool now
7081 + # generates 2 separate objects for the 2 libraries. These two
7082 + # compilations output dependencies in $dir.libs/$base.o.d and
7083 + # in $dir$base.o.d. We have to check for both files, because
7084 + # one of the two compilations can be disabled. We should prefer
7085 + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
7086 + # automatically cleaned when .libs/ is deleted, while ignoring
7087 + # the former would cause a distcleancheck panic.
7088 + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
7089 + tmpdepfile2=$dir$base.o.d # libtool 1.5
7090 + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
7091 + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
7092 + "$@" -Wc,-MD
7093 + else
7094 + tmpdepfile1=$dir$base.o.d
7095 + tmpdepfile2=$dir$base.d
7096 + tmpdepfile3=$dir$base.d
7097 + tmpdepfile4=$dir$base.d
7098 + "$@" -MD
7099 + fi
7100 +
7101 + stat=$?
7102 + if test $stat -eq 0; then :
7103 + else
7104 + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
7105 + exit $stat
7106 + fi
7107 +
7108 + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
7109 + do
7110 + test -f "$tmpdepfile" && break
7111 + done
7112 + if test -f "$tmpdepfile"; then
7113 + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
7114 + # That's a tab and a space in the [].
7115 + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
7116 + else
7117 + echo "#dummy" > "$depfile"
7118 + fi
7119 + rm -f "$tmpdepfile"
7120 + ;;
7121 +
7122 +#nosideeffect)
7123 + # This comment above is used by automake to tell side-effect
7124 + # dependency tracking mechanisms from slower ones.
7125 +
7126 +dashmstdout)
7127 + # Important note: in order to support this mode, a compiler *must*
7128 + # always write the preprocessed file to stdout, regardless of -o.
7129 + "$@" || exit $?
7130 +
7131 + # Remove the call to Libtool.
7132 + if test "$libtool" = yes; then
7133 + while test "X$1" != 'X--mode=compile'; do
7134 + shift
7135 + done
7136 + shift
7137 + fi
7138 +
7139 + # Remove `-o $object'.
7140 + IFS=" "
7141 + for arg
7142 + do
7143 + case $arg in
7144 + -o)
7145 + shift
7146 + ;;
7147 + $object)
7148 + shift
7149 + ;;
7150 + *)
7151 + set fnord "$@" "$arg"
7152 + shift # fnord
7153 + shift # $arg
7154 + ;;
7155 + esac
7156 + done
7157 +
7158 + test -z "$dashmflag" && dashmflag=-M
7159 + # Require at least two characters before searching for `:'
7160 + # in the target name. This is to cope with DOS-style filenames:
7161 + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
7162 + "$@" $dashmflag |
7163 + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
7164 + rm -f "$depfile"
7165 + cat < "$tmpdepfile" > "$depfile"
7166 + tr ' ' '
7167 +' < "$tmpdepfile" | \
7168 +## Some versions of the HPUX 10.20 sed can't process this invocation
7169 +## correctly. Breaking it into two sed invocations is a workaround.
7170 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
7171 + rm -f "$tmpdepfile"
7172 + ;;
7173 +
7174 +dashXmstdout)
7175 + # This case only exists to satisfy depend.m4. It is never actually
7176 + # run, as this mode is specially recognized in the preamble.
7177 + exit 1
7178 + ;;
7179 +
7180 +makedepend)
7181 + "$@" || exit $?
7182 + # Remove any Libtool call
7183 + if test "$libtool" = yes; then
7184 + while test "X$1" != 'X--mode=compile'; do
7185 + shift
7186 + done
7187 + shift
7188 + fi
7189 + # X makedepend
7190 + shift
7191 + cleared=no eat=no
7192 + for arg
7193 + do
7194 + case $cleared in
7195 + no)
7196 + set ""; shift
7197 + cleared=yes ;;
7198 + esac
7199 + if test $eat = yes; then
7200 + eat=no
7201 + continue
7202 + fi
7203 + case "$arg" in
7204 + -D*|-I*)
7205 + set fnord "$@" "$arg"; shift ;;
7206 + # Strip any option that makedepend may not understand. Remove
7207 + # the object too, otherwise makedepend will parse it as a source file.
7208 + -arch)
7209 + eat=yes ;;
7210 + -*|$object)
7211 + ;;
7212 + *)
7213 + set fnord "$@" "$arg"; shift ;;
7214 + esac
7215 + done
7216 + obj_suffix=`echo "$object" | sed 's/^.*\././'`
7217 + touch "$tmpdepfile"
7218 + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
7219 + rm -f "$depfile"
7220 + cat < "$tmpdepfile" > "$depfile"
7221 + sed '1,2d' "$tmpdepfile" | tr ' ' '
7222 +' | \
7223 +## Some versions of the HPUX 10.20 sed can't process this invocation
7224 +## correctly. Breaking it into two sed invocations is a workaround.
7225 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
7226 + rm -f "$tmpdepfile" "$tmpdepfile".bak
7227 + ;;
7228 +
7229 +cpp)
7230 + # Important note: in order to support this mode, a compiler *must*
7231 + # always write the preprocessed file to stdout.
7232 + "$@" || exit $?
7233 +
7234 + # Remove the call to Libtool.
7235 + if test "$libtool" = yes; then
7236 + while test "X$1" != 'X--mode=compile'; do
7237 + shift
7238 + done
7239 + shift
7240 + fi
7241 +
7242 + # Remove `-o $object'.
7243 + IFS=" "
7244 + for arg
7245 + do
7246 + case $arg in
7247 + -o)
7248 + shift
7249 + ;;
7250 + $object)
7251 + shift
7252 + ;;
7253 + *)
7254 + set fnord "$@" "$arg"
7255 + shift # fnord
7256 + shift # $arg
7257 + ;;
7258 + esac
7259 + done
7260 +
7261 + "$@" -E |
7262 + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
7263 + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
7264 + sed '$ s: \\$::' > "$tmpdepfile"
7265 + rm -f "$depfile"
7266 + echo "$object : \\" > "$depfile"
7267 + cat < "$tmpdepfile" >> "$depfile"
7268 + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
7269 + rm -f "$tmpdepfile"
7270 + ;;
7271 +
7272 +msvisualcpp)
7273 + # Important note: in order to support this mode, a compiler *must*
7274 + # always write the preprocessed file to stdout.
7275 + "$@" || exit $?
7276 +
7277 + # Remove the call to Libtool.
7278 + if test "$libtool" = yes; then
7279 + while test "X$1" != 'X--mode=compile'; do
7280 + shift
7281 + done
7282 + shift
7283 + fi
7284 +
7285 + IFS=" "
7286 + for arg
7287 + do
7288 + case "$arg" in
7289 + -o)
7290 + shift
7291 + ;;
7292 + $object)
7293 + shift
7294 + ;;
7295 + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
7296 + set fnord "$@"
7297 + shift
7298 + shift
7299 + ;;
7300 + *)
7301 + set fnord "$@" "$arg"
7302 + shift
7303 + shift
7304 + ;;
7305 + esac
7306 + done
7307 + "$@" -E 2>/dev/null |
7308 + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
7309 + rm -f "$depfile"
7310 + echo "$object : \\" > "$depfile"
7311 + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
7312 + echo " " >> "$depfile"
7313 + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
7314 + rm -f "$tmpdepfile"
7315 + ;;
7316 +
7317 +msvcmsys)
7318 + # This case exists only to let depend.m4 do its work. It works by
7319 + # looking at the text of this script. This case will never be run,
7320 + # since it is checked for above.
7321 + exit 1
7322 + ;;
7323 +
7324 +none)
7325 + exec "$@"
7326 + ;;
7327 +
7328 +*)
7329 + echo "Unknown depmode $depmode" 1>&2
7330 + exit 1
7331 + ;;
7332 +esac
7333 +
7334 +exit 0
7335 +
7336 +# Local Variables:
7337 +# mode: shell-script
7338 +# sh-indentation: 2
7339 +# eval: (add-hook 'write-file-hooks 'time-stamp)
7340 +# time-stamp-start: "scriptversion="
7341 +# time-stamp-format: "%:y-%02m-%02d.%02H"
7342 +# time-stamp-time-zone: "UTC"
7343 +# time-stamp-end: "; # UTC"
7344 +# End:
7345 diff --git a/libltdl/config/install-sh b/libltdl/config/install-sh
7346 new file mode 100755
7347 index 0000000..6781b98
7348 --- /dev/null
7349 +++ b/libltdl/config/install-sh
7350 @@ -0,0 +1,520 @@
7351 +#!/bin/sh
7352 +# install - install a program, script, or datafile
7353 +
7354 +scriptversion=2009-04-28.21; # UTC
7355 +
7356 +# This originates from X11R5 (mit/util/scripts/install.sh), which was
7357 +# later released in X11R6 (xc/config/util/install.sh) with the
7358 +# following copyright and license.
7359 +#
7360 +# Copyright (C) 1994 X Consortium
7361 +#
7362 +# Permission is hereby granted, free of charge, to any person obtaining a copy
7363 +# of this software and associated documentation files (the "Software"), to
7364 +# deal in the Software without restriction, including without limitation the
7365 +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7366 +# sell copies of the Software, and to permit persons to whom the Software is
7367 +# furnished to do so, subject to the following conditions:
7368 +#
7369 +# The above copyright notice and this permission notice shall be included in
7370 +# all copies or substantial portions of the Software.
7371 +#
7372 +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
7373 +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
7374 +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
7375 +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
7376 +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
7377 +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7378 +#
7379 +# Except as contained in this notice, the name of the X Consortium shall not
7380 +# be used in advertising or otherwise to promote the sale, use or other deal-
7381 +# ings in this Software without prior written authorization from the X Consor-
7382 +# tium.
7383 +#
7384 +#
7385 +# FSF changes to this file are in the public domain.
7386 +#
7387 +# Calling this script install-sh is preferred over install.sh, to prevent
7388 +# `make' implicit rules from creating a file called install from it
7389 +# when there is no Makefile.
7390 +#
7391 +# This script is compatible with the BSD install script, but was written
7392 +# from scratch.
7393 +
7394 +nl='
7395 +'
7396 +IFS=" "" $nl"
7397 +
7398 +# set DOITPROG to echo to test this script
7399 +
7400 +# Don't use :- since 4.3BSD and earlier shells don't like it.
7401 +doit=${DOITPROG-}
7402 +if test -z "$doit"; then
7403 + doit_exec=exec
7404 +else
7405 + doit_exec=$doit
7406 +fi
7407 +
7408 +# Put in absolute file names if you don't have them in your path;
7409 +# or use environment vars.
7410 +
7411 +chgrpprog=${CHGRPPROG-chgrp}
7412 +chmodprog=${CHMODPROG-chmod}
7413 +chownprog=${CHOWNPROG-chown}
7414 +cmpprog=${CMPPROG-cmp}
7415 +cpprog=${CPPROG-cp}
7416 +mkdirprog=${MKDIRPROG-mkdir}
7417 +mvprog=${MVPROG-mv}
7418 +rmprog=${RMPROG-rm}
7419 +stripprog=${STRIPPROG-strip}
7420 +
7421 +posix_glob='?'
7422 +initialize_posix_glob='
7423 + test "$posix_glob" != "?" || {
7424 + if (set -f) 2>/dev/null; then
7425 + posix_glob=
7426 + else
7427 + posix_glob=:
7428 + fi
7429 + }
7430 +'
7431 +
7432 +posix_mkdir=
7433 +
7434 +# Desired mode of installed file.
7435 +mode=0755
7436 +
7437 +chgrpcmd=
7438 +chmodcmd=$chmodprog
7439 +chowncmd=
7440 +mvcmd=$mvprog
7441 +rmcmd="$rmprog -f"
7442 +stripcmd=
7443 +
7444 +src=
7445 +dst=
7446 +dir_arg=
7447 +dst_arg=
7448 +
7449 +copy_on_change=false
7450 +no_target_directory=
7451 +
7452 +usage="\
7453 +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
7454 + or: $0 [OPTION]... SRCFILES... DIRECTORY
7455 + or: $0 [OPTION]... -t DIRECTORY SRCFILES...
7456 + or: $0 [OPTION]... -d DIRECTORIES...
7457 +
7458 +In the 1st form, copy SRCFILE to DSTFILE.
7459 +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
7460 +In the 4th, create DIRECTORIES.
7461 +
7462 +Options:
7463 + --help display this help and exit.
7464 + --version display version info and exit.
7465 +
7466 + -c (ignored)
7467 + -C install only if different (preserve the last data modification time)
7468 + -d create directories instead of installing files.
7469 + -g GROUP $chgrpprog installed files to GROUP.
7470 + -m MODE $chmodprog installed files to MODE.
7471 + -o USER $chownprog installed files to USER.
7472 + -s $stripprog installed files.
7473 + -t DIRECTORY install into DIRECTORY.
7474 + -T report an error if DSTFILE is a directory.
7475 +
7476 +Environment variables override the default commands:
7477 + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
7478 + RMPROG STRIPPROG
7479 +"
7480 +
7481 +while test $# -ne 0; do
7482 + case $1 in
7483 + -c) ;;
7484 +
7485 + -C) copy_on_change=true;;
7486 +
7487 + -d) dir_arg=true;;
7488 +
7489 + -g) chgrpcmd="$chgrpprog $2"
7490 + shift;;
7491 +
7492 + --help) echo "$usage"; exit $?;;
7493 +
7494 + -m) mode=$2
7495 + case $mode in
7496 + *' '* | *' '* | *'
7497 +'* | *'*'* | *'?'* | *'['*)
7498 + echo "$0: invalid mode: $mode" >&2
7499 + exit 1;;
7500 + esac
7501 + shift;;
7502 +
7503 + -o) chowncmd="$chownprog $2"
7504 + shift;;
7505 +
7506 + -s) stripcmd=$stripprog;;
7507 +
7508 + -t) dst_arg=$2
7509 + shift;;
7510 +
7511 + -T) no_target_directory=true;;
7512 +
7513 + --version) echo "$0 $scriptversion"; exit $?;;
7514 +
7515 + --) shift
7516 + break;;
7517 +
7518 + -*) echo "$0: invalid option: $1" >&2
7519 + exit 1;;
7520 +
7521 + *) break;;
7522 + esac
7523 + shift
7524 +done
7525 +
7526 +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
7527 + # When -d is used, all remaining arguments are directories to create.
7528 + # When -t is used, the destination is already specified.
7529 + # Otherwise, the last argument is the destination. Remove it from $@.
7530 + for arg
7531 + do
7532 + if test -n "$dst_arg"; then
7533 + # $@ is not empty: it contains at least $arg.
7534 + set fnord "$@" "$dst_arg"
7535 + shift # fnord
7536 + fi
7537 + shift # arg
7538 + dst_arg=$arg
7539 + done
7540 +fi
7541 +
7542 +if test $# -eq 0; then
7543 + if test -z "$dir_arg"; then
7544 + echo "$0: no input file specified." >&2
7545 + exit 1
7546 + fi
7547 + # It's OK to call `install-sh -d' without argument.
7548 + # This can happen when creating conditional directories.
7549 + exit 0
7550 +fi
7551 +
7552 +if test -z "$dir_arg"; then
7553 + trap '(exit $?); exit' 1 2 13 15
7554 +
7555 + # Set umask so as not to create temps with too-generous modes.
7556 + # However, 'strip' requires both read and write access to temps.
7557 + case $mode in
7558 + # Optimize common cases.
7559 + *644) cp_umask=133;;
7560 + *755) cp_umask=22;;
7561 +
7562 + *[0-7])
7563 + if test -z "$stripcmd"; then
7564 + u_plus_rw=
7565 + else
7566 + u_plus_rw='% 200'
7567 + fi
7568 + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
7569 + *)
7570 + if test -z "$stripcmd"; then
7571 + u_plus_rw=
7572 + else
7573 + u_plus_rw=,u+rw
7574 + fi
7575 + cp_umask=$mode$u_plus_rw;;
7576 + esac
7577 +fi
7578 +
7579 +for src
7580 +do
7581 + # Protect names starting with `-'.
7582 + case $src in
7583 + -*) src=./$src;;
7584 + esac
7585 +
7586 + if test -n "$dir_arg"; then
7587 + dst=$src
7588 + dstdir=$dst
7589 + test -d "$dstdir"
7590 + dstdir_status=$?
7591 + else
7592 +
7593 + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
7594 + # might cause directories to be created, which would be especially bad
7595 + # if $src (and thus $dsttmp) contains '*'.
7596 + if test ! -f "$src" && test ! -d "$src"; then
7597 + echo "$0: $src does not exist." >&2
7598 + exit 1
7599 + fi
7600 +
7601 + if test -z "$dst_arg"; then
7602 + echo "$0: no destination specified." >&2
7603 + exit 1
7604 + fi
7605 +
7606 + dst=$dst_arg
7607 + # Protect names starting with `-'.
7608 + case $dst in
7609 + -*) dst=./$dst;;
7610 + esac
7611 +
7612 + # If destination is a directory, append the input filename; won't work
7613 + # if double slashes aren't ignored.
7614 + if test -d "$dst"; then
7615 + if test -n "$no_target_directory"; then
7616 + echo "$0: $dst_arg: Is a directory" >&2
7617 + exit 1
7618 + fi
7619 + dstdir=$dst
7620 + dst=$dstdir/`basename "$src"`
7621 + dstdir_status=0
7622 + else
7623 + # Prefer dirname, but fall back on a substitute if dirname fails.
7624 + dstdir=`
7625 + (dirname "$dst") 2>/dev/null ||
7626 + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7627 + X"$dst" : 'X\(//\)[^/]' \| \
7628 + X"$dst" : 'X\(//\)$' \| \
7629 + X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
7630 + echo X"$dst" |
7631 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7632 + s//\1/
7633 + q
7634 + }
7635 + /^X\(\/\/\)[^/].*/{
7636 + s//\1/
7637 + q
7638 + }
7639 + /^X\(\/\/\)$/{
7640 + s//\1/
7641 + q
7642 + }
7643 + /^X\(\/\).*/{
7644 + s//\1/
7645 + q
7646 + }
7647 + s/.*/./; q'
7648 + `
7649 +
7650 + test -d "$dstdir"
7651 + dstdir_status=$?
7652 + fi
7653 + fi
7654 +
7655 + obsolete_mkdir_used=false
7656 +
7657 + if test $dstdir_status != 0; then
7658 + case $posix_mkdir in
7659 + '')
7660 + # Create intermediate dirs using mode 755 as modified by the umask.
7661 + # This is like FreeBSD 'install' as of 1997-10-28.
7662 + umask=`umask`
7663 + case $stripcmd.$umask in
7664 + # Optimize common cases.
7665 + *[2367][2367]) mkdir_umask=$umask;;
7666 + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
7667 +
7668 + *[0-7])
7669 + mkdir_umask=`expr $umask + 22 \
7670 + - $umask % 100 % 40 + $umask % 20 \
7671 + - $umask % 10 % 4 + $umask % 2
7672 + `;;
7673 + *) mkdir_umask=$umask,go-w;;
7674 + esac
7675 +
7676 + # With -d, create the new directory with the user-specified mode.
7677 + # Otherwise, rely on $mkdir_umask.
7678 + if test -n "$dir_arg"; then
7679 + mkdir_mode=-m$mode
7680 + else
7681 + mkdir_mode=
7682 + fi
7683 +
7684 + posix_mkdir=false
7685 + case $umask in
7686 + *[123567][0-7][0-7])
7687 + # POSIX mkdir -p sets u+wx bits regardless of umask, which
7688 + # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
7689 + ;;
7690 + *)
7691 + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
7692 + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
7693 +
7694 + if (umask $mkdir_umask &&
7695 + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
7696 + then
7697 + if test -z "$dir_arg" || {
7698 + # Check for POSIX incompatibilities with -m.
7699 + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
7700 + # other-writeable bit of parent directory when it shouldn't.
7701 + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
7702 + ls_ld_tmpdir=`ls -ld "$tmpdir"`
7703 + case $ls_ld_tmpdir in
7704 + d????-?r-*) different_mode=700;;
7705 + d????-?--*) different_mode=755;;
7706 + *) false;;
7707 + esac &&
7708 + $mkdirprog -m$different_mode -p -- "$tmpdir" && {
7709 + ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
7710 + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
7711 + }
7712 + }
7713 + then posix_mkdir=:
7714 + fi
7715 + rmdir "$tmpdir/d" "$tmpdir"
7716 + else
7717 + # Remove any dirs left behind by ancient mkdir implementations.
7718 + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
7719 + fi
7720 + trap '' 0;;
7721 + esac;;
7722 + esac
7723 +
7724 + if
7725 + $posix_mkdir && (
7726 + umask $mkdir_umask &&
7727 + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
7728 + )
7729 + then :
7730 + else
7731 +
7732 + # The umask is ridiculous, or mkdir does not conform to POSIX,
7733 + # or it failed possibly due to a race condition. Create the
7734 + # directory the slow way, step by step, checking for races as we go.
7735 +
7736 + case $dstdir in
7737 + /*) prefix='/';;
7738 + -*) prefix='./';;
7739 + *) prefix='';;
7740 + esac
7741 +
7742 + eval "$initialize_posix_glob"
7743 +
7744 + oIFS=$IFS
7745 + IFS=/
7746 + $posix_glob set -f
7747 + set fnord $dstdir
7748 + shift
7749 + $posix_glob set +f
7750 + IFS=$oIFS
7751 +
7752 + prefixes=
7753 +
7754 + for d
7755 + do
7756 + test -z "$d" && continue
7757 +
7758 + prefix=$prefix$d
7759 + if test -d "$prefix"; then
7760 + prefixes=
7761 + else
7762 + if $posix_mkdir; then
7763 + (umask=$mkdir_umask &&
7764 + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
7765 + # Don't fail if two instances are running concurrently.
7766 + test -d "$prefix" || exit 1
7767 + else
7768 + case $prefix in
7769 + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
7770 + *) qprefix=$prefix;;
7771 + esac
7772 + prefixes="$prefixes '$qprefix'"
7773 + fi
7774 + fi
7775 + prefix=$prefix/
7776 + done
7777 +
7778 + if test -n "$prefixes"; then
7779 + # Don't fail if two instances are running concurrently.
7780 + (umask $mkdir_umask &&
7781 + eval "\$doit_exec \$mkdirprog $prefixes") ||
7782 + test -d "$dstdir" || exit 1
7783 + obsolete_mkdir_used=true
7784 + fi
7785 + fi
7786 + fi
7787 +
7788 + if test -n "$dir_arg"; then
7789 + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
7790 + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
7791 + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
7792 + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
7793 + else
7794 +
7795 + # Make a couple of temp file names in the proper directory.
7796 + dsttmp=$dstdir/_inst.$$_
7797 + rmtmp=$dstdir/_rm.$$_
7798 +
7799 + # Trap to clean up those temp files at exit.
7800 + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
7801 +
7802 + # Copy the file name to the temp name.
7803 + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
7804 +
7805 + # and set any options; do chmod last to preserve setuid bits.
7806 + #
7807 + # If any of these fail, we abort the whole thing. If we want to
7808 + # ignore errors from any of these, just make sure not to ignore
7809 + # errors from the above "$doit $cpprog $src $dsttmp" command.
7810 + #
7811 + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
7812 + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
7813 + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
7814 + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
7815 +
7816 + # If -C, don't bother to copy if it wouldn't change the file.
7817 + if $copy_on_change &&
7818 + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
7819 + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
7820 +
7821 + eval "$initialize_posix_glob" &&
7822 + $posix_glob set -f &&
7823 + set X $old && old=:$2:$4:$5:$6 &&
7824 + set X $new && new=:$2:$4:$5:$6 &&
7825 + $posix_glob set +f &&
7826 +
7827 + test "$old" = "$new" &&
7828 + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
7829 + then
7830 + rm -f "$dsttmp"
7831 + else
7832 + # Rename the file to the real destination.
7833 + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
7834 +
7835 + # The rename failed, perhaps because mv can't rename something else
7836 + # to itself, or perhaps because mv is so ancient that it does not
7837 + # support -f.
7838 + {
7839 + # Now remove or move aside any old file at destination location.
7840 + # We try this two ways since rm can't unlink itself on some
7841 + # systems and the destination file might be busy for other
7842 + # reasons. In this case, the final cleanup might fail but the new
7843 + # file should still install successfully.
7844 + {
7845 + test ! -f "$dst" ||
7846 + $doit $rmcmd -f "$dst" 2>/dev/null ||
7847 + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
7848 + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
7849 + } ||
7850 + { echo "$0: cannot unlink or rename $dst" >&2
7851 + (exit 1); exit 1
7852 + }
7853 + } &&
7854 +
7855 + # Now rename the file to the real destination.
7856 + $doit $mvcmd "$dsttmp" "$dst"
7857 + }
7858 + fi || exit 1
7859 +
7860 + trap '' 0
7861 + fi
7862 +done
7863 +
7864 +# Local variables:
7865 +# eval: (add-hook 'write-file-hooks 'time-stamp)
7866 +# time-stamp-start: "scriptversion="
7867 +# time-stamp-format: "%:y-%02m-%02d.%02H"
7868 +# time-stamp-time-zone: "UTC"
7869 +# time-stamp-end: "; # UTC"
7870 +# End:
7871 diff --git a/libltdl/config/ltmain.sh b/libltdl/config/ltmain.sh
7872 new file mode 100755
7873 index 0000000..a72f2fd
7874 --- /dev/null
7875 +++ b/libltdl/config/ltmain.sh
7876 @@ -0,0 +1,8406 @@
7877 +# Generated from ltmain.m4sh.
7878 +
7879 +# ltmain.sh (GNU libtool) 2.2.6b
7880 +# Written by Gordon Matzigkeit <[email protected]>, 1996
7881 +
7882 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
7883 +# This is free software; see the source for copying conditions. There is NO
7884 +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7885 +
7886 +# GNU Libtool is free software; you can redistribute it and/or modify
7887 +# it under the terms of the GNU General Public License as published by
7888 +# the Free Software Foundation; either version 2 of the License, or
7889 +# (at your option) any later version.
7890 +#
7891 +# As a special exception to the GNU General Public License,
7892 +# if you distribute this file as part of a program or library that
7893 +# is built using GNU Libtool, you may include this file under the
7894 +# same distribution terms that you use for the rest of that program.
7895 +#
7896 +# GNU Libtool is distributed in the hope that it will be useful, but
7897 +# WITHOUT ANY WARRANTY; without even the implied warranty of
7898 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7899 +# General Public License for more details.
7900 +#
7901 +# You should have received a copy of the GNU General Public License
7902 +# along with GNU Libtool; see the file COPYING. If not, a copy
7903 +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
7904 +# or obtained by writing to the Free Software Foundation, Inc.,
7905 +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
7906 +
7907 +# Usage: $progname [OPTION]... [MODE-ARG]...
7908 +#
7909 +# Provide generalized library-building support services.
7910 +#
7911 +# --config show all configuration variables
7912 +# --debug enable verbose shell tracing
7913 +# -n, --dry-run display commands without modifying any files
7914 +# --features display basic configuration information and exit
7915 +# --mode=MODE use operation mode MODE
7916 +# --preserve-dup-deps don't remove duplicate dependency libraries
7917 +# --quiet, --silent don't print informational messages
7918 +# --tag=TAG use configuration variables from tag TAG
7919 +# -v, --verbose print informational messages (default)
7920 +# --version print version information
7921 +# -h, --help print short or long help message
7922 +#
7923 +# MODE must be one of the following:
7924 +#
7925 +# clean remove files from the build directory
7926 +# compile compile a source file into a libtool object
7927 +# execute automatically set library path, then run a program
7928 +# finish complete the installation of libtool libraries
7929 +# install install libraries or executables
7930 +# link create a library or an executable
7931 +# uninstall remove libraries from an installed directory
7932 +#
7933 +# MODE-ARGS vary depending on the MODE.
7934 +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
7935 +#
7936 +# When reporting a bug, please describe a test case to reproduce it and
7937 +# include the following information:
7938 +#
7939 +# host-triplet: $host
7940 +# shell: $SHELL
7941 +# compiler: $LTCC
7942 +# compiler flags: $LTCFLAGS
7943 +# linker: $LD (gnu? $with_gnu_ld)
7944 +# $progname: (GNU libtool) 2.2.6b
7945 +# automake: $automake_version
7946 +# autoconf: $autoconf_version
7947 +#
7948 +# Report bugs to <[email protected]>.
7949 +
7950 +PROGRAM=ltmain.sh
7951 +PACKAGE=libtool
7952 +VERSION=2.2.6b
7953 +TIMESTAMP=""
7954 +package_revision=1.3017
7955 +
7956 +# Be Bourne compatible
7957 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7958 + emulate sh
7959 + NULLCMD=:
7960 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7961 + # is contrary to our usage. Disable this feature.
7962 + alias -g '${1+"$@"}'='"$@"'
7963 + setopt NO_GLOB_SUBST
7964 +else
7965 + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
7966 +fi
7967 +BIN_SH=xpg4; export BIN_SH # for Tru64
7968 +DUALCASE=1; export DUALCASE # for MKS sh
7969 +
7970 +# NLS nuisances: We save the old values to restore during execute mode.
7971 +# Only set LANG and LC_ALL to C if already set.
7972 +# These must not be set unconditionally because not all systems understand
7973 +# e.g. LANG=C (notably SCO).
7974 +lt_user_locale=
7975 +lt_safe_locale=
7976 +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
7977 +do
7978 + eval "if test \"\${$lt_var+set}\" = set; then
7979 + save_$lt_var=\$$lt_var
7980 + $lt_var=C
7981 + export $lt_var
7982 + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
7983 + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
7984 + fi"
7985 +done
7986 +
7987 +$lt_unset CDPATH
7988 +
7989 +
7990 +
7991 +
7992 +
7993 +: ${CP="cp -f"}
7994 +: ${ECHO="echo"}
7995 +: ${EGREP="/bin/grep -E"}
7996 +: ${FGREP="/bin/grep -F"}
7997 +: ${GREP="/bin/grep"}
7998 +: ${LN_S="ln -s"}
7999 +: ${MAKE="make"}
8000 +: ${MKDIR="mkdir"}
8001 +: ${MV="mv -f"}
8002 +: ${RM="rm -f"}
8003 +: ${SED="/bin/sed"}
8004 +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
8005 +: ${Xsed="$SED -e 1s/^X//"}
8006 +
8007 +# Global variables:
8008 +EXIT_SUCCESS=0
8009 +EXIT_FAILURE=1
8010 +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
8011 +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
8012 +
8013 +exit_status=$EXIT_SUCCESS
8014 +
8015 +# Make sure IFS has a sensible default
8016 +lt_nl='
8017 +'
8018 +IFS=" $lt_nl"
8019 +
8020 +dirname="s,/[^/]*$,,"
8021 +basename="s,^.*/,,"
8022 +
8023 +# func_dirname_and_basename file append nondir_replacement
8024 +# perform func_basename and func_dirname in a single function
8025 +# call:
8026 +# dirname: Compute the dirname of FILE. If nonempty,
8027 +# add APPEND to the result, otherwise set result
8028 +# to NONDIR_REPLACEMENT.
8029 +# value returned in "$func_dirname_result"
8030 +# basename: Compute filename of FILE.
8031 +# value retuned in "$func_basename_result"
8032 +# Implementation must be kept synchronized with func_dirname
8033 +# and func_basename. For efficiency, we do not delegate to
8034 +# those functions but instead duplicate the functionality here.
8035 +func_dirname_and_basename ()
8036 +{
8037 + # Extract subdirectory from the argument.
8038 + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8039 + if test "X$func_dirname_result" = "X${1}"; then
8040 + func_dirname_result="${3}"
8041 + else
8042 + func_dirname_result="$func_dirname_result${2}"
8043 + fi
8044 + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8045 +}
8046 +
8047 +# Generated shell functions inserted here.
8048 +
8049 +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
8050 +# is ksh but when the shell is invoked as "sh" and the current value of
8051 +# the _XPG environment variable is not equal to 1 (one), the special
8052 +# positional parameter $0, within a function call, is the name of the
8053 +# function.
8054 +progpath="$0"
8055 +
8056 +# The name of this program:
8057 +# In the unlikely event $progname began with a '-', it would play havoc with
8058 +# func_echo (imagine progname=-n), so we prepend ./ in that case:
8059 +func_dirname_and_basename "$progpath"
8060 +progname=$func_basename_result
8061 +case $progname in
8062 + -*) progname=./$progname ;;
8063 +esac
8064 +
8065 +# Make sure we have an absolute path for reexecution:
8066 +case $progpath in
8067 + [\\/]*|[A-Za-z]:\\*) ;;
8068 + *[\\/]*)
8069 + progdir=$func_dirname_result
8070 + progdir=`cd "$progdir" && pwd`
8071 + progpath="$progdir/$progname"
8072 + ;;
8073 + *)
8074 + save_IFS="$IFS"
8075 + IFS=:
8076 + for progdir in $PATH; do
8077 + IFS="$save_IFS"
8078 + test -x "$progdir/$progname" && break
8079 + done
8080 + IFS="$save_IFS"
8081 + test -n "$progdir" || progdir=`pwd`
8082 + progpath="$progdir/$progname"
8083 + ;;
8084 +esac
8085 +
8086 +# Sed substitution that helps us do robust quoting. It backslashifies
8087 +# metacharacters that are still active within double-quoted strings.
8088 +Xsed="${SED}"' -e 1s/^X//'
8089 +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
8090 +
8091 +# Same as above, but do not quote variable references.
8092 +double_quote_subst='s/\(["`\\]\)/\\\1/g'
8093 +
8094 +# Re-`\' parameter expansions in output of double_quote_subst that were
8095 +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
8096 +# in input to double_quote_subst, that '$' was protected from expansion.
8097 +# Since each input `\' is now two `\'s, look for any number of runs of
8098 +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
8099 +bs='\\'
8100 +bs2='\\\\'
8101 +bs4='\\\\\\\\'
8102 +dollar='\$'
8103 +sed_double_backslash="\
8104 + s/$bs4/&\\
8105 +/g
8106 + s/^$bs2$dollar/$bs&/
8107 + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
8108 + s/\n//g"
8109 +
8110 +# Standard options:
8111 +opt_dry_run=false
8112 +opt_help=false
8113 +opt_quiet=false
8114 +opt_verbose=false
8115 +opt_warning=:
8116 +
8117 +# func_echo arg...
8118 +# Echo program name prefixed message, along with the current mode
8119 +# name if it has been set yet.
8120 +func_echo ()
8121 +{
8122 + $ECHO "$progname${mode+: }$mode: $*"
8123 +}
8124 +
8125 +# func_verbose arg...
8126 +# Echo program name prefixed message in verbose mode only.
8127 +func_verbose ()
8128 +{
8129 + $opt_verbose && func_echo ${1+"$@"}
8130 +
8131 + # A bug in bash halts the script if the last line of a function
8132 + # fails when set -e is in force, so we need another command to
8133 + # work around that:
8134 + :
8135 +}
8136 +
8137 +# func_error arg...
8138 +# Echo program name prefixed message to standard error.
8139 +func_error ()
8140 +{
8141 + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
8142 +}
8143 +
8144 +# func_warning arg...
8145 +# Echo program name prefixed warning message to standard error.
8146 +func_warning ()
8147 +{
8148 + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
8149 +
8150 + # bash bug again:
8151 + :
8152 +}
8153 +
8154 +# func_fatal_error arg...
8155 +# Echo program name prefixed message to standard error, and exit.
8156 +func_fatal_error ()
8157 +{
8158 + func_error ${1+"$@"}
8159 + exit $EXIT_FAILURE
8160 +}
8161 +
8162 +# func_fatal_help arg...
8163 +# Echo program name prefixed message to standard error, followed by
8164 +# a help hint, and exit.
8165 +func_fatal_help ()
8166 +{
8167 + func_error ${1+"$@"}
8168 + func_fatal_error "$help"
8169 +}
8170 +help="Try \`$progname --help' for more information." ## default
8171 +
8172 +
8173 +# func_grep expression filename
8174 +# Check whether EXPRESSION matches any line of FILENAME, without output.
8175 +func_grep ()
8176 +{
8177 + $GREP "$1" "$2" >/dev/null 2>&1
8178 +}
8179 +
8180 +
8181 +# func_mkdir_p directory-path
8182 +# Make sure the entire path to DIRECTORY-PATH is available.
8183 +func_mkdir_p ()
8184 +{
8185 + my_directory_path="$1"
8186 + my_dir_list=
8187 +
8188 + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
8189 +
8190 + # Protect directory names starting with `-'
8191 + case $my_directory_path in
8192 + -*) my_directory_path="./$my_directory_path" ;;
8193 + esac
8194 +
8195 + # While some portion of DIR does not yet exist...
8196 + while test ! -d "$my_directory_path"; do
8197 + # ...make a list in topmost first order. Use a colon delimited
8198 + # list incase some portion of path contains whitespace.
8199 + my_dir_list="$my_directory_path:$my_dir_list"
8200 +
8201 + # If the last portion added has no slash in it, the list is done
8202 + case $my_directory_path in */*) ;; *) break ;; esac
8203 +
8204 + # ...otherwise throw away the child directory and loop
8205 + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
8206 + done
8207 + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
8208 +
8209 + save_mkdir_p_IFS="$IFS"; IFS=':'
8210 + for my_dir in $my_dir_list; do
8211 + IFS="$save_mkdir_p_IFS"
8212 + # mkdir can fail with a `File exist' error if two processes
8213 + # try to create one of the directories concurrently. Don't
8214 + # stop in that case!
8215 + $MKDIR "$my_dir" 2>/dev/null || :
8216 + done
8217 + IFS="$save_mkdir_p_IFS"
8218 +
8219 + # Bail out if we (or some other process) failed to create a directory.
8220 + test -d "$my_directory_path" || \
8221 + func_fatal_error "Failed to create \`$1'"
8222 + fi
8223 +}
8224 +
8225 +
8226 +# func_mktempdir [string]
8227 +# Make a temporary directory that won't clash with other running
8228 +# libtool processes, and avoids race conditions if possible. If
8229 +# given, STRING is the basename for that directory.
8230 +func_mktempdir ()
8231 +{
8232 + my_template="${TMPDIR-/tmp}/${1-$progname}"
8233 +
8234 + if test "$opt_dry_run" = ":"; then
8235 + # Return a directory name, but don't create it in dry-run mode
8236 + my_tmpdir="${my_template}-$$"
8237 + else
8238 +
8239 + # If mktemp works, use that first and foremost
8240 + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
8241 +
8242 + if test ! -d "$my_tmpdir"; then
8243 + # Failing that, at least try and use $RANDOM to avoid a race
8244 + my_tmpdir="${my_template}-${RANDOM-0}$$"
8245 +
8246 + save_mktempdir_umask=`umask`
8247 + umask 0077
8248 + $MKDIR "$my_tmpdir"
8249 + umask $save_mktempdir_umask
8250 + fi
8251 +
8252 + # If we're not in dry-run mode, bomb out on failure
8253 + test -d "$my_tmpdir" || \
8254 + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
8255 + fi
8256 +
8257 + $ECHO "X$my_tmpdir" | $Xsed
8258 +}
8259 +
8260 +
8261 +# func_quote_for_eval arg
8262 +# Aesthetically quote ARG to be evaled later.
8263 +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
8264 +# is double-quoted, suitable for a subsequent eval, whereas
8265 +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
8266 +# which are still active within double quotes backslashified.
8267 +func_quote_for_eval ()
8268 +{
8269 + case $1 in
8270 + *[\\\`\"\$]*)
8271 + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
8272 + *)
8273 + func_quote_for_eval_unquoted_result="$1" ;;
8274 + esac
8275 +
8276 + case $func_quote_for_eval_unquoted_result in
8277 + # Double-quote args containing shell metacharacters to delay
8278 + # word splitting, command substitution and and variable
8279 + # expansion for a subsequent eval.
8280 + # Many Bourne shells cannot handle close brackets correctly
8281 + # in scan sets, so we specify it separately.
8282 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
8283 + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
8284 + ;;
8285 + *)
8286 + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
8287 + esac
8288 +}
8289 +
8290 +
8291 +# func_quote_for_expand arg
8292 +# Aesthetically quote ARG to be evaled later; same as above,
8293 +# but do not quote variable references.
8294 +func_quote_for_expand ()
8295 +{
8296 + case $1 in
8297 + *[\\\`\"]*)
8298 + my_arg=`$ECHO "X$1" | $Xsed \
8299 + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
8300 + *)
8301 + my_arg="$1" ;;
8302 + esac
8303 +
8304 + case $my_arg in
8305 + # Double-quote args containing shell metacharacters to delay
8306 + # word splitting and command substitution for a subsequent eval.
8307 + # Many Bourne shells cannot handle close brackets correctly
8308 + # in scan sets, so we specify it separately.
8309 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
8310 + my_arg="\"$my_arg\""
8311 + ;;
8312 + esac
8313 +
8314 + func_quote_for_expand_result="$my_arg"
8315 +}
8316 +
8317 +
8318 +# func_show_eval cmd [fail_exp]
8319 +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
8320 +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
8321 +# is given, then evaluate it.
8322 +func_show_eval ()
8323 +{
8324 + my_cmd="$1"
8325 + my_fail_exp="${2-:}"
8326 +
8327 + ${opt_silent-false} || {
8328 + func_quote_for_expand "$my_cmd"
8329 + eval "func_echo $func_quote_for_expand_result"
8330 + }
8331 +
8332 + if ${opt_dry_run-false}; then :; else
8333 + eval "$my_cmd"
8334 + my_status=$?
8335 + if test "$my_status" -eq 0; then :; else
8336 + eval "(exit $my_status); $my_fail_exp"
8337 + fi
8338 + fi
8339 +}
8340 +
8341 +
8342 +# func_show_eval_locale cmd [fail_exp]
8343 +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
8344 +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
8345 +# is given, then evaluate it. Use the saved locale for evaluation.
8346 +func_show_eval_locale ()
8347 +{
8348 + my_cmd="$1"
8349 + my_fail_exp="${2-:}"
8350 +
8351 + ${opt_silent-false} || {
8352 + func_quote_for_expand "$my_cmd"
8353 + eval "func_echo $func_quote_for_expand_result"
8354 + }
8355 +
8356 + if ${opt_dry_run-false}; then :; else
8357 + eval "$lt_user_locale
8358 + $my_cmd"
8359 + my_status=$?
8360 + eval "$lt_safe_locale"
8361 + if test "$my_status" -eq 0; then :; else
8362 + eval "(exit $my_status); $my_fail_exp"
8363 + fi
8364 + fi
8365 +}
8366 +
8367 +
8368 +
8369 +
8370 +
8371 +# func_version
8372 +# Echo version message to standard output and exit.
8373 +func_version ()
8374 +{
8375 + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
8376 + s/^# //
8377 + s/^# *$//
8378 + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
8379 + p
8380 + }' < "$progpath"
8381 + exit $?
8382 +}
8383 +
8384 +# func_usage
8385 +# Echo short help message to standard output and exit.
8386 +func_usage ()
8387 +{
8388 + $SED -n '/^# Usage:/,/# -h/ {
8389 + s/^# //
8390 + s/^# *$//
8391 + s/\$progname/'$progname'/
8392 + p
8393 + }' < "$progpath"
8394 + $ECHO
8395 + $ECHO "run \`$progname --help | more' for full usage"
8396 + exit $?
8397 +}
8398 +
8399 +# func_help
8400 +# Echo long help message to standard output and exit.
8401 +func_help ()
8402 +{
8403 + $SED -n '/^# Usage:/,/# Report bugs to/ {
8404 + s/^# //
8405 + s/^# *$//
8406 + s*\$progname*'$progname'*
8407 + s*\$host*'"$host"'*
8408 + s*\$SHELL*'"$SHELL"'*
8409 + s*\$LTCC*'"$LTCC"'*
8410 + s*\$LTCFLAGS*'"$LTCFLAGS"'*
8411 + s*\$LD*'"$LD"'*
8412 + s/\$with_gnu_ld/'"$with_gnu_ld"'/
8413 + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
8414 + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
8415 + p
8416 + }' < "$progpath"
8417 + exit $?
8418 +}
8419 +
8420 +# func_missing_arg argname
8421 +# Echo program name prefixed message to standard error and set global
8422 +# exit_cmd.
8423 +func_missing_arg ()
8424 +{
8425 + func_error "missing argument for $1"
8426 + exit_cmd=exit
8427 +}
8428 +
8429 +exit_cmd=:
8430 +
8431 +
8432 +
8433 +
8434 +
8435 +# Check that we have a working $ECHO.
8436 +if test "X$1" = X--no-reexec; then
8437 + # Discard the --no-reexec flag, and continue.
8438 + shift
8439 +elif test "X$1" = X--fallback-echo; then
8440 + # Avoid inline document here, it may be left over
8441 + :
8442 +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
8443 + # Yippee, $ECHO works!
8444 + :
8445 +else
8446 + # Restart under the correct shell, and then maybe $ECHO will work.
8447 + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
8448 +fi
8449 +
8450 +if test "X$1" = X--fallback-echo; then
8451 + # used as fallback echo
8452 + shift
8453 + cat <<EOF
8454 +$*
8455 +EOF
8456 + exit $EXIT_SUCCESS
8457 +fi
8458 +
8459 +magic="%%%MAGIC variable%%%"
8460 +magic_exe="%%%MAGIC EXE variable%%%"
8461 +
8462 +# Global variables.
8463 +# $mode is unset
8464 +nonopt=
8465 +execute_dlfiles=
8466 +preserve_args=
8467 +lo2o="s/\\.lo\$/.${objext}/"
8468 +o2lo="s/\\.${objext}\$/.lo/"
8469 +extracted_archives=
8470 +extracted_serial=0
8471 +
8472 +opt_dry_run=false
8473 +opt_duplicate_deps=false
8474 +opt_silent=false
8475 +opt_debug=:
8476 +
8477 +# If this variable is set in any of the actions, the command in it
8478 +# will be execed at the end. This prevents here-documents from being
8479 +# left over by shells.
8480 +exec_cmd=
8481 +
8482 +# func_fatal_configuration arg...
8483 +# Echo program name prefixed message to standard error, followed by
8484 +# a configuration failure hint, and exit.
8485 +func_fatal_configuration ()
8486 +{
8487 + func_error ${1+"$@"}
8488 + func_error "See the $PACKAGE documentation for more information."
8489 + func_fatal_error "Fatal configuration error."
8490 +}
8491 +
8492 +
8493 +# func_config
8494 +# Display the configuration for all the tags in this script.
8495 +func_config ()
8496 +{
8497 + re_begincf='^# ### BEGIN LIBTOOL'
8498 + re_endcf='^# ### END LIBTOOL'
8499 +
8500 + # Default configuration.
8501 + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
8502 +
8503 + # Now print the configurations for the tags.
8504 + for tagname in $taglist; do
8505 + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
8506 + done
8507 +
8508 + exit $?
8509 +}
8510 +
8511 +# func_features
8512 +# Display the features supported by this script.
8513 +func_features ()
8514 +{
8515 + $ECHO "host: $host"
8516 + if test "$build_libtool_libs" = yes; then
8517 + $ECHO "enable shared libraries"
8518 + else
8519 + $ECHO "disable shared libraries"
8520 + fi
8521 + if test "$build_old_libs" = yes; then
8522 + $ECHO "enable static libraries"
8523 + else
8524 + $ECHO "disable static libraries"
8525 + fi
8526 +
8527 + exit $?
8528 +}
8529 +
8530 +# func_enable_tag tagname
8531 +# Verify that TAGNAME is valid, and either flag an error and exit, or
8532 +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
8533 +# variable here.
8534 +func_enable_tag ()
8535 +{
8536 + # Global variable:
8537 + tagname="$1"
8538 +
8539 + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
8540 + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
8541 + sed_extractcf="/$re_begincf/,/$re_endcf/p"
8542 +
8543 + # Validate tagname.
8544 + case $tagname in
8545 + *[!-_A-Za-z0-9,/]*)
8546 + func_fatal_error "invalid tag name: $tagname"
8547 + ;;
8548 + esac
8549 +
8550 + # Don't test for the "default" C tag, as we know it's
8551 + # there but not specially marked.
8552 + case $tagname in
8553 + CC) ;;
8554 + *)
8555 + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
8556 + taglist="$taglist $tagname"
8557 +
8558 + # Evaluate the configuration. Be careful to quote the path
8559 + # and the sed script, to avoid splitting on whitespace, but
8560 + # also don't use non-portable quotes within backquotes within
8561 + # quotes we have to do it in 2 steps:
8562 + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
8563 + eval "$extractedcf"
8564 + else
8565 + func_error "ignoring unknown tag $tagname"
8566 + fi
8567 + ;;
8568 + esac
8569 +}
8570 +
8571 +# Parse options once, thoroughly. This comes as soon as possible in
8572 +# the script to make things like `libtool --version' happen quickly.
8573 +{
8574 +
8575 + # Shorthand for --mode=foo, only valid as the first argument
8576 + case $1 in
8577 + clean|clea|cle|cl)
8578 + shift; set dummy --mode clean ${1+"$@"}; shift
8579 + ;;
8580 + compile|compil|compi|comp|com|co|c)
8581 + shift; set dummy --mode compile ${1+"$@"}; shift
8582 + ;;
8583 + execute|execut|execu|exec|exe|ex|e)
8584 + shift; set dummy --mode execute ${1+"$@"}; shift
8585 + ;;
8586 + finish|finis|fini|fin|fi|f)
8587 + shift; set dummy --mode finish ${1+"$@"}; shift
8588 + ;;
8589 + install|instal|insta|inst|ins|in|i)
8590 + shift; set dummy --mode install ${1+"$@"}; shift
8591 + ;;
8592 + link|lin|li|l)
8593 + shift; set dummy --mode link ${1+"$@"}; shift
8594 + ;;
8595 + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
8596 + shift; set dummy --mode uninstall ${1+"$@"}; shift
8597 + ;;
8598 + esac
8599 +
8600 + # Parse non-mode specific arguments:
8601 + while test "$#" -gt 0; do
8602 + opt="$1"
8603 + shift
8604 +
8605 + case $opt in
8606 + --config) func_config ;;
8607 +
8608 + --debug) preserve_args="$preserve_args $opt"
8609 + func_echo "enabling shell trace mode"
8610 + opt_debug='set -x'
8611 + $opt_debug
8612 + ;;
8613 +
8614 + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
8615 + execute_dlfiles="$execute_dlfiles $1"
8616 + shift
8617 + ;;
8618 +
8619 + --dry-run | -n) opt_dry_run=: ;;
8620 + --features) func_features ;;
8621 + --finish) mode="finish" ;;
8622 +
8623 + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
8624 + case $1 in
8625 + # Valid mode arguments:
8626 + clean) ;;
8627 + compile) ;;
8628 + execute) ;;
8629 + finish) ;;
8630 + install) ;;
8631 + link) ;;
8632 + relink) ;;
8633 + uninstall) ;;
8634 +
8635 + # Catch anything else as an error
8636 + *) func_error "invalid argument for $opt"
8637 + exit_cmd=exit
8638 + break
8639 + ;;
8640 + esac
8641 +
8642 + mode="$1"
8643 + shift
8644 + ;;
8645 +
8646 + --preserve-dup-deps)
8647 + opt_duplicate_deps=: ;;
8648 +
8649 + --quiet|--silent) preserve_args="$preserve_args $opt"
8650 + opt_silent=:
8651 + ;;
8652 +
8653 + --verbose| -v) preserve_args="$preserve_args $opt"
8654 + opt_silent=false
8655 + ;;
8656 +
8657 + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
8658 + preserve_args="$preserve_args $opt $1"
8659 + func_enable_tag "$1" # tagname is set here
8660 + shift
8661 + ;;
8662 +
8663 + # Separate optargs to long options:
8664 + -dlopen=*|--mode=*|--tag=*)
8665 + func_opt_split "$opt"
8666 + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
8667 + shift
8668 + ;;
8669 +
8670 + -\?|-h) func_usage ;;
8671 + --help) opt_help=: ;;
8672 + --version) func_version ;;
8673 +
8674 + -*) func_fatal_help "unrecognized option \`$opt'" ;;
8675 +
8676 + *) nonopt="$opt"
8677 + break
8678 + ;;
8679 + esac
8680 + done
8681 +
8682 +
8683 + case $host in
8684 + *cygwin* | *mingw* | *pw32* | *cegcc*)
8685 + # don't eliminate duplications in $postdeps and $predeps
8686 + opt_duplicate_compiler_generated_deps=:
8687 + ;;
8688 + *)
8689 + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
8690 + ;;
8691 + esac
8692 +
8693 + # Having warned about all mis-specified options, bail out if
8694 + # anything was wrong.
8695 + $exit_cmd $EXIT_FAILURE
8696 +}
8697 +
8698 +# func_check_version_match
8699 +# Ensure that we are using m4 macros, and libtool script from the same
8700 +# release of libtool.
8701 +func_check_version_match ()
8702 +{
8703 + if test "$package_revision" != "$macro_revision"; then
8704 + if test "$VERSION" != "$macro_version"; then
8705 + if test -z "$macro_version"; then
8706 + cat >&2 <<_LT_EOF
8707 +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
8708 +$progname: definition of this LT_INIT comes from an older release.
8709 +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
8710 +$progname: and run autoconf again.
8711 +_LT_EOF
8712 + else
8713 + cat >&2 <<_LT_EOF
8714 +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
8715 +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
8716 +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
8717 +$progname: and run autoconf again.
8718 +_LT_EOF
8719 + fi
8720 + else
8721 + cat >&2 <<_LT_EOF
8722 +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
8723 +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
8724 +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
8725 +$progname: of $PACKAGE $VERSION and run autoconf again.
8726 +_LT_EOF
8727 + fi
8728 +
8729 + exit $EXIT_MISMATCH
8730 + fi
8731 +}
8732 +
8733 +
8734 +## ----------- ##
8735 +## Main. ##
8736 +## ----------- ##
8737 +
8738 +$opt_help || {
8739 + # Sanity checks first:
8740 + func_check_version_match
8741 +
8742 + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
8743 + func_fatal_configuration "not configured to build any kind of library"
8744 + fi
8745 +
8746 + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
8747 +
8748 +
8749 + # Darwin sucks
8750 + eval std_shrext=\"$shrext_cmds\"
8751 +
8752 +
8753 + # Only execute mode is allowed to have -dlopen flags.
8754 + if test -n "$execute_dlfiles" && test "$mode" != execute; then
8755 + func_error "unrecognized option \`-dlopen'"
8756 + $ECHO "$help" 1>&2
8757 + exit $EXIT_FAILURE
8758 + fi
8759 +
8760 + # Change the help message to a mode-specific one.
8761 + generic_help="$help"
8762 + help="Try \`$progname --help --mode=$mode' for more information."
8763 +}
8764 +
8765 +
8766 +# func_lalib_p file
8767 +# True iff FILE is a libtool `.la' library or `.lo' object file.
8768 +# This function is only a basic sanity check; it will hardly flush out
8769 +# determined imposters.
8770 +func_lalib_p ()
8771 +{
8772 + test -f "$1" &&
8773 + $SED -e 4q "$1" 2>/dev/null \
8774 + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
8775 +}
8776 +
8777 +# func_lalib_unsafe_p file
8778 +# True iff FILE is a libtool `.la' library or `.lo' object file.
8779 +# This function implements the same check as func_lalib_p without
8780 +# resorting to external programs. To this end, it redirects stdin and
8781 +# closes it afterwards, without saving the original file descriptor.
8782 +# As a safety measure, use it only where a negative result would be
8783 +# fatal anyway. Works if `file' does not exist.
8784 +func_lalib_unsafe_p ()
8785 +{
8786 + lalib_p=no
8787 + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
8788 + for lalib_p_l in 1 2 3 4
8789 + do
8790 + read lalib_p_line
8791 + case "$lalib_p_line" in
8792 + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
8793 + esac
8794 + done
8795 + exec 0<&5 5<&-
8796 + fi
8797 + test "$lalib_p" = yes
8798 +}
8799 +
8800 +# func_ltwrapper_script_p file
8801 +# True iff FILE is a libtool wrapper script
8802 +# This function is only a basic sanity check; it will hardly flush out
8803 +# determined imposters.
8804 +func_ltwrapper_script_p ()
8805 +{
8806 + func_lalib_p "$1"
8807 +}
8808 +
8809 +# func_ltwrapper_executable_p file
8810 +# True iff FILE is a libtool wrapper executable
8811 +# This function is only a basic sanity check; it will hardly flush out
8812 +# determined imposters.
8813 +func_ltwrapper_executable_p ()
8814 +{
8815 + func_ltwrapper_exec_suffix=
8816 + case $1 in
8817 + *.exe) ;;
8818 + *) func_ltwrapper_exec_suffix=.exe ;;
8819 + esac
8820 + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
8821 +}
8822 +
8823 +# func_ltwrapper_scriptname file
8824 +# Assumes file is an ltwrapper_executable
8825 +# uses $file to determine the appropriate filename for a
8826 +# temporary ltwrapper_script.
8827 +func_ltwrapper_scriptname ()
8828 +{
8829 + func_ltwrapper_scriptname_result=""
8830 + if func_ltwrapper_executable_p "$1"; then
8831 + func_dirname_and_basename "$1" "" "."
8832 + func_stripname '' '.exe' "$func_basename_result"
8833 + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
8834 + fi
8835 +}
8836 +
8837 +# func_ltwrapper_p file
8838 +# True iff FILE is a libtool wrapper script or wrapper executable
8839 +# This function is only a basic sanity check; it will hardly flush out
8840 +# determined imposters.
8841 +func_ltwrapper_p ()
8842 +{
8843 + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
8844 +}
8845 +
8846 +
8847 +# func_execute_cmds commands fail_cmd
8848 +# Execute tilde-delimited COMMANDS.
8849 +# If FAIL_CMD is given, eval that upon failure.
8850 +# FAIL_CMD may read-access the current command in variable CMD!
8851 +func_execute_cmds ()
8852 +{
8853 + $opt_debug
8854 + save_ifs=$IFS; IFS='~'
8855 + for cmd in $1; do
8856 + IFS=$save_ifs
8857 + eval cmd=\"$cmd\"
8858 + func_show_eval "$cmd" "${2-:}"
8859 + done
8860 + IFS=$save_ifs
8861 +}
8862 +
8863 +
8864 +# func_source file
8865 +# Source FILE, adding directory component if necessary.
8866 +# Note that it is not necessary on cygwin/mingw to append a dot to
8867 +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
8868 +# behavior happens only for exec(3), not for open(2)! Also, sourcing
8869 +# `FILE.' does not work on cygwin managed mounts.
8870 +func_source ()
8871 +{
8872 + $opt_debug
8873 + case $1 in
8874 + */* | *\\*) . "$1" ;;
8875 + *) . "./$1" ;;
8876 + esac
8877 +}
8878 +
8879 +
8880 +# func_infer_tag arg
8881 +# Infer tagged configuration to use if any are available and
8882 +# if one wasn't chosen via the "--tag" command line option.
8883 +# Only attempt this if the compiler in the base compile
8884 +# command doesn't match the default compiler.
8885 +# arg is usually of the form 'gcc ...'
8886 +func_infer_tag ()
8887 +{
8888 + $opt_debug
8889 + if test -n "$available_tags" && test -z "$tagname"; then
8890 + CC_quoted=
8891 + for arg in $CC; do
8892 + func_quote_for_eval "$arg"
8893 + CC_quoted="$CC_quoted $func_quote_for_eval_result"
8894 + done
8895 + case $@ in
8896 + # Blanks in the command may have been stripped by the calling shell,
8897 + # but not from the CC environment variable when configure was run.
8898 + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
8899 + # Blanks at the start of $base_compile will cause this to fail
8900 + # if we don't check for them as well.
8901 + *)
8902 + for z in $available_tags; do
8903 + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
8904 + # Evaluate the configuration.
8905 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
8906 + CC_quoted=
8907 + for arg in $CC; do
8908 + # Double-quote args containing other shell metacharacters.
8909 + func_quote_for_eval "$arg"
8910 + CC_quoted="$CC_quoted $func_quote_for_eval_result"
8911 + done
8912 + case "$@ " in
8913 + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
8914 + # The compiler in the base compile command matches
8915 + # the one in the tagged configuration.
8916 + # Assume this is the tagged configuration we want.
8917 + tagname=$z
8918 + break
8919 + ;;
8920 + esac
8921 + fi
8922 + done
8923 + # If $tagname still isn't set, then no tagged configuration
8924 + # was found and let the user know that the "--tag" command
8925 + # line option must be used.
8926 + if test -z "$tagname"; then
8927 + func_echo "unable to infer tagged configuration"
8928 + func_fatal_error "specify a tag with \`--tag'"
8929 +# else
8930 +# func_verbose "using $tagname tagged configuration"
8931 + fi
8932 + ;;
8933 + esac
8934 + fi
8935 +}
8936 +
8937 +
8938 +
8939 +# func_write_libtool_object output_name pic_name nonpic_name
8940 +# Create a libtool object file (analogous to a ".la" file),
8941 +# but don't create it if we're doing a dry run.
8942 +func_write_libtool_object ()
8943 +{
8944 + write_libobj=${1}
8945 + if test "$build_libtool_libs" = yes; then
8946 + write_lobj=\'${2}\'
8947 + else
8948 + write_lobj=none
8949 + fi
8950 +
8951 + if test "$build_old_libs" = yes; then
8952 + write_oldobj=\'${3}\'
8953 + else
8954 + write_oldobj=none
8955 + fi
8956 +
8957 + $opt_dry_run || {
8958 + cat >${write_libobj}T <<EOF
8959 +# $write_libobj - a libtool object file
8960 +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
8961 +#
8962 +# Please DO NOT delete this file!
8963 +# It is necessary for linking the library.
8964 +
8965 +# Name of the PIC object.
8966 +pic_object=$write_lobj
8967 +
8968 +# Name of the non-PIC object
8969 +non_pic_object=$write_oldobj
8970 +
8971 +EOF
8972 + $MV "${write_libobj}T" "${write_libobj}"
8973 + }
8974 +}
8975 +
8976 +# func_mode_compile arg...
8977 +func_mode_compile ()
8978 +{
8979 + $opt_debug
8980 + # Get the compilation command and the source file.
8981 + base_compile=
8982 + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
8983 + suppress_opt=yes
8984 + suppress_output=
8985 + arg_mode=normal
8986 + libobj=
8987 + later=
8988 + pie_flag=
8989 +
8990 + for arg
8991 + do
8992 + case $arg_mode in
8993 + arg )
8994 + # do not "continue". Instead, add this to base_compile
8995 + lastarg="$arg"
8996 + arg_mode=normal
8997 + ;;
8998 +
8999 + target )
9000 + libobj="$arg"
9001 + arg_mode=normal
9002 + continue
9003 + ;;
9004 +
9005 + normal )
9006 + # Accept any command-line options.
9007 + case $arg in
9008 + -o)
9009 + test -n "$libobj" && \
9010 + func_fatal_error "you cannot specify \`-o' more than once"
9011 + arg_mode=target
9012 + continue
9013 + ;;
9014 +
9015 + -pie | -fpie | -fPIE)
9016 + pie_flag="$pie_flag $arg"
9017 + continue
9018 + ;;
9019 +
9020 + -shared | -static | -prefer-pic | -prefer-non-pic)
9021 + later="$later $arg"
9022 + continue
9023 + ;;
9024 +
9025 + -no-suppress)
9026 + suppress_opt=no
9027 + continue
9028 + ;;
9029 +
9030 + -Xcompiler)
9031 + arg_mode=arg # the next one goes into the "base_compile" arg list
9032 + continue # The current "srcfile" will either be retained or
9033 + ;; # replaced later. I would guess that would be a bug.
9034 +
9035 + -Wc,*)
9036 + func_stripname '-Wc,' '' "$arg"
9037 + args=$func_stripname_result
9038 + lastarg=
9039 + save_ifs="$IFS"; IFS=','
9040 + for arg in $args; do
9041 + IFS="$save_ifs"
9042 + func_quote_for_eval "$arg"
9043 + lastarg="$lastarg $func_quote_for_eval_result"
9044 + done
9045 + IFS="$save_ifs"
9046 + func_stripname ' ' '' "$lastarg"
9047 + lastarg=$func_stripname_result
9048 +
9049 + # Add the arguments to base_compile.
9050 + base_compile="$base_compile $lastarg"
9051 + continue
9052 + ;;
9053 +
9054 + *)
9055 + # Accept the current argument as the source file.
9056 + # The previous "srcfile" becomes the current argument.
9057 + #
9058 + lastarg="$srcfile"
9059 + srcfile="$arg"
9060 + ;;
9061 + esac # case $arg
9062 + ;;
9063 + esac # case $arg_mode
9064 +
9065 + # Aesthetically quote the previous argument.
9066 + func_quote_for_eval "$lastarg"
9067 + base_compile="$base_compile $func_quote_for_eval_result"
9068 + done # for arg
9069 +
9070 + case $arg_mode in
9071 + arg)
9072 + func_fatal_error "you must specify an argument for -Xcompile"
9073 + ;;
9074 + target)
9075 + func_fatal_error "you must specify a target with \`-o'"
9076 + ;;
9077 + *)
9078 + # Get the name of the library object.
9079 + test -z "$libobj" && {
9080 + func_basename "$srcfile"
9081 + libobj="$func_basename_result"
9082 + }
9083 + ;;
9084 + esac
9085 +
9086 + # Recognize several different file suffixes.
9087 + # If the user specifies -o file.o, it is replaced with file.lo
9088 + case $libobj in
9089 + *.[cCFSifmso] | \
9090 + *.ada | *.adb | *.ads | *.asm | \
9091 + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
9092 + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
9093 + func_xform "$libobj"
9094 + libobj=$func_xform_result
9095 + ;;
9096 + esac
9097 +
9098 + case $libobj in
9099 + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
9100 + *)
9101 + func_fatal_error "cannot determine name of library object from \`$libobj'"
9102 + ;;
9103 + esac
9104 +
9105 + func_infer_tag $base_compile
9106 +
9107 + for arg in $later; do
9108 + case $arg in
9109 + -shared)
9110 + test "$build_libtool_libs" != yes && \
9111 + func_fatal_configuration "can not build a shared library"
9112 + build_old_libs=no
9113 + continue
9114 + ;;
9115 +
9116 + -static)
9117 + build_libtool_libs=no
9118 + build_old_libs=yes
9119 + continue
9120 + ;;
9121 +
9122 + -prefer-pic)
9123 + pic_mode=yes
9124 + continue
9125 + ;;
9126 +
9127 + -prefer-non-pic)
9128 + pic_mode=no
9129 + continue
9130 + ;;
9131 + esac
9132 + done
9133 +
9134 + func_quote_for_eval "$libobj"
9135 + test "X$libobj" != "X$func_quote_for_eval_result" \
9136 + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
9137 + && func_warning "libobj name \`$libobj' may not contain shell special characters."
9138 + func_dirname_and_basename "$obj" "/" ""
9139 + objname="$func_basename_result"
9140 + xdir="$func_dirname_result"
9141 + lobj=${xdir}$objdir/$objname
9142 +
9143 + test -z "$base_compile" && \
9144 + func_fatal_help "you must specify a compilation command"
9145 +
9146 + # Delete any leftover library objects.
9147 + if test "$build_old_libs" = yes; then
9148 + removelist="$obj $lobj $libobj ${libobj}T"
9149 + else
9150 + removelist="$lobj $libobj ${libobj}T"
9151 + fi
9152 +
9153 + # On Cygwin there's no "real" PIC flag so we must build both object types
9154 + case $host_os in
9155 + cygwin* | mingw* | pw32* | os2* | cegcc*)
9156 + pic_mode=default
9157 + ;;
9158 + esac
9159 + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
9160 + # non-PIC code in shared libraries is not supported
9161 + pic_mode=default
9162 + fi
9163 +
9164 + # Calculate the filename of the output object if compiler does
9165 + # not support -o with -c
9166 + if test "$compiler_c_o" = no; then
9167 + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
9168 + lockfile="$output_obj.lock"
9169 + else
9170 + output_obj=
9171 + need_locks=no
9172 + lockfile=
9173 + fi
9174 +
9175 + # Lock this critical section if it is needed
9176 + # We use this script file to make the link, it avoids creating a new file
9177 + if test "$need_locks" = yes; then
9178 + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
9179 + func_echo "Waiting for $lockfile to be removed"
9180 + sleep 2
9181 + done
9182 + elif test "$need_locks" = warn; then
9183 + if test -f "$lockfile"; then
9184 + $ECHO "\
9185 +*** ERROR, $lockfile exists and contains:
9186 +`cat $lockfile 2>/dev/null`
9187 +
9188 +This indicates that another process is trying to use the same
9189 +temporary object file, and libtool could not work around it because
9190 +your compiler does not support \`-c' and \`-o' together. If you
9191 +repeat this compilation, it may succeed, by chance, but you had better
9192 +avoid parallel builds (make -j) in this platform, or get a better
9193 +compiler."
9194 +
9195 + $opt_dry_run || $RM $removelist
9196 + exit $EXIT_FAILURE
9197 + fi
9198 + removelist="$removelist $output_obj"
9199 + $ECHO "$srcfile" > "$lockfile"
9200 + fi
9201 +
9202 + $opt_dry_run || $RM $removelist
9203 + removelist="$removelist $lockfile"
9204 + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
9205 +
9206 + if test -n "$fix_srcfile_path"; then
9207 + eval srcfile=\"$fix_srcfile_path\"
9208 + fi
9209 + func_quote_for_eval "$srcfile"
9210 + qsrcfile=$func_quote_for_eval_result
9211 +
9212 + # Only build a PIC object if we are building libtool libraries.
9213 + if test "$build_libtool_libs" = yes; then
9214 + # Without this assignment, base_compile gets emptied.
9215 + fbsd_hideous_sh_bug=$base_compile
9216 +
9217 + if test "$pic_mode" != no; then
9218 + command="$base_compile $qsrcfile $pic_flag"
9219 + else
9220 + # Don't build PIC code
9221 + command="$base_compile $qsrcfile"
9222 + fi
9223 +
9224 + func_mkdir_p "$xdir$objdir"
9225 +
9226 + if test -z "$output_obj"; then
9227 + # Place PIC objects in $objdir
9228 + command="$command -o $lobj"
9229 + fi
9230 +
9231 + func_show_eval_locale "$command" \
9232 + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
9233 +
9234 + if test "$need_locks" = warn &&
9235 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
9236 + $ECHO "\
9237 +*** ERROR, $lockfile contains:
9238 +`cat $lockfile 2>/dev/null`
9239 +
9240 +but it should contain:
9241 +$srcfile
9242 +
9243 +This indicates that another process is trying to use the same
9244 +temporary object file, and libtool could not work around it because
9245 +your compiler does not support \`-c' and \`-o' together. If you
9246 +repeat this compilation, it may succeed, by chance, but you had better
9247 +avoid parallel builds (make -j) in this platform, or get a better
9248 +compiler."
9249 +
9250 + $opt_dry_run || $RM $removelist
9251 + exit $EXIT_FAILURE
9252 + fi
9253 +
9254 + # Just move the object if needed, then go on to compile the next one
9255 + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
9256 + func_show_eval '$MV "$output_obj" "$lobj"' \
9257 + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
9258 + fi
9259 +
9260 + # Allow error messages only from the first compilation.
9261 + if test "$suppress_opt" = yes; then
9262 + suppress_output=' >/dev/null 2>&1'
9263 + fi
9264 + fi
9265 +
9266 + # Only build a position-dependent object if we build old libraries.
9267 + if test "$build_old_libs" = yes; then
9268 + if test "$pic_mode" != yes; then
9269 + # Don't build PIC code
9270 + command="$base_compile $qsrcfile$pie_flag"
9271 + else
9272 + command="$base_compile $qsrcfile $pic_flag"
9273 + fi
9274 + if test "$compiler_c_o" = yes; then
9275 + command="$command -o $obj"
9276 + fi
9277 +
9278 + # Suppress compiler output if we already did a PIC compilation.
9279 + command="$command$suppress_output"
9280 + func_show_eval_locale "$command" \
9281 + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
9282 +
9283 + if test "$need_locks" = warn &&
9284 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
9285 + $ECHO "\
9286 +*** ERROR, $lockfile contains:
9287 +`cat $lockfile 2>/dev/null`
9288 +
9289 +but it should contain:
9290 +$srcfile
9291 +
9292 +This indicates that another process is trying to use the same
9293 +temporary object file, and libtool could not work around it because
9294 +your compiler does not support \`-c' and \`-o' together. If you
9295 +repeat this compilation, it may succeed, by chance, but you had better
9296 +avoid parallel builds (make -j) in this platform, or get a better
9297 +compiler."
9298 +
9299 + $opt_dry_run || $RM $removelist
9300 + exit $EXIT_FAILURE
9301 + fi
9302 +
9303 + # Just move the object if needed
9304 + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
9305 + func_show_eval '$MV "$output_obj" "$obj"' \
9306 + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
9307 + fi
9308 + fi
9309 +
9310 + $opt_dry_run || {
9311 + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
9312 +
9313 + # Unlock the critical section if it was locked
9314 + if test "$need_locks" != no; then
9315 + removelist=$lockfile
9316 + $RM "$lockfile"
9317 + fi
9318 + }
9319 +
9320 + exit $EXIT_SUCCESS
9321 +}
9322 +
9323 +$opt_help || {
9324 +test "$mode" = compile && func_mode_compile ${1+"$@"}
9325 +}
9326 +
9327 +func_mode_help ()
9328 +{
9329 + # We need to display help for each of the modes.
9330 + case $mode in
9331 + "")
9332 + # Generic help is extracted from the usage comments
9333 + # at the start of this file.
9334 + func_help
9335 + ;;
9336 +
9337 + clean)
9338 + $ECHO \
9339 +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
9340 +
9341 +Remove files from the build directory.
9342 +
9343 +RM is the name of the program to use to delete files associated with each FILE
9344 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
9345 +to RM.
9346 +
9347 +If FILE is a libtool library, object or program, all the files associated
9348 +with it are deleted. Otherwise, only FILE itself is deleted using RM."
9349 + ;;
9350 +
9351 + compile)
9352 + $ECHO \
9353 +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
9354 +
9355 +Compile a source file into a libtool library object.
9356 +
9357 +This mode accepts the following additional options:
9358 +
9359 + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
9360 + -no-suppress do not suppress compiler output for multiple passes
9361 + -prefer-pic try to building PIC objects only
9362 + -prefer-non-pic try to building non-PIC objects only
9363 + -shared do not build a \`.o' file suitable for static linking
9364 + -static only build a \`.o' file suitable for static linking
9365 +
9366 +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
9367 +from the given SOURCEFILE.
9368 +
9369 +The output file name is determined by removing the directory component from
9370 +SOURCEFILE, then substituting the C source code suffix \`.c' with the
9371 +library object suffix, \`.lo'."
9372 + ;;
9373 +
9374 + execute)
9375 + $ECHO \
9376 +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
9377 +
9378 +Automatically set library path, then run a program.
9379 +
9380 +This mode accepts the following additional options:
9381 +
9382 + -dlopen FILE add the directory containing FILE to the library path
9383 +
9384 +This mode sets the library path environment variable according to \`-dlopen'
9385 +flags.
9386 +
9387 +If any of the ARGS are libtool executable wrappers, then they are translated
9388 +into their corresponding uninstalled binary, and any of their required library
9389 +directories are added to the library path.
9390 +
9391 +Then, COMMAND is executed, with ARGS as arguments."
9392 + ;;
9393 +
9394 + finish)
9395 + $ECHO \
9396 +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
9397 +
9398 +Complete the installation of libtool libraries.
9399 +
9400 +Each LIBDIR is a directory that contains libtool libraries.
9401 +
9402 +The commands that this mode executes may require superuser privileges. Use
9403 +the \`--dry-run' option if you just want to see what would be executed."
9404 + ;;
9405 +
9406 + install)
9407 + $ECHO \
9408 +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
9409 +
9410 +Install executables or libraries.
9411 +
9412 +INSTALL-COMMAND is the installation command. The first component should be
9413 +either the \`install' or \`cp' program.
9414 +
9415 +The following components of INSTALL-COMMAND are treated specially:
9416 +
9417 + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
9418 +
9419 +The rest of the components are interpreted as arguments to that command (only
9420 +BSD-compatible install options are recognized)."
9421 + ;;
9422 +
9423 + link)
9424 + $ECHO \
9425 +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
9426 +
9427 +Link object files or libraries together to form another library, or to
9428 +create an executable program.
9429 +
9430 +LINK-COMMAND is a command using the C compiler that you would use to create
9431 +a program from several object files.
9432 +
9433 +The following components of LINK-COMMAND are treated specially:
9434 +
9435 + -all-static do not do any dynamic linking at all
9436 + -avoid-version do not add a version suffix if possible
9437 + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
9438 + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
9439 + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
9440 + -export-symbols SYMFILE
9441 + try to export only the symbols listed in SYMFILE
9442 + -export-symbols-regex REGEX
9443 + try to export only the symbols matching REGEX
9444 + -LLIBDIR search LIBDIR for required installed libraries
9445 + -lNAME OUTPUT-FILE requires the installed library libNAME
9446 + -module build a library that can dlopened
9447 + -no-fast-install disable the fast-install mode
9448 + -no-install link a not-installable executable
9449 + -no-undefined declare that a library does not refer to external symbols
9450 + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
9451 + -objectlist FILE Use a list of object files found in FILE to specify objects
9452 + -precious-files-regex REGEX
9453 + don't remove output files matching REGEX
9454 + -release RELEASE specify package release information
9455 + -rpath LIBDIR the created library will eventually be installed in LIBDIR
9456 + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
9457 + -shared only do dynamic linking of libtool libraries
9458 + -shrext SUFFIX override the standard shared library file extension
9459 + -static do not do any dynamic linking of uninstalled libtool libraries
9460 + -static-libtool-libs
9461 + do not do any dynamic linking of libtool libraries
9462 + -version-info CURRENT[:REVISION[:AGE]]
9463 + specify library version info [each variable defaults to 0]
9464 + -weak LIBNAME declare that the target provides the LIBNAME interface
9465 +
9466 +All other options (arguments beginning with \`-') are ignored.
9467 +
9468 +Every other argument is treated as a filename. Files ending in \`.la' are
9469 +treated as uninstalled libtool libraries, other files are standard or library
9470 +object files.
9471 +
9472 +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
9473 +only library objects (\`.lo' files) may be specified, and \`-rpath' is
9474 +required, except when creating a convenience library.
9475 +
9476 +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
9477 +using \`ar' and \`ranlib', or on Windows using \`lib'.
9478 +
9479 +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
9480 +is created, otherwise an executable program is created."
9481 + ;;
9482 +
9483 + uninstall)
9484 + $ECHO \
9485 +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
9486 +
9487 +Remove libraries from an installation directory.
9488 +
9489 +RM is the name of the program to use to delete files associated with each FILE
9490 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
9491 +to RM.
9492 +
9493 +If FILE is a libtool library, all the files associated with it are deleted.
9494 +Otherwise, only FILE itself is deleted using RM."
9495 + ;;
9496 +
9497 + *)
9498 + func_fatal_help "invalid operation mode \`$mode'"
9499 + ;;
9500 + esac
9501 +
9502 + $ECHO
9503 + $ECHO "Try \`$progname --help' for more information about other modes."
9504 +
9505 + exit $?
9506 +}
9507 +
9508 + # Now that we've collected a possible --mode arg, show help if necessary
9509 + $opt_help && func_mode_help
9510 +
9511 +
9512 +# func_mode_execute arg...
9513 +func_mode_execute ()
9514 +{
9515 + $opt_debug
9516 + # The first argument is the command name.
9517 + cmd="$nonopt"
9518 + test -z "$cmd" && \
9519 + func_fatal_help "you must specify a COMMAND"
9520 +
9521 + # Handle -dlopen flags immediately.
9522 + for file in $execute_dlfiles; do
9523 + test -f "$file" \
9524 + || func_fatal_help "\`$file' is not a file"
9525 +
9526 + dir=
9527 + case $file in
9528 + *.la)
9529 + # Check to see that this really is a libtool archive.
9530 + func_lalib_unsafe_p "$file" \
9531 + || func_fatal_help "\`$lib' is not a valid libtool archive"
9532 +
9533 + # Read the libtool library.
9534 + dlname=
9535 + library_names=
9536 + func_source "$file"
9537 +
9538 + # Skip this library if it cannot be dlopened.
9539 + if test -z "$dlname"; then
9540 + # Warn if it was a shared library.
9541 + test -n "$library_names" && \
9542 + func_warning "\`$file' was not linked with \`-export-dynamic'"
9543 + continue
9544 + fi
9545 +
9546 + func_dirname "$file" "" "."
9547 + dir="$func_dirname_result"
9548 +
9549 + if test -f "$dir/$objdir/$dlname"; then
9550 + dir="$dir/$objdir"
9551 + else
9552 + if test ! -f "$dir/$dlname"; then
9553 + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
9554 + fi
9555 + fi
9556 + ;;
9557 +
9558 + *.lo)
9559 + # Just add the directory containing the .lo file.
9560 + func_dirname "$file" "" "."
9561 + dir="$func_dirname_result"
9562 + ;;
9563 +
9564 + *)
9565 + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
9566 + continue
9567 + ;;
9568 + esac
9569 +
9570 + # Get the absolute pathname.
9571 + absdir=`cd "$dir" && pwd`
9572 + test -n "$absdir" && dir="$absdir"
9573 +
9574 + # Now add the directory to shlibpath_var.
9575 + if eval "test -z \"\$$shlibpath_var\""; then
9576 + eval "$shlibpath_var=\"\$dir\""
9577 + else
9578 + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
9579 + fi
9580 + done
9581 +
9582 + # This variable tells wrapper scripts just to set shlibpath_var
9583 + # rather than running their programs.
9584 + libtool_execute_magic="$magic"
9585 +
9586 + # Check if any of the arguments is a wrapper script.
9587 + args=
9588 + for file
9589 + do
9590 + case $file in
9591 + -*) ;;
9592 + *)
9593 + # Do a test to see if this is really a libtool program.
9594 + if func_ltwrapper_script_p "$file"; then
9595 + func_source "$file"
9596 + # Transform arg to wrapped name.
9597 + file="$progdir/$program"
9598 + elif func_ltwrapper_executable_p "$file"; then
9599 + func_ltwrapper_scriptname "$file"
9600 + func_source "$func_ltwrapper_scriptname_result"
9601 + # Transform arg to wrapped name.
9602 + file="$progdir/$program"
9603 + fi
9604 + ;;
9605 + esac
9606 + # Quote arguments (to preserve shell metacharacters).
9607 + func_quote_for_eval "$file"
9608 + args="$args $func_quote_for_eval_result"
9609 + done
9610 +
9611 + if test "X$opt_dry_run" = Xfalse; then
9612 + if test -n "$shlibpath_var"; then
9613 + # Export the shlibpath_var.
9614 + eval "export $shlibpath_var"
9615 + fi
9616 +
9617 + # Restore saved environment variables
9618 + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
9619 + do
9620 + eval "if test \"\${save_$lt_var+set}\" = set; then
9621 + $lt_var=\$save_$lt_var; export $lt_var
9622 + else
9623 + $lt_unset $lt_var
9624 + fi"
9625 + done
9626 +
9627 + # Now prepare to actually exec the command.
9628 + exec_cmd="\$cmd$args"
9629 + else
9630 + # Display what would be done.
9631 + if test -n "$shlibpath_var"; then
9632 + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
9633 + $ECHO "export $shlibpath_var"
9634 + fi
9635 + $ECHO "$cmd$args"
9636 + exit $EXIT_SUCCESS
9637 + fi
9638 +}
9639 +
9640 +test "$mode" = execute && func_mode_execute ${1+"$@"}
9641 +
9642 +
9643 +# func_mode_finish arg...
9644 +func_mode_finish ()
9645 +{
9646 + $opt_debug
9647 + libdirs="$nonopt"
9648 + admincmds=
9649 +
9650 + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
9651 + for dir
9652 + do
9653 + libdirs="$libdirs $dir"
9654 + done
9655 +
9656 + for libdir in $libdirs; do
9657 + if test -n "$finish_cmds"; then
9658 + # Do each command in the finish commands.
9659 + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
9660 +'"$cmd"'"'
9661 + fi
9662 + if test -n "$finish_eval"; then
9663 + # Do the single finish_eval.
9664 + eval cmds=\"$finish_eval\"
9665 + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
9666 + $cmds"
9667 + fi
9668 + done
9669 + fi
9670 +
9671 + # Exit here if they wanted silent mode.
9672 + $opt_silent && exit $EXIT_SUCCESS
9673 +
9674 + $ECHO "X----------------------------------------------------------------------" | $Xsed
9675 + $ECHO "Libraries have been installed in:"
9676 + for libdir in $libdirs; do
9677 + $ECHO " $libdir"
9678 + done
9679 + $ECHO
9680 + $ECHO "If you ever happen to want to link against installed libraries"
9681 + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
9682 + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
9683 + $ECHO "flag during linking and do at least one of the following:"
9684 + if test -n "$shlibpath_var"; then
9685 + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
9686 + $ECHO " during execution"
9687 + fi
9688 + if test -n "$runpath_var"; then
9689 + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
9690 + $ECHO " during linking"
9691 + fi
9692 + if test -n "$hardcode_libdir_flag_spec"; then
9693 + libdir=LIBDIR
9694 + eval flag=\"$hardcode_libdir_flag_spec\"
9695 +
9696 + $ECHO " - use the \`$flag' linker flag"
9697 + fi
9698 + if test -n "$admincmds"; then
9699 + $ECHO " - have your system administrator run these commands:$admincmds"
9700 + fi
9701 + if test -f /etc/ld.so.conf; then
9702 + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
9703 + fi
9704 + $ECHO
9705 +
9706 + $ECHO "See any operating system documentation about shared libraries for"
9707 + case $host in
9708 + solaris2.[6789]|solaris2.1[0-9])
9709 + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
9710 + $ECHO "pages."
9711 + ;;
9712 + *)
9713 + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
9714 + ;;
9715 + esac
9716 + $ECHO "X----------------------------------------------------------------------" | $Xsed
9717 + exit $EXIT_SUCCESS
9718 +}
9719 +
9720 +test "$mode" = finish && func_mode_finish ${1+"$@"}
9721 +
9722 +
9723 +# func_mode_install arg...
9724 +func_mode_install ()
9725 +{
9726 + $opt_debug
9727 + # There may be an optional sh(1) argument at the beginning of
9728 + # install_prog (especially on Windows NT).
9729 + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
9730 + # Allow the use of GNU shtool's install command.
9731 + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
9732 + # Aesthetically quote it.
9733 + func_quote_for_eval "$nonopt"
9734 + install_prog="$func_quote_for_eval_result "
9735 + arg=$1
9736 + shift
9737 + else
9738 + install_prog=
9739 + arg=$nonopt
9740 + fi
9741 +
9742 + # The real first argument should be the name of the installation program.
9743 + # Aesthetically quote it.
9744 + func_quote_for_eval "$arg"
9745 + install_prog="$install_prog$func_quote_for_eval_result"
9746 +
9747 + # We need to accept at least all the BSD install flags.
9748 + dest=
9749 + files=
9750 + opts=
9751 + prev=
9752 + install_type=
9753 + isdir=no
9754 + stripme=
9755 + for arg
9756 + do
9757 + if test -n "$dest"; then
9758 + files="$files $dest"
9759 + dest=$arg
9760 + continue
9761 + fi
9762 +
9763 + case $arg in
9764 + -d) isdir=yes ;;
9765 + -f)
9766 + case " $install_prog " in
9767 + *[\\\ /]cp\ *) ;;
9768 + *) prev=$arg ;;
9769 + esac
9770 + ;;
9771 + -g | -m | -o)
9772 + prev=$arg
9773 + ;;
9774 + -s)
9775 + stripme=" -s"
9776 + continue
9777 + ;;
9778 + -*)
9779 + ;;
9780 + *)
9781 + # If the previous option needed an argument, then skip it.
9782 + if test -n "$prev"; then
9783 + prev=
9784 + else
9785 + dest=$arg
9786 + continue
9787 + fi
9788 + ;;
9789 + esac
9790 +
9791 + # Aesthetically quote the argument.
9792 + func_quote_for_eval "$arg"
9793 + install_prog="$install_prog $func_quote_for_eval_result"
9794 + done
9795 +
9796 + test -z "$install_prog" && \
9797 + func_fatal_help "you must specify an install program"
9798 +
9799 + test -n "$prev" && \
9800 + func_fatal_help "the \`$prev' option requires an argument"
9801 +
9802 + if test -z "$files"; then
9803 + if test -z "$dest"; then
9804 + func_fatal_help "no file or destination specified"
9805 + else
9806 + func_fatal_help "you must specify a destination"
9807 + fi
9808 + fi
9809 +
9810 + # Strip any trailing slash from the destination.
9811 + func_stripname '' '/' "$dest"
9812 + dest=$func_stripname_result
9813 +
9814 + # Check to see that the destination is a directory.
9815 + test -d "$dest" && isdir=yes
9816 + if test "$isdir" = yes; then
9817 + destdir="$dest"
9818 + destname=
9819 + else
9820 + func_dirname_and_basename "$dest" "" "."
9821 + destdir="$func_dirname_result"
9822 + destname="$func_basename_result"
9823 +
9824 + # Not a directory, so check to see that there is only one file specified.
9825 + set dummy $files; shift
9826 + test "$#" -gt 1 && \
9827 + func_fatal_help "\`$dest' is not a directory"
9828 + fi
9829 + case $destdir in
9830 + [\\/]* | [A-Za-z]:[\\/]*) ;;
9831 + *)
9832 + for file in $files; do
9833 + case $file in
9834 + *.lo) ;;
9835 + *)
9836 + func_fatal_help "\`$destdir' must be an absolute directory name"
9837 + ;;
9838 + esac
9839 + done
9840 + ;;
9841 + esac
9842 +
9843 + # This variable tells wrapper scripts just to set variables rather
9844 + # than running their programs.
9845 + libtool_install_magic="$magic"
9846 +
9847 + staticlibs=
9848 + future_libdirs=
9849 + current_libdirs=
9850 + for file in $files; do
9851 +
9852 + # Do each installation.
9853 + case $file in
9854 + *.$libext)
9855 + # Do the static libraries later.
9856 + staticlibs="$staticlibs $file"
9857 + ;;
9858 +
9859 + *.la)
9860 + # Check to see that this really is a libtool archive.
9861 + func_lalib_unsafe_p "$file" \
9862 + || func_fatal_help "\`$file' is not a valid libtool archive"
9863 +
9864 + library_names=
9865 + old_library=
9866 + relink_command=
9867 + func_source "$file"
9868 +
9869 + # Add the libdir to current_libdirs if it is the destination.
9870 + if test "X$destdir" = "X$libdir"; then
9871 + case "$current_libdirs " in
9872 + *" $libdir "*) ;;
9873 + *) current_libdirs="$current_libdirs $libdir" ;;
9874 + esac
9875 + else
9876 + # Note the libdir as a future libdir.
9877 + case "$future_libdirs " in
9878 + *" $libdir "*) ;;
9879 + *) future_libdirs="$future_libdirs $libdir" ;;
9880 + esac
9881 + fi
9882 +
9883 + func_dirname "$file" "/" ""
9884 + dir="$func_dirname_result"
9885 + dir="$dir$objdir"
9886 +
9887 + if test -n "$relink_command"; then
9888 + # Determine the prefix the user has applied to our future dir.
9889 + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
9890 +
9891 + # Don't allow the user to place us outside of our expected
9892 + # location b/c this prevents finding dependent libraries that
9893 + # are installed to the same prefix.
9894 + # At present, this check doesn't affect windows .dll's that
9895 + # are installed into $libdir/../bin (currently, that works fine)
9896 + # but it's something to keep an eye on.
9897 + test "$inst_prefix_dir" = "$destdir" && \
9898 + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
9899 +
9900 + if test -n "$inst_prefix_dir"; then
9901 + # Stick the inst_prefix_dir data into the link command.
9902 + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
9903 + else
9904 + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
9905 + fi
9906 +
9907 + func_warning "relinking \`$file'"
9908 + func_show_eval "$relink_command" \
9909 + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
9910 + fi
9911 +
9912 + # See the names of the shared library.
9913 + set dummy $library_names; shift
9914 + if test -n "$1"; then
9915 + realname="$1"
9916 + shift
9917 +
9918 + srcname="$realname"
9919 + test -n "$relink_command" && srcname="$realname"T
9920 +
9921 + # Install the shared library and build the symlinks.
9922 + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
9923 + 'exit $?'
9924 + tstripme="$stripme"
9925 + case $host_os in
9926 + cygwin* | mingw* | pw32* | cegcc*)
9927 + case $realname in
9928 + *.dll.a)
9929 + tstripme=""
9930 + ;;
9931 + esac
9932 + ;;
9933 + esac
9934 + if test -n "$tstripme" && test -n "$striplib"; then
9935 + func_show_eval "$striplib $destdir/$realname" 'exit $?'
9936 + fi
9937 +
9938 + if test "$#" -gt 0; then
9939 + # Delete the old symlinks, and create new ones.
9940 + # Try `ln -sf' first, because the `ln' binary might depend on
9941 + # the symlink we replace! Solaris /bin/ln does not understand -f,
9942 + # so we also need to try rm && ln -s.
9943 + for linkname
9944 + do
9945 + test "$linkname" != "$realname" \
9946 + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
9947 + done
9948 + fi
9949 +
9950 + # Do each command in the postinstall commands.
9951 + lib="$destdir/$realname"
9952 + func_execute_cmds "$postinstall_cmds" 'exit $?'
9953 + fi
9954 +
9955 + # Install the pseudo-library for information purposes.
9956 + func_basename "$file"
9957 + name="$func_basename_result"
9958 + instname="$dir/$name"i
9959 + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
9960 +
9961 + # Maybe install the static library, too.
9962 + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
9963 + ;;
9964 +
9965 + *.lo)
9966 + # Install (i.e. copy) a libtool object.
9967 +
9968 + # Figure out destination file name, if it wasn't already specified.
9969 + if test -n "$destname"; then
9970 + destfile="$destdir/$destname"
9971 + else
9972 + func_basename "$file"
9973 + destfile="$func_basename_result"
9974 + destfile="$destdir/$destfile"
9975 + fi
9976 +
9977 + # Deduce the name of the destination old-style object file.
9978 + case $destfile in
9979 + *.lo)
9980 + func_lo2o "$destfile"
9981 + staticdest=$func_lo2o_result
9982 + ;;
9983 + *.$objext)
9984 + staticdest="$destfile"
9985 + destfile=
9986 + ;;
9987 + *)
9988 + func_fatal_help "cannot copy a libtool object to \`$destfile'"
9989 + ;;
9990 + esac
9991 +
9992 + # Install the libtool object if requested.
9993 + test -n "$destfile" && \
9994 + func_show_eval "$install_prog $file $destfile" 'exit $?'
9995 +
9996 + # Install the old object if enabled.
9997 + if test "$build_old_libs" = yes; then
9998 + # Deduce the name of the old-style object file.
9999 + func_lo2o "$file"
10000 + staticobj=$func_lo2o_result
10001 + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
10002 + fi
10003 + exit $EXIT_SUCCESS
10004 + ;;
10005 +
10006 + *)
10007 + # Figure out destination file name, if it wasn't already specified.
10008 + if test -n "$destname"; then
10009 + destfile="$destdir/$destname"
10010 + else
10011 + func_basename "$file"
10012 + destfile="$func_basename_result"
10013 + destfile="$destdir/$destfile"
10014 + fi
10015 +
10016 + # If the file is missing, and there is a .exe on the end, strip it
10017 + # because it is most likely a libtool script we actually want to
10018 + # install
10019 + stripped_ext=""
10020 + case $file in
10021 + *.exe)
10022 + if test ! -f "$file"; then
10023 + func_stripname '' '.exe' "$file"
10024 + file=$func_stripname_result
10025 + stripped_ext=".exe"
10026 + fi
10027 + ;;
10028 + esac
10029 +
10030 + # Do a test to see if this is really a libtool program.
10031 + case $host in
10032 + *cygwin* | *mingw*)
10033 + if func_ltwrapper_executable_p "$file"; then
10034 + func_ltwrapper_scriptname "$file"
10035 + wrapper=$func_ltwrapper_scriptname_result
10036 + else
10037 + func_stripname '' '.exe' "$file"
10038 + wrapper=$func_stripname_result
10039 + fi
10040 + ;;
10041 + *)
10042 + wrapper=$file
10043 + ;;
10044 + esac
10045 + if func_ltwrapper_script_p "$wrapper"; then
10046 + notinst_deplibs=
10047 + relink_command=
10048 +
10049 + func_source "$wrapper"
10050 +
10051 + # Check the variables that should have been set.
10052 + test -z "$generated_by_libtool_version" && \
10053 + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
10054 +
10055 + finalize=yes
10056 + for lib in $notinst_deplibs; do
10057 + # Check to see that each library is installed.
10058 + libdir=
10059 + if test -f "$lib"; then
10060 + func_source "$lib"
10061 + fi
10062 + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
10063 + if test -n "$libdir" && test ! -f "$libfile"; then
10064 + func_warning "\`$lib' has not been installed in \`$libdir'"
10065 + finalize=no
10066 + fi
10067 + done
10068 +
10069 + relink_command=
10070 + func_source "$wrapper"
10071 +
10072 + outputname=
10073 + if test "$fast_install" = no && test -n "$relink_command"; then
10074 + $opt_dry_run || {
10075 + if test "$finalize" = yes; then
10076 + tmpdir=`func_mktempdir`
10077 + func_basename "$file$stripped_ext"
10078 + file="$func_basename_result"
10079 + outputname="$tmpdir/$file"
10080 + # Replace the output file specification.
10081 + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
10082 +
10083 + $opt_silent || {
10084 + func_quote_for_expand "$relink_command"
10085 + eval "func_echo $func_quote_for_expand_result"
10086 + }
10087 + if eval "$relink_command"; then :
10088 + else
10089 + func_error "error: relink \`$file' with the above command before installing it"
10090 + $opt_dry_run || ${RM}r "$tmpdir"
10091 + continue
10092 + fi
10093 + file="$outputname"
10094 + else
10095 + func_warning "cannot relink \`$file'"
10096 + fi
10097 + }
10098 + else
10099 + # Install the binary that we compiled earlier.
10100 + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
10101 + fi
10102 + fi
10103 +
10104 + # remove .exe since cygwin /usr/bin/install will append another
10105 + # one anyway
10106 + case $install_prog,$host in
10107 + */usr/bin/install*,*cygwin*)
10108 + case $file:$destfile in
10109 + *.exe:*.exe)
10110 + # this is ok
10111 + ;;
10112 + *.exe:*)
10113 + destfile=$destfile.exe
10114 + ;;
10115 + *:*.exe)
10116 + func_stripname '' '.exe' "$destfile"
10117 + destfile=$func_stripname_result
10118 + ;;
10119 + esac
10120 + ;;
10121 + esac
10122 + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
10123 + $opt_dry_run || if test -n "$outputname"; then
10124 + ${RM}r "$tmpdir"
10125 + fi
10126 + ;;
10127 + esac
10128 + done
10129 +
10130 + for file in $staticlibs; do
10131 + func_basename "$file"
10132 + name="$func_basename_result"
10133 +
10134 + # Set up the ranlib parameters.
10135 + oldlib="$destdir/$name"
10136 +
10137 + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
10138 +
10139 + if test -n "$stripme" && test -n "$old_striplib"; then
10140 + func_show_eval "$old_striplib $oldlib" 'exit $?'
10141 + fi
10142 +
10143 + # Do each command in the postinstall commands.
10144 + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
10145 + done
10146 +
10147 + test -n "$future_libdirs" && \
10148 + func_warning "remember to run \`$progname --finish$future_libdirs'"
10149 +
10150 + if test -n "$current_libdirs"; then
10151 + # Maybe just do a dry run.
10152 + $opt_dry_run && current_libdirs=" -n$current_libdirs"
10153 + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
10154 + else
10155 + exit $EXIT_SUCCESS
10156 + fi
10157 +}
10158 +
10159 +test "$mode" = install && func_mode_install ${1+"$@"}
10160 +
10161 +
10162 +# func_generate_dlsyms outputname originator pic_p
10163 +# Extract symbols from dlprefiles and create ${outputname}S.o with
10164 +# a dlpreopen symbol table.
10165 +func_generate_dlsyms ()
10166 +{
10167 + $opt_debug
10168 + my_outputname="$1"
10169 + my_originator="$2"
10170 + my_pic_p="${3-no}"
10171 + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
10172 + my_dlsyms=
10173 +
10174 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
10175 + if test -n "$NM" && test -n "$global_symbol_pipe"; then
10176 + my_dlsyms="${my_outputname}S.c"
10177 + else
10178 + func_error "not configured to extract global symbols from dlpreopened files"
10179 + fi
10180 + fi
10181 +
10182 + if test -n "$my_dlsyms"; then
10183 + case $my_dlsyms in
10184 + "") ;;
10185 + *.c)
10186 + # Discover the nlist of each of the dlfiles.
10187 + nlist="$output_objdir/${my_outputname}.nm"
10188 +
10189 + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
10190 +
10191 + # Parse the name list into a source file.
10192 + func_verbose "creating $output_objdir/$my_dlsyms"
10193 +
10194 + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
10195 +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
10196 +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
10197 +
10198 +#ifdef __cplusplus
10199 +extern \"C\" {
10200 +#endif
10201 +
10202 +/* External symbol declarations for the compiler. */\
10203 +"
10204 +
10205 + if test "$dlself" = yes; then
10206 + func_verbose "generating symbol list for \`$output'"
10207 +
10208 + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
10209 +
10210 + # Add our own program objects to the symbol list.
10211 + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
10212 + for progfile in $progfiles; do
10213 + func_verbose "extracting global C symbols from \`$progfile'"
10214 + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
10215 + done
10216 +
10217 + if test -n "$exclude_expsyms"; then
10218 + $opt_dry_run || {
10219 + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
10220 + eval '$MV "$nlist"T "$nlist"'
10221 + }
10222 + fi
10223 +
10224 + if test -n "$export_symbols_regex"; then
10225 + $opt_dry_run || {
10226 + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
10227 + eval '$MV "$nlist"T "$nlist"'
10228 + }
10229 + fi
10230 +
10231 + # Prepare the list of exported symbols
10232 + if test -z "$export_symbols"; then
10233 + export_symbols="$output_objdir/$outputname.exp"
10234 + $opt_dry_run || {
10235 + $RM $export_symbols
10236 + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
10237 + case $host in
10238 + *cygwin* | *mingw* | *cegcc* )
10239 + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
10240 + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
10241 + ;;
10242 + esac
10243 + }
10244 + else
10245 + $opt_dry_run || {
10246 + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
10247 + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
10248 + eval '$MV "$nlist"T "$nlist"'
10249 + case $host in
10250 + *cygwin | *mingw* | *cegcc* )
10251 + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
10252 + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
10253 + ;;
10254 + esac
10255 + }
10256 + fi
10257 + fi
10258 +
10259 + for dlprefile in $dlprefiles; do
10260 + func_verbose "extracting global C symbols from \`$dlprefile'"
10261 + func_basename "$dlprefile"
10262 + name="$func_basename_result"
10263 + $opt_dry_run || {
10264 + eval '$ECHO ": $name " >> "$nlist"'
10265 + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
10266 + }
10267 + done
10268 +
10269 + $opt_dry_run || {
10270 + # Make sure we have at least an empty file.
10271 + test -f "$nlist" || : > "$nlist"
10272 +
10273 + if test -n "$exclude_expsyms"; then
10274 + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
10275 + $MV "$nlist"T "$nlist"
10276 + fi
10277 +
10278 + # Try sorting and uniquifying the output.
10279 + if $GREP -v "^: " < "$nlist" |
10280 + if sort -k 3 </dev/null >/dev/null 2>&1; then
10281 + sort -k 3
10282 + else
10283 + sort +2
10284 + fi |
10285 + uniq > "$nlist"S; then
10286 + :
10287 + else
10288 + $GREP -v "^: " < "$nlist" > "$nlist"S
10289 + fi
10290 +
10291 + if test -f "$nlist"S; then
10292 + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
10293 + else
10294 + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
10295 + fi
10296 +
10297 + $ECHO >> "$output_objdir/$my_dlsyms" "\
10298 +
10299 +/* The mapping between symbol names and symbols. */
10300 +typedef struct {
10301 + const char *name;
10302 + void *address;
10303 +} lt_dlsymlist;
10304 +"
10305 + case $host in
10306 + *cygwin* | *mingw* | *cegcc* )
10307 + $ECHO >> "$output_objdir/$my_dlsyms" "\
10308 +/* DATA imports from DLLs on WIN32 con't be const, because
10309 + runtime relocations are performed -- see ld's documentation
10310 + on pseudo-relocs. */"
10311 + lt_dlsym_const= ;;
10312 + *osf5*)
10313 + echo >> "$output_objdir/$my_dlsyms" "\
10314 +/* This system does not cope well with relocations in const data */"
10315 + lt_dlsym_const= ;;
10316 + *)
10317 + lt_dlsym_const=const ;;
10318 + esac
10319 +
10320 + $ECHO >> "$output_objdir/$my_dlsyms" "\
10321 +extern $lt_dlsym_const lt_dlsymlist
10322 +lt_${my_prefix}_LTX_preloaded_symbols[];
10323 +$lt_dlsym_const lt_dlsymlist
10324 +lt_${my_prefix}_LTX_preloaded_symbols[] =
10325 +{\
10326 + { \"$my_originator\", (void *) 0 },"
10327 +
10328 + case $need_lib_prefix in
10329 + no)
10330 + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
10331 + ;;
10332 + *)
10333 + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
10334 + ;;
10335 + esac
10336 + $ECHO >> "$output_objdir/$my_dlsyms" "\
10337 + {0, (void *) 0}
10338 +};
10339 +
10340 +/* This works around a problem in FreeBSD linker */
10341 +#ifdef FREEBSD_WORKAROUND
10342 +static const void *lt_preloaded_setup() {
10343 + return lt_${my_prefix}_LTX_preloaded_symbols;
10344 +}
10345 +#endif
10346 +
10347 +#ifdef __cplusplus
10348 +}
10349 +#endif\
10350 +"
10351 + } # !$opt_dry_run
10352 +
10353 + pic_flag_for_symtable=
10354 + case "$compile_command " in
10355 + *" -static "*) ;;
10356 + *)
10357 + case $host in
10358 + # compiling the symbol table file with pic_flag works around
10359 + # a FreeBSD bug that causes programs to crash when -lm is
10360 + # linked before any other PIC object. But we must not use
10361 + # pic_flag when linking with -static. The problem exists in
10362 + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
10363 + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
10364 + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
10365 + *-*-hpux*)
10366 + pic_flag_for_symtable=" $pic_flag" ;;
10367 + *)
10368 + if test "X$my_pic_p" != Xno; then
10369 + pic_flag_for_symtable=" $pic_flag"
10370 + fi
10371 + ;;
10372 + esac
10373 + ;;
10374 + esac
10375 + symtab_cflags=
10376 + for arg in $LTCFLAGS; do
10377 + case $arg in
10378 + -pie | -fpie | -fPIE) ;;
10379 + *) symtab_cflags="$symtab_cflags $arg" ;;
10380 + esac
10381 + done
10382 +
10383 + # Now compile the dynamic symbol file.
10384 + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
10385 +
10386 + # Clean up the generated files.
10387 + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
10388 +
10389 + # Transform the symbol file into the correct name.
10390 + symfileobj="$output_objdir/${my_outputname}S.$objext"
10391 + case $host in
10392 + *cygwin* | *mingw* | *cegcc* )
10393 + if test -f "$output_objdir/$my_outputname.def"; then
10394 + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
10395 + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
10396 + else
10397 + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
10398 + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
10399 + fi
10400 + ;;
10401 + *)
10402 + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
10403 + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
10404 + ;;
10405 + esac
10406 + ;;
10407 + *)
10408 + func_fatal_error "unknown suffix for \`$my_dlsyms'"
10409 + ;;
10410 + esac
10411 + else
10412 + # We keep going just in case the user didn't refer to
10413 + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
10414 + # really was required.
10415 +
10416 + # Nullify the symbol file.
10417 + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
10418 + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
10419 + fi
10420 +}
10421 +
10422 +# func_win32_libid arg
10423 +# return the library type of file 'arg'
10424 +#
10425 +# Need a lot of goo to handle *both* DLLs and import libs
10426 +# Has to be a shell function in order to 'eat' the argument
10427 +# that is supplied when $file_magic_command is called.
10428 +func_win32_libid ()
10429 +{
10430 + $opt_debug
10431 + win32_libid_type="unknown"
10432 + win32_fileres=`file -L $1 2>/dev/null`
10433 + case $win32_fileres in
10434 + *ar\ archive\ import\ library*) # definitely import
10435 + win32_libid_type="x86 archive import"
10436 + ;;
10437 + *ar\ archive*) # could be an import, or static
10438 + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
10439 + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
10440 + win32_nmres=`eval $NM -f posix -A $1 |
10441 + $SED -n -e '
10442 + 1,100{
10443 + / I /{
10444 + s,.*,import,
10445 + p
10446 + q
10447 + }
10448 + }'`
10449 + case $win32_nmres in
10450 + import*) win32_libid_type="x86 archive import";;
10451 + *) win32_libid_type="x86 archive static";;
10452 + esac
10453 + fi
10454 + ;;
10455 + *DLL*)
10456 + win32_libid_type="x86 DLL"
10457 + ;;
10458 + *executable*) # but shell scripts are "executable" too...
10459 + case $win32_fileres in
10460 + *MS\ Windows\ PE\ Intel*)
10461 + win32_libid_type="x86 DLL"
10462 + ;;
10463 + esac
10464 + ;;
10465 + esac
10466 + $ECHO "$win32_libid_type"
10467 +}
10468 +
10469 +
10470 +
10471 +# func_extract_an_archive dir oldlib
10472 +func_extract_an_archive ()
10473 +{
10474 + $opt_debug
10475 + f_ex_an_ar_dir="$1"; shift
10476 + f_ex_an_ar_oldlib="$1"
10477 + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
10478 + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
10479 + :
10480 + else
10481 + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
10482 + fi
10483 +}
10484 +
10485 +
10486 +# func_extract_archives gentop oldlib ...
10487 +func_extract_archives ()
10488 +{
10489 + $opt_debug
10490 + my_gentop="$1"; shift
10491 + my_oldlibs=${1+"$@"}
10492 + my_oldobjs=""
10493 + my_xlib=""
10494 + my_xabs=""
10495 + my_xdir=""
10496 +
10497 + for my_xlib in $my_oldlibs; do
10498 + # Extract the objects.
10499 + case $my_xlib in
10500 + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
10501 + *) my_xabs=`pwd`"/$my_xlib" ;;
10502 + esac
10503 + func_basename "$my_xlib"
10504 + my_xlib="$func_basename_result"
10505 + my_xlib_u=$my_xlib
10506 + while :; do
10507 + case " $extracted_archives " in
10508 + *" $my_xlib_u "*)
10509 + func_arith $extracted_serial + 1
10510 + extracted_serial=$func_arith_result
10511 + my_xlib_u=lt$extracted_serial-$my_xlib ;;
10512 + *) break ;;
10513 + esac
10514 + done
10515 + extracted_archives="$extracted_archives $my_xlib_u"
10516 + my_xdir="$my_gentop/$my_xlib_u"
10517 +
10518 + func_mkdir_p "$my_xdir"
10519 +
10520 + case $host in
10521 + *-darwin*)
10522 + func_verbose "Extracting $my_xabs"
10523 + # Do not bother doing anything if just a dry run
10524 + $opt_dry_run || {
10525 + darwin_orig_dir=`pwd`
10526 + cd $my_xdir || exit $?
10527 + darwin_archive=$my_xabs
10528 + darwin_curdir=`pwd`
10529 + darwin_base_archive=`basename "$darwin_archive"`
10530 + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
10531 + if test -n "$darwin_arches"; then
10532 + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
10533 + darwin_arch=
10534 + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
10535 + for darwin_arch in $darwin_arches ; do
10536 + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
10537 + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
10538 + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
10539 + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
10540 + cd "$darwin_curdir"
10541 + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
10542 + done # $darwin_arches
10543 + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
10544 + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
10545 + darwin_file=
10546 + darwin_files=
10547 + for darwin_file in $darwin_filelist; do
10548 + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
10549 + $LIPO -create -output "$darwin_file" $darwin_files
10550 + done # $darwin_filelist
10551 + $RM -rf unfat-$$
10552 + cd "$darwin_orig_dir"
10553 + else
10554 + cd $darwin_orig_dir
10555 + func_extract_an_archive "$my_xdir" "$my_xabs"
10556 + fi # $darwin_arches
10557 + } # !$opt_dry_run
10558 + ;;
10559 + *)
10560 + func_extract_an_archive "$my_xdir" "$my_xabs"
10561 + ;;
10562 + esac
10563 + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
10564 + done
10565 +
10566 + func_extract_archives_result="$my_oldobjs"
10567 +}
10568 +
10569 +
10570 +
10571 +# func_emit_wrapper_part1 [arg=no]
10572 +#
10573 +# Emit the first part of a libtool wrapper script on stdout.
10574 +# For more information, see the description associated with
10575 +# func_emit_wrapper(), below.
10576 +func_emit_wrapper_part1 ()
10577 +{
10578 + func_emit_wrapper_part1_arg1=no
10579 + if test -n "$1" ; then
10580 + func_emit_wrapper_part1_arg1=$1
10581 + fi
10582 +
10583 + $ECHO "\
10584 +#! $SHELL
10585 +
10586 +# $output - temporary wrapper script for $objdir/$outputname
10587 +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
10588 +#
10589 +# The $output program cannot be directly executed until all the libtool
10590 +# libraries that it depends on are installed.
10591 +#
10592 +# This wrapper script should never be moved out of the build directory.
10593 +# If it is, it will not operate correctly.
10594 +
10595 +# Sed substitution that helps us do robust quoting. It backslashifies
10596 +# metacharacters that are still active within double-quoted strings.
10597 +Xsed='${SED} -e 1s/^X//'
10598 +sed_quote_subst='$sed_quote_subst'
10599 +
10600 +# Be Bourne compatible
10601 +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
10602 + emulate sh
10603 + NULLCMD=:
10604 + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
10605 + # is contrary to our usage. Disable this feature.
10606 + alias -g '\${1+\"\$@\"}'='\"\$@\"'
10607 + setopt NO_GLOB_SUBST
10608 +else
10609 + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
10610 +fi
10611 +BIN_SH=xpg4; export BIN_SH # for Tru64
10612 +DUALCASE=1; export DUALCASE # for MKS sh
10613 +
10614 +# The HP-UX ksh and POSIX shell print the target directory to stdout
10615 +# if CDPATH is set.
10616 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10617 +
10618 +relink_command=\"$relink_command\"
10619 +
10620 +# This environment variable determines our operation mode.
10621 +if test \"\$libtool_install_magic\" = \"$magic\"; then
10622 + # install mode needs the following variables:
10623 + generated_by_libtool_version='$macro_version'
10624 + notinst_deplibs='$notinst_deplibs'
10625 +else
10626 + # When we are sourced in execute mode, \$file and \$ECHO are already set.
10627 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
10628 + ECHO=\"$qecho\"
10629 + file=\"\$0\"
10630 + # Make sure echo works.
10631 + if test \"X\$1\" = X--no-reexec; then
10632 + # Discard the --no-reexec flag, and continue.
10633 + shift
10634 + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
10635 + # Yippee, \$ECHO works!
10636 + :
10637 + else
10638 + # Restart under the correct shell, and then maybe \$ECHO will work.
10639 + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
10640 + fi
10641 + fi\
10642 +"
10643 + $ECHO "\
10644 +
10645 + # Find the directory that this script lives in.
10646 + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
10647 + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
10648 +
10649 + # Follow symbolic links until we get to the real thisdir.
10650 + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
10651 + while test -n \"\$file\"; do
10652 + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
10653 +
10654 + # If there was a directory component, then change thisdir.
10655 + if test \"x\$destdir\" != \"x\$file\"; then
10656 + case \"\$destdir\" in
10657 + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
10658 + *) thisdir=\"\$thisdir/\$destdir\" ;;
10659 + esac
10660 + fi
10661 +
10662 + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
10663 + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
10664 + done
10665 +"
10666 +}
10667 +# end: func_emit_wrapper_part1
10668 +
10669 +# func_emit_wrapper_part2 [arg=no]
10670 +#
10671 +# Emit the second part of a libtool wrapper script on stdout.
10672 +# For more information, see the description associated with
10673 +# func_emit_wrapper(), below.
10674 +func_emit_wrapper_part2 ()
10675 +{
10676 + func_emit_wrapper_part2_arg1=no
10677 + if test -n "$1" ; then
10678 + func_emit_wrapper_part2_arg1=$1
10679 + fi
10680 +
10681 + $ECHO "\
10682 +
10683 + # Usually 'no', except on cygwin/mingw when embedded into
10684 + # the cwrapper.
10685 + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
10686 + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
10687 + # special case for '.'
10688 + if test \"\$thisdir\" = \".\"; then
10689 + thisdir=\`pwd\`
10690 + fi
10691 + # remove .libs from thisdir
10692 + case \"\$thisdir\" in
10693 + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
10694 + $objdir ) thisdir=. ;;
10695 + esac
10696 + fi
10697 +
10698 + # Try to get the absolute directory name.
10699 + absdir=\`cd \"\$thisdir\" && pwd\`
10700 + test -n \"\$absdir\" && thisdir=\"\$absdir\"
10701 +"
10702 +
10703 + if test "$fast_install" = yes; then
10704 + $ECHO "\
10705 + program=lt-'$outputname'$exeext
10706 + progdir=\"\$thisdir/$objdir\"
10707 +
10708 + if test ! -f \"\$progdir/\$program\" ||
10709 + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
10710 + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
10711 +
10712 + file=\"\$\$-\$program\"
10713 +
10714 + if test ! -d \"\$progdir\"; then
10715 + $MKDIR \"\$progdir\"
10716 + else
10717 + $RM \"\$progdir/\$file\"
10718 + fi"
10719 +
10720 + $ECHO "\
10721 +
10722 + # relink executable if necessary
10723 + if test -n \"\$relink_command\"; then
10724 + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
10725 + else
10726 + $ECHO \"\$relink_command_output\" >&2
10727 + $RM \"\$progdir/\$file\"
10728 + exit 1
10729 + fi
10730 + fi
10731 +
10732 + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
10733 + { $RM \"\$progdir/\$program\";
10734 + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
10735 + $RM \"\$progdir/\$file\"
10736 + fi"
10737 + else
10738 + $ECHO "\
10739 + program='$outputname'
10740 + progdir=\"\$thisdir/$objdir\"
10741 +"
10742 + fi
10743 +
10744 + $ECHO "\
10745 +
10746 + if test -f \"\$progdir/\$program\"; then"
10747 +
10748 + # Export our shlibpath_var if we have one.
10749 + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
10750 + $ECHO "\
10751 + # Add our own library path to $shlibpath_var
10752 + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
10753 +
10754 + # Some systems cannot cope with colon-terminated $shlibpath_var
10755 + # The second colon is a workaround for a bug in BeOS R4 sed
10756 + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
10757 +
10758 + export $shlibpath_var
10759 +"
10760 + fi
10761 +
10762 + # fixup the dll searchpath if we need to.
10763 + if test -n "$dllsearchpath"; then
10764 + $ECHO "\
10765 + # Add the dll search path components to the executable PATH
10766 + PATH=$dllsearchpath:\$PATH
10767 +"
10768 + fi
10769 +
10770 + $ECHO "\
10771 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
10772 + # Run the actual program with our arguments.
10773 +"
10774 + case $host in
10775 + # Backslashes separate directories on plain windows
10776 + *-*-mingw | *-*-os2* | *-cegcc*)
10777 + $ECHO "\
10778 + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
10779 +"
10780 + ;;
10781 +
10782 + *)
10783 + $ECHO "\
10784 + exec \"\$progdir/\$program\" \${1+\"\$@\"}
10785 +"
10786 + ;;
10787 + esac
10788 + $ECHO "\
10789 + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
10790 + exit 1
10791 + fi
10792 + else
10793 + # The program doesn't exist.
10794 + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
10795 + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
10796 + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
10797 + exit 1
10798 + fi
10799 +fi\
10800 +"
10801 +}
10802 +# end: func_emit_wrapper_part2
10803 +
10804 +
10805 +# func_emit_wrapper [arg=no]
10806 +#
10807 +# Emit a libtool wrapper script on stdout.
10808 +# Don't directly open a file because we may want to
10809 +# incorporate the script contents within a cygwin/mingw
10810 +# wrapper executable. Must ONLY be called from within
10811 +# func_mode_link because it depends on a number of variables
10812 +# set therein.
10813 +#
10814 +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
10815 +# variable will take. If 'yes', then the emitted script
10816 +# will assume that the directory in which it is stored is
10817 +# the $objdir directory. This is a cygwin/mingw-specific
10818 +# behavior.
10819 +func_emit_wrapper ()
10820 +{
10821 + func_emit_wrapper_arg1=no
10822 + if test -n "$1" ; then
10823 + func_emit_wrapper_arg1=$1
10824 + fi
10825 +
10826 + # split this up so that func_emit_cwrapperexe_src
10827 + # can call each part independently.
10828 + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
10829 + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
10830 +}
10831 +
10832 +
10833 +# func_to_host_path arg
10834 +#
10835 +# Convert paths to host format when used with build tools.
10836 +# Intended for use with "native" mingw (where libtool itself
10837 +# is running under the msys shell), or in the following cross-
10838 +# build environments:
10839 +# $build $host
10840 +# mingw (msys) mingw [e.g. native]
10841 +# cygwin mingw
10842 +# *nix + wine mingw
10843 +# where wine is equipped with the `winepath' executable.
10844 +# In the native mingw case, the (msys) shell automatically
10845 +# converts paths for any non-msys applications it launches,
10846 +# but that facility isn't available from inside the cwrapper.
10847 +# Similar accommodations are necessary for $host mingw and
10848 +# $build cygwin. Calling this function does no harm for other
10849 +# $host/$build combinations not listed above.
10850 +#
10851 +# ARG is the path (on $build) that should be converted to
10852 +# the proper representation for $host. The result is stored
10853 +# in $func_to_host_path_result.
10854 +func_to_host_path ()
10855 +{
10856 + func_to_host_path_result="$1"
10857 + if test -n "$1" ; then
10858 + case $host in
10859 + *mingw* )
10860 + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
10861 + case $build in
10862 + *mingw* ) # actually, msys
10863 + # awkward: cmd appends spaces to result
10864 + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
10865 + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
10866 + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
10867 + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
10868 + $SED -e "$lt_sed_naive_backslashify"`
10869 + ;;
10870 + *cygwin* )
10871 + func_to_host_path_tmp1=`cygpath -w "$1"`
10872 + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
10873 + $SED -e "$lt_sed_naive_backslashify"`
10874 + ;;
10875 + * )
10876 + # Unfortunately, winepath does not exit with a non-zero
10877 + # error code, so we are forced to check the contents of
10878 + # stdout. On the other hand, if the command is not
10879 + # found, the shell will set an exit code of 127 and print
10880 + # *an error message* to stdout. So we must check for both
10881 + # error code of zero AND non-empty stdout, which explains
10882 + # the odd construction:
10883 + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
10884 + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
10885 + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
10886 + $SED -e "$lt_sed_naive_backslashify"`
10887 + else
10888 + # Allow warning below.
10889 + func_to_host_path_result=""
10890 + fi
10891 + ;;
10892 + esac
10893 + if test -z "$func_to_host_path_result" ; then
10894 + func_error "Could not determine host path corresponding to"
10895 + func_error " '$1'"
10896 + func_error "Continuing, but uninstalled executables may not work."
10897 + # Fallback:
10898 + func_to_host_path_result="$1"
10899 + fi
10900 + ;;
10901 + esac
10902 + fi
10903 +}
10904 +# end: func_to_host_path
10905 +
10906 +# func_to_host_pathlist arg
10907 +#
10908 +# Convert pathlists to host format when used with build tools.
10909 +# See func_to_host_path(), above. This function supports the
10910 +# following $build/$host combinations (but does no harm for
10911 +# combinations not listed here):
10912 +# $build $host
10913 +# mingw (msys) mingw [e.g. native]
10914 +# cygwin mingw
10915 +# *nix + wine mingw
10916 +#
10917 +# Path separators are also converted from $build format to
10918 +# $host format. If ARG begins or ends with a path separator
10919 +# character, it is preserved (but converted to $host format)
10920 +# on output.
10921 +#
10922 +# ARG is a pathlist (on $build) that should be converted to
10923 +# the proper representation on $host. The result is stored
10924 +# in $func_to_host_pathlist_result.
10925 +func_to_host_pathlist ()
10926 +{
10927 + func_to_host_pathlist_result="$1"
10928 + if test -n "$1" ; then
10929 + case $host in
10930 + *mingw* )
10931 + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
10932 + # Remove leading and trailing path separator characters from
10933 + # ARG. msys behavior is inconsistent here, cygpath turns them
10934 + # into '.;' and ';.', and winepath ignores them completely.
10935 + func_to_host_pathlist_tmp2="$1"
10936 + # Once set for this call, this variable should not be
10937 + # reassigned. It is used in tha fallback case.
10938 + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
10939 + $SED -e 's|^:*||' -e 's|:*$||'`
10940 + case $build in
10941 + *mingw* ) # Actually, msys.
10942 + # Awkward: cmd appends spaces to result.
10943 + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
10944 + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
10945 + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
10946 + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
10947 + $SED -e "$lt_sed_naive_backslashify"`
10948 + ;;
10949 + *cygwin* )
10950 + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
10951 + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
10952 + $SED -e "$lt_sed_naive_backslashify"`
10953 + ;;
10954 + * )
10955 + # unfortunately, winepath doesn't convert pathlists
10956 + func_to_host_pathlist_result=""
10957 + func_to_host_pathlist_oldIFS=$IFS
10958 + IFS=:
10959 + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
10960 + IFS=$func_to_host_pathlist_oldIFS
10961 + if test -n "$func_to_host_pathlist_f" ; then
10962 + func_to_host_path "$func_to_host_pathlist_f"
10963 + if test -n "$func_to_host_path_result" ; then
10964 + if test -z "$func_to_host_pathlist_result" ; then
10965 + func_to_host_pathlist_result="$func_to_host_path_result"
10966 + else
10967 + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
10968 + fi
10969 + fi
10970 + fi
10971 + IFS=:
10972 + done
10973 + IFS=$func_to_host_pathlist_oldIFS
10974 + ;;
10975 + esac
10976 + if test -z "$func_to_host_pathlist_result" ; then
10977 + func_error "Could not determine the host path(s) corresponding to"
10978 + func_error " '$1'"
10979 + func_error "Continuing, but uninstalled executables may not work."
10980 + # Fallback. This may break if $1 contains DOS-style drive
10981 + # specifications. The fix is not to complicate the expression
10982 + # below, but for the user to provide a working wine installation
10983 + # with winepath so that path translation in the cross-to-mingw
10984 + # case works properly.
10985 + lt_replace_pathsep_nix_to_dos="s|:|;|g"
10986 + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
10987 + $SED -e "$lt_replace_pathsep_nix_to_dos"`
10988 + fi
10989 + # Now, add the leading and trailing path separators back
10990 + case "$1" in
10991 + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
10992 + ;;
10993 + esac
10994 + case "$1" in
10995 + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
10996 + ;;
10997 + esac
10998 + ;;
10999 + esac
11000 + fi
11001 +}
11002 +# end: func_to_host_pathlist
11003 +
11004 +# func_emit_cwrapperexe_src
11005 +# emit the source code for a wrapper executable on stdout
11006 +# Must ONLY be called from within func_mode_link because
11007 +# it depends on a number of variable set therein.
11008 +func_emit_cwrapperexe_src ()
11009 +{
11010 + cat <<EOF
11011 +
11012 +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
11013 + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
11014 +
11015 + The $output program cannot be directly executed until all the libtool
11016 + libraries that it depends on are installed.
11017 +
11018 + This wrapper executable should never be moved out of the build directory.
11019 + If it is, it will not operate correctly.
11020 +
11021 + Currently, it simply execs the wrapper *script* "$SHELL $output",
11022 + but could eventually absorb all of the scripts functionality and
11023 + exec $objdir/$outputname directly.
11024 +*/
11025 +EOF
11026 + cat <<"EOF"
11027 +#include <stdio.h>
11028 +#include <stdlib.h>
11029 +#ifdef _MSC_VER
11030 +# include <direct.h>
11031 +# include <process.h>
11032 +# include <io.h>
11033 +# define setmode _setmode
11034 +#else
11035 +# include <unistd.h>
11036 +# include <stdint.h>
11037 +# ifdef __CYGWIN__
11038 +# include <io.h>
11039 +# define HAVE_SETENV
11040 +# ifdef __STRICT_ANSI__
11041 +char *realpath (const char *, char *);
11042 +int putenv (char *);
11043 +int setenv (const char *, const char *, int);
11044 +# endif
11045 +# endif
11046 +#endif
11047 +#include <malloc.h>
11048 +#include <stdarg.h>
11049 +#include <assert.h>
11050 +#include <string.h>
11051 +#include <ctype.h>
11052 +#include <errno.h>
11053 +#include <fcntl.h>
11054 +#include <sys/stat.h>
11055 +
11056 +#if defined(PATH_MAX)
11057 +# define LT_PATHMAX PATH_MAX
11058 +#elif defined(MAXPATHLEN)
11059 +# define LT_PATHMAX MAXPATHLEN
11060 +#else
11061 +# define LT_PATHMAX 1024
11062 +#endif
11063 +
11064 +#ifndef S_IXOTH
11065 +# define S_IXOTH 0
11066 +#endif
11067 +#ifndef S_IXGRP
11068 +# define S_IXGRP 0
11069 +#endif
11070 +
11071 +#ifdef _MSC_VER
11072 +# define S_IXUSR _S_IEXEC
11073 +# define stat _stat
11074 +# ifndef _INTPTR_T_DEFINED
11075 +# define intptr_t int
11076 +# endif
11077 +#endif
11078 +
11079 +#ifndef DIR_SEPARATOR
11080 +# define DIR_SEPARATOR '/'
11081 +# define PATH_SEPARATOR ':'
11082 +#endif
11083 +
11084 +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
11085 + defined (__OS2__)
11086 +# define HAVE_DOS_BASED_FILE_SYSTEM
11087 +# define FOPEN_WB "wb"
11088 +# ifndef DIR_SEPARATOR_2
11089 +# define DIR_SEPARATOR_2 '\\'
11090 +# endif
11091 +# ifndef PATH_SEPARATOR_2
11092 +# define PATH_SEPARATOR_2 ';'
11093 +# endif
11094 +#endif
11095 +
11096 +#ifndef DIR_SEPARATOR_2
11097 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
11098 +#else /* DIR_SEPARATOR_2 */
11099 +# define IS_DIR_SEPARATOR(ch) \
11100 + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
11101 +#endif /* DIR_SEPARATOR_2 */
11102 +
11103 +#ifndef PATH_SEPARATOR_2
11104 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
11105 +#else /* PATH_SEPARATOR_2 */
11106 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
11107 +#endif /* PATH_SEPARATOR_2 */
11108 +
11109 +#ifdef __CYGWIN__
11110 +# define FOPEN_WB "wb"
11111 +#endif
11112 +
11113 +#ifndef FOPEN_WB
11114 +# define FOPEN_WB "w"
11115 +#endif
11116 +#ifndef _O_BINARY
11117 +# define _O_BINARY 0
11118 +#endif
11119 +
11120 +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
11121 +#define XFREE(stale) do { \
11122 + if (stale) { free ((void *) stale); stale = 0; } \
11123 +} while (0)
11124 +
11125 +#undef LTWRAPPER_DEBUGPRINTF
11126 +#if defined DEBUGWRAPPER
11127 +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
11128 +static void
11129 +ltwrapper_debugprintf (const char *fmt, ...)
11130 +{
11131 + va_list args;
11132 + va_start (args, fmt);
11133 + (void) vfprintf (stderr, fmt, args);
11134 + va_end (args);
11135 +}
11136 +#else
11137 +# define LTWRAPPER_DEBUGPRINTF(args)
11138 +#endif
11139 +
11140 +const char *program_name = NULL;
11141 +
11142 +void *xmalloc (size_t num);
11143 +char *xstrdup (const char *string);
11144 +const char *base_name (const char *name);
11145 +char *find_executable (const char *wrapper);
11146 +char *chase_symlinks (const char *pathspec);
11147 +int make_executable (const char *path);
11148 +int check_executable (const char *path);
11149 +char *strendzap (char *str, const char *pat);
11150 +void lt_fatal (const char *message, ...);
11151 +void lt_setenv (const char *name, const char *value);
11152 +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
11153 +void lt_opt_process_env_set (const char *arg);
11154 +void lt_opt_process_env_prepend (const char *arg);
11155 +void lt_opt_process_env_append (const char *arg);
11156 +int lt_split_name_value (const char *arg, char** name, char** value);
11157 +void lt_update_exe_path (const char *name, const char *value);
11158 +void lt_update_lib_path (const char *name, const char *value);
11159 +
11160 +static const char *script_text_part1 =
11161 +EOF
11162 +
11163 + func_emit_wrapper_part1 yes |
11164 + $SED -e 's/\([\\"]\)/\\\1/g' \
11165 + -e 's/^/ "/' -e 's/$/\\n"/'
11166 + echo ";"
11167 + cat <<EOF
11168 +
11169 +static const char *script_text_part2 =
11170 +EOF
11171 + func_emit_wrapper_part2 yes |
11172 + $SED -e 's/\([\\"]\)/\\\1/g' \
11173 + -e 's/^/ "/' -e 's/$/\\n"/'
11174 + echo ";"
11175 +
11176 + cat <<EOF
11177 +const char * MAGIC_EXE = "$magic_exe";
11178 +const char * LIB_PATH_VARNAME = "$shlibpath_var";
11179 +EOF
11180 +
11181 + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
11182 + func_to_host_pathlist "$temp_rpath"
11183 + cat <<EOF
11184 +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
11185 +EOF
11186 + else
11187 + cat <<"EOF"
11188 +const char * LIB_PATH_VALUE = "";
11189 +EOF
11190 + fi
11191 +
11192 + if test -n "$dllsearchpath"; then
11193 + func_to_host_pathlist "$dllsearchpath:"
11194 + cat <<EOF
11195 +const char * EXE_PATH_VARNAME = "PATH";
11196 +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
11197 +EOF
11198 + else
11199 + cat <<"EOF"
11200 +const char * EXE_PATH_VARNAME = "";
11201 +const char * EXE_PATH_VALUE = "";
11202 +EOF
11203 + fi
11204 +
11205 + if test "$fast_install" = yes; then
11206 + cat <<EOF
11207 +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
11208 +EOF
11209 + else
11210 + cat <<EOF
11211 +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
11212 +EOF
11213 + fi
11214 +
11215 +
11216 + cat <<"EOF"
11217 +
11218 +#define LTWRAPPER_OPTION_PREFIX "--lt-"
11219 +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
11220 +
11221 +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
11222 +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
11223 +
11224 +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
11225 +
11226 +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
11227 +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
11228 + /* argument is putenv-style "foo=bar", value of foo is set to bar */
11229 +
11230 +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
11231 +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
11232 + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
11233 +
11234 +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
11235 +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
11236 + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
11237 +
11238 +int
11239 +main (int argc, char *argv[])
11240 +{
11241 + char **newargz;
11242 + int newargc;
11243 + char *tmp_pathspec;
11244 + char *actual_cwrapper_path;
11245 + char *actual_cwrapper_name;
11246 + char *target_name;
11247 + char *lt_argv_zero;
11248 + intptr_t rval = 127;
11249 +
11250 + int i;
11251 +
11252 + program_name = (char *) xstrdup (base_name (argv[0]));
11253 + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
11254 + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
11255 +
11256 + /* very simple arg parsing; don't want to rely on getopt */
11257 + for (i = 1; i < argc; i++)
11258 + {
11259 + if (strcmp (argv[i], dumpscript_opt) == 0)
11260 + {
11261 +EOF
11262 + case "$host" in
11263 + *mingw* | *cygwin* )
11264 + # make stdout use "unix" line endings
11265 + echo " setmode(1,_O_BINARY);"
11266 + ;;
11267 + esac
11268 +
11269 + cat <<"EOF"
11270 + printf ("%s", script_text_part1);
11271 + printf ("%s", script_text_part2);
11272 + return 0;
11273 + }
11274 + }
11275 +
11276 + newargz = XMALLOC (char *, argc + 1);
11277 + tmp_pathspec = find_executable (argv[0]);
11278 + if (tmp_pathspec == NULL)
11279 + lt_fatal ("Couldn't find %s", argv[0]);
11280 + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
11281 + tmp_pathspec));
11282 +
11283 + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
11284 + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
11285 + actual_cwrapper_path));
11286 + XFREE (tmp_pathspec);
11287 +
11288 + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
11289 + strendzap (actual_cwrapper_path, actual_cwrapper_name);
11290 +
11291 + /* wrapper name transforms */
11292 + strendzap (actual_cwrapper_name, ".exe");
11293 + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
11294 + XFREE (actual_cwrapper_name);
11295 + actual_cwrapper_name = tmp_pathspec;
11296 + tmp_pathspec = 0;
11297 +
11298 + /* target_name transforms -- use actual target program name; might have lt- prefix */
11299 + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
11300 + strendzap (target_name, ".exe");
11301 + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
11302 + XFREE (target_name);
11303 + target_name = tmp_pathspec;
11304 + tmp_pathspec = 0;
11305 +
11306 + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
11307 + target_name));
11308 +EOF
11309 +
11310 + cat <<EOF
11311 + newargz[0] =
11312 + XMALLOC (char, (strlen (actual_cwrapper_path) +
11313 + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
11314 + strcpy (newargz[0], actual_cwrapper_path);
11315 + strcat (newargz[0], "$objdir");
11316 + strcat (newargz[0], "/");
11317 +EOF
11318 +
11319 + cat <<"EOF"
11320 + /* stop here, and copy so we don't have to do this twice */
11321 + tmp_pathspec = xstrdup (newargz[0]);
11322 +
11323 + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
11324 + strcat (newargz[0], actual_cwrapper_name);
11325 +
11326 + /* DO want the lt- prefix here if it exists, so use target_name */
11327 + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
11328 + XFREE (tmp_pathspec);
11329 + tmp_pathspec = NULL;
11330 +EOF
11331 +
11332 + case $host_os in
11333 + mingw*)
11334 + cat <<"EOF"
11335 + {
11336 + char* p;
11337 + while ((p = strchr (newargz[0], '\\')) != NULL)
11338 + {
11339 + *p = '/';
11340 + }
11341 + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
11342 + {
11343 + *p = '/';
11344 + }
11345 + }
11346 +EOF
11347 + ;;
11348 + esac
11349 +
11350 + cat <<"EOF"
11351 + XFREE (target_name);
11352 + XFREE (actual_cwrapper_path);
11353 + XFREE (actual_cwrapper_name);
11354 +
11355 + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
11356 + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
11357 + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
11358 + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
11359 +
11360 + newargc=0;
11361 + for (i = 1; i < argc; i++)
11362 + {
11363 + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
11364 + {
11365 + if (argv[i][env_set_opt_len] == '=')
11366 + {
11367 + const char *p = argv[i] + env_set_opt_len + 1;
11368 + lt_opt_process_env_set (p);
11369 + }
11370 + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
11371 + {
11372 + lt_opt_process_env_set (argv[++i]); /* don't copy */
11373 + }
11374 + else
11375 + lt_fatal ("%s missing required argument", env_set_opt);
11376 + continue;
11377 + }
11378 + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
11379 + {
11380 + if (argv[i][env_prepend_opt_len] == '=')
11381 + {
11382 + const char *p = argv[i] + env_prepend_opt_len + 1;
11383 + lt_opt_process_env_prepend (p);
11384 + }
11385 + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
11386 + {
11387 + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
11388 + }
11389 + else
11390 + lt_fatal ("%s missing required argument", env_prepend_opt);
11391 + continue;
11392 + }
11393 + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
11394 + {
11395 + if (argv[i][env_append_opt_len] == '=')
11396 + {
11397 + const char *p = argv[i] + env_append_opt_len + 1;
11398 + lt_opt_process_env_append (p);
11399 + }
11400 + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
11401 + {
11402 + lt_opt_process_env_append (argv[++i]); /* don't copy */
11403 + }
11404 + else
11405 + lt_fatal ("%s missing required argument", env_append_opt);
11406 + continue;
11407 + }
11408 + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
11409 + {
11410 + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
11411 + namespace, but it is not one of the ones we know about and
11412 + have already dealt with, above (inluding dump-script), then
11413 + report an error. Otherwise, targets might begin to believe
11414 + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
11415 + namespace. The first time any user complains about this, we'll
11416 + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
11417 + or a configure.ac-settable value.
11418 + */
11419 + lt_fatal ("Unrecognized option in %s namespace: '%s'",
11420 + ltwrapper_option_prefix, argv[i]);
11421 + }
11422 + /* otherwise ... */
11423 + newargz[++newargc] = xstrdup (argv[i]);
11424 + }
11425 + newargz[++newargc] = NULL;
11426 +
11427 + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
11428 + for (i = 0; i < newargc; i++)
11429 + {
11430 + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
11431 + }
11432 +
11433 +EOF
11434 +
11435 + case $host_os in
11436 + mingw*)
11437 + cat <<"EOF"
11438 + /* execv doesn't actually work on mingw as expected on unix */
11439 + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
11440 + if (rval == -1)
11441 + {
11442 + /* failed to start process */
11443 + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
11444 + return 127;
11445 + }
11446 + return rval;
11447 +EOF
11448 + ;;
11449 + *)
11450 + cat <<"EOF"
11451 + execv (lt_argv_zero, newargz);
11452 + return rval; /* =127, but avoids unused variable warning */
11453 +EOF
11454 + ;;
11455 + esac
11456 +
11457 + cat <<"EOF"
11458 +}
11459 +
11460 +void *
11461 +xmalloc (size_t num)
11462 +{
11463 + void *p = (void *) malloc (num);
11464 + if (!p)
11465 + lt_fatal ("Memory exhausted");
11466 +
11467 + return p;
11468 +}
11469 +
11470 +char *
11471 +xstrdup (const char *string)
11472 +{
11473 + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
11474 + string) : NULL;
11475 +}
11476 +
11477 +const char *
11478 +base_name (const char *name)
11479 +{
11480 + const char *base;
11481 +
11482 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
11483 + /* Skip over the disk name in MSDOS pathnames. */
11484 + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
11485 + name += 2;
11486 +#endif
11487 +
11488 + for (base = name; *name; name++)
11489 + if (IS_DIR_SEPARATOR (*name))
11490 + base = name + 1;
11491 + return base;
11492 +}
11493 +
11494 +int
11495 +check_executable (const char *path)
11496 +{
11497 + struct stat st;
11498 +
11499 + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
11500 + path ? (*path ? path : "EMPTY!") : "NULL!"));
11501 + if ((!path) || (!*path))
11502 + return 0;
11503 +
11504 + if ((stat (path, &st) >= 0)
11505 + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
11506 + return 1;
11507 + else
11508 + return 0;
11509 +}
11510 +
11511 +int
11512 +make_executable (const char *path)
11513 +{
11514 + int rval = 0;
11515 + struct stat st;
11516 +
11517 + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
11518 + path ? (*path ? path : "EMPTY!") : "NULL!"));
11519 + if ((!path) || (!*path))
11520 + return 0;
11521 +
11522 + if (stat (path, &st) >= 0)
11523 + {
11524 + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
11525 + }
11526 + return rval;
11527 +}
11528 +
11529 +/* Searches for the full path of the wrapper. Returns
11530 + newly allocated full path name if found, NULL otherwise
11531 + Does not chase symlinks, even on platforms that support them.
11532 +*/
11533 +char *
11534 +find_executable (const char *wrapper)
11535 +{
11536 + int has_slash = 0;
11537 + const char *p;
11538 + const char *p_next;
11539 + /* static buffer for getcwd */
11540 + char tmp[LT_PATHMAX + 1];
11541 + int tmp_len;
11542 + char *concat_name;
11543 +
11544 + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
11545 + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
11546 +
11547 + if ((wrapper == NULL) || (*wrapper == '\0'))
11548 + return NULL;
11549 +
11550 + /* Absolute path? */
11551 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
11552 + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
11553 + {
11554 + concat_name = xstrdup (wrapper);
11555 + if (check_executable (concat_name))
11556 + return concat_name;
11557 + XFREE (concat_name);
11558 + }
11559 + else
11560 + {
11561 +#endif
11562 + if (IS_DIR_SEPARATOR (wrapper[0]))
11563 + {
11564 + concat_name = xstrdup (wrapper);
11565 + if (check_executable (concat_name))
11566 + return concat_name;
11567 + XFREE (concat_name);
11568 + }
11569 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
11570 + }
11571 +#endif
11572 +
11573 + for (p = wrapper; *p; p++)
11574 + if (*p == '/')
11575 + {
11576 + has_slash = 1;
11577 + break;
11578 + }
11579 + if (!has_slash)
11580 + {
11581 + /* no slashes; search PATH */
11582 + const char *path = getenv ("PATH");
11583 + if (path != NULL)
11584 + {
11585 + for (p = path; *p; p = p_next)
11586 + {
11587 + const char *q;
11588 + size_t p_len;
11589 + for (q = p; *q; q++)
11590 + if (IS_PATH_SEPARATOR (*q))
11591 + break;
11592 + p_len = q - p;
11593 + p_next = (*q == '\0' ? q : q + 1);
11594 + if (p_len == 0)
11595 + {
11596 + /* empty path: current directory */
11597 + if (getcwd (tmp, LT_PATHMAX) == NULL)
11598 + lt_fatal ("getcwd failed");
11599 + tmp_len = strlen (tmp);
11600 + concat_name =
11601 + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
11602 + memcpy (concat_name, tmp, tmp_len);
11603 + concat_name[tmp_len] = '/';
11604 + strcpy (concat_name + tmp_len + 1, wrapper);
11605 + }
11606 + else
11607 + {
11608 + concat_name =
11609 + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
11610 + memcpy (concat_name, p, p_len);
11611 + concat_name[p_len] = '/';
11612 + strcpy (concat_name + p_len + 1, wrapper);
11613 + }
11614 + if (check_executable (concat_name))
11615 + return concat_name;
11616 + XFREE (concat_name);
11617 + }
11618 + }
11619 + /* not found in PATH; assume curdir */
11620 + }
11621 + /* Relative path | not found in path: prepend cwd */
11622 + if (getcwd (tmp, LT_PATHMAX) == NULL)
11623 + lt_fatal ("getcwd failed");
11624 + tmp_len = strlen (tmp);
11625 + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
11626 + memcpy (concat_name, tmp, tmp_len);
11627 + concat_name[tmp_len] = '/';
11628 + strcpy (concat_name + tmp_len + 1, wrapper);
11629 +
11630 + if (check_executable (concat_name))
11631 + return concat_name;
11632 + XFREE (concat_name);
11633 + return NULL;
11634 +}
11635 +
11636 +char *
11637 +chase_symlinks (const char *pathspec)
11638 +{
11639 +#ifndef S_ISLNK
11640 + return xstrdup (pathspec);
11641 +#else
11642 + char buf[LT_PATHMAX];
11643 + struct stat s;
11644 + char *tmp_pathspec = xstrdup (pathspec);
11645 + char *p;
11646 + int has_symlinks = 0;
11647 + while (strlen (tmp_pathspec) && !has_symlinks)
11648 + {
11649 + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
11650 + tmp_pathspec));
11651 + if (lstat (tmp_pathspec, &s) == 0)
11652 + {
11653 + if (S_ISLNK (s.st_mode) != 0)
11654 + {
11655 + has_symlinks = 1;
11656 + break;
11657 + }
11658 +
11659 + /* search backwards for last DIR_SEPARATOR */
11660 + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
11661 + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
11662 + p--;
11663 + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
11664 + {
11665 + /* no more DIR_SEPARATORS left */
11666 + break;
11667 + }
11668 + *p = '\0';
11669 + }
11670 + else
11671 + {
11672 + char *errstr = strerror (errno);
11673 + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
11674 + }
11675 + }
11676 + XFREE (tmp_pathspec);
11677 +
11678 + if (!has_symlinks)
11679 + {
11680 + return xstrdup (pathspec);
11681 + }
11682 +
11683 + tmp_pathspec = realpath (pathspec, buf);
11684 + if (tmp_pathspec == 0)
11685 + {
11686 + lt_fatal ("Could not follow symlinks for %s", pathspec);
11687 + }
11688 + return xstrdup (tmp_pathspec);
11689 +#endif
11690 +}
11691 +
11692 +char *
11693 +strendzap (char *str, const char *pat)
11694 +{
11695 + size_t len, patlen;
11696 +
11697 + assert (str != NULL);
11698 + assert (pat != NULL);
11699 +
11700 + len = strlen (str);
11701 + patlen = strlen (pat);
11702 +
11703 + if (patlen <= len)
11704 + {
11705 + str += len - patlen;
11706 + if (strcmp (str, pat) == 0)
11707 + *str = '\0';
11708 + }
11709 + return str;
11710 +}
11711 +
11712 +static void
11713 +lt_error_core (int exit_status, const char *mode,
11714 + const char *message, va_list ap)
11715 +{
11716 + fprintf (stderr, "%s: %s: ", program_name, mode);
11717 + vfprintf (stderr, message, ap);
11718 + fprintf (stderr, ".\n");
11719 +
11720 + if (exit_status >= 0)
11721 + exit (exit_status);
11722 +}
11723 +
11724 +void
11725 +lt_fatal (const char *message, ...)
11726 +{
11727 + va_list ap;
11728 + va_start (ap, message);
11729 + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
11730 + va_end (ap);
11731 +}
11732 +
11733 +void
11734 +lt_setenv (const char *name, const char *value)
11735 +{
11736 + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
11737 + (name ? name : "<NULL>"),
11738 + (value ? value : "<NULL>")));
11739 + {
11740 +#ifdef HAVE_SETENV
11741 + /* always make a copy, for consistency with !HAVE_SETENV */
11742 + char *str = xstrdup (value);
11743 + setenv (name, str, 1);
11744 +#else
11745 + int len = strlen (name) + 1 + strlen (value) + 1;
11746 + char *str = XMALLOC (char, len);
11747 + sprintf (str, "%s=%s", name, value);
11748 + if (putenv (str) != EXIT_SUCCESS)
11749 + {
11750 + XFREE (str);
11751 + }
11752 +#endif
11753 + }
11754 +}
11755 +
11756 +char *
11757 +lt_extend_str (const char *orig_value, const char *add, int to_end)
11758 +{
11759 + char *new_value;
11760 + if (orig_value && *orig_value)
11761 + {
11762 + int orig_value_len = strlen (orig_value);
11763 + int add_len = strlen (add);
11764 + new_value = XMALLOC (char, add_len + orig_value_len + 1);
11765 + if (to_end)
11766 + {
11767 + strcpy (new_value, orig_value);
11768 + strcpy (new_value + orig_value_len, add);
11769 + }
11770 + else
11771 + {
11772 + strcpy (new_value, add);
11773 + strcpy (new_value + add_len, orig_value);
11774 + }
11775 + }
11776 + else
11777 + {
11778 + new_value = xstrdup (add);
11779 + }
11780 + return new_value;
11781 +}
11782 +
11783 +int
11784 +lt_split_name_value (const char *arg, char** name, char** value)
11785 +{
11786 + const char *p;
11787 + int len;
11788 + if (!arg || !*arg)
11789 + return 1;
11790 +
11791 + p = strchr (arg, (int)'=');
11792 +
11793 + if (!p)
11794 + return 1;
11795 +
11796 + *value = xstrdup (++p);
11797 +
11798 + len = strlen (arg) - strlen (*value);
11799 + *name = XMALLOC (char, len);
11800 + strncpy (*name, arg, len-1);
11801 + (*name)[len - 1] = '\0';
11802 +
11803 + return 0;
11804 +}
11805 +
11806 +void
11807 +lt_opt_process_env_set (const char *arg)
11808 +{
11809 + char *name = NULL;
11810 + char *value = NULL;
11811 +
11812 + if (lt_split_name_value (arg, &name, &value) != 0)
11813 + {
11814 + XFREE (name);
11815 + XFREE (value);
11816 + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
11817 + }
11818 +
11819 + lt_setenv (name, value);
11820 + XFREE (name);
11821 + XFREE (value);
11822 +}
11823 +
11824 +void
11825 +lt_opt_process_env_prepend (const char *arg)
11826 +{
11827 + char *name = NULL;
11828 + char *value = NULL;
11829 + char *new_value = NULL;
11830 +
11831 + if (lt_split_name_value (arg, &name, &value) != 0)
11832 + {
11833 + XFREE (name);
11834 + XFREE (value);
11835 + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
11836 + }
11837 +
11838 + new_value = lt_extend_str (getenv (name), value, 0);
11839 + lt_setenv (name, new_value);
11840 + XFREE (new_value);
11841 + XFREE (name);
11842 + XFREE (value);
11843 +}
11844 +
11845 +void
11846 +lt_opt_process_env_append (const char *arg)
11847 +{
11848 + char *name = NULL;
11849 + char *value = NULL;
11850 + char *new_value = NULL;
11851 +
11852 + if (lt_split_name_value (arg, &name, &value) != 0)
11853 + {
11854 + XFREE (name);
11855 + XFREE (value);
11856 + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
11857 + }
11858 +
11859 + new_value = lt_extend_str (getenv (name), value, 1);
11860 + lt_setenv (name, new_value);
11861 + XFREE (new_value);
11862 + XFREE (name);
11863 + XFREE (value);
11864 +}
11865 +
11866 +void
11867 +lt_update_exe_path (const char *name, const char *value)
11868 +{
11869 + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
11870 + (name ? name : "<NULL>"),
11871 + (value ? value : "<NULL>")));
11872 +
11873 + if (name && *name && value && *value)
11874 + {
11875 + char *new_value = lt_extend_str (getenv (name), value, 0);
11876 + /* some systems can't cope with a ':'-terminated path #' */
11877 + int len = strlen (new_value);
11878 + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
11879 + {
11880 + new_value[len-1] = '\0';
11881 + }
11882 + lt_setenv (name, new_value);
11883 + XFREE (new_value);
11884 + }
11885 +}
11886 +
11887 +void
11888 +lt_update_lib_path (const char *name, const char *value)
11889 +{
11890 + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
11891 + (name ? name : "<NULL>"),
11892 + (value ? value : "<NULL>")));
11893 +
11894 + if (name && *name && value && *value)
11895 + {
11896 + char *new_value = lt_extend_str (getenv (name), value, 0);
11897 + lt_setenv (name, new_value);
11898 + XFREE (new_value);
11899 + }
11900 +}
11901 +
11902 +
11903 +EOF
11904 +}
11905 +# end: func_emit_cwrapperexe_src
11906 +
11907 +# func_mode_link arg...
11908 +func_mode_link ()
11909 +{
11910 + $opt_debug
11911 + case $host in
11912 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
11913 + # It is impossible to link a dll without this setting, and
11914 + # we shouldn't force the makefile maintainer to figure out
11915 + # which system we are compiling for in order to pass an extra
11916 + # flag for every libtool invocation.
11917 + # allow_undefined=no
11918 +
11919 + # FIXME: Unfortunately, there are problems with the above when trying
11920 + # to make a dll which has undefined symbols, in which case not
11921 + # even a static library is built. For now, we need to specify
11922 + # -no-undefined on the libtool link line when we can be certain
11923 + # that all symbols are satisfied, otherwise we get a static library.
11924 + allow_undefined=yes
11925 + ;;
11926 + *)
11927 + allow_undefined=yes
11928 + ;;
11929 + esac
11930 + libtool_args=$nonopt
11931 + base_compile="$nonopt $@"
11932 + compile_command=$nonopt
11933 + finalize_command=$nonopt
11934 +
11935 + compile_rpath=
11936 + finalize_rpath=
11937 + compile_shlibpath=
11938 + finalize_shlibpath=
11939 + convenience=
11940 + old_convenience=
11941 + deplibs=
11942 + old_deplibs=
11943 + compiler_flags=
11944 + linker_flags=
11945 + dllsearchpath=
11946 + lib_search_path=`pwd`
11947 + inst_prefix_dir=
11948 + new_inherited_linker_flags=
11949 +
11950 + avoid_version=no
11951 + dlfiles=
11952 + dlprefiles=
11953 + dlself=no
11954 + export_dynamic=no
11955 + export_symbols=
11956 + export_symbols_regex=
11957 + generated=
11958 + libobjs=
11959 + ltlibs=
11960 + module=no
11961 + no_install=no
11962 + objs=
11963 + non_pic_objects=
11964 + precious_files_regex=
11965 + prefer_static_libs=no
11966 + preload=no
11967 + prev=
11968 + prevarg=
11969 + release=
11970 + rpath=
11971 + xrpath=
11972 + perm_rpath=
11973 + temp_rpath=
11974 + thread_safe=no
11975 + vinfo=
11976 + vinfo_number=no
11977 + weak_libs=
11978 + single_module="${wl}-single_module"
11979 + func_infer_tag $base_compile
11980 +
11981 + # We need to know -static, to get the right output filenames.
11982 + for arg
11983 + do
11984 + case $arg in
11985 + -shared)
11986 + test "$build_libtool_libs" != yes && \
11987 + func_fatal_configuration "can not build a shared library"
11988 + build_old_libs=no
11989 + break
11990 + ;;
11991 + -all-static | -static | -static-libtool-libs)
11992 + case $arg in
11993 + -all-static)
11994 + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
11995 + func_warning "complete static linking is impossible in this configuration"
11996 + fi
11997 + if test -n "$link_static_flag"; then
11998 + dlopen_self=$dlopen_self_static
11999 + fi
12000 + prefer_static_libs=yes
12001 + ;;
12002 + -static)
12003 + if test -z "$pic_flag" && test -n "$link_static_flag"; then
12004 + dlopen_self=$dlopen_self_static
12005 + fi
12006 + prefer_static_libs=built
12007 + ;;
12008 + -static-libtool-libs)
12009 + if test -z "$pic_flag" && test -n "$link_static_flag"; then
12010 + dlopen_self=$dlopen_self_static
12011 + fi
12012 + prefer_static_libs=yes
12013 + ;;
12014 + esac
12015 + build_libtool_libs=no
12016 + build_old_libs=yes
12017 + break
12018 + ;;
12019 + esac
12020 + done
12021 +
12022 + # See if our shared archives depend on static archives.
12023 + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
12024 +
12025 + # Go through the arguments, transforming them on the way.
12026 + while test "$#" -gt 0; do
12027 + arg="$1"
12028 + shift
12029 + func_quote_for_eval "$arg"
12030 + qarg=$func_quote_for_eval_unquoted_result
12031 + func_append libtool_args " $func_quote_for_eval_result"
12032 +
12033 + # If the previous option needs an argument, assign it.
12034 + if test -n "$prev"; then
12035 + case $prev in
12036 + output)
12037 + func_append compile_command " @OUTPUT@"
12038 + func_append finalize_command " @OUTPUT@"
12039 + ;;
12040 + esac
12041 +
12042 + case $prev in
12043 + dlfiles|dlprefiles)
12044 + if test "$preload" = no; then
12045 + # Add the symbol object into the linking commands.
12046 + func_append compile_command " @SYMFILE@"
12047 + func_append finalize_command " @SYMFILE@"
12048 + preload=yes
12049 + fi
12050 + case $arg in
12051 + *.la | *.lo) ;; # We handle these cases below.
12052 + force)
12053 + if test "$dlself" = no; then
12054 + dlself=needless
12055 + export_dynamic=yes
12056 + fi
12057 + prev=
12058 + continue
12059 + ;;
12060 + self)
12061 + if test "$prev" = dlprefiles; then
12062 + dlself=yes
12063 + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
12064 + dlself=yes
12065 + else
12066 + dlself=needless
12067 + export_dynamic=yes
12068 + fi
12069 + prev=
12070 + continue
12071 + ;;
12072 + *)
12073 + if test "$prev" = dlfiles; then
12074 + dlfiles="$dlfiles $arg"
12075 + else
12076 + dlprefiles="$dlprefiles $arg"
12077 + fi
12078 + prev=
12079 + continue
12080 + ;;
12081 + esac
12082 + ;;
12083 + expsyms)
12084 + export_symbols="$arg"
12085 + test -f "$arg" \
12086 + || func_fatal_error "symbol file \`$arg' does not exist"
12087 + prev=
12088 + continue
12089 + ;;
12090 + expsyms_regex)
12091 + export_symbols_regex="$arg"
12092 + prev=
12093 + continue
12094 + ;;
12095 + framework)
12096 + case $host in
12097 + *-*-darwin*)
12098 + case "$deplibs " in
12099 + *" $qarg.ltframework "*) ;;
12100 + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
12101 + ;;
12102 + esac
12103 + ;;
12104 + esac
12105 + prev=
12106 + continue
12107 + ;;
12108 + inst_prefix)
12109 + inst_prefix_dir="$arg"
12110 + prev=
12111 + continue
12112 + ;;
12113 + objectlist)
12114 + if test -f "$arg"; then
12115 + save_arg=$arg
12116 + moreargs=
12117 + for fil in `cat "$save_arg"`
12118 + do
12119 +# moreargs="$moreargs $fil"
12120 + arg=$fil
12121 + # A libtool-controlled object.
12122 +
12123 + # Check to see that this really is a libtool object.
12124 + if func_lalib_unsafe_p "$arg"; then
12125 + pic_object=
12126 + non_pic_object=
12127 +
12128 + # Read the .lo file
12129 + func_source "$arg"
12130 +
12131 + if test -z "$pic_object" ||
12132 + test -z "$non_pic_object" ||
12133 + test "$pic_object" = none &&
12134 + test "$non_pic_object" = none; then
12135 + func_fatal_error "cannot find name of object for \`$arg'"
12136 + fi
12137 +
12138 + # Extract subdirectory from the argument.
12139 + func_dirname "$arg" "/" ""
12140 + xdir="$func_dirname_result"
12141 +
12142 + if test "$pic_object" != none; then
12143 + # Prepend the subdirectory the object is found in.
12144 + pic_object="$xdir$pic_object"
12145 +
12146 + if test "$prev" = dlfiles; then
12147 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
12148 + dlfiles="$dlfiles $pic_object"
12149 + prev=
12150 + continue
12151 + else
12152 + # If libtool objects are unsupported, then we need to preload.
12153 + prev=dlprefiles
12154 + fi
12155 + fi
12156 +
12157 + # CHECK ME: I think I busted this. -Ossama
12158 + if test "$prev" = dlprefiles; then
12159 + # Preload the old-style object.
12160 + dlprefiles="$dlprefiles $pic_object"
12161 + prev=
12162 + fi
12163 +
12164 + # A PIC object.
12165 + func_append libobjs " $pic_object"
12166 + arg="$pic_object"
12167 + fi
12168 +
12169 + # Non-PIC object.
12170 + if test "$non_pic_object" != none; then
12171 + # Prepend the subdirectory the object is found in.
12172 + non_pic_object="$xdir$non_pic_object"
12173 +
12174 + # A standard non-PIC object
12175 + func_append non_pic_objects " $non_pic_object"
12176 + if test -z "$pic_object" || test "$pic_object" = none ; then
12177 + arg="$non_pic_object"
12178 + fi
12179 + else
12180 + # If the PIC object exists, use it instead.
12181 + # $xdir was prepended to $pic_object above.
12182 + non_pic_object="$pic_object"
12183 + func_append non_pic_objects " $non_pic_object"
12184 + fi
12185 + else
12186 + # Only an error if not doing a dry-run.
12187 + if $opt_dry_run; then
12188 + # Extract subdirectory from the argument.
12189 + func_dirname "$arg" "/" ""
12190 + xdir="$func_dirname_result"
12191 +
12192 + func_lo2o "$arg"
12193 + pic_object=$xdir$objdir/$func_lo2o_result
12194 + non_pic_object=$xdir$func_lo2o_result
12195 + func_append libobjs " $pic_object"
12196 + func_append non_pic_objects " $non_pic_object"
12197 + else
12198 + func_fatal_error "\`$arg' is not a valid libtool object"
12199 + fi
12200 + fi
12201 + done
12202 + else
12203 + func_fatal_error "link input file \`$arg' does not exist"
12204 + fi
12205 + arg=$save_arg
12206 + prev=
12207 + continue
12208 + ;;
12209 + precious_regex)
12210 + precious_files_regex="$arg"
12211 + prev=
12212 + continue
12213 + ;;
12214 + release)
12215 + release="-$arg"
12216 + prev=
12217 + continue
12218 + ;;
12219 + rpath | xrpath)
12220 + # We need an absolute path.
12221 + case $arg in
12222 + [\\/]* | [A-Za-z]:[\\/]*) ;;
12223 + *)
12224 + func_fatal_error "only absolute run-paths are allowed"
12225 + ;;
12226 + esac
12227 + if test "$prev" = rpath; then
12228 + case "$rpath " in
12229 + *" $arg "*) ;;
12230 + *) rpath="$rpath $arg" ;;
12231 + esac
12232 + else
12233 + case "$xrpath " in
12234 + *" $arg "*) ;;
12235 + *) xrpath="$xrpath $arg" ;;
12236 + esac
12237 + fi
12238 + prev=
12239 + continue
12240 + ;;
12241 + shrext)
12242 + shrext_cmds="$arg"
12243 + prev=
12244 + continue
12245 + ;;
12246 + weak)
12247 + weak_libs="$weak_libs $arg"
12248 + prev=
12249 + continue
12250 + ;;
12251 + xcclinker)
12252 + linker_flags="$linker_flags $qarg"
12253 + compiler_flags="$compiler_flags $qarg"
12254 + prev=
12255 + func_append compile_command " $qarg"
12256 + func_append finalize_command " $qarg"
12257 + continue
12258 + ;;
12259 + xcompiler)
12260 + compiler_flags="$compiler_flags $qarg"
12261 + prev=
12262 + func_append compile_command " $qarg"
12263 + func_append finalize_command " $qarg"
12264 + continue
12265 + ;;
12266 + xlinker)
12267 + linker_flags="$linker_flags $qarg"
12268 + compiler_flags="$compiler_flags $wl$qarg"
12269 + prev=
12270 + func_append compile_command " $wl$qarg"
12271 + func_append finalize_command " $wl$qarg"
12272 + continue
12273 + ;;
12274 + *)
12275 + eval "$prev=\"\$arg\""
12276 + prev=
12277 + continue
12278 + ;;
12279 + esac
12280 + fi # test -n "$prev"
12281 +
12282 + prevarg="$arg"
12283 +
12284 + case $arg in
12285 + -all-static)
12286 + if test -n "$link_static_flag"; then
12287 + # See comment for -static flag below, for more details.
12288 + func_append compile_command " $link_static_flag"
12289 + func_append finalize_command " $link_static_flag"
12290 + fi
12291 + continue
12292 + ;;
12293 +
12294 + -allow-undefined)
12295 + # FIXME: remove this flag sometime in the future.
12296 + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
12297 + ;;
12298 +
12299 + -avoid-version)
12300 + avoid_version=yes
12301 + continue
12302 + ;;
12303 +
12304 + -dlopen)
12305 + prev=dlfiles
12306 + continue
12307 + ;;
12308 +
12309 + -dlpreopen)
12310 + prev=dlprefiles
12311 + continue
12312 + ;;
12313 +
12314 + -export-dynamic)
12315 + export_dynamic=yes
12316 + continue
12317 + ;;
12318 +
12319 + -export-symbols | -export-symbols-regex)
12320 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
12321 + func_fatal_error "more than one -exported-symbols argument is not allowed"
12322 + fi
12323 + if test "X$arg" = "X-export-symbols"; then
12324 + prev=expsyms
12325 + else
12326 + prev=expsyms_regex
12327 + fi
12328 + continue
12329 + ;;
12330 +
12331 + -framework)
12332 + prev=framework
12333 + continue
12334 + ;;
12335 +
12336 + -inst-prefix-dir)
12337 + prev=inst_prefix
12338 + continue
12339 + ;;
12340 +
12341 + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
12342 + # so, if we see these flags be careful not to treat them like -L
12343 + -L[A-Z][A-Z]*:*)
12344 + case $with_gcc/$host in
12345 + no/*-*-irix* | /*-*-irix*)
12346 + func_append compile_command " $arg"
12347 + func_append finalize_command " $arg"
12348 + ;;
12349 + esac
12350 + continue
12351 + ;;
12352 +
12353 + -L*)
12354 + func_stripname '-L' '' "$arg"
12355 + dir=$func_stripname_result
12356 + if test -z "$dir"; then
12357 + if test "$#" -gt 0; then
12358 + func_fatal_error "require no space between \`-L' and \`$1'"
12359 + else
12360 + func_fatal_error "need path for \`-L' option"
12361 + fi
12362 + fi
12363 + # We need an absolute path.
12364 + case $dir in
12365 + [\\/]* | [A-Za-z]:[\\/]*) ;;
12366 + *)
12367 + absdir=`cd "$dir" && pwd`
12368 + test -z "$absdir" && \
12369 + func_fatal_error "cannot determine absolute directory name of \`$dir'"
12370 + dir="$absdir"
12371 + ;;
12372 + esac
12373 + case "$deplibs " in
12374 + *" -L$dir "*) ;;
12375 + *)
12376 + deplibs="$deplibs -L$dir"
12377 + lib_search_path="$lib_search_path $dir"
12378 + ;;
12379 + esac
12380 + case $host in
12381 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
12382 + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
12383 + case :$dllsearchpath: in
12384 + *":$dir:"*) ;;
12385 + ::) dllsearchpath=$dir;;
12386 + *) dllsearchpath="$dllsearchpath:$dir";;
12387 + esac
12388 + case :$dllsearchpath: in
12389 + *":$testbindir:"*) ;;
12390 + ::) dllsearchpath=$testbindir;;
12391 + *) dllsearchpath="$dllsearchpath:$testbindir";;
12392 + esac
12393 + ;;
12394 + esac
12395 + continue
12396 + ;;
12397 +
12398 + -l*)
12399 + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
12400 + case $host in
12401 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
12402 + # These systems don't actually have a C or math library (as such)
12403 + continue
12404 + ;;
12405 + *-*-os2*)
12406 + # These systems don't actually have a C library (as such)
12407 + test "X$arg" = "X-lc" && continue
12408 + ;;
12409 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
12410 + # Do not include libc due to us having libc/libc_r.
12411 + test "X$arg" = "X-lc" && continue
12412 + ;;
12413 + *-*-rhapsody* | *-*-darwin1.[012])
12414 + # Rhapsody C and math libraries are in the System framework
12415 + deplibs="$deplibs System.ltframework"
12416 + continue
12417 + ;;
12418 + *-*-sco3.2v5* | *-*-sco5v6*)
12419 + # Causes problems with __ctype
12420 + test "X$arg" = "X-lc" && continue
12421 + ;;
12422 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
12423 + # Compiler inserts libc in the correct place for threads to work
12424 + test "X$arg" = "X-lc" && continue
12425 + ;;
12426 + esac
12427 + elif test "X$arg" = "X-lc_r"; then
12428 + case $host in
12429 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
12430 + # Do not include libc_r directly, use -pthread flag.
12431 + continue
12432 + ;;
12433 + esac
12434 + fi
12435 + deplibs="$deplibs $arg"
12436 + continue
12437 + ;;
12438 +
12439 + -module)
12440 + module=yes
12441 + continue
12442 + ;;
12443 +
12444 + # Tru64 UNIX uses -model [arg] to determine the layout of C++
12445 + # classes, name mangling, and exception handling.
12446 + # Darwin uses the -arch flag to determine output architecture.
12447 + -model|-arch|-isysroot)
12448 + compiler_flags="$compiler_flags $arg"
12449 + func_append compile_command " $arg"
12450 + func_append finalize_command " $arg"
12451 + prev=xcompiler
12452 + continue
12453 + ;;
12454 +
12455 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
12456 + compiler_flags="$compiler_flags $arg"
12457 + func_append compile_command " $arg"
12458 + func_append finalize_command " $arg"
12459 + case "$new_inherited_linker_flags " in
12460 + *" $arg "*) ;;
12461 + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
12462 + esac
12463 + continue
12464 + ;;
12465 +
12466 + -multi_module)
12467 + single_module="${wl}-multi_module"
12468 + continue
12469 + ;;
12470 +
12471 + -no-fast-install)
12472 + fast_install=no
12473 + continue
12474 + ;;
12475 +
12476 + -no-install)
12477 + case $host in
12478 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
12479 + # The PATH hackery in wrapper scripts is required on Windows
12480 + # and Darwin in order for the loader to find any dlls it needs.
12481 + func_warning "\`-no-install' is ignored for $host"
12482 + func_warning "assuming \`-no-fast-install' instead"
12483 + fast_install=no
12484 + ;;
12485 + *) no_install=yes ;;
12486 + esac
12487 + continue
12488 + ;;
12489 +
12490 + -no-undefined)
12491 + allow_undefined=no
12492 + continue
12493 + ;;
12494 +
12495 + -objectlist)
12496 + prev=objectlist
12497 + continue
12498 + ;;
12499 +
12500 + -o) prev=output ;;
12501 +
12502 + -precious-files-regex)
12503 + prev=precious_regex
12504 + continue
12505 + ;;
12506 +
12507 + -release)
12508 + prev=release
12509 + continue
12510 + ;;
12511 +
12512 + -rpath)
12513 + prev=rpath
12514 + continue
12515 + ;;
12516 +
12517 + -R)
12518 + prev=xrpath
12519 + continue
12520 + ;;
12521 +
12522 + -R*)
12523 + func_stripname '-R' '' "$arg"
12524 + dir=$func_stripname_result
12525 + # We need an absolute path.
12526 + case $dir in
12527 + [\\/]* | [A-Za-z]:[\\/]*) ;;
12528 + *)
12529 + func_fatal_error "only absolute run-paths are allowed"
12530 + ;;
12531 + esac
12532 + case "$xrpath " in
12533 + *" $dir "*) ;;
12534 + *) xrpath="$xrpath $dir" ;;
12535 + esac
12536 + continue
12537 + ;;
12538 +
12539 + -shared)
12540 + # The effects of -shared are defined in a previous loop.
12541 + continue
12542 + ;;
12543 +
12544 + -shrext)
12545 + prev=shrext
12546 + continue
12547 + ;;
12548 +
12549 + -static | -static-libtool-libs)
12550 + # The effects of -static are defined in a previous loop.
12551 + # We used to do the same as -all-static on platforms that
12552 + # didn't have a PIC flag, but the assumption that the effects
12553 + # would be equivalent was wrong. It would break on at least
12554 + # Digital Unix and AIX.
12555 + continue
12556 + ;;
12557 +
12558 + -thread-safe)
12559 + thread_safe=yes
12560 + continue
12561 + ;;
12562 +
12563 + -version-info)
12564 + prev=vinfo
12565 + continue
12566 + ;;
12567 +
12568 + -version-number)
12569 + prev=vinfo
12570 + vinfo_number=yes
12571 + continue
12572 + ;;
12573 +
12574 + -weak)
12575 + prev=weak
12576 + continue
12577 + ;;
12578 +
12579 + -Wc,*)
12580 + func_stripname '-Wc,' '' "$arg"
12581 + args=$func_stripname_result
12582 + arg=
12583 + save_ifs="$IFS"; IFS=','
12584 + for flag in $args; do
12585 + IFS="$save_ifs"
12586 + func_quote_for_eval "$flag"
12587 + arg="$arg $wl$func_quote_for_eval_result"
12588 + compiler_flags="$compiler_flags $func_quote_for_eval_result"
12589 + done
12590 + IFS="$save_ifs"
12591 + func_stripname ' ' '' "$arg"
12592 + arg=$func_stripname_result
12593 + ;;
12594 +
12595 + -Wl,*)
12596 + func_stripname '-Wl,' '' "$arg"
12597 + args=$func_stripname_result
12598 + arg=
12599 + save_ifs="$IFS"; IFS=','
12600 + for flag in $args; do
12601 + IFS="$save_ifs"
12602 + func_quote_for_eval "$flag"
12603 + arg="$arg $wl$func_quote_for_eval_result"
12604 + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
12605 + linker_flags="$linker_flags $func_quote_for_eval_result"
12606 + done
12607 + IFS="$save_ifs"
12608 + func_stripname ' ' '' "$arg"
12609 + arg=$func_stripname_result
12610 + ;;
12611 +
12612 + -Xcompiler)
12613 + prev=xcompiler
12614 + continue
12615 + ;;
12616 +
12617 + -Xlinker)
12618 + prev=xlinker
12619 + continue
12620 + ;;
12621 +
12622 + -XCClinker)
12623 + prev=xcclinker
12624 + continue
12625 + ;;
12626 +
12627 + # -msg_* for osf cc
12628 + -msg_*)
12629 + func_quote_for_eval "$arg"
12630 + arg="$func_quote_for_eval_result"
12631 + ;;
12632 +
12633 + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
12634 + # -r[0-9][0-9]* specifies the processor on the SGI compiler
12635 + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
12636 + # +DA*, +DD* enable 64-bit mode on the HP compiler
12637 + # -q* pass through compiler args for the IBM compiler
12638 + # -m*, -t[45]*, -txscale* pass through architecture-specific
12639 + # compiler args for GCC
12640 + # -F/path gives path to uninstalled frameworks, gcc on darwin
12641 + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
12642 + # @file GCC response files
12643 + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
12644 + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
12645 + func_quote_for_eval "$arg"
12646 + arg="$func_quote_for_eval_result"
12647 + func_append compile_command " $arg"
12648 + func_append finalize_command " $arg"
12649 + compiler_flags="$compiler_flags $arg"
12650 + continue
12651 + ;;
12652 +
12653 + # Some other compiler flag.
12654 + -* | +*)
12655 + func_quote_for_eval "$arg"
12656 + arg="$func_quote_for_eval_result"
12657 + ;;
12658 +
12659 + *.$objext)
12660 + # A standard object.
12661 + objs="$objs $arg"
12662 + ;;
12663 +
12664 + *.lo)
12665 + # A libtool-controlled object.
12666 +
12667 + # Check to see that this really is a libtool object.
12668 + if func_lalib_unsafe_p "$arg"; then
12669 + pic_object=
12670 + non_pic_object=
12671 +
12672 + # Read the .lo file
12673 + func_source "$arg"
12674 +
12675 + if test -z "$pic_object" ||
12676 + test -z "$non_pic_object" ||
12677 + test "$pic_object" = none &&
12678 + test "$non_pic_object" = none; then
12679 + func_fatal_error "cannot find name of object for \`$arg'"
12680 + fi
12681 +
12682 + # Extract subdirectory from the argument.
12683 + func_dirname "$arg" "/" ""
12684 + xdir="$func_dirname_result"
12685 +
12686 + if test "$pic_object" != none; then
12687 + # Prepend the subdirectory the object is found in.
12688 + pic_object="$xdir$pic_object"
12689 +
12690 + if test "$prev" = dlfiles; then
12691 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
12692 + dlfiles="$dlfiles $pic_object"
12693 + prev=
12694 + continue
12695 + else
12696 + # If libtool objects are unsupported, then we need to preload.
12697 + prev=dlprefiles
12698 + fi
12699 + fi
12700 +
12701 + # CHECK ME: I think I busted this. -Ossama
12702 + if test "$prev" = dlprefiles; then
12703 + # Preload the old-style object.
12704 + dlprefiles="$dlprefiles $pic_object"
12705 + prev=
12706 + fi
12707 +
12708 + # A PIC object.
12709 + func_append libobjs " $pic_object"
12710 + arg="$pic_object"
12711 + fi
12712 +
12713 + # Non-PIC object.
12714 + if test "$non_pic_object" != none; then
12715 + # Prepend the subdirectory the object is found in.
12716 + non_pic_object="$xdir$non_pic_object"
12717 +
12718 + # A standard non-PIC object
12719 + func_append non_pic_objects " $non_pic_object"
12720 + if test -z "$pic_object" || test "$pic_object" = none ; then
12721 + arg="$non_pic_object"
12722 + fi
12723 + else
12724 + # If the PIC object exists, use it instead.
12725 + # $xdir was prepended to $pic_object above.
12726 + non_pic_object="$pic_object"
12727 + func_append non_pic_objects " $non_pic_object"
12728 + fi
12729 + else
12730 + # Only an error if not doing a dry-run.
12731 + if $opt_dry_run; then
12732 + # Extract subdirectory from the argument.
12733 + func_dirname "$arg" "/" ""
12734 + xdir="$func_dirname_result"
12735 +
12736 + func_lo2o "$arg"
12737 + pic_object=$xdir$objdir/$func_lo2o_result
12738 + non_pic_object=$xdir$func_lo2o_result
12739 + func_append libobjs " $pic_object"
12740 + func_append non_pic_objects " $non_pic_object"
12741 + else
12742 + func_fatal_error "\`$arg' is not a valid libtool object"
12743 + fi
12744 + fi
12745 + ;;
12746 +
12747 + *.$libext)
12748 + # An archive.
12749 + deplibs="$deplibs $arg"
12750 + old_deplibs="$old_deplibs $arg"
12751 + continue
12752 + ;;
12753 +
12754 + *.la)
12755 + # A libtool-controlled library.
12756 +
12757 + if test "$prev" = dlfiles; then
12758 + # This library was specified with -dlopen.
12759 + dlfiles="$dlfiles $arg"
12760 + prev=
12761 + elif test "$prev" = dlprefiles; then
12762 + # The library was specified with -dlpreopen.
12763 + dlprefiles="$dlprefiles $arg"
12764 + prev=
12765 + else
12766 + deplibs="$deplibs $arg"
12767 + fi
12768 + continue
12769 + ;;
12770 +
12771 + # Some other compiler argument.
12772 + *)
12773 + # Unknown arguments in both finalize_command and compile_command need
12774 + # to be aesthetically quoted because they are evaled later.
12775 + func_quote_for_eval "$arg"
12776 + arg="$func_quote_for_eval_result"
12777 + ;;
12778 + esac # arg
12779 +
12780 + # Now actually substitute the argument into the commands.
12781 + if test -n "$arg"; then
12782 + func_append compile_command " $arg"
12783 + func_append finalize_command " $arg"
12784 + fi
12785 + done # argument parsing loop
12786 +
12787 + test -n "$prev" && \
12788 + func_fatal_help "the \`$prevarg' option requires an argument"
12789 +
12790 + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
12791 + eval arg=\"$export_dynamic_flag_spec\"
12792 + func_append compile_command " $arg"
12793 + func_append finalize_command " $arg"
12794 + fi
12795 +
12796 + oldlibs=
12797 + # calculate the name of the file, without its directory
12798 + func_basename "$output"
12799 + outputname="$func_basename_result"
12800 + libobjs_save="$libobjs"
12801 +
12802 + if test -n "$shlibpath_var"; then
12803 + # get the directories listed in $shlibpath_var
12804 + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
12805 + else
12806 + shlib_search_path=
12807 + fi
12808 + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
12809 + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
12810 +
12811 + func_dirname "$output" "/" ""
12812 + output_objdir="$func_dirname_result$objdir"
12813 + # Create the object directory.
12814 + func_mkdir_p "$output_objdir"
12815 +
12816 + # Determine the type of output
12817 + case $output in
12818 + "")
12819 + func_fatal_help "you must specify an output file"
12820 + ;;
12821 + *.$libext) linkmode=oldlib ;;
12822 + *.lo | *.$objext) linkmode=obj ;;
12823 + *.la) linkmode=lib ;;
12824 + *) linkmode=prog ;; # Anything else should be a program.
12825 + esac
12826 +
12827 + specialdeplibs=
12828 +
12829 + libs=
12830 + # Find all interdependent deplibs by searching for libraries
12831 + # that are linked more than once (e.g. -la -lb -la)
12832 + for deplib in $deplibs; do
12833 + if $opt_duplicate_deps ; then
12834 + case "$libs " in
12835 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
12836 + esac
12837 + fi
12838 + libs="$libs $deplib"
12839 + done
12840 +
12841 + if test "$linkmode" = lib; then
12842 + libs="$predeps $libs $compiler_lib_search_path $postdeps"
12843 +
12844 + # Compute libraries that are listed more than once in $predeps
12845 + # $postdeps and mark them as special (i.e., whose duplicates are
12846 + # not to be eliminated).
12847 + pre_post_deps=
12848 + if $opt_duplicate_compiler_generated_deps; then
12849 + for pre_post_dep in $predeps $postdeps; do
12850 + case "$pre_post_deps " in
12851 + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
12852 + esac
12853 + pre_post_deps="$pre_post_deps $pre_post_dep"
12854 + done
12855 + fi
12856 + pre_post_deps=
12857 + fi
12858 +
12859 + deplibs=
12860 + newdependency_libs=
12861 + newlib_search_path=
12862 + need_relink=no # whether we're linking any uninstalled libtool libraries
12863 + notinst_deplibs= # not-installed libtool libraries
12864 + notinst_path= # paths that contain not-installed libtool libraries
12865 +
12866 + case $linkmode in
12867 + lib)
12868 + passes="conv dlpreopen link"
12869 + for file in $dlfiles $dlprefiles; do
12870 + case $file in
12871 + *.la) ;;
12872 + *)
12873 + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
12874 + ;;
12875 + esac
12876 + done
12877 + ;;
12878 + prog)
12879 + compile_deplibs=
12880 + finalize_deplibs=
12881 + alldeplibs=no
12882 + newdlfiles=
12883 + newdlprefiles=
12884 + passes="conv scan dlopen dlpreopen link"
12885 + ;;
12886 + *) passes="conv"
12887 + ;;
12888 + esac
12889 +
12890 + for pass in $passes; do
12891 + # The preopen pass in lib mode reverses $deplibs; put it back here
12892 + # so that -L comes before libs that need it for instance...
12893 + if test "$linkmode,$pass" = "lib,link"; then
12894 + ## FIXME: Find the place where the list is rebuilt in the wrong
12895 + ## order, and fix it there properly
12896 + tmp_deplibs=
12897 + for deplib in $deplibs; do
12898 + tmp_deplibs="$deplib $tmp_deplibs"
12899 + done
12900 + deplibs="$tmp_deplibs"
12901 + fi
12902 +
12903 + if test "$linkmode,$pass" = "lib,link" ||
12904 + test "$linkmode,$pass" = "prog,scan"; then
12905 + libs="$deplibs"
12906 + deplibs=
12907 + fi
12908 + if test "$linkmode" = prog; then
12909 + case $pass in
12910 + dlopen) libs="$dlfiles" ;;
12911 + dlpreopen) libs="$dlprefiles" ;;
12912 + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
12913 + esac
12914 + fi
12915 + if test "$linkmode,$pass" = "lib,dlpreopen"; then
12916 + # Collect and forward deplibs of preopened libtool libs
12917 + for lib in $dlprefiles; do
12918 + # Ignore non-libtool-libs
12919 + dependency_libs=
12920 + case $lib in
12921 + *.la) func_source "$lib" ;;
12922 + esac
12923 +
12924 + # Collect preopened libtool deplibs, except any this library
12925 + # has declared as weak libs
12926 + for deplib in $dependency_libs; do
12927 + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
12928 + case " $weak_libs " in
12929 + *" $deplib_base "*) ;;
12930 + *) deplibs="$deplibs $deplib" ;;
12931 + esac
12932 + done
12933 + done
12934 + libs="$dlprefiles"
12935 + fi
12936 + if test "$pass" = dlopen; then
12937 + # Collect dlpreopened libraries
12938 + save_deplibs="$deplibs"
12939 + deplibs=
12940 + fi
12941 +
12942 + for deplib in $libs; do
12943 + lib=
12944 + found=no
12945 + case $deplib in
12946 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
12947 + if test "$linkmode,$pass" = "prog,link"; then
12948 + compile_deplibs="$deplib $compile_deplibs"
12949 + finalize_deplibs="$deplib $finalize_deplibs"
12950 + else
12951 + compiler_flags="$compiler_flags $deplib"
12952 + if test "$linkmode" = lib ; then
12953 + case "$new_inherited_linker_flags " in
12954 + *" $deplib "*) ;;
12955 + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
12956 + esac
12957 + fi
12958 + fi
12959 + continue
12960 + ;;
12961 + -l*)
12962 + if test "$linkmode" != lib && test "$linkmode" != prog; then
12963 + func_warning "\`-l' is ignored for archives/objects"
12964 + continue
12965 + fi
12966 + func_stripname '-l' '' "$deplib"
12967 + name=$func_stripname_result
12968 + if test "$linkmode" = lib; then
12969 + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
12970 + else
12971 + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
12972 + fi
12973 + for searchdir in $searchdirs; do
12974 + for search_ext in .la $std_shrext .so .a; do
12975 + # Search the libtool library
12976 + lib="$searchdir/lib${name}${search_ext}"
12977 + if test -f "$lib"; then
12978 + if test "$search_ext" = ".la"; then
12979 + found=yes
12980 + else
12981 + found=no
12982 + fi
12983 + break 2
12984 + fi
12985 + done
12986 + done
12987 + if test "$found" != yes; then
12988 + # deplib doesn't seem to be a libtool library
12989 + if test "$linkmode,$pass" = "prog,link"; then
12990 + compile_deplibs="$deplib $compile_deplibs"
12991 + finalize_deplibs="$deplib $finalize_deplibs"
12992 + else
12993 + deplibs="$deplib $deplibs"
12994 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
12995 + fi
12996 + continue
12997 + else # deplib is a libtool library
12998 + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
12999 + # We need to do some special things here, and not later.
13000 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
13001 + case " $predeps $postdeps " in
13002 + *" $deplib "*)
13003 + if func_lalib_p "$lib"; then
13004 + library_names=
13005 + old_library=
13006 + func_source "$lib"
13007 + for l in $old_library $library_names; do
13008 + ll="$l"
13009 + done
13010 + if test "X$ll" = "X$old_library" ; then # only static version available
13011 + found=no
13012 + func_dirname "$lib" "" "."
13013 + ladir="$func_dirname_result"
13014 + lib=$ladir/$old_library
13015 + if test "$linkmode,$pass" = "prog,link"; then
13016 + compile_deplibs="$deplib $compile_deplibs"
13017 + finalize_deplibs="$deplib $finalize_deplibs"
13018 + else
13019 + deplibs="$deplib $deplibs"
13020 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
13021 + fi
13022 + continue
13023 + fi
13024 + fi
13025 + ;;
13026 + *) ;;
13027 + esac
13028 + fi
13029 + fi
13030 + ;; # -l
13031 + *.ltframework)
13032 + if test "$linkmode,$pass" = "prog,link"; then
13033 + compile_deplibs="$deplib $compile_deplibs"
13034 + finalize_deplibs="$deplib $finalize_deplibs"
13035 + else
13036 + deplibs="$deplib $deplibs"
13037 + if test "$linkmode" = lib ; then
13038 + case "$new_inherited_linker_flags " in
13039 + *" $deplib "*) ;;
13040 + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
13041 + esac
13042 + fi
13043 + fi
13044 + continue
13045 + ;;
13046 + -L*)
13047 + case $linkmode in
13048 + lib)
13049 + deplibs="$deplib $deplibs"
13050 + test "$pass" = conv && continue
13051 + newdependency_libs="$deplib $newdependency_libs"
13052 + func_stripname '-L' '' "$deplib"
13053 + newlib_search_path="$newlib_search_path $func_stripname_result"
13054 + ;;
13055 + prog)
13056 + if test "$pass" = conv; then
13057 + deplibs="$deplib $deplibs"
13058 + continue
13059 + fi
13060 + if test "$pass" = scan; then
13061 + deplibs="$deplib $deplibs"
13062 + else
13063 + compile_deplibs="$deplib $compile_deplibs"
13064 + finalize_deplibs="$deplib $finalize_deplibs"
13065 + fi
13066 + func_stripname '-L' '' "$deplib"
13067 + newlib_search_path="$newlib_search_path $func_stripname_result"
13068 + ;;
13069 + *)
13070 + func_warning "\`-L' is ignored for archives/objects"
13071 + ;;
13072 + esac # linkmode
13073 + continue
13074 + ;; # -L
13075 + -R*)
13076 + if test "$pass" = link; then
13077 + func_stripname '-R' '' "$deplib"
13078 + dir=$func_stripname_result
13079 + # Make sure the xrpath contains only unique directories.
13080 + case "$xrpath " in
13081 + *" $dir "*) ;;
13082 + *) xrpath="$xrpath $dir" ;;
13083 + esac
13084 + fi
13085 + deplibs="$deplib $deplibs"
13086 + continue
13087 + ;;
13088 + *.la) lib="$deplib" ;;
13089 + *.$libext)
13090 + if test "$pass" = conv; then
13091 + deplibs="$deplib $deplibs"
13092 + continue
13093 + fi
13094 + case $linkmode in
13095 + lib)
13096 + # Linking convenience modules into shared libraries is allowed,
13097 + # but linking other static libraries is non-portable.
13098 + case " $dlpreconveniencelibs " in
13099 + *" $deplib "*) ;;
13100 + *)
13101 + valid_a_lib=no
13102 + case $deplibs_check_method in
13103 + match_pattern*)
13104 + set dummy $deplibs_check_method; shift
13105 + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
13106 + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
13107 + | $EGREP "$match_pattern_regex" > /dev/null; then
13108 + valid_a_lib=yes
13109 + fi
13110 + ;;
13111 + pass_all)
13112 + valid_a_lib=yes
13113 + ;;
13114 + esac
13115 + if test "$valid_a_lib" != yes; then
13116 + $ECHO
13117 + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
13118 + $ECHO "*** I have the capability to make that library automatically link in when"
13119 + $ECHO "*** you link to this library. But I can only do this if you have a"
13120 + $ECHO "*** shared version of the library, which you do not appear to have"
13121 + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
13122 + $ECHO "*** that it is just a static archive that I should not use here."
13123 + else
13124 + $ECHO
13125 + $ECHO "*** Warning: Linking the shared library $output against the"
13126 + $ECHO "*** static library $deplib is not portable!"
13127 + deplibs="$deplib $deplibs"
13128 + fi
13129 + ;;
13130 + esac
13131 + continue
13132 + ;;
13133 + prog)
13134 + if test "$pass" != link; then
13135 + deplibs="$deplib $deplibs"
13136 + else
13137 + compile_deplibs="$deplib $compile_deplibs"
13138 + finalize_deplibs="$deplib $finalize_deplibs"
13139 + fi
13140 + continue
13141 + ;;
13142 + esac # linkmode
13143 + ;; # *.$libext
13144 + *.lo | *.$objext)
13145 + if test "$pass" = conv; then
13146 + deplibs="$deplib $deplibs"
13147 + elif test "$linkmode" = prog; then
13148 + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
13149 + # If there is no dlopen support or we're linking statically,
13150 + # we need to preload.
13151 + newdlprefiles="$newdlprefiles $deplib"
13152 + compile_deplibs="$deplib $compile_deplibs"
13153 + finalize_deplibs="$deplib $finalize_deplibs"
13154 + else
13155 + newdlfiles="$newdlfiles $deplib"
13156 + fi
13157 + fi
13158 + continue
13159 + ;;
13160 + %DEPLIBS%)
13161 + alldeplibs=yes
13162 + continue
13163 + ;;
13164 + esac # case $deplib
13165 +
13166 + if test "$found" = yes || test -f "$lib"; then :
13167 + else
13168 + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
13169 + fi
13170 +
13171 + # Check to see that this really is a libtool archive.
13172 + func_lalib_unsafe_p "$lib" \
13173 + || func_fatal_error "\`$lib' is not a valid libtool archive"
13174 +
13175 + func_dirname "$lib" "" "."
13176 + ladir="$func_dirname_result"
13177 +
13178 + dlname=
13179 + dlopen=
13180 + dlpreopen=
13181 + libdir=
13182 + library_names=
13183 + old_library=
13184 + inherited_linker_flags=
13185 + # If the library was installed with an old release of libtool,
13186 + # it will not redefine variables installed, or shouldnotlink
13187 + installed=yes
13188 + shouldnotlink=no
13189 + avoidtemprpath=
13190 +
13191 +
13192 + # Read the .la file
13193 + func_source "$lib"
13194 +
13195 + # Convert "-framework foo" to "foo.ltframework"
13196 + if test -n "$inherited_linker_flags"; then
13197 + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
13198 + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
13199 + case " $new_inherited_linker_flags " in
13200 + *" $tmp_inherited_linker_flag "*) ;;
13201 + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
13202 + esac
13203 + done
13204 + fi
13205 + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
13206 + if test "$linkmode,$pass" = "lib,link" ||
13207 + test "$linkmode,$pass" = "prog,scan" ||
13208 + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
13209 + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
13210 + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
13211 + fi
13212 +
13213 + if test "$pass" = conv; then
13214 + # Only check for convenience libraries
13215 + deplibs="$lib $deplibs"
13216 + if test -z "$libdir"; then
13217 + if test -z "$old_library"; then
13218 + func_fatal_error "cannot find name of link library for \`$lib'"
13219 + fi
13220 + # It is a libtool convenience library, so add in its objects.
13221 + convenience="$convenience $ladir/$objdir/$old_library"
13222 + old_convenience="$old_convenience $ladir/$objdir/$old_library"
13223 + elif test "$linkmode" != prog && test "$linkmode" != lib; then
13224 + func_fatal_error "\`$lib' is not a convenience library"
13225 + fi
13226 + tmp_libs=
13227 + for deplib in $dependency_libs; do
13228 + deplibs="$deplib $deplibs"
13229 + if $opt_duplicate_deps ; then
13230 + case "$tmp_libs " in
13231 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
13232 + esac
13233 + fi
13234 + tmp_libs="$tmp_libs $deplib"
13235 + done
13236 + continue
13237 + fi # $pass = conv
13238 +
13239 +
13240 + # Get the name of the library we link against.
13241 + linklib=
13242 + for l in $old_library $library_names; do
13243 + linklib="$l"
13244 + done
13245 + if test -z "$linklib"; then
13246 + func_fatal_error "cannot find name of link library for \`$lib'"
13247 + fi
13248 +
13249 + # This library was specified with -dlopen.
13250 + if test "$pass" = dlopen; then
13251 + if test -z "$libdir"; then
13252 + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
13253 + fi
13254 + if test -z "$dlname" ||
13255 + test "$dlopen_support" != yes ||
13256 + test "$build_libtool_libs" = no; then
13257 + # If there is no dlname, no dlopen support or we're linking
13258 + # statically, we need to preload. We also need to preload any
13259 + # dependent libraries so libltdl's deplib preloader doesn't
13260 + # bomb out in the load deplibs phase.
13261 + dlprefiles="$dlprefiles $lib $dependency_libs"
13262 + else
13263 + newdlfiles="$newdlfiles $lib"
13264 + fi
13265 + continue
13266 + fi # $pass = dlopen
13267 +
13268 + # We need an absolute path.
13269 + case $ladir in
13270 + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
13271 + *)
13272 + abs_ladir=`cd "$ladir" && pwd`
13273 + if test -z "$abs_ladir"; then
13274 + func_warning "cannot determine absolute directory name of \`$ladir'"
13275 + func_warning "passing it literally to the linker, although it might fail"
13276 + abs_ladir="$ladir"
13277 + fi
13278 + ;;
13279 + esac
13280 + func_basename "$lib"
13281 + laname="$func_basename_result"
13282 +
13283 + # Find the relevant object directory and library name.
13284 + if test "X$installed" = Xyes; then
13285 + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
13286 + func_warning "library \`$lib' was moved."
13287 + dir="$ladir"
13288 + absdir="$abs_ladir"
13289 + libdir="$abs_ladir"
13290 + else
13291 + dir="$libdir"
13292 + absdir="$libdir"
13293 + fi
13294 + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
13295 + else
13296 + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
13297 + dir="$ladir"
13298 + absdir="$abs_ladir"
13299 + # Remove this search path later
13300 + notinst_path="$notinst_path $abs_ladir"
13301 + else
13302 + dir="$ladir/$objdir"
13303 + absdir="$abs_ladir/$objdir"
13304 + # Remove this search path later
13305 + notinst_path="$notinst_path $abs_ladir"
13306 + fi
13307 + fi # $installed = yes
13308 + func_stripname 'lib' '.la' "$laname"
13309 + name=$func_stripname_result
13310 +
13311 + # This library was specified with -dlpreopen.
13312 + if test "$pass" = dlpreopen; then
13313 + if test -z "$libdir" && test "$linkmode" = prog; then
13314 + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
13315 + fi
13316 + # Prefer using a static library (so that no silly _DYNAMIC symbols
13317 + # are required to link).
13318 + if test -n "$old_library"; then
13319 + newdlprefiles="$newdlprefiles $dir/$old_library"
13320 + # Keep a list of preopened convenience libraries to check
13321 + # that they are being used correctly in the link pass.
13322 + test -z "$libdir" && \
13323 + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
13324 + # Otherwise, use the dlname, so that lt_dlopen finds it.
13325 + elif test -n "$dlname"; then
13326 + newdlprefiles="$newdlprefiles $dir/$dlname"
13327 + else
13328 + newdlprefiles="$newdlprefiles $dir/$linklib"
13329 + fi
13330 + fi # $pass = dlpreopen
13331 +
13332 + if test -z "$libdir"; then
13333 + # Link the convenience library
13334 + if test "$linkmode" = lib; then
13335 + deplibs="$dir/$old_library $deplibs"
13336 + elif test "$linkmode,$pass" = "prog,link"; then
13337 + compile_deplibs="$dir/$old_library $compile_deplibs"
13338 + finalize_deplibs="$dir/$old_library $finalize_deplibs"
13339 + else
13340 + deplibs="$lib $deplibs" # used for prog,scan pass
13341 + fi
13342 + continue
13343 + fi
13344 +
13345 +
13346 + if test "$linkmode" = prog && test "$pass" != link; then
13347 + newlib_search_path="$newlib_search_path $ladir"
13348 + deplibs="$lib $deplibs"
13349 +
13350 + linkalldeplibs=no
13351 + if test "$link_all_deplibs" != no || test -z "$library_names" ||
13352 + test "$build_libtool_libs" = no; then
13353 + linkalldeplibs=yes
13354 + fi
13355 +
13356 + tmp_libs=
13357 + for deplib in $dependency_libs; do
13358 + case $deplib in
13359 + -L*) func_stripname '-L' '' "$deplib"
13360 + newlib_search_path="$newlib_search_path $func_stripname_result"
13361 + ;;
13362 + esac
13363 + # Need to link against all dependency_libs?
13364 + if test "$linkalldeplibs" = yes; then
13365 + deplibs="$deplib $deplibs"
13366 + else
13367 + # Need to hardcode shared library paths
13368 + # or/and link against static libraries
13369 + newdependency_libs="$deplib $newdependency_libs"
13370 + fi
13371 + if $opt_duplicate_deps ; then
13372 + case "$tmp_libs " in
13373 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
13374 + esac
13375 + fi
13376 + tmp_libs="$tmp_libs $deplib"
13377 + done # for deplib
13378 + continue
13379 + fi # $linkmode = prog...
13380 +
13381 + if test "$linkmode,$pass" = "prog,link"; then
13382 + if test -n "$library_names" &&
13383 + { { test "$prefer_static_libs" = no ||
13384 + test "$prefer_static_libs,$installed" = "built,yes"; } ||
13385 + test -z "$old_library"; }; then
13386 + # We need to hardcode the library path
13387 + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
13388 + # Make sure the rpath contains only unique directories.
13389 + case "$temp_rpath:" in
13390 + *"$absdir:"*) ;;
13391 + *) temp_rpath="$temp_rpath$absdir:" ;;
13392 + esac
13393 + fi
13394 +
13395 + # Hardcode the library path.
13396 + # Skip directories that are in the system default run-time
13397 + # search path.
13398 + case " $sys_lib_dlsearch_path " in
13399 + *" $absdir "*) ;;
13400 + *)
13401 + case "$compile_rpath " in
13402 + *" $absdir "*) ;;
13403 + *) compile_rpath="$compile_rpath $absdir"
13404 + esac
13405 + ;;
13406 + esac
13407 + case " $sys_lib_dlsearch_path " in
13408 + *" $libdir "*) ;;
13409 + *)
13410 + case "$finalize_rpath " in
13411 + *" $libdir "*) ;;
13412 + *) finalize_rpath="$finalize_rpath $libdir"
13413 + esac
13414 + ;;
13415 + esac
13416 + fi # $linkmode,$pass = prog,link...
13417 +
13418 + if test "$alldeplibs" = yes &&
13419 + { test "$deplibs_check_method" = pass_all ||
13420 + { test "$build_libtool_libs" = yes &&
13421 + test -n "$library_names"; }; }; then
13422 + # We only need to search for static libraries
13423 + continue
13424 + fi
13425 + fi
13426 +
13427 + link_static=no # Whether the deplib will be linked statically
13428 + use_static_libs=$prefer_static_libs
13429 + if test "$use_static_libs" = built && test "$installed" = yes; then
13430 + use_static_libs=no
13431 + fi
13432 + if test -n "$library_names" &&
13433 + { test "$use_static_libs" = no || test -z "$old_library"; }; then
13434 + case $host in
13435 + *cygwin* | *mingw* | *cegcc*)
13436 + # No point in relinking DLLs because paths are not encoded
13437 + notinst_deplibs="$notinst_deplibs $lib"
13438 + need_relink=no
13439 + ;;
13440 + *)
13441 + if test "$installed" = no; then
13442 + notinst_deplibs="$notinst_deplibs $lib"
13443 + need_relink=yes
13444 + fi
13445 + ;;
13446 + esac
13447 + # This is a shared library
13448 +
13449 + # Warn about portability, can't link against -module's on some
13450 + # systems (darwin). Don't bleat about dlopened modules though!
13451 + dlopenmodule=""
13452 + for dlpremoduletest in $dlprefiles; do
13453 + if test "X$dlpremoduletest" = "X$lib"; then
13454 + dlopenmodule="$dlpremoduletest"
13455 + break
13456 + fi
13457 + done
13458 + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
13459 + $ECHO
13460 + if test "$linkmode" = prog; then
13461 + $ECHO "*** Warning: Linking the executable $output against the loadable module"
13462 + else
13463 + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
13464 + fi
13465 + $ECHO "*** $linklib is not portable!"
13466 + fi
13467 + if test "$linkmode" = lib &&
13468 + test "$hardcode_into_libs" = yes; then
13469 + # Hardcode the library path.
13470 + # Skip directories that are in the system default run-time
13471 + # search path.
13472 + case " $sys_lib_dlsearch_path " in
13473 + *" $absdir "*) ;;
13474 + *)
13475 + case "$compile_rpath " in
13476 + *" $absdir "*) ;;
13477 + *) compile_rpath="$compile_rpath $absdir"
13478 + esac
13479 + ;;
13480 + esac
13481 + case " $sys_lib_dlsearch_path " in
13482 + *" $libdir "*) ;;
13483 + *)
13484 + case "$finalize_rpath " in
13485 + *" $libdir "*) ;;
13486 + *) finalize_rpath="$finalize_rpath $libdir"
13487 + esac
13488 + ;;
13489 + esac
13490 + fi
13491 +
13492 + if test -n "$old_archive_from_expsyms_cmds"; then
13493 + # figure out the soname
13494 + set dummy $library_names
13495 + shift
13496 + realname="$1"
13497 + shift
13498 + libname=`eval "\\$ECHO \"$libname_spec\""`
13499 + # use dlname if we got it. it's perfectly good, no?
13500 + if test -n "$dlname"; then
13501 + soname="$dlname"
13502 + elif test -n "$soname_spec"; then
13503 + # bleh windows
13504 + case $host in
13505 + *cygwin* | mingw* | *cegcc*)
13506 + func_arith $current - $age
13507 + major=$func_arith_result
13508 + versuffix="-$major"
13509 + ;;
13510 + esac
13511 + eval soname=\"$soname_spec\"
13512 + else
13513 + soname="$realname"
13514 + fi
13515 +
13516 + # Make a new name for the extract_expsyms_cmds to use
13517 + soroot="$soname"
13518 + func_basename "$soroot"
13519 + soname="$func_basename_result"
13520 + func_stripname 'lib' '.dll' "$soname"
13521 + newlib=libimp-$func_stripname_result.a
13522 +
13523 + # If the library has no export list, then create one now
13524 + if test -f "$output_objdir/$soname-def"; then :
13525 + else
13526 + func_verbose "extracting exported symbol list from \`$soname'"
13527 + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
13528 + fi
13529 +
13530 + # Create $newlib
13531 + if test -f "$output_objdir/$newlib"; then :; else
13532 + func_verbose "generating import library for \`$soname'"
13533 + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
13534 + fi
13535 + # make sure the library variables are pointing to the new library
13536 + dir=$output_objdir
13537 + linklib=$newlib
13538 + fi # test -n "$old_archive_from_expsyms_cmds"
13539 +
13540 + if test "$linkmode" = prog || test "$mode" != relink; then
13541 + add_shlibpath=
13542 + add_dir=
13543 + add=
13544 + lib_linked=yes
13545 + case $hardcode_action in
13546 + immediate | unsupported)
13547 + if test "$hardcode_direct" = no; then
13548 + add="$dir/$linklib"
13549 + case $host in
13550 + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
13551 + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
13552 + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
13553 + *-*-unixware7*) add_dir="-L$dir" ;;
13554 + *-*-darwin* )
13555 + # if the lib is a (non-dlopened) module then we can not
13556 + # link against it, someone is ignoring the earlier warnings
13557 + if /usr/bin/file -L $add 2> /dev/null |
13558 + $GREP ": [^:]* bundle" >/dev/null ; then
13559 + if test "X$dlopenmodule" != "X$lib"; then
13560 + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
13561 + if test -z "$old_library" ; then
13562 + $ECHO
13563 + $ECHO "*** And there doesn't seem to be a static archive available"
13564 + $ECHO "*** The link will probably fail, sorry"
13565 + else
13566 + add="$dir/$old_library"
13567 + fi
13568 + elif test -n "$old_library"; then
13569 + add="$dir/$old_library"
13570 + fi
13571 + fi
13572 + esac
13573 + elif test "$hardcode_minus_L" = no; then
13574 + case $host in
13575 + *-*-sunos*) add_shlibpath="$dir" ;;
13576 + esac
13577 + add_dir="-L$dir"
13578 + add="-l$name"
13579 + elif test "$hardcode_shlibpath_var" = no; then
13580 + add_shlibpath="$dir"
13581 + add="-l$name"
13582 + else
13583 + lib_linked=no
13584 + fi
13585 + ;;
13586 + relink)
13587 + if test "$hardcode_direct" = yes &&
13588 + test "$hardcode_direct_absolute" = no; then
13589 + add="$dir/$linklib"
13590 + elif test "$hardcode_minus_L" = yes; then
13591 + add_dir="-L$dir"
13592 + # Try looking first in the location we're being installed to.
13593 + if test -n "$inst_prefix_dir"; then
13594 + case $libdir in
13595 + [\\/]*)
13596 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
13597 + ;;
13598 + esac
13599 + fi
13600 + add="-l$name"
13601 + elif test "$hardcode_shlibpath_var" = yes; then
13602 + add_shlibpath="$dir"
13603 + add="-l$name"
13604 + else
13605 + lib_linked=no
13606 + fi
13607 + ;;
13608 + *) lib_linked=no ;;
13609 + esac
13610 +
13611 + if test "$lib_linked" != yes; then
13612 + func_fatal_configuration "unsupported hardcode properties"
13613 + fi
13614 +
13615 + if test -n "$add_shlibpath"; then
13616 + case :$compile_shlibpath: in
13617 + *":$add_shlibpath:"*) ;;
13618 + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
13619 + esac
13620 + fi
13621 + if test "$linkmode" = prog; then
13622 + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
13623 + test -n "$add" && compile_deplibs="$add $compile_deplibs"
13624 + else
13625 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
13626 + test -n "$add" && deplibs="$add $deplibs"
13627 + if test "$hardcode_direct" != yes &&
13628 + test "$hardcode_minus_L" != yes &&
13629 + test "$hardcode_shlibpath_var" = yes; then
13630 + case :$finalize_shlibpath: in
13631 + *":$libdir:"*) ;;
13632 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
13633 + esac
13634 + fi
13635 + fi
13636 + fi
13637 +
13638 + if test "$linkmode" = prog || test "$mode" = relink; then
13639 + add_shlibpath=
13640 + add_dir=
13641 + add=
13642 + # Finalize command for both is simple: just hardcode it.
13643 + if test "$hardcode_direct" = yes &&
13644 + test "$hardcode_direct_absolute" = no; then
13645 + add="$libdir/$linklib"
13646 + elif test "$hardcode_minus_L" = yes; then
13647 + add_dir="-L$libdir"
13648 + add="-l$name"
13649 + elif test "$hardcode_shlibpath_var" = yes; then
13650 + case :$finalize_shlibpath: in
13651 + *":$libdir:"*) ;;
13652 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
13653 + esac
13654 + add="-l$name"
13655 + elif test "$hardcode_automatic" = yes; then
13656 + if test -n "$inst_prefix_dir" &&
13657 + test -f "$inst_prefix_dir$libdir/$linklib" ; then
13658 + add="$inst_prefix_dir$libdir/$linklib"
13659 + else
13660 + add="$libdir/$linklib"
13661 + fi
13662 + else
13663 + # We cannot seem to hardcode it, guess we'll fake it.
13664 + add_dir="-L$libdir"
13665 + # Try looking first in the location we're being installed to.
13666 + if test -n "$inst_prefix_dir"; then
13667 + case $libdir in
13668 + [\\/]*)
13669 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
13670 + ;;
13671 + esac
13672 + fi
13673 + add="-l$name"
13674 + fi
13675 +
13676 + if test "$linkmode" = prog; then
13677 + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
13678 + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
13679 + else
13680 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
13681 + test -n "$add" && deplibs="$add $deplibs"
13682 + fi
13683 + fi
13684 + elif test "$linkmode" = prog; then
13685 + # Here we assume that one of hardcode_direct or hardcode_minus_L
13686 + # is not unsupported. This is valid on all known static and
13687 + # shared platforms.
13688 + if test "$hardcode_direct" != unsupported; then
13689 + test -n "$old_library" && linklib="$old_library"
13690 + compile_deplibs="$dir/$linklib $compile_deplibs"
13691 + finalize_deplibs="$dir/$linklib $finalize_deplibs"
13692 + else
13693 + compile_deplibs="-l$name -L$dir $compile_deplibs"
13694 + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
13695 + fi
13696 + elif test "$build_libtool_libs" = yes; then
13697 + # Not a shared library
13698 + if test "$deplibs_check_method" != pass_all; then
13699 + # We're trying link a shared library against a static one
13700 + # but the system doesn't support it.
13701 +
13702 + # Just print a warning and add the library to dependency_libs so
13703 + # that the program can be linked against the static library.
13704 + $ECHO
13705 + $ECHO "*** Warning: This system can not link to static lib archive $lib."
13706 + $ECHO "*** I have the capability to make that library automatically link in when"
13707 + $ECHO "*** you link to this library. But I can only do this if you have a"
13708 + $ECHO "*** shared version of the library, which you do not appear to have."
13709 + if test "$module" = yes; then
13710 + $ECHO "*** But as you try to build a module library, libtool will still create "
13711 + $ECHO "*** a static module, that should work as long as the dlopening application"
13712 + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
13713 + if test -z "$global_symbol_pipe"; then
13714 + $ECHO
13715 + $ECHO "*** However, this would only work if libtool was able to extract symbol"
13716 + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
13717 + $ECHO "*** not find such a program. So, this module is probably useless."
13718 + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
13719 + fi
13720 + if test "$build_old_libs" = no; then
13721 + build_libtool_libs=module
13722 + build_old_libs=yes
13723 + else
13724 + build_libtool_libs=no
13725 + fi
13726 + fi
13727 + else
13728 + deplibs="$dir/$old_library $deplibs"
13729 + link_static=yes
13730 + fi
13731 + fi # link shared/static library?
13732 +
13733 + if test "$linkmode" = lib; then
13734 + if test -n "$dependency_libs" &&
13735 + { test "$hardcode_into_libs" != yes ||
13736 + test "$build_old_libs" = yes ||
13737 + test "$link_static" = yes; }; then
13738 + # Extract -R from dependency_libs
13739 + temp_deplibs=
13740 + for libdir in $dependency_libs; do
13741 + case $libdir in
13742 + -R*) func_stripname '-R' '' "$libdir"
13743 + temp_xrpath=$func_stripname_result
13744 + case " $xrpath " in
13745 + *" $temp_xrpath "*) ;;
13746 + *) xrpath="$xrpath $temp_xrpath";;
13747 + esac;;
13748 + *) temp_deplibs="$temp_deplibs $libdir";;
13749 + esac
13750 + done
13751 + dependency_libs="$temp_deplibs"
13752 + fi
13753 +
13754 + newlib_search_path="$newlib_search_path $absdir"
13755 + # Link against this library
13756 + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
13757 + # ... and its dependency_libs
13758 + tmp_libs=
13759 + for deplib in $dependency_libs; do
13760 + newdependency_libs="$deplib $newdependency_libs"
13761 + if $opt_duplicate_deps ; then
13762 + case "$tmp_libs " in
13763 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
13764 + esac
13765 + fi
13766 + tmp_libs="$tmp_libs $deplib"
13767 + done
13768 +
13769 + if test "$link_all_deplibs" != no; then
13770 + # Add the search paths of all dependency libraries
13771 + for deplib in $dependency_libs; do
13772 + case $deplib in
13773 + -L*) path="$deplib" ;;
13774 + *.la)
13775 + func_dirname "$deplib" "" "."
13776 + dir="$func_dirname_result"
13777 + # We need an absolute path.
13778 + case $dir in
13779 + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
13780 + *)
13781 + absdir=`cd "$dir" && pwd`
13782 + if test -z "$absdir"; then
13783 + func_warning "cannot determine absolute directory name of \`$dir'"
13784 + absdir="$dir"
13785 + fi
13786 + ;;
13787 + esac
13788 + if $GREP "^installed=no" $deplib > /dev/null; then
13789 + case $host in
13790 + *-*-darwin*)
13791 + depdepl=
13792 + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
13793 + if test -n "$deplibrary_names" ; then
13794 + for tmp in $deplibrary_names ; do
13795 + depdepl=$tmp
13796 + done
13797 + if test -f "$absdir/$objdir/$depdepl" ; then
13798 + depdepl="$absdir/$objdir/$depdepl"
13799 + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
13800 + if test -z "$darwin_install_name"; then
13801 + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
13802 + fi
13803 + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
13804 + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
13805 + path=
13806 + fi
13807 + fi
13808 + ;;
13809 + *)
13810 + path="-L$absdir/$objdir"
13811 + ;;
13812 + esac
13813 + else
13814 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
13815 + test -z "$libdir" && \
13816 + func_fatal_error "\`$deplib' is not a valid libtool archive"
13817 + test "$absdir" != "$libdir" && \
13818 + func_warning "\`$deplib' seems to be moved"
13819 +
13820 + path="-L$absdir"
13821 + fi
13822 + ;;
13823 + esac
13824 + case " $deplibs " in
13825 + *" $path "*) ;;
13826 + *) deplibs="$path $deplibs" ;;
13827 + esac
13828 + done
13829 + fi # link_all_deplibs != no
13830 + fi # linkmode = lib
13831 + done # for deplib in $libs
13832 + if test "$pass" = link; then
13833 + if test "$linkmode" = "prog"; then
13834 + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
13835 + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
13836 + else
13837 + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
13838 + fi
13839 + fi
13840 + dependency_libs="$newdependency_libs"
13841 + if test "$pass" = dlpreopen; then
13842 + # Link the dlpreopened libraries before other libraries
13843 + for deplib in $save_deplibs; do
13844 + deplibs="$deplib $deplibs"
13845 + done
13846 + fi
13847 + if test "$pass" != dlopen; then
13848 + if test "$pass" != conv; then
13849 + # Make sure lib_search_path contains only unique directories.
13850 + lib_search_path=
13851 + for dir in $newlib_search_path; do
13852 + case "$lib_search_path " in
13853 + *" $dir "*) ;;
13854 + *) lib_search_path="$lib_search_path $dir" ;;
13855 + esac
13856 + done
13857 + newlib_search_path=
13858 + fi
13859 +
13860 + if test "$linkmode,$pass" != "prog,link"; then
13861 + vars="deplibs"
13862 + else
13863 + vars="compile_deplibs finalize_deplibs"
13864 + fi
13865 + for var in $vars dependency_libs; do
13866 + # Add libraries to $var in reverse order
13867 + eval tmp_libs=\"\$$var\"
13868 + new_libs=
13869 + for deplib in $tmp_libs; do
13870 + # FIXME: Pedantically, this is the right thing to do, so
13871 + # that some nasty dependency loop isn't accidentally
13872 + # broken:
13873 + #new_libs="$deplib $new_libs"
13874 + # Pragmatically, this seems to cause very few problems in
13875 + # practice:
13876 + case $deplib in
13877 + -L*) new_libs="$deplib $new_libs" ;;
13878 + -R*) ;;
13879 + *)
13880 + # And here is the reason: when a library appears more
13881 + # than once as an explicit dependence of a library, or
13882 + # is implicitly linked in more than once by the
13883 + # compiler, it is considered special, and multiple
13884 + # occurrences thereof are not removed. Compare this
13885 + # with having the same library being listed as a
13886 + # dependency of multiple other libraries: in this case,
13887 + # we know (pedantically, we assume) the library does not
13888 + # need to be listed more than once, so we keep only the
13889 + # last copy. This is not always right, but it is rare
13890 + # enough that we require users that really mean to play
13891 + # such unportable linking tricks to link the library
13892 + # using -Wl,-lname, so that libtool does not consider it
13893 + # for duplicate removal.
13894 + case " $specialdeplibs " in
13895 + *" $deplib "*) new_libs="$deplib $new_libs" ;;
13896 + *)
13897 + case " $new_libs " in
13898 + *" $deplib "*) ;;
13899 + *) new_libs="$deplib $new_libs" ;;
13900 + esac
13901 + ;;
13902 + esac
13903 + ;;
13904 + esac
13905 + done
13906 + tmp_libs=
13907 + for deplib in $new_libs; do
13908 + case $deplib in
13909 + -L*)
13910 + case " $tmp_libs " in
13911 + *" $deplib "*) ;;
13912 + *) tmp_libs="$tmp_libs $deplib" ;;
13913 + esac
13914 + ;;
13915 + *) tmp_libs="$tmp_libs $deplib" ;;
13916 + esac
13917 + done
13918 + eval $var=\"$tmp_libs\"
13919 + done # for var
13920 + fi
13921 + # Last step: remove runtime libs from dependency_libs
13922 + # (they stay in deplibs)
13923 + tmp_libs=
13924 + for i in $dependency_libs ; do
13925 + case " $predeps $postdeps $compiler_lib_search_path " in
13926 + *" $i "*)
13927 + i=""
13928 + ;;
13929 + esac
13930 + if test -n "$i" ; then
13931 + tmp_libs="$tmp_libs $i"
13932 + fi
13933 + done
13934 + dependency_libs=$tmp_libs
13935 + done # for pass
13936 + if test "$linkmode" = prog; then
13937 + dlfiles="$newdlfiles"
13938 + fi
13939 + if test "$linkmode" = prog || test "$linkmode" = lib; then
13940 + dlprefiles="$newdlprefiles"
13941 + fi
13942 +
13943 + case $linkmode in
13944 + oldlib)
13945 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
13946 + func_warning "\`-dlopen' is ignored for archives"
13947 + fi
13948 +
13949 + case " $deplibs" in
13950 + *\ -l* | *\ -L*)
13951 + func_warning "\`-l' and \`-L' are ignored for archives" ;;
13952 + esac
13953 +
13954 + test -n "$rpath" && \
13955 + func_warning "\`-rpath' is ignored for archives"
13956 +
13957 + test -n "$xrpath" && \
13958 + func_warning "\`-R' is ignored for archives"
13959 +
13960 + test -n "$vinfo" && \
13961 + func_warning "\`-version-info/-version-number' is ignored for archives"
13962 +
13963 + test -n "$release" && \
13964 + func_warning "\`-release' is ignored for archives"
13965 +
13966 + test -n "$export_symbols$export_symbols_regex" && \
13967 + func_warning "\`-export-symbols' is ignored for archives"
13968 +
13969 + # Now set the variables for building old libraries.
13970 + build_libtool_libs=no
13971 + oldlibs="$output"
13972 + objs="$objs$old_deplibs"
13973 + ;;
13974 +
13975 + lib)
13976 + # Make sure we only generate libraries of the form `libNAME.la'.
13977 + case $outputname in
13978 + lib*)
13979 + func_stripname 'lib' '.la' "$outputname"
13980 + name=$func_stripname_result
13981 + eval shared_ext=\"$shrext_cmds\"
13982 + eval libname=\"$libname_spec\"
13983 + ;;
13984 + *)
13985 + test "$module" = no && \
13986 + func_fatal_help "libtool library \`$output' must begin with \`lib'"
13987 +
13988 + if test "$need_lib_prefix" != no; then
13989 + # Add the "lib" prefix for modules if required
13990 + func_stripname '' '.la' "$outputname"
13991 + name=$func_stripname_result
13992 + eval shared_ext=\"$shrext_cmds\"
13993 + eval libname=\"$libname_spec\"
13994 + else
13995 + func_stripname '' '.la' "$outputname"
13996 + libname=$func_stripname_result
13997 + fi
13998 + ;;
13999 + esac
14000 +
14001 + if test -n "$objs"; then
14002 + if test "$deplibs_check_method" != pass_all; then
14003 + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
14004 + else
14005 + $ECHO
14006 + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
14007 + $ECHO "*** objects $objs is not portable!"
14008 + libobjs="$libobjs $objs"
14009 + fi
14010 + fi
14011 +
14012 + test "$dlself" != no && \
14013 + func_warning "\`-dlopen self' is ignored for libtool libraries"
14014 +
14015 + set dummy $rpath
14016 + shift
14017 + test "$#" -gt 1 && \
14018 + func_warning "ignoring multiple \`-rpath's for a libtool library"
14019 +
14020 + install_libdir="$1"
14021 +
14022 + oldlibs=
14023 + if test -z "$rpath"; then
14024 + if test "$build_libtool_libs" = yes; then
14025 + # Building a libtool convenience library.
14026 + # Some compilers have problems with a `.al' extension so
14027 + # convenience libraries should have the same extension an
14028 + # archive normally would.
14029 + oldlibs="$output_objdir/$libname.$libext $oldlibs"
14030 + build_libtool_libs=convenience
14031 + build_old_libs=yes
14032 + fi
14033 +
14034 + test -n "$vinfo" && \
14035 + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
14036 +
14037 + test -n "$release" && \
14038 + func_warning "\`-release' is ignored for convenience libraries"
14039 + else
14040 +
14041 + # Parse the version information argument.
14042 + save_ifs="$IFS"; IFS=':'
14043 + set dummy $vinfo 0 0 0
14044 + shift
14045 + IFS="$save_ifs"
14046 +
14047 + test -n "$7" && \
14048 + func_fatal_help "too many parameters to \`-version-info'"
14049 +
14050 + # convert absolute version numbers to libtool ages
14051 + # this retains compatibility with .la files and attempts
14052 + # to make the code below a bit more comprehensible
14053 +
14054 + case $vinfo_number in
14055 + yes)
14056 + number_major="$1"
14057 + number_minor="$2"
14058 + number_revision="$3"
14059 + #
14060 + # There are really only two kinds -- those that
14061 + # use the current revision as the major version
14062 + # and those that subtract age and use age as
14063 + # a minor version. But, then there is irix
14064 + # which has an extra 1 added just for fun
14065 + #
14066 + case $version_type in
14067 + darwin|linux|osf|windows|none)
14068 + func_arith $number_major + $number_minor
14069 + current=$func_arith_result
14070 + age="$number_minor"
14071 + revision="$number_revision"
14072 + ;;
14073 + freebsd-aout|freebsd-elf|sunos)
14074 + current="$number_major"
14075 + revision="$number_minor"
14076 + age="0"
14077 + ;;
14078 + irix|nonstopux)
14079 + func_arith $number_major + $number_minor
14080 + current=$func_arith_result
14081 + age="$number_minor"
14082 + revision="$number_minor"
14083 + lt_irix_increment=no
14084 + ;;
14085 + esac
14086 + ;;
14087 + no)
14088 + current="$1"
14089 + revision="$2"
14090 + age="$3"
14091 + ;;
14092 + esac
14093 +
14094 + # Check that each of the things are valid numbers.
14095 + case $current in
14096 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
14097 + *)
14098 + func_error "CURRENT \`$current' must be a nonnegative integer"
14099 + func_fatal_error "\`$vinfo' is not valid version information"
14100 + ;;
14101 + esac
14102 +
14103 + case $revision in
14104 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
14105 + *)
14106 + func_error "REVISION \`$revision' must be a nonnegative integer"
14107 + func_fatal_error "\`$vinfo' is not valid version information"
14108 + ;;
14109 + esac
14110 +
14111 + case $age in
14112 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
14113 + *)
14114 + func_error "AGE \`$age' must be a nonnegative integer"
14115 + func_fatal_error "\`$vinfo' is not valid version information"
14116 + ;;
14117 + esac
14118 +
14119 + if test "$age" -gt "$current"; then
14120 + func_error "AGE \`$age' is greater than the current interface number \`$current'"
14121 + func_fatal_error "\`$vinfo' is not valid version information"
14122 + fi
14123 +
14124 + # Calculate the version variables.
14125 + major=
14126 + versuffix=
14127 + verstring=
14128 + case $version_type in
14129 + none) ;;
14130 +
14131 + darwin)
14132 + # Like Linux, but with the current version available in
14133 + # verstring for coding it into the library header
14134 + func_arith $current - $age
14135 + major=.$func_arith_result
14136 + versuffix="$major.$age.$revision"
14137 + # Darwin ld doesn't like 0 for these options...
14138 + func_arith $current + 1
14139 + minor_current=$func_arith_result
14140 + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
14141 + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
14142 + ;;
14143 +
14144 + freebsd-aout)
14145 + major=".$current"
14146 + versuffix=".$current.$revision";
14147 + ;;
14148 +
14149 + freebsd-elf)
14150 + major=".$current"
14151 + versuffix=".$current"
14152 + ;;
14153 +
14154 + irix | nonstopux)
14155 + if test "X$lt_irix_increment" = "Xno"; then
14156 + func_arith $current - $age
14157 + else
14158 + func_arith $current - $age + 1
14159 + fi
14160 + major=$func_arith_result
14161 +
14162 + case $version_type in
14163 + nonstopux) verstring_prefix=nonstopux ;;
14164 + *) verstring_prefix=sgi ;;
14165 + esac
14166 + verstring="$verstring_prefix$major.$revision"
14167 +
14168 + # Add in all the interfaces that we are compatible with.
14169 + loop=$revision
14170 + while test "$loop" -ne 0; do
14171 + func_arith $revision - $loop
14172 + iface=$func_arith_result
14173 + func_arith $loop - 1
14174 + loop=$func_arith_result
14175 + verstring="$verstring_prefix$major.$iface:$verstring"
14176 + done
14177 +
14178 + # Before this point, $major must not contain `.'.
14179 + major=.$major
14180 + versuffix="$major.$revision"
14181 + ;;
14182 +
14183 + linux)
14184 + func_arith $current - $age
14185 + major=.$func_arith_result
14186 + versuffix="$major.$age.$revision"
14187 + ;;
14188 +
14189 + osf)
14190 + func_arith $current - $age
14191 + major=.$func_arith_result
14192 + versuffix=".$current.$age.$revision"
14193 + verstring="$current.$age.$revision"
14194 +
14195 + # Add in all the interfaces that we are compatible with.
14196 + loop=$age
14197 + while test "$loop" -ne 0; do
14198 + func_arith $current - $loop
14199 + iface=$func_arith_result
14200 + func_arith $loop - 1
14201 + loop=$func_arith_result
14202 + verstring="$verstring:${iface}.0"
14203 + done
14204 +
14205 + # Make executables depend on our current version.
14206 + verstring="$verstring:${current}.0"
14207 + ;;
14208 +
14209 + qnx)
14210 + major=".$current"
14211 + versuffix=".$current"
14212 + ;;
14213 +
14214 + sunos)
14215 + major=".$current"
14216 + versuffix=".$current.$revision"
14217 + ;;
14218 +
14219 + windows)
14220 + # Use '-' rather than '.', since we only want one
14221 + # extension on DOS 8.3 filesystems.
14222 + func_arith $current - $age
14223 + major=$func_arith_result
14224 + versuffix="-$major"
14225 + ;;
14226 +
14227 + *)
14228 + func_fatal_configuration "unknown library version type \`$version_type'"
14229 + ;;
14230 + esac
14231 +
14232 + # Clear the version info if we defaulted, and they specified a release.
14233 + if test -z "$vinfo" && test -n "$release"; then
14234 + major=
14235 + case $version_type in
14236 + darwin)
14237 + # we can't check for "0.0" in archive_cmds due to quoting
14238 + # problems, so we reset it completely
14239 + verstring=
14240 + ;;
14241 + *)
14242 + verstring="0.0"
14243 + ;;
14244 + esac
14245 + if test "$need_version" = no; then
14246 + versuffix=
14247 + else
14248 + versuffix=".0.0"
14249 + fi
14250 + fi
14251 +
14252 + # Remove version info from name if versioning should be avoided
14253 + if test "$avoid_version" = yes && test "$need_version" = no; then
14254 + major=
14255 + versuffix=
14256 + verstring=""
14257 + fi
14258 +
14259 + # Check to see if the archive will have undefined symbols.
14260 + if test "$allow_undefined" = yes; then
14261 + if test "$allow_undefined_flag" = unsupported; then
14262 + func_warning "undefined symbols not allowed in $host shared libraries"
14263 + build_libtool_libs=no
14264 + build_old_libs=yes
14265 + fi
14266 + else
14267 + # Don't allow undefined symbols.
14268 + allow_undefined_flag="$no_undefined_flag"
14269 + fi
14270 +
14271 + fi
14272 +
14273 + func_generate_dlsyms "$libname" "$libname" "yes"
14274 + libobjs="$libobjs $symfileobj"
14275 + test "X$libobjs" = "X " && libobjs=
14276 +
14277 + if test "$mode" != relink; then
14278 + # Remove our outputs, but don't remove object files since they
14279 + # may have been created when compiling PIC objects.
14280 + removelist=
14281 + tempremovelist=`$ECHO "$output_objdir/*"`
14282 + for p in $tempremovelist; do
14283 + case $p in
14284 + *.$objext | *.gcno)
14285 + ;;
14286 + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
14287 + if test "X$precious_files_regex" != "X"; then
14288 + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
14289 + then
14290 + continue
14291 + fi
14292 + fi
14293 + removelist="$removelist $p"
14294 + ;;
14295 + *) ;;
14296 + esac
14297 + done
14298 + test -n "$removelist" && \
14299 + func_show_eval "${RM}r \$removelist"
14300 + fi
14301 +
14302 + # Now set the variables for building old libraries.
14303 + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
14304 + oldlibs="$oldlibs $output_objdir/$libname.$libext"
14305 +
14306 + # Transform .lo files to .o files.
14307 + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
14308 + fi
14309 +
14310 + # Eliminate all temporary directories.
14311 + #for path in $notinst_path; do
14312 + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
14313 + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
14314 + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
14315 + #done
14316 +
14317 + if test -n "$xrpath"; then
14318 + # If the user specified any rpath flags, then add them.
14319 + temp_xrpath=
14320 + for libdir in $xrpath; do
14321 + temp_xrpath="$temp_xrpath -R$libdir"
14322 + case "$finalize_rpath " in
14323 + *" $libdir "*) ;;
14324 + *) finalize_rpath="$finalize_rpath $libdir" ;;
14325 + esac
14326 + done
14327 + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
14328 + dependency_libs="$temp_xrpath $dependency_libs"
14329 + fi
14330 + fi
14331 +
14332 + # Make sure dlfiles contains only unique files that won't be dlpreopened
14333 + old_dlfiles="$dlfiles"
14334 + dlfiles=
14335 + for lib in $old_dlfiles; do
14336 + case " $dlprefiles $dlfiles " in
14337 + *" $lib "*) ;;
14338 + *) dlfiles="$dlfiles $lib" ;;
14339 + esac
14340 + done
14341 +
14342 + # Make sure dlprefiles contains only unique files
14343 + old_dlprefiles="$dlprefiles"
14344 + dlprefiles=
14345 + for lib in $old_dlprefiles; do
14346 + case "$dlprefiles " in
14347 + *" $lib "*) ;;
14348 + *) dlprefiles="$dlprefiles $lib" ;;
14349 + esac
14350 + done
14351 +
14352 + if test "$build_libtool_libs" = yes; then
14353 + if test -n "$rpath"; then
14354 + case $host in
14355 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
14356 + # these systems don't actually have a c library (as such)!
14357 + ;;
14358 + *-*-rhapsody* | *-*-darwin1.[012])
14359 + # Rhapsody C library is in the System framework
14360 + deplibs="$deplibs System.ltframework"
14361 + ;;
14362 + *-*-netbsd*)
14363 + # Don't link with libc until the a.out ld.so is fixed.
14364 + ;;
14365 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
14366 + # Do not include libc due to us having libc/libc_r.
14367 + ;;
14368 + *-*-sco3.2v5* | *-*-sco5v6*)
14369 + # Causes problems with __ctype
14370 + ;;
14371 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
14372 + # Compiler inserts libc in the correct place for threads to work
14373 + ;;
14374 + *)
14375 + # Add libc to deplibs on all other systems if necessary.
14376 + if test "$build_libtool_need_lc" = "yes"; then
14377 + deplibs="$deplibs -lc"
14378 + fi
14379 + ;;
14380 + esac
14381 + fi
14382 +
14383 + # Transform deplibs into only deplibs that can be linked in shared.
14384 + name_save=$name
14385 + libname_save=$libname
14386 + release_save=$release
14387 + versuffix_save=$versuffix
14388 + major_save=$major
14389 + # I'm not sure if I'm treating the release correctly. I think
14390 + # release should show up in the -l (ie -lgmp5) so we don't want to
14391 + # add it in twice. Is that correct?
14392 + release=""
14393 + versuffix=""
14394 + major=""
14395 + newdeplibs=
14396 + droppeddeps=no
14397 + case $deplibs_check_method in
14398 + pass_all)
14399 + # Don't check for shared/static. Everything works.
14400 + # This might be a little naive. We might want to check
14401 + # whether the library exists or not. But this is on
14402 + # osf3 & osf4 and I'm not really sure... Just
14403 + # implementing what was already the behavior.
14404 + newdeplibs=$deplibs
14405 + ;;
14406 + test_compile)
14407 + # This code stresses the "libraries are programs" paradigm to its
14408 + # limits. Maybe even breaks it. We compile a program, linking it
14409 + # against the deplibs as a proxy for the library. Then we can check
14410 + # whether they linked in statically or dynamically with ldd.
14411 + $opt_dry_run || $RM conftest.c
14412 + cat > conftest.c <<EOF
14413 + int main() { return 0; }
14414 +EOF
14415 + $opt_dry_run || $RM conftest
14416 + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
14417 + ldd_output=`ldd conftest`
14418 + for i in $deplibs; do
14419 + case $i in
14420 + -l*)
14421 + func_stripname -l '' "$i"
14422 + name=$func_stripname_result
14423 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
14424 + case " $predeps $postdeps " in
14425 + *" $i "*)
14426 + newdeplibs="$newdeplibs $i"
14427 + i=""
14428 + ;;
14429 + esac
14430 + fi
14431 + if test -n "$i" ; then
14432 + libname=`eval "\\$ECHO \"$libname_spec\""`
14433 + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
14434 + set dummy $deplib_matches; shift
14435 + deplib_match=$1
14436 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
14437 + newdeplibs="$newdeplibs $i"
14438 + else
14439 + droppeddeps=yes
14440 + $ECHO
14441 + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
14442 + $ECHO "*** I have the capability to make that library automatically link in when"
14443 + $ECHO "*** you link to this library. But I can only do this if you have a"
14444 + $ECHO "*** shared version of the library, which I believe you do not have"
14445 + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
14446 + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
14447 + fi
14448 + fi
14449 + ;;
14450 + *)
14451 + newdeplibs="$newdeplibs $i"
14452 + ;;
14453 + esac
14454 + done
14455 + else
14456 + # Error occurred in the first compile. Let's try to salvage
14457 + # the situation: Compile a separate program for each library.
14458 + for i in $deplibs; do
14459 + case $i in
14460 + -l*)
14461 + func_stripname -l '' "$i"
14462 + name=$func_stripname_result
14463 + $opt_dry_run || $RM conftest
14464 + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
14465 + ldd_output=`ldd conftest`
14466 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
14467 + case " $predeps $postdeps " in
14468 + *" $i "*)
14469 + newdeplibs="$newdeplibs $i"
14470 + i=""
14471 + ;;
14472 + esac
14473 + fi
14474 + if test -n "$i" ; then
14475 + libname=`eval "\\$ECHO \"$libname_spec\""`
14476 + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
14477 + set dummy $deplib_matches; shift
14478 + deplib_match=$1
14479 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
14480 + newdeplibs="$newdeplibs $i"
14481 + else
14482 + droppeddeps=yes
14483 + $ECHO
14484 + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
14485 + $ECHO "*** I have the capability to make that library automatically link in when"
14486 + $ECHO "*** you link to this library. But I can only do this if you have a"
14487 + $ECHO "*** shared version of the library, which you do not appear to have"
14488 + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
14489 + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
14490 + fi
14491 + fi
14492 + else
14493 + droppeddeps=yes
14494 + $ECHO
14495 + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
14496 + $ECHO "*** make it link in! You will probably need to install it or some"
14497 + $ECHO "*** library that it depends on before this library will be fully"
14498 + $ECHO "*** functional. Installing it before continuing would be even better."
14499 + fi
14500 + ;;
14501 + *)
14502 + newdeplibs="$newdeplibs $i"
14503 + ;;
14504 + esac
14505 + done
14506 + fi
14507 + ;;
14508 + file_magic*)
14509 + set dummy $deplibs_check_method; shift
14510 + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
14511 + for a_deplib in $deplibs; do
14512 + case $a_deplib in
14513 + -l*)
14514 + func_stripname -l '' "$a_deplib"
14515 + name=$func_stripname_result
14516 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
14517 + case " $predeps $postdeps " in
14518 + *" $a_deplib "*)
14519 + newdeplibs="$newdeplibs $a_deplib"
14520 + a_deplib=""
14521 + ;;
14522 + esac
14523 + fi
14524 + if test -n "$a_deplib" ; then
14525 + libname=`eval "\\$ECHO \"$libname_spec\""`
14526 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
14527 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
14528 + for potent_lib in $potential_libs; do
14529 + # Follow soft links.
14530 + if ls -lLd "$potent_lib" 2>/dev/null |
14531 + $GREP " -> " >/dev/null; then
14532 + continue
14533 + fi
14534 + # The statement above tries to avoid entering an
14535 + # endless loop below, in case of cyclic links.
14536 + # We might still enter an endless loop, since a link
14537 + # loop can be closed while we follow links,
14538 + # but so what?
14539 + potlib="$potent_lib"
14540 + while test -h "$potlib" 2>/dev/null; do
14541 + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
14542 + case $potliblink in
14543 + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
14544 + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
14545 + esac
14546 + done
14547 + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
14548 + $SED -e 10q |
14549 + $EGREP "$file_magic_regex" > /dev/null; then
14550 + newdeplibs="$newdeplibs $a_deplib"
14551 + a_deplib=""
14552 + break 2
14553 + fi
14554 + done
14555 + done
14556 + fi
14557 + if test -n "$a_deplib" ; then
14558 + droppeddeps=yes
14559 + $ECHO
14560 + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
14561 + $ECHO "*** I have the capability to make that library automatically link in when"
14562 + $ECHO "*** you link to this library. But I can only do this if you have a"
14563 + $ECHO "*** shared version of the library, which you do not appear to have"
14564 + $ECHO "*** because I did check the linker path looking for a file starting"
14565 + if test -z "$potlib" ; then
14566 + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
14567 + else
14568 + $ECHO "*** with $libname and none of the candidates passed a file format test"
14569 + $ECHO "*** using a file magic. Last file checked: $potlib"
14570 + fi
14571 + fi
14572 + ;;
14573 + *)
14574 + # Add a -L argument.
14575 + newdeplibs="$newdeplibs $a_deplib"
14576 + ;;
14577 + esac
14578 + done # Gone through all deplibs.
14579 + ;;
14580 + match_pattern*)
14581 + set dummy $deplibs_check_method; shift
14582 + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
14583 + for a_deplib in $deplibs; do
14584 + case $a_deplib in
14585 + -l*)
14586 + func_stripname -l '' "$a_deplib"
14587 + name=$func_stripname_result
14588 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
14589 + case " $predeps $postdeps " in
14590 + *" $a_deplib "*)
14591 + newdeplibs="$newdeplibs $a_deplib"
14592 + a_deplib=""
14593 + ;;
14594 + esac
14595 + fi
14596 + if test -n "$a_deplib" ; then
14597 + libname=`eval "\\$ECHO \"$libname_spec\""`
14598 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
14599 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
14600 + for potent_lib in $potential_libs; do
14601 + potlib="$potent_lib" # see symlink-check above in file_magic test
14602 + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
14603 + $EGREP "$match_pattern_regex" > /dev/null; then
14604 + newdeplibs="$newdeplibs $a_deplib"
14605 + a_deplib=""
14606 + break 2
14607 + fi
14608 + done
14609 + done
14610 + fi
14611 + if test -n "$a_deplib" ; then
14612 + droppeddeps=yes
14613 + $ECHO
14614 + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
14615 + $ECHO "*** I have the capability to make that library automatically link in when"
14616 + $ECHO "*** you link to this library. But I can only do this if you have a"
14617 + $ECHO "*** shared version of the library, which you do not appear to have"
14618 + $ECHO "*** because I did check the linker path looking for a file starting"
14619 + if test -z "$potlib" ; then
14620 + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
14621 + else
14622 + $ECHO "*** with $libname and none of the candidates passed a file format test"
14623 + $ECHO "*** using a regex pattern. Last file checked: $potlib"
14624 + fi
14625 + fi
14626 + ;;
14627 + *)
14628 + # Add a -L argument.
14629 + newdeplibs="$newdeplibs $a_deplib"
14630 + ;;
14631 + esac
14632 + done # Gone through all deplibs.
14633 + ;;
14634 + none | unknown | *)
14635 + newdeplibs=""
14636 + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
14637 + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
14638 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
14639 + for i in $predeps $postdeps ; do
14640 + # can't use Xsed below, because $i might contain '/'
14641 + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
14642 + done
14643 + fi
14644 + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
14645 + $GREP . >/dev/null; then
14646 + $ECHO
14647 + if test "X$deplibs_check_method" = "Xnone"; then
14648 + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
14649 + else
14650 + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
14651 + fi
14652 + $ECHO "*** All declared inter-library dependencies are being dropped."
14653 + droppeddeps=yes
14654 + fi
14655 + ;;
14656 + esac
14657 + versuffix=$versuffix_save
14658 + major=$major_save
14659 + release=$release_save
14660 + libname=$libname_save
14661 + name=$name_save
14662 +
14663 + case $host in
14664 + *-*-rhapsody* | *-*-darwin1.[012])
14665 + # On Rhapsody replace the C library with the System framework
14666 + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
14667 + ;;
14668 + esac
14669 +
14670 + if test "$droppeddeps" = yes; then
14671 + if test "$module" = yes; then
14672 + $ECHO
14673 + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
14674 + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
14675 + $ECHO "*** a static module, that should work as long as the dlopening"
14676 + $ECHO "*** application is linked with the -dlopen flag."
14677 + if test -z "$global_symbol_pipe"; then
14678 + $ECHO
14679 + $ECHO "*** However, this would only work if libtool was able to extract symbol"
14680 + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
14681 + $ECHO "*** not find such a program. So, this module is probably useless."
14682 + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
14683 + fi
14684 + if test "$build_old_libs" = no; then
14685 + oldlibs="$output_objdir/$libname.$libext"
14686 + build_libtool_libs=module
14687 + build_old_libs=yes
14688 + else
14689 + build_libtool_libs=no
14690 + fi
14691 + else
14692 + $ECHO "*** The inter-library dependencies that have been dropped here will be"
14693 + $ECHO "*** automatically added whenever a program is linked with this library"
14694 + $ECHO "*** or is declared to -dlopen it."
14695 +
14696 + if test "$allow_undefined" = no; then
14697 + $ECHO
14698 + $ECHO "*** Since this library must not contain undefined symbols,"
14699 + $ECHO "*** because either the platform does not support them or"
14700 + $ECHO "*** it was explicitly requested with -no-undefined,"
14701 + $ECHO "*** libtool will only create a static version of it."
14702 + if test "$build_old_libs" = no; then
14703 + oldlibs="$output_objdir/$libname.$libext"
14704 + build_libtool_libs=module
14705 + build_old_libs=yes
14706 + else
14707 + build_libtool_libs=no
14708 + fi
14709 + fi
14710 + fi
14711 + fi
14712 + # Done checking deplibs!
14713 + deplibs=$newdeplibs
14714 + fi
14715 + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
14716 + case $host in
14717 + *-*-darwin*)
14718 + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
14719 + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
14720 + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
14721 + ;;
14722 + esac
14723 +
14724 + # move library search paths that coincide with paths to not yet
14725 + # installed libraries to the beginning of the library search list
14726 + new_libs=
14727 + for path in $notinst_path; do
14728 + case " $new_libs " in
14729 + *" -L$path/$objdir "*) ;;
14730 + *)
14731 + case " $deplibs " in
14732 + *" -L$path/$objdir "*)
14733 + new_libs="$new_libs -L$path/$objdir" ;;
14734 + esac
14735 + ;;
14736 + esac
14737 + done
14738 + for deplib in $deplibs; do
14739 + case $deplib in
14740 + -L*)
14741 + case " $new_libs " in
14742 + *" $deplib "*) ;;
14743 + *) new_libs="$new_libs $deplib" ;;
14744 + esac
14745 + ;;
14746 + *) new_libs="$new_libs $deplib" ;;
14747 + esac
14748 + done
14749 + deplibs="$new_libs"
14750 +
14751 + # All the library-specific variables (install_libdir is set above).
14752 + library_names=
14753 + old_library=
14754 + dlname=
14755 +
14756 + # Test again, we may have decided not to build it any more
14757 + if test "$build_libtool_libs" = yes; then
14758 + if test "$hardcode_into_libs" = yes; then
14759 + # Hardcode the library paths
14760 + hardcode_libdirs=
14761 + dep_rpath=
14762 + rpath="$finalize_rpath"
14763 + test "$mode" != relink && rpath="$compile_rpath$rpath"
14764 + for libdir in $rpath; do
14765 + if test -n "$hardcode_libdir_flag_spec"; then
14766 + if test -n "$hardcode_libdir_separator"; then
14767 + if test -z "$hardcode_libdirs"; then
14768 + hardcode_libdirs="$libdir"
14769 + else
14770 + # Just accumulate the unique libdirs.
14771 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
14772 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
14773 + ;;
14774 + *)
14775 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
14776 + ;;
14777 + esac
14778 + fi
14779 + else
14780 + eval flag=\"$hardcode_libdir_flag_spec\"
14781 + dep_rpath="$dep_rpath $flag"
14782 + fi
14783 + elif test -n "$runpath_var"; then
14784 + case "$perm_rpath " in
14785 + *" $libdir "*) ;;
14786 + *) perm_rpath="$perm_rpath $libdir" ;;
14787 + esac
14788 + fi
14789 + done
14790 + # Substitute the hardcoded libdirs into the rpath.
14791 + if test -n "$hardcode_libdir_separator" &&
14792 + test -n "$hardcode_libdirs"; then
14793 + libdir="$hardcode_libdirs"
14794 + if test -n "$hardcode_libdir_flag_spec_ld"; then
14795 + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
14796 + else
14797 + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
14798 + fi
14799 + fi
14800 + if test -n "$runpath_var" && test -n "$perm_rpath"; then
14801 + # We should set the runpath_var.
14802 + rpath=
14803 + for dir in $perm_rpath; do
14804 + rpath="$rpath$dir:"
14805 + done
14806 + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
14807 + fi
14808 + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
14809 + fi
14810 +
14811 + shlibpath="$finalize_shlibpath"
14812 + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
14813 + if test -n "$shlibpath"; then
14814 + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
14815 + fi
14816 +
14817 + # Get the real and link names of the library.
14818 + eval shared_ext=\"$shrext_cmds\"
14819 + eval library_names=\"$library_names_spec\"
14820 + set dummy $library_names
14821 + shift
14822 + realname="$1"
14823 + shift
14824 +
14825 + if test -n "$soname_spec"; then
14826 + eval soname=\"$soname_spec\"
14827 + else
14828 + soname="$realname"
14829 + fi
14830 + if test -z "$dlname"; then
14831 + dlname=$soname
14832 + fi
14833 +
14834 + lib="$output_objdir/$realname"
14835 + linknames=
14836 + for link
14837 + do
14838 + linknames="$linknames $link"
14839 + done
14840 +
14841 + # Use standard objects if they are pic
14842 + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
14843 + test "X$libobjs" = "X " && libobjs=
14844 +
14845 + delfiles=
14846 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
14847 + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
14848 + export_symbols="$output_objdir/$libname.uexp"
14849 + delfiles="$delfiles $export_symbols"
14850 + fi
14851 +
14852 + orig_export_symbols=
14853 + case $host_os in
14854 + cygwin* | mingw* | cegcc*)
14855 + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
14856 + # exporting using user supplied symfile
14857 + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
14858 + # and it's NOT already a .def file. Must figure out
14859 + # which of the given symbols are data symbols and tag
14860 + # them as such. So, trigger use of export_symbols_cmds.
14861 + # export_symbols gets reassigned inside the "prepare
14862 + # the list of exported symbols" if statement, so the
14863 + # include_expsyms logic still works.
14864 + orig_export_symbols="$export_symbols"
14865 + export_symbols=
14866 + always_export_symbols=yes
14867 + fi
14868 + fi
14869 + ;;
14870 + esac
14871 +
14872 + # Prepare the list of exported symbols
14873 + if test -z "$export_symbols"; then
14874 + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
14875 + func_verbose "generating symbol list for \`$libname.la'"
14876 + export_symbols="$output_objdir/$libname.exp"
14877 + $opt_dry_run || $RM $export_symbols
14878 + cmds=$export_symbols_cmds
14879 + save_ifs="$IFS"; IFS='~'
14880 + for cmd in $cmds; do
14881 + IFS="$save_ifs"
14882 + eval cmd=\"$cmd\"
14883 + func_len " $cmd"
14884 + len=$func_len_result
14885 + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
14886 + func_show_eval "$cmd" 'exit $?'
14887 + skipped_export=false
14888 + else
14889 + # The command line is too long to execute in one step.
14890 + func_verbose "using reloadable object file for export list..."
14891 + skipped_export=:
14892 + # Break out early, otherwise skipped_export may be
14893 + # set to false by a later but shorter cmd.
14894 + break
14895 + fi
14896 + done
14897 + IFS="$save_ifs"
14898 + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
14899 + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
14900 + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
14901 + fi
14902 + fi
14903 + fi
14904 +
14905 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
14906 + tmp_export_symbols="$export_symbols"
14907 + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
14908 + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
14909 + fi
14910 +
14911 + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
14912 + # The given exports_symbols file has to be filtered, so filter it.
14913 + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
14914 + # FIXME: $output_objdir/$libname.filter potentially contains lots of
14915 + # 's' commands which not all seds can handle. GNU sed should be fine
14916 + # though. Also, the filter scales superlinearly with the number of
14917 + # global variables. join(1) would be nice here, but unfortunately
14918 + # isn't a blessed tool.
14919 + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
14920 + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
14921 + export_symbols=$output_objdir/$libname.def
14922 + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
14923 + fi
14924 +
14925 + tmp_deplibs=
14926 + for test_deplib in $deplibs; do
14927 + case " $convenience " in
14928 + *" $test_deplib "*) ;;
14929 + *)
14930 + tmp_deplibs="$tmp_deplibs $test_deplib"
14931 + ;;
14932 + esac
14933 + done
14934 + deplibs="$tmp_deplibs"
14935 +
14936 + if test -n "$convenience"; then
14937 + if test -n "$whole_archive_flag_spec" &&
14938 + test "$compiler_needs_object" = yes &&
14939 + test -z "$libobjs"; then
14940 + # extract the archives, so we have objects to list.
14941 + # TODO: could optimize this to just extract one archive.
14942 + whole_archive_flag_spec=
14943 + fi
14944 + if test -n "$whole_archive_flag_spec"; then
14945 + save_libobjs=$libobjs
14946 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
14947 + test "X$libobjs" = "X " && libobjs=
14948 + else
14949 + gentop="$output_objdir/${outputname}x"
14950 + generated="$generated $gentop"
14951 +
14952 + func_extract_archives $gentop $convenience
14953 + libobjs="$libobjs $func_extract_archives_result"
14954 + test "X$libobjs" = "X " && libobjs=
14955 + fi
14956 + fi
14957 +
14958 + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
14959 + eval flag=\"$thread_safe_flag_spec\"
14960 + linker_flags="$linker_flags $flag"
14961 + fi
14962 +
14963 + # Make a backup of the uninstalled library when relinking
14964 + if test "$mode" = relink; then
14965 + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
14966 + fi
14967 +
14968 + # Do each of the archive commands.
14969 + if test "$module" = yes && test -n "$module_cmds" ; then
14970 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
14971 + eval test_cmds=\"$module_expsym_cmds\"
14972 + cmds=$module_expsym_cmds
14973 + else
14974 + eval test_cmds=\"$module_cmds\"
14975 + cmds=$module_cmds
14976 + fi
14977 + else
14978 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
14979 + eval test_cmds=\"$archive_expsym_cmds\"
14980 + cmds=$archive_expsym_cmds
14981 + else
14982 + eval test_cmds=\"$archive_cmds\"
14983 + cmds=$archive_cmds
14984 + fi
14985 + fi
14986 +
14987 + if test "X$skipped_export" != "X:" &&
14988 + func_len " $test_cmds" &&
14989 + len=$func_len_result &&
14990 + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
14991 + :
14992 + else
14993 + # The command line is too long to link in one step, link piecewise
14994 + # or, if using GNU ld and skipped_export is not :, use a linker
14995 + # script.
14996 +
14997 + # Save the value of $output and $libobjs because we want to
14998 + # use them later. If we have whole_archive_flag_spec, we
14999 + # want to use save_libobjs as it was before
15000 + # whole_archive_flag_spec was expanded, because we can't
15001 + # assume the linker understands whole_archive_flag_spec.
15002 + # This may have to be revisited, in case too many
15003 + # convenience libraries get linked in and end up exceeding
15004 + # the spec.
15005 + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
15006 + save_libobjs=$libobjs
15007 + fi
15008 + save_output=$output
15009 + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
15010 +
15011 + # Clear the reloadable object creation command queue and
15012 + # initialize k to one.
15013 + test_cmds=
15014 + concat_cmds=
15015 + objlist=
15016 + last_robj=
15017 + k=1
15018 +
15019 + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
15020 + output=${output_objdir}/${output_la}.lnkscript
15021 + func_verbose "creating GNU ld script: $output"
15022 + $ECHO 'INPUT (' > $output
15023 + for obj in $save_libobjs
15024 + do
15025 + $ECHO "$obj" >> $output
15026 + done
15027 + $ECHO ')' >> $output
15028 + delfiles="$delfiles $output"
15029 + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
15030 + output=${output_objdir}/${output_la}.lnk
15031 + func_verbose "creating linker input file list: $output"
15032 + : > $output
15033 + set x $save_libobjs
15034 + shift
15035 + firstobj=
15036 + if test "$compiler_needs_object" = yes; then
15037 + firstobj="$1 "
15038 + shift
15039 + fi
15040 + for obj
15041 + do
15042 + $ECHO "$obj" >> $output
15043 + done
15044 + delfiles="$delfiles $output"
15045 + output=$firstobj\"$file_list_spec$output\"
15046 + else
15047 + if test -n "$save_libobjs"; then
15048 + func_verbose "creating reloadable object files..."
15049 + output=$output_objdir/$output_la-${k}.$objext
15050 + eval test_cmds=\"$reload_cmds\"
15051 + func_len " $test_cmds"
15052 + len0=$func_len_result
15053 + len=$len0
15054 +
15055 + # Loop over the list of objects to be linked.
15056 + for obj in $save_libobjs
15057 + do
15058 + func_len " $obj"
15059 + func_arith $len + $func_len_result
15060 + len=$func_arith_result
15061 + if test "X$objlist" = X ||
15062 + test "$len" -lt "$max_cmd_len"; then
15063 + func_append objlist " $obj"
15064 + else
15065 + # The command $test_cmds is almost too long, add a
15066 + # command to the queue.
15067 + if test "$k" -eq 1 ; then
15068 + # The first file doesn't have a previous command to add.
15069 + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
15070 + else
15071 + # All subsequent reloadable object files will link in
15072 + # the last one created.
15073 + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
15074 + fi
15075 + last_robj=$output_objdir/$output_la-${k}.$objext
15076 + func_arith $k + 1
15077 + k=$func_arith_result
15078 + output=$output_objdir/$output_la-${k}.$objext
15079 + objlist=$obj
15080 + func_len " $last_robj"
15081 + func_arith $len0 + $func_len_result
15082 + len=$func_arith_result
15083 + fi
15084 + done
15085 + # Handle the remaining objects by creating one last
15086 + # reloadable object file. All subsequent reloadable object
15087 + # files will link in the last one created.
15088 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
15089 + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
15090 + if test -n "$last_robj"; then
15091 + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
15092 + fi
15093 + delfiles="$delfiles $output"
15094 +
15095 + else
15096 + output=
15097 + fi
15098 +
15099 + if ${skipped_export-false}; then
15100 + func_verbose "generating symbol list for \`$libname.la'"
15101 + export_symbols="$output_objdir/$libname.exp"
15102 + $opt_dry_run || $RM $export_symbols
15103 + libobjs=$output
15104 + # Append the command to create the export file.
15105 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
15106 + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
15107 + if test -n "$last_robj"; then
15108 + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
15109 + fi
15110 + fi
15111 +
15112 + test -n "$save_libobjs" &&
15113 + func_verbose "creating a temporary reloadable object file: $output"
15114 +
15115 + # Loop through the commands generated above and execute them.
15116 + save_ifs="$IFS"; IFS='~'
15117 + for cmd in $concat_cmds; do
15118 + IFS="$save_ifs"
15119 + $opt_silent || {
15120 + func_quote_for_expand "$cmd"
15121 + eval "func_echo $func_quote_for_expand_result"
15122 + }
15123 + $opt_dry_run || eval "$cmd" || {
15124 + lt_exit=$?
15125 +
15126 + # Restore the uninstalled library and exit
15127 + if test "$mode" = relink; then
15128 + ( cd "$output_objdir" && \
15129 + $RM "${realname}T" && \
15130 + $MV "${realname}U" "$realname" )
15131 + fi
15132 +
15133 + exit $lt_exit
15134 + }
15135 + done
15136 + IFS="$save_ifs"
15137 +
15138 + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
15139 + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
15140 + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
15141 + fi
15142 + fi
15143 +
15144 + if ${skipped_export-false}; then
15145 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
15146 + tmp_export_symbols="$export_symbols"
15147 + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
15148 + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
15149 + fi
15150 +
15151 + if test -n "$orig_export_symbols"; then
15152 + # The given exports_symbols file has to be filtered, so filter it.
15153 + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
15154 + # FIXME: $output_objdir/$libname.filter potentially contains lots of
15155 + # 's' commands which not all seds can handle. GNU sed should be fine
15156 + # though. Also, the filter scales superlinearly with the number of
15157 + # global variables. join(1) would be nice here, but unfortunately
15158 + # isn't a blessed tool.
15159 + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
15160 + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
15161 + export_symbols=$output_objdir/$libname.def
15162 + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
15163 + fi
15164 + fi
15165 +
15166 + libobjs=$output
15167 + # Restore the value of output.
15168 + output=$save_output
15169 +
15170 + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
15171 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
15172 + test "X$libobjs" = "X " && libobjs=
15173 + fi
15174 + # Expand the library linking commands again to reset the
15175 + # value of $libobjs for piecewise linking.
15176 +
15177 + # Do each of the archive commands.
15178 + if test "$module" = yes && test -n "$module_cmds" ; then
15179 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
15180 + cmds=$module_expsym_cmds
15181 + else
15182 + cmds=$module_cmds
15183 + fi
15184 + else
15185 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
15186 + cmds=$archive_expsym_cmds
15187 + else
15188 + cmds=$archive_cmds
15189 + fi
15190 + fi
15191 + fi
15192 +
15193 + if test -n "$delfiles"; then
15194 + # Append the command to remove temporary files to $cmds.
15195 + eval cmds=\"\$cmds~\$RM $delfiles\"
15196 + fi
15197 +
15198 + # Add any objects from preloaded convenience libraries
15199 + if test -n "$dlprefiles"; then
15200 + gentop="$output_objdir/${outputname}x"
15201 + generated="$generated $gentop"
15202 +
15203 + func_extract_archives $gentop $dlprefiles
15204 + libobjs="$libobjs $func_extract_archives_result"
15205 + test "X$libobjs" = "X " && libobjs=
15206 + fi
15207 +
15208 + save_ifs="$IFS"; IFS='~'
15209 + for cmd in $cmds; do
15210 + IFS="$save_ifs"
15211 + eval cmd=\"$cmd\"
15212 + $opt_silent || {
15213 + func_quote_for_expand "$cmd"
15214 + eval "func_echo $func_quote_for_expand_result"
15215 + }
15216 + $opt_dry_run || eval "$cmd" || {
15217 + lt_exit=$?
15218 +
15219 + # Restore the uninstalled library and exit
15220 + if test "$mode" = relink; then
15221 + ( cd "$output_objdir" && \
15222 + $RM "${realname}T" && \
15223 + $MV "${realname}U" "$realname" )
15224 + fi
15225 +
15226 + exit $lt_exit
15227 + }
15228 + done
15229 + IFS="$save_ifs"
15230 +
15231 + # Restore the uninstalled library and exit
15232 + if test "$mode" = relink; then
15233 + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
15234 +
15235 + if test -n "$convenience"; then
15236 + if test -z "$whole_archive_flag_spec"; then
15237 + func_show_eval '${RM}r "$gentop"'
15238 + fi
15239 + fi
15240 +
15241 + exit $EXIT_SUCCESS
15242 + fi
15243 +
15244 + # Create links to the real library.
15245 + for linkname in $linknames; do
15246 + if test "$realname" != "$linkname"; then
15247 + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
15248 + fi
15249 + done
15250 +
15251 + # If -module or -export-dynamic was specified, set the dlname.
15252 + if test "$module" = yes || test "$export_dynamic" = yes; then
15253 + # On all known operating systems, these are identical.
15254 + dlname="$soname"
15255 + fi
15256 + fi
15257 + ;;
15258 +
15259 + obj)
15260 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
15261 + func_warning "\`-dlopen' is ignored for objects"
15262 + fi
15263 +
15264 + case " $deplibs" in
15265 + *\ -l* | *\ -L*)
15266 + func_warning "\`-l' and \`-L' are ignored for objects" ;;
15267 + esac
15268 +
15269 + test -n "$rpath" && \
15270 + func_warning "\`-rpath' is ignored for objects"
15271 +
15272 + test -n "$xrpath" && \
15273 + func_warning "\`-R' is ignored for objects"
15274 +
15275 + test -n "$vinfo" && \
15276 + func_warning "\`-version-info' is ignored for objects"
15277 +
15278 + test -n "$release" && \
15279 + func_warning "\`-release' is ignored for objects"
15280 +
15281 + case $output in
15282 + *.lo)
15283 + test -n "$objs$old_deplibs" && \
15284 + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
15285 +
15286 + libobj=$output
15287 + func_lo2o "$libobj"
15288 + obj=$func_lo2o_result
15289 + ;;
15290 + *)
15291 + libobj=
15292 + obj="$output"
15293 + ;;
15294 + esac
15295 +
15296 + # Delete the old objects.
15297 + $opt_dry_run || $RM $obj $libobj
15298 +
15299 + # Objects from convenience libraries. This assumes
15300 + # single-version convenience libraries. Whenever we create
15301 + # different ones for PIC/non-PIC, this we'll have to duplicate
15302 + # the extraction.
15303 + reload_conv_objs=
15304 + gentop=
15305 + # reload_cmds runs $LD directly, so let us get rid of
15306 + # -Wl from whole_archive_flag_spec and hope we can get by with
15307 + # turning comma into space..
15308 + wl=
15309 +
15310 + if test -n "$convenience"; then
15311 + if test -n "$whole_archive_flag_spec"; then
15312 + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
15313 + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
15314 + else
15315 + gentop="$output_objdir/${obj}x"
15316 + generated="$generated $gentop"
15317 +
15318 + func_extract_archives $gentop $convenience
15319 + reload_conv_objs="$reload_objs $func_extract_archives_result"
15320 + fi
15321 + fi
15322 +
15323 + # Create the old-style object.
15324 + reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
15325 +
15326 + output="$obj"
15327 + func_execute_cmds "$reload_cmds" 'exit $?'
15328 +
15329 + # Exit if we aren't doing a library object file.
15330 + if test -z "$libobj"; then
15331 + if test -n "$gentop"; then
15332 + func_show_eval '${RM}r "$gentop"'
15333 + fi
15334 +
15335 + exit $EXIT_SUCCESS
15336 + fi
15337 +
15338 + if test "$build_libtool_libs" != yes; then
15339 + if test -n "$gentop"; then
15340 + func_show_eval '${RM}r "$gentop"'
15341 + fi
15342 +
15343 + # Create an invalid libtool object if no PIC, so that we don't
15344 + # accidentally link it into a program.
15345 + # $show "echo timestamp > $libobj"
15346 + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
15347 + exit $EXIT_SUCCESS
15348 + fi
15349 +
15350 + if test -n "$pic_flag" || test "$pic_mode" != default; then
15351 + # Only do commands if we really have different PIC objects.
15352 + reload_objs="$libobjs $reload_conv_objs"
15353 + output="$libobj"
15354 + func_execute_cmds "$reload_cmds" 'exit $?'
15355 + fi
15356 +
15357 + if test -n "$gentop"; then
15358 + func_show_eval '${RM}r "$gentop"'
15359 + fi
15360 +
15361 + exit $EXIT_SUCCESS
15362 + ;;
15363 +
15364 + prog)
15365 + case $host in
15366 + *cygwin*) func_stripname '' '.exe' "$output"
15367 + output=$func_stripname_result.exe;;
15368 + esac
15369 + test -n "$vinfo" && \
15370 + func_warning "\`-version-info' is ignored for programs"
15371 +
15372 + test -n "$release" && \
15373 + func_warning "\`-release' is ignored for programs"
15374 +
15375 + test "$preload" = yes \
15376 + && test "$dlopen_support" = unknown \
15377 + && test "$dlopen_self" = unknown \
15378 + && test "$dlopen_self_static" = unknown && \
15379 + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
15380 +
15381 + case $host in
15382 + *-*-rhapsody* | *-*-darwin1.[012])
15383 + # On Rhapsody replace the C library is the System framework
15384 + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
15385 + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
15386 + ;;
15387 + esac
15388 +
15389 + case $host in
15390 + *-*-darwin*)
15391 + # Don't allow lazy linking, it breaks C++ global constructors
15392 + # But is supposedly fixed on 10.4 or later (yay!).
15393 + if test "$tagname" = CXX ; then
15394 + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
15395 + 10.[0123])
15396 + compile_command="$compile_command ${wl}-bind_at_load"
15397 + finalize_command="$finalize_command ${wl}-bind_at_load"
15398 + ;;
15399 + esac
15400 + fi
15401 + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
15402 + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
15403 + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
15404 + ;;
15405 + esac
15406 +
15407 +
15408 + # move library search paths that coincide with paths to not yet
15409 + # installed libraries to the beginning of the library search list
15410 + new_libs=
15411 + for path in $notinst_path; do
15412 + case " $new_libs " in
15413 + *" -L$path/$objdir "*) ;;
15414 + *)
15415 + case " $compile_deplibs " in
15416 + *" -L$path/$objdir "*)
15417 + new_libs="$new_libs -L$path/$objdir" ;;
15418 + esac
15419 + ;;
15420 + esac
15421 + done
15422 + for deplib in $compile_deplibs; do
15423 + case $deplib in
15424 + -L*)
15425 + case " $new_libs " in
15426 + *" $deplib "*) ;;
15427 + *) new_libs="$new_libs $deplib" ;;
15428 + esac
15429 + ;;
15430 + *) new_libs="$new_libs $deplib" ;;
15431 + esac
15432 + done
15433 + compile_deplibs="$new_libs"
15434 +
15435 +
15436 + compile_command="$compile_command $compile_deplibs"
15437 + finalize_command="$finalize_command $finalize_deplibs"
15438 +
15439 + if test -n "$rpath$xrpath"; then
15440 + # If the user specified any rpath flags, then add them.
15441 + for libdir in $rpath $xrpath; do
15442 + # This is the magic to use -rpath.
15443 + case "$finalize_rpath " in
15444 + *" $libdir "*) ;;
15445 + *) finalize_rpath="$finalize_rpath $libdir" ;;
15446 + esac
15447 + done
15448 + fi
15449 +
15450 + # Now hardcode the library paths
15451 + rpath=
15452 + hardcode_libdirs=
15453 + for libdir in $compile_rpath $finalize_rpath; do
15454 + if test -n "$hardcode_libdir_flag_spec"; then
15455 + if test -n "$hardcode_libdir_separator"; then
15456 + if test -z "$hardcode_libdirs"; then
15457 + hardcode_libdirs="$libdir"
15458 + else
15459 + # Just accumulate the unique libdirs.
15460 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
15461 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
15462 + ;;
15463 + *)
15464 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
15465 + ;;
15466 + esac
15467 + fi
15468 + else
15469 + eval flag=\"$hardcode_libdir_flag_spec\"
15470 + rpath="$rpath $flag"
15471 + fi
15472 + elif test -n "$runpath_var"; then
15473 + case "$perm_rpath " in
15474 + *" $libdir "*) ;;
15475 + *) perm_rpath="$perm_rpath $libdir" ;;
15476 + esac
15477 + fi
15478 + case $host in
15479 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
15480 + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
15481 + case :$dllsearchpath: in
15482 + *":$libdir:"*) ;;
15483 + ::) dllsearchpath=$libdir;;
15484 + *) dllsearchpath="$dllsearchpath:$libdir";;
15485 + esac
15486 + case :$dllsearchpath: in
15487 + *":$testbindir:"*) ;;
15488 + ::) dllsearchpath=$testbindir;;
15489 + *) dllsearchpath="$dllsearchpath:$testbindir";;
15490 + esac
15491 + ;;
15492 + esac
15493 + done
15494 + # Substitute the hardcoded libdirs into the rpath.
15495 + if test -n "$hardcode_libdir_separator" &&
15496 + test -n "$hardcode_libdirs"; then
15497 + libdir="$hardcode_libdirs"
15498 + eval rpath=\" $hardcode_libdir_flag_spec\"
15499 + fi
15500 + compile_rpath="$rpath"
15501 +
15502 + rpath=
15503 + hardcode_libdirs=
15504 + for libdir in $finalize_rpath; do
15505 + if test -n "$hardcode_libdir_flag_spec"; then
15506 + if test -n "$hardcode_libdir_separator"; then
15507 + if test -z "$hardcode_libdirs"; then
15508 + hardcode_libdirs="$libdir"
15509 + else
15510 + # Just accumulate the unique libdirs.
15511 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
15512 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
15513 + ;;
15514 + *)
15515 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
15516 + ;;
15517 + esac
15518 + fi
15519 + else
15520 + eval flag=\"$hardcode_libdir_flag_spec\"
15521 + rpath="$rpath $flag"
15522 + fi
15523 + elif test -n "$runpath_var"; then
15524 + case "$finalize_perm_rpath " in
15525 + *" $libdir "*) ;;
15526 + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
15527 + esac
15528 + fi
15529 + done
15530 + # Substitute the hardcoded libdirs into the rpath.
15531 + if test -n "$hardcode_libdir_separator" &&
15532 + test -n "$hardcode_libdirs"; then
15533 + libdir="$hardcode_libdirs"
15534 + eval rpath=\" $hardcode_libdir_flag_spec\"
15535 + fi
15536 + finalize_rpath="$rpath"
15537 +
15538 + if test -n "$libobjs" && test "$build_old_libs" = yes; then
15539 + # Transform all the library objects into standard objects.
15540 + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
15541 + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
15542 + fi
15543 +
15544 + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
15545 +
15546 + # template prelinking step
15547 + if test -n "$prelink_cmds"; then
15548 + func_execute_cmds "$prelink_cmds" 'exit $?'
15549 + fi
15550 +
15551 + wrappers_required=yes
15552 + case $host in
15553 + *cygwin* | *mingw* )
15554 + if test "$build_libtool_libs" != yes; then
15555 + wrappers_required=no
15556 + fi
15557 + ;;
15558 + *cegcc)
15559 + # Disable wrappers for cegcc, we are cross compiling anyway.
15560 + wrappers_required=no
15561 + ;;
15562 + *)
15563 + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
15564 + wrappers_required=no
15565 + fi
15566 + ;;
15567 + esac
15568 + if test "$wrappers_required" = no; then
15569 + # Replace the output file specification.
15570 + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
15571 + link_command="$compile_command$compile_rpath"
15572 +
15573 + # We have no uninstalled library dependencies, so finalize right now.
15574 + exit_status=0
15575 + func_show_eval "$link_command" 'exit_status=$?'
15576 +
15577 + # Delete the generated files.
15578 + if test -f "$output_objdir/${outputname}S.${objext}"; then
15579 + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
15580 + fi
15581 +
15582 + exit $exit_status
15583 + fi
15584 +
15585 + if test -n "$compile_shlibpath$finalize_shlibpath"; then
15586 + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
15587 + fi
15588 + if test -n "$finalize_shlibpath"; then
15589 + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
15590 + fi
15591 +
15592 + compile_var=
15593 + finalize_var=
15594 + if test -n "$runpath_var"; then
15595 + if test -n "$perm_rpath"; then
15596 + # We should set the runpath_var.
15597 + rpath=
15598 + for dir in $perm_rpath; do
15599 + rpath="$rpath$dir:"
15600 + done
15601 + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
15602 + fi
15603 + if test -n "$finalize_perm_rpath"; then
15604 + # We should set the runpath_var.
15605 + rpath=
15606 + for dir in $finalize_perm_rpath; do
15607 + rpath="$rpath$dir:"
15608 + done
15609 + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
15610 + fi
15611 + fi
15612 +
15613 + if test "$no_install" = yes; then
15614 + # We don't need to create a wrapper script.
15615 + link_command="$compile_var$compile_command$compile_rpath"
15616 + # Replace the output file specification.
15617 + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
15618 + # Delete the old output file.
15619 + $opt_dry_run || $RM $output
15620 + # Link the executable and exit
15621 + func_show_eval "$link_command" 'exit $?'
15622 + exit $EXIT_SUCCESS
15623 + fi
15624 +
15625 + if test "$hardcode_action" = relink; then
15626 + # Fast installation is not supported
15627 + link_command="$compile_var$compile_command$compile_rpath"
15628 + relink_command="$finalize_var$finalize_command$finalize_rpath"
15629 +
15630 + func_warning "this platform does not like uninstalled shared libraries"
15631 + func_warning "\`$output' will be relinked during installation"
15632 + else
15633 + if test "$fast_install" != no; then
15634 + link_command="$finalize_var$compile_command$finalize_rpath"
15635 + if test "$fast_install" = yes; then
15636 + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
15637 + else
15638 + # fast_install is set to needless
15639 + relink_command=
15640 + fi
15641 + else
15642 + link_command="$compile_var$compile_command$compile_rpath"
15643 + relink_command="$finalize_var$finalize_command$finalize_rpath"
15644 + fi
15645 + fi
15646 +
15647 + # Replace the output file specification.
15648 + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
15649 +
15650 + # Delete the old output files.
15651 + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
15652 +
15653 + func_show_eval "$link_command" 'exit $?'
15654 +
15655 + # Now create the wrapper script.
15656 + func_verbose "creating $output"
15657 +
15658 + # Quote the relink command for shipping.
15659 + if test -n "$relink_command"; then
15660 + # Preserve any variables that may affect compiler behavior
15661 + for var in $variables_saved_for_relink; do
15662 + if eval test -z \"\${$var+set}\"; then
15663 + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
15664 + elif eval var_value=\$$var; test -z "$var_value"; then
15665 + relink_command="$var=; export $var; $relink_command"
15666 + else
15667 + func_quote_for_eval "$var_value"
15668 + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
15669 + fi
15670 + done
15671 + relink_command="(cd `pwd`; $relink_command)"
15672 + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
15673 + fi
15674 +
15675 + # Quote $ECHO for shipping.
15676 + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
15677 + case $progpath in
15678 + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
15679 + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
15680 + esac
15681 + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
15682 + else
15683 + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
15684 + fi
15685 +
15686 + # Only actually do things if not in dry run mode.
15687 + $opt_dry_run || {
15688 + # win32 will think the script is a binary if it has
15689 + # a .exe suffix, so we strip it off here.
15690 + case $output in
15691 + *.exe) func_stripname '' '.exe' "$output"
15692 + output=$func_stripname_result ;;
15693 + esac
15694 + # test for cygwin because mv fails w/o .exe extensions
15695 + case $host in
15696 + *cygwin*)
15697 + exeext=.exe
15698 + func_stripname '' '.exe' "$outputname"
15699 + outputname=$func_stripname_result ;;
15700 + *) exeext= ;;
15701 + esac
15702 + case $host in
15703 + *cygwin* | *mingw* )
15704 + func_dirname_and_basename "$output" "" "."
15705 + output_name=$func_basename_result
15706 + output_path=$func_dirname_result
15707 + cwrappersource="$output_path/$objdir/lt-$output_name.c"
15708 + cwrapper="$output_path/$output_name.exe"
15709 + $RM $cwrappersource $cwrapper
15710 + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
15711 +
15712 + func_emit_cwrapperexe_src > $cwrappersource
15713 +
15714 + # The wrapper executable is built using the $host compiler,
15715 + # because it contains $host paths and files. If cross-
15716 + # compiling, it, like the target executable, must be
15717 + # executed on the $host or under an emulation environment.
15718 + $opt_dry_run || {
15719 + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
15720 + $STRIP $cwrapper
15721 + }
15722 +
15723 + # Now, create the wrapper script for func_source use:
15724 + func_ltwrapper_scriptname $cwrapper
15725 + $RM $func_ltwrapper_scriptname_result
15726 + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
15727 + $opt_dry_run || {
15728 + # note: this script will not be executed, so do not chmod.
15729 + if test "x$build" = "x$host" ; then
15730 + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
15731 + else
15732 + func_emit_wrapper no > $func_ltwrapper_scriptname_result
15733 + fi
15734 + }
15735 + ;;
15736 + * )
15737 + $RM $output
15738 + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
15739 +
15740 + func_emit_wrapper no > $output
15741 + chmod +x $output
15742 + ;;
15743 + esac
15744 + }
15745 + exit $EXIT_SUCCESS
15746 + ;;
15747 + esac
15748 +
15749 + # See if we need to build an old-fashioned archive.
15750 + for oldlib in $oldlibs; do
15751 +
15752 + if test "$build_libtool_libs" = convenience; then
15753 + oldobjs="$libobjs_save $symfileobj"
15754 + addlibs="$convenience"
15755 + build_libtool_libs=no
15756 + else
15757 + if test "$build_libtool_libs" = module; then
15758 + oldobjs="$libobjs_save"
15759 + build_libtool_libs=no
15760 + else
15761 + oldobjs="$old_deplibs $non_pic_objects"
15762 + if test "$preload" = yes && test -f "$symfileobj"; then
15763 + oldobjs="$oldobjs $symfileobj"
15764 + fi
15765 + fi
15766 + addlibs="$old_convenience"
15767 + fi
15768 +
15769 + if test -n "$addlibs"; then
15770 + gentop="$output_objdir/${outputname}x"
15771 + generated="$generated $gentop"
15772 +
15773 + func_extract_archives $gentop $addlibs
15774 + oldobjs="$oldobjs $func_extract_archives_result"
15775 + fi
15776 +
15777 + # Do each command in the archive commands.
15778 + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
15779 + cmds=$old_archive_from_new_cmds
15780 + else
15781 +
15782 + # Add any objects from preloaded convenience libraries
15783 + if test -n "$dlprefiles"; then
15784 + gentop="$output_objdir/${outputname}x"
15785 + generated="$generated $gentop"
15786 +
15787 + func_extract_archives $gentop $dlprefiles
15788 + oldobjs="$oldobjs $func_extract_archives_result"
15789 + fi
15790 +
15791 + # POSIX demands no paths to be encoded in archives. We have
15792 + # to avoid creating archives with duplicate basenames if we
15793 + # might have to extract them afterwards, e.g., when creating a
15794 + # static archive out of a convenience library, or when linking
15795 + # the entirety of a libtool archive into another (currently
15796 + # not supported by libtool).
15797 + if (for obj in $oldobjs
15798 + do
15799 + func_basename "$obj"
15800 + $ECHO "$func_basename_result"
15801 + done | sort | sort -uc >/dev/null 2>&1); then
15802 + :
15803 + else
15804 + $ECHO "copying selected object files to avoid basename conflicts..."
15805 + gentop="$output_objdir/${outputname}x"
15806 + generated="$generated $gentop"
15807 + func_mkdir_p "$gentop"
15808 + save_oldobjs=$oldobjs
15809 + oldobjs=
15810 + counter=1
15811 + for obj in $save_oldobjs
15812 + do
15813 + func_basename "$obj"
15814 + objbase="$func_basename_result"
15815 + case " $oldobjs " in
15816 + " ") oldobjs=$obj ;;
15817 + *[\ /]"$objbase "*)
15818 + while :; do
15819 + # Make sure we don't pick an alternate name that also
15820 + # overlaps.
15821 + newobj=lt$counter-$objbase
15822 + func_arith $counter + 1
15823 + counter=$func_arith_result
15824 + case " $oldobjs " in
15825 + *[\ /]"$newobj "*) ;;
15826 + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
15827 + esac
15828 + done
15829 + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
15830 + oldobjs="$oldobjs $gentop/$newobj"
15831 + ;;
15832 + *) oldobjs="$oldobjs $obj" ;;
15833 + esac
15834 + done
15835 + fi
15836 + eval cmds=\"$old_archive_cmds\"
15837 +
15838 + func_len " $cmds"
15839 + len=$func_len_result
15840 + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
15841 + cmds=$old_archive_cmds
15842 + else
15843 + # the command line is too long to link in one step, link in parts
15844 + func_verbose "using piecewise archive linking..."
15845 + save_RANLIB=$RANLIB
15846 + RANLIB=:
15847 + objlist=
15848 + concat_cmds=
15849 + save_oldobjs=$oldobjs
15850 + oldobjs=
15851 + # Is there a better way of finding the last object in the list?
15852 + for obj in $save_oldobjs
15853 + do
15854 + last_oldobj=$obj
15855 + done
15856 + eval test_cmds=\"$old_archive_cmds\"
15857 + func_len " $test_cmds"
15858 + len0=$func_len_result
15859 + len=$len0
15860 + for obj in $save_oldobjs
15861 + do
15862 + func_len " $obj"
15863 + func_arith $len + $func_len_result
15864 + len=$func_arith_result
15865 + func_append objlist " $obj"
15866 + if test "$len" -lt "$max_cmd_len"; then
15867 + :
15868 + else
15869 + # the above command should be used before it gets too long
15870 + oldobjs=$objlist
15871 + if test "$obj" = "$last_oldobj" ; then
15872 + RANLIB=$save_RANLIB
15873 + fi
15874 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
15875 + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
15876 + objlist=
15877 + len=$len0
15878 + fi
15879 + done
15880 + RANLIB=$save_RANLIB
15881 + oldobjs=$objlist
15882 + if test "X$oldobjs" = "X" ; then
15883 + eval cmds=\"\$concat_cmds\"
15884 + else
15885 + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
15886 + fi
15887 + fi
15888 + fi
15889 + func_execute_cmds "$cmds" 'exit $?'
15890 + done
15891 +
15892 + test -n "$generated" && \
15893 + func_show_eval "${RM}r$generated"
15894 +
15895 + # Now create the libtool archive.
15896 + case $output in
15897 + *.la)
15898 + old_library=
15899 + test "$build_old_libs" = yes && old_library="$libname.$libext"
15900 + func_verbose "creating $output"
15901 +
15902 + # Preserve any variables that may affect compiler behavior
15903 + for var in $variables_saved_for_relink; do
15904 + if eval test -z \"\${$var+set}\"; then
15905 + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
15906 + elif eval var_value=\$$var; test -z "$var_value"; then
15907 + relink_command="$var=; export $var; $relink_command"
15908 + else
15909 + func_quote_for_eval "$var_value"
15910 + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
15911 + fi
15912 + done
15913 + # Quote the link command for shipping.
15914 + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
15915 + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
15916 + if test "$hardcode_automatic" = yes ; then
15917 + relink_command=
15918 + fi
15919 +
15920 + # Only create the output if not a dry run.
15921 + $opt_dry_run || {
15922 + for installed in no yes; do
15923 + if test "$installed" = yes; then
15924 + if test -z "$install_libdir"; then
15925 + break
15926 + fi
15927 + output="$output_objdir/$outputname"i
15928 + # Replace all uninstalled libtool libraries with the installed ones
15929 + newdependency_libs=
15930 + for deplib in $dependency_libs; do
15931 + case $deplib in
15932 + *.la)
15933 + func_basename "$deplib"
15934 + name="$func_basename_result"
15935 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
15936 + test -z "$libdir" && \
15937 + func_fatal_error "\`$deplib' is not a valid libtool archive"
15938 + newdependency_libs="$newdependency_libs $libdir/$name"
15939 + ;;
15940 + *) newdependency_libs="$newdependency_libs $deplib" ;;
15941 + esac
15942 + done
15943 + dependency_libs="$newdependency_libs"
15944 + newdlfiles=
15945 +
15946 + for lib in $dlfiles; do
15947 + case $lib in
15948 + *.la)
15949 + func_basename "$lib"
15950 + name="$func_basename_result"
15951 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
15952 + test -z "$libdir" && \
15953 + func_fatal_error "\`$lib' is not a valid libtool archive"
15954 + newdlfiles="$newdlfiles $libdir/$name"
15955 + ;;
15956 + *) newdlfiles="$newdlfiles $lib" ;;
15957 + esac
15958 + done
15959 + dlfiles="$newdlfiles"
15960 + newdlprefiles=
15961 + for lib in $dlprefiles; do
15962 + case $lib in
15963 + *.la)
15964 + # Only pass preopened files to the pseudo-archive (for
15965 + # eventual linking with the app. that links it) if we
15966 + # didn't already link the preopened objects directly into
15967 + # the library:
15968 + func_basename "$lib"
15969 + name="$func_basename_result"
15970 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
15971 + test -z "$libdir" && \
15972 + func_fatal_error "\`$lib' is not a valid libtool archive"
15973 + newdlprefiles="$newdlprefiles $libdir/$name"
15974 + ;;
15975 + esac
15976 + done
15977 + dlprefiles="$newdlprefiles"
15978 + else
15979 + newdlfiles=
15980 + for lib in $dlfiles; do
15981 + case $lib in
15982 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
15983 + *) abs=`pwd`"/$lib" ;;
15984 + esac
15985 + newdlfiles="$newdlfiles $abs"
15986 + done
15987 + dlfiles="$newdlfiles"
15988 + newdlprefiles=
15989 + for lib in $dlprefiles; do
15990 + case $lib in
15991 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
15992 + *) abs=`pwd`"/$lib" ;;
15993 + esac
15994 + newdlprefiles="$newdlprefiles $abs"
15995 + done
15996 + dlprefiles="$newdlprefiles"
15997 + fi
15998 + $RM $output
15999 + # place dlname in correct position for cygwin
16000 + tdlname=$dlname
16001 + case $host,$output,$installed,$module,$dlname in
16002 + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
16003 + esac
16004 + $ECHO > $output "\
16005 +# $outputname - a libtool library file
16006 +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
16007 +#
16008 +# Please DO NOT delete this file!
16009 +# It is necessary for linking the library.
16010 +
16011 +# The name that we can dlopen(3).
16012 +dlname='$tdlname'
16013 +
16014 +# Names of this library.
16015 +library_names='$library_names'
16016 +
16017 +# The name of the static archive.
16018 +old_library='$old_library'
16019 +
16020 +# Linker flags that can not go in dependency_libs.
16021 +inherited_linker_flags='$new_inherited_linker_flags'
16022 +
16023 +# Libraries that this one depends upon.
16024 +dependency_libs='$dependency_libs'
16025 +
16026 +# Names of additional weak libraries provided by this library
16027 +weak_library_names='$weak_libs'
16028 +
16029 +# Version information for $libname.
16030 +current=$current
16031 +age=$age
16032 +revision=$revision
16033 +
16034 +# Is this an already installed library?
16035 +installed=$installed
16036 +
16037 +# Should we warn about portability when linking against -modules?
16038 +shouldnotlink=$module
16039 +
16040 +# Files to dlopen/dlpreopen
16041 +dlopen='$dlfiles'
16042 +dlpreopen='$dlprefiles'
16043 +
16044 +# Directory that this library needs to be installed in:
16045 +libdir='$install_libdir'"
16046 + if test "$installed" = no && test "$need_relink" = yes; then
16047 + $ECHO >> $output "\
16048 +relink_command=\"$relink_command\""
16049 + fi
16050 + done
16051 + }
16052 +
16053 + # Do a symbolic link so that the libtool archive can be found in
16054 + # LD_LIBRARY_PATH before the program is installed.
16055 + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
16056 + ;;
16057 + esac
16058 + exit $EXIT_SUCCESS
16059 +}
16060 +
16061 +{ test "$mode" = link || test "$mode" = relink; } &&
16062 + func_mode_link ${1+"$@"}
16063 +
16064 +
16065 +# func_mode_uninstall arg...
16066 +func_mode_uninstall ()
16067 +{
16068 + $opt_debug
16069 + RM="$nonopt"
16070 + files=
16071 + rmforce=
16072 + exit_status=0
16073 +
16074 + # This variable tells wrapper scripts just to set variables rather
16075 + # than running their programs.
16076 + libtool_install_magic="$magic"
16077 +
16078 + for arg
16079 + do
16080 + case $arg in
16081 + -f) RM="$RM $arg"; rmforce=yes ;;
16082 + -*) RM="$RM $arg" ;;
16083 + *) files="$files $arg" ;;
16084 + esac
16085 + done
16086 +
16087 + test -z "$RM" && \
16088 + func_fatal_help "you must specify an RM program"
16089 +
16090 + rmdirs=
16091 +
16092 + origobjdir="$objdir"
16093 + for file in $files; do
16094 + func_dirname "$file" "" "."
16095 + dir="$func_dirname_result"
16096 + if test "X$dir" = X.; then
16097 + objdir="$origobjdir"
16098 + else
16099 + objdir="$dir/$origobjdir"
16100 + fi
16101 + func_basename "$file"
16102 + name="$func_basename_result"
16103 + test "$mode" = uninstall && objdir="$dir"
16104 +
16105 + # Remember objdir for removal later, being careful to avoid duplicates
16106 + if test "$mode" = clean; then
16107 + case " $rmdirs " in
16108 + *" $objdir "*) ;;
16109 + *) rmdirs="$rmdirs $objdir" ;;
16110 + esac
16111 + fi
16112 +
16113 + # Don't error if the file doesn't exist and rm -f was used.
16114 + if { test -L "$file"; } >/dev/null 2>&1 ||
16115 + { test -h "$file"; } >/dev/null 2>&1 ||
16116 + test -f "$file"; then
16117 + :
16118 + elif test -d "$file"; then
16119 + exit_status=1
16120 + continue
16121 + elif test "$rmforce" = yes; then
16122 + continue
16123 + fi
16124 +
16125 + rmfiles="$file"
16126 +
16127 + case $name in
16128 + *.la)
16129 + # Possibly a libtool archive, so verify it.
16130 + if func_lalib_p "$file"; then
16131 + func_source $dir/$name
16132 +
16133 + # Delete the libtool libraries and symlinks.
16134 + for n in $library_names; do
16135 + rmfiles="$rmfiles $objdir/$n"
16136 + done
16137 + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
16138 +
16139 + case "$mode" in
16140 + clean)
16141 + case " $library_names " in
16142 + # " " in the beginning catches empty $dlname
16143 + *" $dlname "*) ;;
16144 + *) rmfiles="$rmfiles $objdir/$dlname" ;;
16145 + esac
16146 + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
16147 + ;;
16148 + uninstall)
16149 + if test -n "$library_names"; then
16150 + # Do each command in the postuninstall commands.
16151 + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
16152 + fi
16153 +
16154 + if test -n "$old_library"; then
16155 + # Do each command in the old_postuninstall commands.
16156 + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
16157 + fi
16158 + # FIXME: should reinstall the best remaining shared library.
16159 + ;;
16160 + esac
16161 + fi
16162 + ;;
16163 +
16164 + *.lo)
16165 + # Possibly a libtool object, so verify it.
16166 + if func_lalib_p "$file"; then
16167 +
16168 + # Read the .lo file
16169 + func_source $dir/$name
16170 +
16171 + # Add PIC object to the list of files to remove.
16172 + if test -n "$pic_object" &&
16173 + test "$pic_object" != none; then
16174 + rmfiles="$rmfiles $dir/$pic_object"
16175 + fi
16176 +
16177 + # Add non-PIC object to the list of files to remove.
16178 + if test -n "$non_pic_object" &&
16179 + test "$non_pic_object" != none; then
16180 + rmfiles="$rmfiles $dir/$non_pic_object"
16181 + fi
16182 + fi
16183 + ;;
16184 +
16185 + *)
16186 + if test "$mode" = clean ; then
16187 + noexename=$name
16188 + case $file in
16189 + *.exe)
16190 + func_stripname '' '.exe' "$file"
16191 + file=$func_stripname_result
16192 + func_stripname '' '.exe' "$name"
16193 + noexename=$func_stripname_result
16194 + # $file with .exe has already been added to rmfiles,
16195 + # add $file without .exe
16196 + rmfiles="$rmfiles $file"
16197 + ;;
16198 + esac
16199 + # Do a test to see if this is a libtool program.
16200 + if func_ltwrapper_p "$file"; then
16201 + if func_ltwrapper_executable_p "$file"; then
16202 + func_ltwrapper_scriptname "$file"
16203 + relink_command=
16204 + func_source $func_ltwrapper_scriptname_result
16205 + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
16206 + else
16207 + relink_command=
16208 + func_source $dir/$noexename
16209 + fi
16210 +
16211 + # note $name still contains .exe if it was in $file originally
16212 + # as does the version of $file that was added into $rmfiles
16213 + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
16214 + if test "$fast_install" = yes && test -n "$relink_command"; then
16215 + rmfiles="$rmfiles $objdir/lt-$name"
16216 + fi
16217 + if test "X$noexename" != "X$name" ; then
16218 + rmfiles="$rmfiles $objdir/lt-${noexename}.c"
16219 + fi
16220 + fi
16221 + fi
16222 + ;;
16223 + esac
16224 + func_show_eval "$RM $rmfiles" 'exit_status=1'
16225 + done
16226 + objdir="$origobjdir"
16227 +
16228 + # Try to remove the ${objdir}s in the directories where we deleted files
16229 + for dir in $rmdirs; do
16230 + if test -d "$dir"; then
16231 + func_show_eval "rmdir $dir >/dev/null 2>&1"
16232 + fi
16233 + done
16234 +
16235 + exit $exit_status
16236 +}
16237 +
16238 +{ test "$mode" = uninstall || test "$mode" = clean; } &&
16239 + func_mode_uninstall ${1+"$@"}
16240 +
16241 +test -z "$mode" && {
16242 + help="$generic_help"
16243 + func_fatal_help "you must specify a MODE"
16244 +}
16245 +
16246 +test -z "$exec_cmd" && \
16247 + func_fatal_help "invalid operation mode \`$mode'"
16248 +
16249 +if test -n "$exec_cmd"; then
16250 + eval exec "$exec_cmd"
16251 + exit $EXIT_FAILURE
16252 +fi
16253 +
16254 +exit $exit_status
16255 +
16256 +
16257 +# The TAGs below are defined such that we never get into a situation
16258 +# in which we disable both kinds of libraries. Given conflicting
16259 +# choices, we go for a static library, that is the most portable,
16260 +# since we can't tell whether shared libraries were disabled because
16261 +# the user asked for that or because the platform doesn't support
16262 +# them. This is particularly important on AIX, because we don't
16263 +# support having both static and shared libraries enabled at the same
16264 +# time on that platform, so we default to a shared-only configuration.
16265 +# If a disable-shared tag is given, we'll fallback to a static-only
16266 +# configuration. But we'll never go from static-only to shared-only.
16267 +
16268 +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
16269 +build_libtool_libs=no
16270 +build_old_libs=yes
16271 +# ### END LIBTOOL TAG CONFIG: disable-shared
16272 +
16273 +# ### BEGIN LIBTOOL TAG CONFIG: disable-static
16274 +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
16275 +# ### END LIBTOOL TAG CONFIG: disable-static
16276 +
16277 +# Local Variables:
16278 +# mode:shell-script
16279 +# sh-indentation:2
16280 +# End:
16281 +# vi:sw=2
16282 +
16283 diff --git a/libltdl/config/missing b/libltdl/config/missing
16284 new file mode 100755
16285 index 0000000..28055d2
16286 --- /dev/null
16287 +++ b/libltdl/config/missing
16288 @@ -0,0 +1,376 @@
16289 +#! /bin/sh
16290 +# Common stub for a few missing GNU programs while installing.
16291 +
16292 +scriptversion=2009-04-28.21; # UTC
16293 +
16294 +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
16295 +# 2008, 2009 Free Software Foundation, Inc.
16296 +# Originally by Fran,cois Pinard <[email protected]>, 1996.
16297 +
16298 +# This program is free software; you can redistribute it and/or modify
16299 +# it under the terms of the GNU General Public License as published by
16300 +# the Free Software Foundation; either version 2, or (at your option)
16301 +# any later version.
16302 +
16303 +# This program is distributed in the hope that it will be useful,
16304 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
16305 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16306 +# GNU General Public License for more details.
16307 +
16308 +# You should have received a copy of the GNU General Public License
16309 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
16310 +
16311 +# As a special exception to the GNU General Public License, if you
16312 +# distribute this file as part of a program that contains a
16313 +# configuration script generated by Autoconf, you may include it under
16314 +# the same distribution terms that you use for the rest of that program.
16315 +
16316 +if test $# -eq 0; then
16317 + echo 1>&2 "Try \`$0 --help' for more information"
16318 + exit 1
16319 +fi
16320 +
16321 +run=:
16322 +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
16323 +sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
16324 +
16325 +# In the cases where this matters, `missing' is being run in the
16326 +# srcdir already.
16327 +if test -f configure.ac; then
16328 + configure_ac=configure.ac
16329 +else
16330 + configure_ac=configure.in
16331 +fi
16332 +
16333 +msg="missing on your system"
16334 +
16335 +case $1 in
16336 +--run)
16337 + # Try to run requested program, and just exit if it succeeds.
16338 + run=
16339 + shift
16340 + "$@" && exit 0
16341 + # Exit code 63 means version mismatch. This often happens
16342 + # when the user try to use an ancient version of a tool on
16343 + # a file that requires a minimum version. In this case we
16344 + # we should proceed has if the program had been absent, or
16345 + # if --run hadn't been passed.
16346 + if test $? = 63; then
16347 + run=:
16348 + msg="probably too old"
16349 + fi
16350 + ;;
16351 +
16352 + -h|--h|--he|--hel|--help)
16353 + echo "\
16354 +$0 [OPTION]... PROGRAM [ARGUMENT]...
16355 +
16356 +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
16357 +error status if there is no known handling for PROGRAM.
16358 +
16359 +Options:
16360 + -h, --help display this help and exit
16361 + -v, --version output version information and exit
16362 + --run try to run the given command, and emulate it if it fails
16363 +
16364 +Supported PROGRAM values:
16365 + aclocal touch file \`aclocal.m4'
16366 + autoconf touch file \`configure'
16367 + autoheader touch file \`config.h.in'
16368 + autom4te touch the output file, or create a stub one
16369 + automake touch all \`Makefile.in' files
16370 + bison create \`y.tab.[ch]', if possible, from existing .[ch]
16371 + flex create \`lex.yy.c', if possible, from existing .c
16372 + help2man touch the output file
16373 + lex create \`lex.yy.c', if possible, from existing .c
16374 + makeinfo touch the output file
16375 + tar try tar, gnutar, gtar, then tar without non-portable flags
16376 + yacc create \`y.tab.[ch]', if possible, from existing .[ch]
16377 +
16378 +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
16379 +\`g' are ignored when checking the name.
16380 +
16381 +Send bug reports to <[email protected]>."
16382 + exit $?
16383 + ;;
16384 +
16385 + -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
16386 + echo "missing $scriptversion (GNU Automake)"
16387 + exit $?
16388 + ;;
16389 +
16390 + -*)
16391 + echo 1>&2 "$0: Unknown \`$1' option"
16392 + echo 1>&2 "Try \`$0 --help' for more information"
16393 + exit 1
16394 + ;;
16395 +
16396 +esac
16397 +
16398 +# normalize program name to check for.
16399 +program=`echo "$1" | sed '
16400 + s/^gnu-//; t
16401 + s/^gnu//; t
16402 + s/^g//; t'`
16403 +
16404 +# Now exit if we have it, but it failed. Also exit now if we
16405 +# don't have it and --version was passed (most likely to detect
16406 +# the program). This is about non-GNU programs, so use $1 not
16407 +# $program.
16408 +case $1 in
16409 + lex*|yacc*)
16410 + # Not GNU programs, they don't have --version.
16411 + ;;
16412 +
16413 + tar*)
16414 + if test -n "$run"; then
16415 + echo 1>&2 "ERROR: \`tar' requires --run"
16416 + exit 1
16417 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
16418 + exit 1
16419 + fi
16420 + ;;
16421 +
16422 + *)
16423 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
16424 + # We have it, but it failed.
16425 + exit 1
16426 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
16427 + # Could not run --version or --help. This is probably someone
16428 + # running `$TOOL --version' or `$TOOL --help' to check whether
16429 + # $TOOL exists and not knowing $TOOL uses missing.
16430 + exit 1
16431 + fi
16432 + ;;
16433 +esac
16434 +
16435 +# If it does not exist, or fails to run (possibly an outdated version),
16436 +# try to emulate it.
16437 +case $program in
16438 + aclocal*)
16439 + echo 1>&2 "\
16440 +WARNING: \`$1' is $msg. You should only need it if
16441 + you modified \`acinclude.m4' or \`${configure_ac}'. You might want
16442 + to install the \`Automake' and \`Perl' packages. Grab them from
16443 + any GNU archive site."
16444 + touch aclocal.m4
16445 + ;;
16446 +
16447 + autoconf*)
16448 + echo 1>&2 "\
16449 +WARNING: \`$1' is $msg. You should only need it if
16450 + you modified \`${configure_ac}'. You might want to install the
16451 + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
16452 + archive site."
16453 + touch configure
16454 + ;;
16455 +
16456 + autoheader*)
16457 + echo 1>&2 "\
16458 +WARNING: \`$1' is $msg. You should only need it if
16459 + you modified \`acconfig.h' or \`${configure_ac}'. You might want
16460 + to install the \`Autoconf' and \`GNU m4' packages. Grab them
16461 + from any GNU archive site."
16462 + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
16463 + test -z "$files" && files="config.h"
16464 + touch_files=
16465 + for f in $files; do
16466 + case $f in
16467 + *:*) touch_files="$touch_files "`echo "$f" |
16468 + sed -e 's/^[^:]*://' -e 's/:.*//'`;;
16469 + *) touch_files="$touch_files $f.in";;
16470 + esac
16471 + done
16472 + touch $touch_files
16473 + ;;
16474 +
16475 + automake*)
16476 + echo 1>&2 "\
16477 +WARNING: \`$1' is $msg. You should only need it if
16478 + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
16479 + You might want to install the \`Automake' and \`Perl' packages.
16480 + Grab them from any GNU archive site."
16481 + find . -type f -name Makefile.am -print |
16482 + sed 's/\.am$/.in/' |
16483 + while read f; do touch "$f"; done
16484 + ;;
16485 +
16486 + autom4te*)
16487 + echo 1>&2 "\
16488 +WARNING: \`$1' is needed, but is $msg.
16489 + You might have modified some files without having the
16490 + proper tools for further handling them.
16491 + You can get \`$1' as part of \`Autoconf' from any GNU
16492 + archive site."
16493 +
16494 + file=`echo "$*" | sed -n "$sed_output"`
16495 + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
16496 + if test -f "$file"; then
16497 + touch $file
16498 + else
16499 + test -z "$file" || exec >$file
16500 + echo "#! /bin/sh"
16501 + echo "# Created by GNU Automake missing as a replacement of"
16502 + echo "# $ $@"
16503 + echo "exit 0"
16504 + chmod +x $file
16505 + exit 1
16506 + fi
16507 + ;;
16508 +
16509 + bison*|yacc*)
16510 + echo 1>&2 "\
16511 +WARNING: \`$1' $msg. You should only need it if
16512 + you modified a \`.y' file. You may need the \`Bison' package
16513 + in order for those modifications to take effect. You can get
16514 + \`Bison' from any GNU archive site."
16515 + rm -f y.tab.c y.tab.h
16516 + if test $# -ne 1; then
16517 + eval LASTARG="\${$#}"
16518 + case $LASTARG in
16519 + *.y)
16520 + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
16521 + if test -f "$SRCFILE"; then
16522 + cp "$SRCFILE" y.tab.c
16523 + fi
16524 + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
16525 + if test -f "$SRCFILE"; then
16526 + cp "$SRCFILE" y.tab.h
16527 + fi
16528 + ;;
16529 + esac
16530 + fi
16531 + if test ! -f y.tab.h; then
16532 + echo >y.tab.h
16533 + fi
16534 + if test ! -f y.tab.c; then
16535 + echo 'main() { return 0; }' >y.tab.c
16536 + fi
16537 + ;;
16538 +
16539 + lex*|flex*)
16540 + echo 1>&2 "\
16541 +WARNING: \`$1' is $msg. You should only need it if
16542 + you modified a \`.l' file. You may need the \`Flex' package
16543 + in order for those modifications to take effect. You can get
16544 + \`Flex' from any GNU archive site."
16545 + rm -f lex.yy.c
16546 + if test $# -ne 1; then
16547 + eval LASTARG="\${$#}"
16548 + case $LASTARG in
16549 + *.l)
16550 + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
16551 + if test -f "$SRCFILE"; then
16552 + cp "$SRCFILE" lex.yy.c
16553 + fi
16554 + ;;
16555 + esac
16556 + fi
16557 + if test ! -f lex.yy.c; then
16558 + echo 'main() { return 0; }' >lex.yy.c
16559 + fi
16560 + ;;
16561 +
16562 + help2man*)
16563 + echo 1>&2 "\
16564 +WARNING: \`$1' is $msg. You should only need it if
16565 + you modified a dependency of a manual page. You may need the
16566 + \`Help2man' package in order for those modifications to take
16567 + effect. You can get \`Help2man' from any GNU archive site."
16568 +
16569 + file=`echo "$*" | sed -n "$sed_output"`
16570 + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
16571 + if test -f "$file"; then
16572 + touch $file
16573 + else
16574 + test -z "$file" || exec >$file
16575 + echo ".ab help2man is required to generate this page"
16576 + exit $?
16577 + fi
16578 + ;;
16579 +
16580 + makeinfo*)
16581 + echo 1>&2 "\
16582 +WARNING: \`$1' is $msg. You should only need it if
16583 + you modified a \`.texi' or \`.texinfo' file, or any other file
16584 + indirectly affecting the aspect of the manual. The spurious
16585 + call might also be the consequence of using a buggy \`make' (AIX,
16586 + DU, IRIX). You might want to install the \`Texinfo' package or
16587 + the \`GNU make' package. Grab either from any GNU archive site."
16588 + # The file to touch is that specified with -o ...
16589 + file=`echo "$*" | sed -n "$sed_output"`
16590 + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
16591 + if test -z "$file"; then
16592 + # ... or it is the one specified with @setfilename ...
16593 + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
16594 + file=`sed -n '
16595 + /^@setfilename/{
16596 + s/.* \([^ ]*\) *$/\1/
16597 + p
16598 + q
16599 + }' $infile`
16600 + # ... or it is derived from the source name (dir/f.texi becomes f.info)
16601 + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
16602 + fi
16603 + # If the file does not exist, the user really needs makeinfo;
16604 + # let's fail without touching anything.
16605 + test -f $file || exit 1
16606 + touch $file
16607 + ;;
16608 +
16609 + tar*)
16610 + shift
16611 +
16612 + # We have already tried tar in the generic part.
16613 + # Look for gnutar/gtar before invocation to avoid ugly error
16614 + # messages.
16615 + if (gnutar --version > /dev/null 2>&1); then
16616 + gnutar "$@" && exit 0
16617 + fi
16618 + if (gtar --version > /dev/null 2>&1); then
16619 + gtar "$@" && exit 0
16620 + fi
16621 + firstarg="$1"
16622 + if shift; then
16623 + case $firstarg in
16624 + *o*)
16625 + firstarg=`echo "$firstarg" | sed s/o//`
16626 + tar "$firstarg" "$@" && exit 0
16627 + ;;
16628 + esac
16629 + case $firstarg in
16630 + *h*)
16631 + firstarg=`echo "$firstarg" | sed s/h//`
16632 + tar "$firstarg" "$@" && exit 0
16633 + ;;
16634 + esac
16635 + fi
16636 +
16637 + echo 1>&2 "\
16638 +WARNING: I can't seem to be able to run \`tar' with the given arguments.
16639 + You may want to install GNU tar or Free paxutils, or check the
16640 + command line arguments."
16641 + exit 1
16642 + ;;
16643 +
16644 + *)
16645 + echo 1>&2 "\
16646 +WARNING: \`$1' is needed, and is $msg.
16647 + You might have modified some files without having the
16648 + proper tools for further handling them. Check the \`README' file,
16649 + it often tells you about the needed prerequisites for installing
16650 + this package. You may also peek at any GNU archive site, in case
16651 + some other package would contain this missing \`$1' program."
16652 + exit 1
16653 + ;;
16654 +esac
16655 +
16656 +exit 0
16657 +
16658 +# Local variables:
16659 +# eval: (add-hook 'write-file-hooks 'time-stamp)
16660 +# time-stamp-start: "scriptversion="
16661 +# time-stamp-format: "%:y-%02m-%02d.%02H"
16662 +# time-stamp-time-zone: "UTC"
16663 +# time-stamp-end: "; # UTC"
16664 +# End:
16665 diff --git a/libltdl/configure b/libltdl/configure
16666 new file mode 100755
16667 index 0000000..aee5d6d
16668 --- /dev/null
16669 +++ b/libltdl/configure
16670 @@ -0,0 +1,15619 @@
16671 +#! /bin/sh
16672 +# Guess values for system-dependent variables and create Makefiles.
16673 +# Generated by GNU Autoconf 2.63 for libltdl 2.2.6b.
16674 +#
16675 +# Report bugs to <[email protected]>.
16676 +#
16677 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16678 +# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
16679 +# This configure script is free software; the Free Software Foundation
16680 +# gives unlimited permission to copy, distribute and modify it.
16681 +## --------------------- ##
16682 +## M4sh Initialization. ##
16683 +## --------------------- ##
16684 +
16685 +# Be more Bourne compatible
16686 +DUALCASE=1; export DUALCASE # for MKS sh
16687 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16688 + emulate sh
16689 + NULLCMD=:
16690 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16691 + # is contrary to our usage. Disable this feature.
16692 + alias -g '${1+"$@"}'='"$@"'
16693 + setopt NO_GLOB_SUBST
16694 +else
16695 + case `(set -o) 2>/dev/null` in
16696 + *posix*) set -o posix ;;
16697 +esac
16698 +
16699 +fi
16700 +
16701 +
16702 +
16703 +
16704 +# PATH needs CR
16705 +# Avoid depending upon Character Ranges.
16706 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16707 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16708 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16709 +as_cr_digits='0123456789'
16710 +as_cr_alnum=$as_cr_Letters$as_cr_digits
16711 +
16712 +as_nl='
16713 +'
16714 +export as_nl
16715 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
16716 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16717 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16718 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16719 +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16720 + as_echo='printf %s\n'
16721 + as_echo_n='printf %s'
16722 +else
16723 + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16724 + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16725 + as_echo_n='/usr/ucb/echo -n'
16726 + else
16727 + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16728 + as_echo_n_body='eval
16729 + arg=$1;
16730 + case $arg in
16731 + *"$as_nl"*)
16732 + expr "X$arg" : "X\\(.*\\)$as_nl";
16733 + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16734 + esac;
16735 + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16736 + '
16737 + export as_echo_n_body
16738 + as_echo_n='sh -c $as_echo_n_body as_echo'
16739 + fi
16740 + export as_echo_body
16741 + as_echo='sh -c $as_echo_body as_echo'
16742 +fi
16743 +
16744 +# The user is always right.
16745 +if test "${PATH_SEPARATOR+set}" != set; then
16746 + PATH_SEPARATOR=:
16747 + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16748 + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16749 + PATH_SEPARATOR=';'
16750 + }
16751 +fi
16752 +
16753 +# Support unset when possible.
16754 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16755 + as_unset=unset
16756 +else
16757 + as_unset=false
16758 +fi
16759 +
16760 +
16761 +# IFS
16762 +# We need space, tab and new line, in precisely that order. Quoting is
16763 +# there to prevent editors from complaining about space-tab.
16764 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16765 +# splitting by setting IFS to empty value.)
16766 +IFS=" "" $as_nl"
16767 +
16768 +# Find who we are. Look in the path if we contain no directory separator.
16769 +case $0 in
16770 + *[\\/]* ) as_myself=$0 ;;
16771 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16772 +for as_dir in $PATH
16773 +do
16774 + IFS=$as_save_IFS
16775 + test -z "$as_dir" && as_dir=.
16776 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16777 +done
16778 +IFS=$as_save_IFS
16779 +
16780 + ;;
16781 +esac
16782 +# We did not find ourselves, most probably we were run as `sh COMMAND'
16783 +# in which case we are not to be found in the path.
16784 +if test "x$as_myself" = x; then
16785 + as_myself=$0
16786 +fi
16787 +if test ! -f "$as_myself"; then
16788 + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16789 + { (exit 1); exit 1; }
16790 +fi
16791 +
16792 +# Work around bugs in pre-3.0 UWIN ksh.
16793 +for as_var in ENV MAIL MAILPATH
16794 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16795 +done
16796 +PS1='$ '
16797 +PS2='> '
16798 +PS4='+ '
16799 +
16800 +# NLS nuisances.
16801 +LC_ALL=C
16802 +export LC_ALL
16803 +LANGUAGE=C
16804 +export LANGUAGE
16805 +
16806 +# Required to use basename.
16807 +if expr a : '\(a\)' >/dev/null 2>&1 &&
16808 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
16809 + as_expr=expr
16810 +else
16811 + as_expr=false
16812 +fi
16813 +
16814 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16815 + as_basename=basename
16816 +else
16817 + as_basename=false
16818 +fi
16819 +
16820 +
16821 +# Name of the executable.
16822 +as_me=`$as_basename -- "$0" ||
16823 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16824 + X"$0" : 'X\(//\)$' \| \
16825 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16826 +$as_echo X/"$0" |
16827 + sed '/^.*\/\([^/][^/]*\)\/*$/{
16828 + s//\1/
16829 + q
16830 + }
16831 + /^X\/\(\/\/\)$/{
16832 + s//\1/
16833 + q
16834 + }
16835 + /^X\/\(\/\).*/{
16836 + s//\1/
16837 + q
16838 + }
16839 + s/.*/./; q'`
16840 +
16841 +# CDPATH.
16842 +$as_unset CDPATH
16843 +
16844 +
16845 +if test "x$CONFIG_SHELL" = x; then
16846 + if (eval ":") 2>/dev/null; then
16847 + as_have_required=yes
16848 +else
16849 + as_have_required=no
16850 +fi
16851 +
16852 + if test $as_have_required = yes && (eval ":
16853 +(as_func_return () {
16854 + (exit \$1)
16855 +}
16856 +as_func_success () {
16857 + as_func_return 0
16858 +}
16859 +as_func_failure () {
16860 + as_func_return 1
16861 +}
16862 +as_func_ret_success () {
16863 + return 0
16864 +}
16865 +as_func_ret_failure () {
16866 + return 1
16867 +}
16868 +
16869 +exitcode=0
16870 +if as_func_success; then
16871 + :
16872 +else
16873 + exitcode=1
16874 + echo as_func_success failed.
16875 +fi
16876 +
16877 +if as_func_failure; then
16878 + exitcode=1
16879 + echo as_func_failure succeeded.
16880 +fi
16881 +
16882 +if as_func_ret_success; then
16883 + :
16884 +else
16885 + exitcode=1
16886 + echo as_func_ret_success failed.
16887 +fi
16888 +
16889 +if as_func_ret_failure; then
16890 + exitcode=1
16891 + echo as_func_ret_failure succeeded.
16892 +fi
16893 +
16894 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
16895 + :
16896 +else
16897 + exitcode=1
16898 + echo positional parameters were not saved.
16899 +fi
16900 +
16901 +test \$exitcode = 0) || { (exit 1); exit 1; }
16902 +
16903 +(
16904 + as_lineno_1=\$LINENO
16905 + as_lineno_2=\$LINENO
16906 + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
16907 + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
16908 +") 2> /dev/null; then
16909 + :
16910 +else
16911 + as_candidate_shells=
16912 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16913 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16914 +do
16915 + IFS=$as_save_IFS
16916 + test -z "$as_dir" && as_dir=.
16917 + case $as_dir in
16918 + /*)
16919 + for as_base in sh bash ksh sh5; do
16920 + as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
16921 + done;;
16922 + esac
16923 +done
16924 +IFS=$as_save_IFS
16925 +
16926 +
16927 + for as_shell in $as_candidate_shells $SHELL; do
16928 + # Try only shells that exist, to save several forks.
16929 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
16930 + { ("$as_shell") 2> /dev/null <<\_ASEOF
16931 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16932 + emulate sh
16933 + NULLCMD=:
16934 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16935 + # is contrary to our usage. Disable this feature.
16936 + alias -g '${1+"$@"}'='"$@"'
16937 + setopt NO_GLOB_SUBST
16938 +else
16939 + case `(set -o) 2>/dev/null` in
16940 + *posix*) set -o posix ;;
16941 +esac
16942 +
16943 +fi
16944 +
16945 +
16946 +:
16947 +_ASEOF
16948 +}; then
16949 + CONFIG_SHELL=$as_shell
16950 + as_have_required=yes
16951 + if { "$as_shell" 2> /dev/null <<\_ASEOF
16952 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16953 + emulate sh
16954 + NULLCMD=:
16955 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16956 + # is contrary to our usage. Disable this feature.
16957 + alias -g '${1+"$@"}'='"$@"'
16958 + setopt NO_GLOB_SUBST
16959 +else
16960 + case `(set -o) 2>/dev/null` in
16961 + *posix*) set -o posix ;;
16962 +esac
16963 +
16964 +fi
16965 +
16966 +
16967 +:
16968 +(as_func_return () {
16969 + (exit $1)
16970 +}
16971 +as_func_success () {
16972 + as_func_return 0
16973 +}
16974 +as_func_failure () {
16975 + as_func_return 1
16976 +}
16977 +as_func_ret_success () {
16978 + return 0
16979 +}
16980 +as_func_ret_failure () {
16981 + return 1
16982 +}
16983 +
16984 +exitcode=0
16985 +if as_func_success; then
16986 + :
16987 +else
16988 + exitcode=1
16989 + echo as_func_success failed.
16990 +fi
16991 +
16992 +if as_func_failure; then
16993 + exitcode=1
16994 + echo as_func_failure succeeded.
16995 +fi
16996 +
16997 +if as_func_ret_success; then
16998 + :
16999 +else
17000 + exitcode=1
17001 + echo as_func_ret_success failed.
17002 +fi
17003 +
17004 +if as_func_ret_failure; then
17005 + exitcode=1
17006 + echo as_func_ret_failure succeeded.
17007 +fi
17008 +
17009 +if ( set x; as_func_ret_success y && test x = "$1" ); then
17010 + :
17011 +else
17012 + exitcode=1
17013 + echo positional parameters were not saved.
17014 +fi
17015 +
17016 +test $exitcode = 0) || { (exit 1); exit 1; }
17017 +
17018 +(
17019 + as_lineno_1=$LINENO
17020 + as_lineno_2=$LINENO
17021 + test "x$as_lineno_1" != "x$as_lineno_2" &&
17022 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
17023 +
17024 +_ASEOF
17025 +}; then
17026 + break
17027 +fi
17028 +
17029 +fi
17030 +
17031 + done
17032 +
17033 + if test "x$CONFIG_SHELL" != x; then
17034 + for as_var in BASH_ENV ENV
17035 + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17036 + done
17037 + export CONFIG_SHELL
17038 + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
17039 +fi
17040 +
17041 +
17042 + if test $as_have_required = no; then
17043 + echo This script requires a shell more modern than all the
17044 + echo shells that I found on your system. Please install a
17045 + echo modern shell, or manually run the script under such a
17046 + echo shell if you do have one.
17047 + { (exit 1); exit 1; }
17048 +fi
17049 +
17050 +
17051 +fi
17052 +
17053 +fi
17054 +
17055 +
17056 +
17057 +(eval "as_func_return () {
17058 + (exit \$1)
17059 +}
17060 +as_func_success () {
17061 + as_func_return 0
17062 +}
17063 +as_func_failure () {
17064 + as_func_return 1
17065 +}
17066 +as_func_ret_success () {
17067 + return 0
17068 +}
17069 +as_func_ret_failure () {
17070 + return 1
17071 +}
17072 +
17073 +exitcode=0
17074 +if as_func_success; then
17075 + :
17076 +else
17077 + exitcode=1
17078 + echo as_func_success failed.
17079 +fi
17080 +
17081 +if as_func_failure; then
17082 + exitcode=1
17083 + echo as_func_failure succeeded.
17084 +fi
17085 +
17086 +if as_func_ret_success; then
17087 + :
17088 +else
17089 + exitcode=1
17090 + echo as_func_ret_success failed.
17091 +fi
17092 +
17093 +if as_func_ret_failure; then
17094 + exitcode=1
17095 + echo as_func_ret_failure succeeded.
17096 +fi
17097 +
17098 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
17099 + :
17100 +else
17101 + exitcode=1
17102 + echo positional parameters were not saved.
17103 +fi
17104 +
17105 +test \$exitcode = 0") || {
17106 + echo No shell found that supports shell functions.
17107 + echo Please tell [email protected] about your system,
17108 + echo including any error possibly output before this message.
17109 + echo This can help us improve future autoconf versions.
17110 + echo Configuration will now proceed without shell functions.
17111 +}
17112 +
17113 +
17114 +
17115 + as_lineno_1=$LINENO
17116 + as_lineno_2=$LINENO
17117 + test "x$as_lineno_1" != "x$as_lineno_2" &&
17118 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17119 +
17120 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17121 + # uniformly replaced by the line number. The first 'sed' inserts a
17122 + # line-number line after each line using $LINENO; the second 'sed'
17123 + # does the real work. The second script uses 'N' to pair each
17124 + # line-number line with the line containing $LINENO, and appends
17125 + # trailing '-' during substitution so that $LINENO is not a special
17126 + # case at line end.
17127 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17128 + # scripts with optimization help from Paolo Bonzini. Blame Lee
17129 + # E. McMahon (1931-1989) for sed's syntax. :-)
17130 + sed -n '
17131 + p
17132 + /[$]LINENO/=
17133 + ' <$as_myself |
17134 + sed '
17135 + s/[$]LINENO.*/&-/
17136 + t lineno
17137 + b
17138 + :lineno
17139 + N
17140 + :loop
17141 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17142 + t loop
17143 + s/-\n.*//
17144 + ' >$as_me.lineno &&
17145 + chmod +x "$as_me.lineno" ||
17146 + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17147 + { (exit 1); exit 1; }; }
17148 +
17149 + # Don't try to exec as it changes $[0], causing all sort of problems
17150 + # (the dirname of $[0] is not the place where we might find the
17151 + # original and so on. Autoconf is especially sensitive to this).
17152 + . "./$as_me.lineno"
17153 + # Exit status is that of the last command.
17154 + exit
17155 +}
17156 +
17157 +
17158 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17159 + as_dirname=dirname
17160 +else
17161 + as_dirname=false
17162 +fi
17163 +
17164 +ECHO_C= ECHO_N= ECHO_T=
17165 +case `echo -n x` in
17166 +-n*)
17167 + case `echo 'x\c'` in
17168 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17169 + *) ECHO_C='\c';;
17170 + esac;;
17171 +*)
17172 + ECHO_N='-n';;
17173 +esac
17174 +if expr a : '\(a\)' >/dev/null 2>&1 &&
17175 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
17176 + as_expr=expr
17177 +else
17178 + as_expr=false
17179 +fi
17180 +
17181 +rm -f conf$$ conf$$.exe conf$$.file
17182 +if test -d conf$$.dir; then
17183 + rm -f conf$$.dir/conf$$.file
17184 +else
17185 + rm -f conf$$.dir
17186 + mkdir conf$$.dir 2>/dev/null
17187 +fi
17188 +if (echo >conf$$.file) 2>/dev/null; then
17189 + if ln -s conf$$.file conf$$ 2>/dev/null; then
17190 + as_ln_s='ln -s'
17191 + # ... but there are two gotchas:
17192 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17193 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17194 + # In both cases, we have to default to `cp -p'.
17195 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17196 + as_ln_s='cp -p'
17197 + elif ln conf$$.file conf$$ 2>/dev/null; then
17198 + as_ln_s=ln
17199 + else
17200 + as_ln_s='cp -p'
17201 + fi
17202 +else
17203 + as_ln_s='cp -p'
17204 +fi
17205 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17206 +rmdir conf$$.dir 2>/dev/null
17207 +
17208 +if mkdir -p . 2>/dev/null; then
17209 + as_mkdir_p=:
17210 +else
17211 + test -d ./-p && rmdir ./-p
17212 + as_mkdir_p=false
17213 +fi
17214 +
17215 +if test -x / >/dev/null 2>&1; then
17216 + as_test_x='test -x'
17217 +else
17218 + if ls -dL / >/dev/null 2>&1; then
17219 + as_ls_L_option=L
17220 + else
17221 + as_ls_L_option=
17222 + fi
17223 + as_test_x='
17224 + eval sh -c '\''
17225 + if test -d "$1"; then
17226 + test -d "$1/.";
17227 + else
17228 + case $1 in
17229 + -*)set "./$1";;
17230 + esac;
17231 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17232 + ???[sx]*):;;*)false;;esac;fi
17233 + '\'' sh
17234 + '
17235 +fi
17236 +as_executable_p=$as_test_x
17237 +
17238 +# Sed expression to map a string onto a valid CPP name.
17239 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17240 +
17241 +# Sed expression to map a string onto a valid variable name.
17242 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17243 +
17244 +
17245 +
17246 +
17247 +# Check that we are running under the correct shell.
17248 +SHELL=${CONFIG_SHELL-/bin/sh}
17249 +
17250 +case X$lt_ECHO in
17251 +X*--fallback-echo)
17252 + # Remove one level of quotation (which was required for Make).
17253 + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
17254 + ;;
17255 +esac
17256 +
17257 +ECHO=${lt_ECHO-echo}
17258 +if test "X$1" = X--no-reexec; then
17259 + # Discard the --no-reexec flag, and continue.
17260 + shift
17261 +elif test "X$1" = X--fallback-echo; then
17262 + # Avoid inline document here, it may be left over
17263 + :
17264 +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
17265 + # Yippee, $ECHO works!
17266 + :
17267 +else
17268 + # Restart under the correct shell.
17269 + exec $SHELL "$0" --no-reexec ${1+"$@"}
17270 +fi
17271 +
17272 +if test "X$1" = X--fallback-echo; then
17273 + # used as fallback echo
17274 + shift
17275 + cat <<_LT_EOF
17276 +$*
17277 +_LT_EOF
17278 + exit 0
17279 +fi
17280 +
17281 +# The HP-UX ksh and POSIX shell print the target directory to stdout
17282 +# if CDPATH is set.
17283 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17284 +
17285 +if test -z "$lt_ECHO"; then
17286 + if test "X${echo_test_string+set}" != Xset; then
17287 + # find a string as large as possible, as long as the shell can cope with it
17288 + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
17289 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
17290 + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
17291 + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
17292 + then
17293 + break
17294 + fi
17295 + done
17296 + fi
17297 +
17298 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
17299 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
17300 + test "X$echo_testing_string" = "X$echo_test_string"; then
17301 + :
17302 + else
17303 + # The Solaris, AIX, and Digital Unix default echo programs unquote
17304 + # backslashes. This makes it impossible to quote backslashes using
17305 + # echo "$something" | sed 's/\\/\\\\/g'
17306 + #
17307 + # So, first we look for a working echo in the user's PATH.
17308 +
17309 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17310 + for dir in $PATH /usr/ucb; do
17311 + IFS="$lt_save_ifs"
17312 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
17313 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
17314 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
17315 + test "X$echo_testing_string" = "X$echo_test_string"; then
17316 + ECHO="$dir/echo"
17317 + break
17318 + fi
17319 + done
17320 + IFS="$lt_save_ifs"
17321 +
17322 + if test "X$ECHO" = Xecho; then
17323 + # We didn't find a better echo, so look for alternatives.
17324 + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
17325 + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
17326 + test "X$echo_testing_string" = "X$echo_test_string"; then
17327 + # This shell has a builtin print -r that does the trick.
17328 + ECHO='print -r'
17329 + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
17330 + test "X$CONFIG_SHELL" != X/bin/ksh; then
17331 + # If we have ksh, try running configure again with it.
17332 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17333 + export ORIGINAL_CONFIG_SHELL
17334 + CONFIG_SHELL=/bin/ksh
17335 + export CONFIG_SHELL
17336 + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
17337 + else
17338 + # Try using printf.
17339 + ECHO='printf %s\n'
17340 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
17341 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
17342 + test "X$echo_testing_string" = "X$echo_test_string"; then
17343 + # Cool, printf works
17344 + :
17345 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
17346 + test "X$echo_testing_string" = 'X\t' &&
17347 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
17348 + test "X$echo_testing_string" = "X$echo_test_string"; then
17349 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
17350 + export CONFIG_SHELL
17351 + SHELL="$CONFIG_SHELL"
17352 + export SHELL
17353 + ECHO="$CONFIG_SHELL $0 --fallback-echo"
17354 + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
17355 + test "X$echo_testing_string" = 'X\t' &&
17356 + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
17357 + test "X$echo_testing_string" = "X$echo_test_string"; then
17358 + ECHO="$CONFIG_SHELL $0 --fallback-echo"
17359 + else
17360 + # maybe with a smaller string...
17361 + prev=:
17362 +
17363 + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
17364 + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
17365 + then
17366 + break
17367 + fi
17368 + prev="$cmd"
17369 + done
17370 +
17371 + if test "$prev" != 'sed 50q "$0"'; then
17372 + echo_test_string=`eval $prev`
17373 + export echo_test_string
17374 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
17375 + else
17376 + # Oops. We lost completely, so just stick with echo.
17377 + ECHO=echo
17378 + fi
17379 + fi
17380 + fi
17381 + fi
17382 + fi
17383 +fi
17384 +
17385 +# Copy echo and quote the copy suitably for passing to libtool from
17386 +# the Makefile, instead of quoting the original, which is used later.
17387 +lt_ECHO=$ECHO
17388 +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
17389 + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
17390 +fi
17391 +
17392 +
17393 +
17394 +
17395 +exec 7<&0 </dev/null 6>&1
17396 +
17397 +# Name of the host.
17398 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
17399 +# so uname gets run too.
17400 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
17401 +
17402 +#
17403 +# Initializations.
17404 +#
17405 +ac_default_prefix=/usr/local
17406 +ac_clean_files=
17407 +ac_config_libobj_dir=.
17408 +LIBOBJS=
17409 +cross_compiling=no
17410 +subdirs=
17411 +MFLAGS=
17412 +MAKEFLAGS=
17413 +SHELL=${CONFIG_SHELL-/bin/sh}
17414 +
17415 +# Identity of this package.
17416 +PACKAGE_NAME='libltdl'
17417 +PACKAGE_TARNAME='libltdl'
17418 +PACKAGE_VERSION='2.2.6b'
17419 +PACKAGE_STRING='libltdl 2.2.6b'
17420 +PACKAGE_BUGREPORT='[email protected]'
17421 +
17422 +ac_unique_file="ltdl.c"
17423 +# Factoring default headers for most tests.
17424 +ac_includes_default="\
17425 +#include <stdio.h>
17426 +#ifdef HAVE_SYS_TYPES_H
17427 +# include <sys/types.h>
17428 +#endif
17429 +#ifdef HAVE_SYS_STAT_H
17430 +# include <sys/stat.h>
17431 +#endif
17432 +#ifdef STDC_HEADERS
17433 +# include <stdlib.h>
17434 +# include <stddef.h>
17435 +#else
17436 +# ifdef HAVE_STDLIB_H
17437 +# include <stdlib.h>
17438 +# endif
17439 +#endif
17440 +#ifdef HAVE_STRING_H
17441 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
17442 +# include <memory.h>
17443 +# endif
17444 +# include <string.h>
17445 +#endif
17446 +#ifdef HAVE_STRINGS_H
17447 +# include <strings.h>
17448 +#endif
17449 +#ifdef HAVE_INTTYPES_H
17450 +# include <inttypes.h>
17451 +#endif
17452 +#ifdef HAVE_STDINT_H
17453 +# include <stdint.h>
17454 +#endif
17455 +#ifdef HAVE_UNISTD_H
17456 +# include <unistd.h>
17457 +#endif"
17458 +
17459 +ac_subst_vars='am__EXEEXT_FALSE
17460 +am__EXEEXT_TRUE
17461 +LTLIBOBJS
17462 +LTDLOPEN
17463 +LT_CONFIG_H
17464 +CONVENIENCE_LTDL_FALSE
17465 +CONVENIENCE_LTDL_TRUE
17466 +INSTALL_LTDL_FALSE
17467 +INSTALL_LTDL_TRUE
17468 +ARGZ_H
17469 +LIBOBJS
17470 +sys_symbol_underscore
17471 +LIBADD_DL
17472 +LT_DLPREOPEN
17473 +LIBADD_DLD_LINK
17474 +LIBADD_SHL_LOAD
17475 +LIBADD_DLOPEN
17476 +LT_DLLOADERS
17477 +CPP
17478 +OTOOL64
17479 +OTOOL
17480 +LIPO
17481 +NMEDIT
17482 +DSYMUTIL
17483 +lt_ECHO
17484 +RANLIB
17485 +AR
17486 +LN_S
17487 +NM
17488 +ac_ct_DUMPBIN
17489 +DUMPBIN
17490 +LD
17491 +FGREP
17492 +EGREP
17493 +GREP
17494 +SED
17495 +am__fastdepCC_FALSE
17496 +am__fastdepCC_TRUE
17497 +CCDEPMODE
17498 +AMDEPBACKSLASH
17499 +AMDEP_FALSE
17500 +AMDEP_TRUE
17501 +am__quote
17502 +am__include
17503 +DEPDIR
17504 +OBJEXT
17505 +EXEEXT
17506 +ac_ct_CC
17507 +CPPFLAGS
17508 +LDFLAGS
17509 +CFLAGS
17510 +CC
17511 +host_os
17512 +host_vendor
17513 +host_cpu
17514 +host
17515 +build_os
17516 +build_vendor
17517 +build_cpu
17518 +build
17519 +LIBTOOL
17520 +OBJDUMP
17521 +DLLTOOL
17522 +AS
17523 +am__untar
17524 +am__tar
17525 +AMTAR
17526 +am__leading_dot
17527 +SET_MAKE
17528 +AWK
17529 +mkdir_p
17530 +MKDIR_P
17531 +INSTALL_STRIP_PROGRAM
17532 +STRIP
17533 +install_sh
17534 +MAKEINFO
17535 +AUTOHEADER
17536 +AUTOMAKE
17537 +AUTOCONF
17538 +ACLOCAL
17539 +VERSION
17540 +PACKAGE
17541 +CYGPATH_W
17542 +am__isrc
17543 +INSTALL_DATA
17544 +INSTALL_SCRIPT
17545 +INSTALL_PROGRAM
17546 +target_alias
17547 +host_alias
17548 +build_alias
17549 +LIBS
17550 +ECHO_T
17551 +ECHO_N
17552 +ECHO_C
17553 +DEFS
17554 +mandir
17555 +localedir
17556 +libdir
17557 +psdir
17558 +pdfdir
17559 +dvidir
17560 +htmldir
17561 +infodir
17562 +docdir
17563 +oldincludedir
17564 +includedir
17565 +localstatedir
17566 +sharedstatedir
17567 +sysconfdir
17568 +datadir
17569 +datarootdir
17570 +libexecdir
17571 +sbindir
17572 +bindir
17573 +program_transform_name
17574 +prefix
17575 +exec_prefix
17576 +PACKAGE_BUGREPORT
17577 +PACKAGE_STRING
17578 +PACKAGE_VERSION
17579 +PACKAGE_TARNAME
17580 +PACKAGE_NAME
17581 +PATH_SEPARATOR
17582 +SHELL'
17583 +ac_subst_files=''
17584 +ac_user_opts='
17585 +enable_option_checking
17586 +enable_shared
17587 +enable_static
17588 +with_pic
17589 +enable_fast_install
17590 +enable_dependency_tracking
17591 +with_gnu_ld
17592 +enable_libtool_lock
17593 +enable_ltdl_install
17594 +'
17595 + ac_precious_vars='build_alias
17596 +host_alias
17597 +target_alias
17598 +CC
17599 +CFLAGS
17600 +LDFLAGS
17601 +LIBS
17602 +CPPFLAGS
17603 +CPP'
17604 +
17605 +
17606 +# Initialize some variables set by options.
17607 +ac_init_help=
17608 +ac_init_version=false
17609 +ac_unrecognized_opts=
17610 +ac_unrecognized_sep=
17611 +# The variables have the same names as the options, with
17612 +# dashes changed to underlines.
17613 +cache_file=/dev/null
17614 +exec_prefix=NONE
17615 +no_create=
17616 +no_recursion=
17617 +prefix=NONE
17618 +program_prefix=NONE
17619 +program_suffix=NONE
17620 +program_transform_name=s,x,x,
17621 +silent=
17622 +site=
17623 +srcdir=
17624 +verbose=
17625 +x_includes=NONE
17626 +x_libraries=NONE
17627 +
17628 +# Installation directory options.
17629 +# These are left unexpanded so users can "make install exec_prefix=/foo"
17630 +# and all the variables that are supposed to be based on exec_prefix
17631 +# by default will actually change.
17632 +# Use braces instead of parens because sh, perl, etc. also accept them.
17633 +# (The list follows the same order as the GNU Coding Standards.)
17634 +bindir='${exec_prefix}/bin'
17635 +sbindir='${exec_prefix}/sbin'
17636 +libexecdir='${exec_prefix}/libexec'
17637 +datarootdir='${prefix}/share'
17638 +datadir='${datarootdir}'
17639 +sysconfdir='${prefix}/etc'
17640 +sharedstatedir='${prefix}/com'
17641 +localstatedir='${prefix}/var'
17642 +includedir='${prefix}/include'
17643 +oldincludedir='/usr/include'
17644 +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
17645 +infodir='${datarootdir}/info'
17646 +htmldir='${docdir}'
17647 +dvidir='${docdir}'
17648 +pdfdir='${docdir}'
17649 +psdir='${docdir}'
17650 +libdir='${exec_prefix}/lib'
17651 +localedir='${datarootdir}/locale'
17652 +mandir='${datarootdir}/man'
17653 +
17654 +ac_prev=
17655 +ac_dashdash=
17656 +for ac_option
17657 +do
17658 + # If the previous option needs an argument, assign it.
17659 + if test -n "$ac_prev"; then
17660 + eval $ac_prev=\$ac_option
17661 + ac_prev=
17662 + continue
17663 + fi
17664 +
17665 + case $ac_option in
17666 + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
17667 + *) ac_optarg=yes ;;
17668 + esac
17669 +
17670 + # Accept the important Cygnus configure options, so we can diagnose typos.
17671 +
17672 + case $ac_dashdash$ac_option in
17673 + --)
17674 + ac_dashdash=yes ;;
17675 +
17676 + -bindir | --bindir | --bindi | --bind | --bin | --bi)
17677 + ac_prev=bindir ;;
17678 + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
17679 + bindir=$ac_optarg ;;
17680 +
17681 + -build | --build | --buil | --bui | --bu)
17682 + ac_prev=build_alias ;;
17683 + -build=* | --build=* | --buil=* | --bui=* | --bu=*)
17684 + build_alias=$ac_optarg ;;
17685 +
17686 + -cache-file | --cache-file | --cache-fil | --cache-fi \
17687 + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17688 + ac_prev=cache_file ;;
17689 + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17690 + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
17691 + cache_file=$ac_optarg ;;
17692 +
17693 + --config-cache | -C)
17694 + cache_file=config.cache ;;
17695 +
17696 + -datadir | --datadir | --datadi | --datad)
17697 + ac_prev=datadir ;;
17698 + -datadir=* | --datadir=* | --datadi=* | --datad=*)
17699 + datadir=$ac_optarg ;;
17700 +
17701 + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
17702 + | --dataroo | --dataro | --datar)
17703 + ac_prev=datarootdir ;;
17704 + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
17705 + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
17706 + datarootdir=$ac_optarg ;;
17707 +
17708 + -disable-* | --disable-*)
17709 + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
17710 + # Reject names that are not valid shell variable names.
17711 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
17712 + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
17713 + { (exit 1); exit 1; }; }
17714 + ac_useropt_orig=$ac_useropt
17715 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
17716 + case $ac_user_opts in
17717 + *"
17718 +"enable_$ac_useropt"
17719 +"*) ;;
17720 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
17721 + ac_unrecognized_sep=', ';;
17722 + esac
17723 + eval enable_$ac_useropt=no ;;
17724 +
17725 + -docdir | --docdir | --docdi | --doc | --do)
17726 + ac_prev=docdir ;;
17727 + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
17728 + docdir=$ac_optarg ;;
17729 +
17730 + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
17731 + ac_prev=dvidir ;;
17732 + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
17733 + dvidir=$ac_optarg ;;
17734 +
17735 + -enable-* | --enable-*)
17736 + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
17737 + # Reject names that are not valid shell variable names.
17738 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
17739 + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
17740 + { (exit 1); exit 1; }; }
17741 + ac_useropt_orig=$ac_useropt
17742 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
17743 + case $ac_user_opts in
17744 + *"
17745 +"enable_$ac_useropt"
17746 +"*) ;;
17747 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
17748 + ac_unrecognized_sep=', ';;
17749 + esac
17750 + eval enable_$ac_useropt=\$ac_optarg ;;
17751 +
17752 + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
17753 + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
17754 + | --exec | --exe | --ex)
17755 + ac_prev=exec_prefix ;;
17756 + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
17757 + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
17758 + | --exec=* | --exe=* | --ex=*)
17759 + exec_prefix=$ac_optarg ;;
17760 +
17761 + -gas | --gas | --ga | --g)
17762 + # Obsolete; use --with-gas.
17763 + with_gas=yes ;;
17764 +
17765 + -help | --help | --hel | --he | -h)
17766 + ac_init_help=long ;;
17767 + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
17768 + ac_init_help=recursive ;;
17769 + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
17770 + ac_init_help=short ;;
17771 +
17772 + -host | --host | --hos | --ho)
17773 + ac_prev=host_alias ;;
17774 + -host=* | --host=* | --hos=* | --ho=*)
17775 + host_alias=$ac_optarg ;;
17776 +
17777 + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
17778 + ac_prev=htmldir ;;
17779 + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
17780 + | --ht=*)
17781 + htmldir=$ac_optarg ;;
17782 +
17783 + -includedir | --includedir | --includedi | --included | --include \
17784 + | --includ | --inclu | --incl | --inc)
17785 + ac_prev=includedir ;;
17786 + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
17787 + | --includ=* | --inclu=* | --incl=* | --inc=*)
17788 + includedir=$ac_optarg ;;
17789 +
17790 + -infodir | --infodir | --infodi | --infod | --info | --inf)
17791 + ac_prev=infodir ;;
17792 + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
17793 + infodir=$ac_optarg ;;
17794 +
17795 + -libdir | --libdir | --libdi | --libd)
17796 + ac_prev=libdir ;;
17797 + -libdir=* | --libdir=* | --libdi=* | --libd=*)
17798 + libdir=$ac_optarg ;;
17799 +
17800 + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
17801 + | --libexe | --libex | --libe)
17802 + ac_prev=libexecdir ;;
17803 + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
17804 + | --libexe=* | --libex=* | --libe=*)
17805 + libexecdir=$ac_optarg ;;
17806 +
17807 + -localedir | --localedir | --localedi | --localed | --locale)
17808 + ac_prev=localedir ;;
17809 + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
17810 + localedir=$ac_optarg ;;
17811 +
17812 + -localstatedir | --localstatedir | --localstatedi | --localstated \
17813 + | --localstate | --localstat | --localsta | --localst | --locals)
17814 + ac_prev=localstatedir ;;
17815 + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
17816 + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
17817 + localstatedir=$ac_optarg ;;
17818 +
17819 + -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
17820 + ac_prev=mandir ;;
17821 + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
17822 + mandir=$ac_optarg ;;
17823 +
17824 + -nfp | --nfp | --nf)
17825 + # Obsolete; use --without-fp.
17826 + with_fp=no ;;
17827 +
17828 + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
17829 + | --no-cr | --no-c | -n)
17830 + no_create=yes ;;
17831 +
17832 + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
17833 + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
17834 + no_recursion=yes ;;
17835 +
17836 + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
17837 + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
17838 + | --oldin | --oldi | --old | --ol | --o)
17839 + ac_prev=oldincludedir ;;
17840 + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
17841 + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
17842 + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
17843 + oldincludedir=$ac_optarg ;;
17844 +
17845 + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17846 + ac_prev=prefix ;;
17847 + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17848 + prefix=$ac_optarg ;;
17849 +
17850 + -program-prefix | --program-prefix | --program-prefi | --program-pref \
17851 + | --program-pre | --program-pr | --program-p)
17852 + ac_prev=program_prefix ;;
17853 + -program-prefix=* | --program-prefix=* | --program-prefi=* \
17854 + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
17855 + program_prefix=$ac_optarg ;;
17856 +
17857 + -program-suffix | --program-suffix | --program-suffi | --program-suff \
17858 + | --program-suf | --program-su | --program-s)
17859 + ac_prev=program_suffix ;;
17860 + -program-suffix=* | --program-suffix=* | --program-suffi=* \
17861 + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
17862 + program_suffix=$ac_optarg ;;
17863 +
17864 + -program-transform-name | --program-transform-name \
17865 + | --program-transform-nam | --program-transform-na \
17866 + | --program-transform-n | --program-transform- \
17867 + | --program-transform | --program-transfor \
17868 + | --program-transfo | --program-transf \
17869 + | --program-trans | --program-tran \
17870 + | --progr-tra | --program-tr | --program-t)
17871 + ac_prev=program_transform_name ;;
17872 + -program-transform-name=* | --program-transform-name=* \
17873 + | --program-transform-nam=* | --program-transform-na=* \
17874 + | --program-transform-n=* | --program-transform-=* \
17875 + | --program-transform=* | --program-transfor=* \
17876 + | --program-transfo=* | --program-transf=* \
17877 + | --program-trans=* | --program-tran=* \
17878 + | --progr-tra=* | --program-tr=* | --program-t=*)
17879 + program_transform_name=$ac_optarg ;;
17880 +
17881 + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
17882 + ac_prev=pdfdir ;;
17883 + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
17884 + pdfdir=$ac_optarg ;;
17885 +
17886 + -psdir | --psdir | --psdi | --psd | --ps)
17887 + ac_prev=psdir ;;
17888 + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
17889 + psdir=$ac_optarg ;;
17890 +
17891 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17892 + | -silent | --silent | --silen | --sile | --sil)
17893 + silent=yes ;;
17894 +
17895 + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
17896 + ac_prev=sbindir ;;
17897 + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
17898 + | --sbi=* | --sb=*)
17899 + sbindir=$ac_optarg ;;
17900 +
17901 + -sharedstatedir | --sharedstatedir | --sharedstatedi \
17902 + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
17903 + | --sharedst | --shareds | --shared | --share | --shar \
17904 + | --sha | --sh)
17905 + ac_prev=sharedstatedir ;;
17906 + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
17907 + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
17908 + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
17909 + | --sha=* | --sh=*)
17910 + sharedstatedir=$ac_optarg ;;
17911 +
17912 + -site | --site | --sit)
17913 + ac_prev=site ;;
17914 + -site=* | --site=* | --sit=*)
17915 + site=$ac_optarg ;;
17916 +
17917 + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17918 + ac_prev=srcdir ;;
17919 + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17920 + srcdir=$ac_optarg ;;
17921 +
17922 + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
17923 + | --syscon | --sysco | --sysc | --sys | --sy)
17924 + ac_prev=sysconfdir ;;
17925 + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
17926 + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
17927 + sysconfdir=$ac_optarg ;;
17928 +
17929 + -target | --target | --targe | --targ | --tar | --ta | --t)
17930 + ac_prev=target_alias ;;
17931 + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
17932 + target_alias=$ac_optarg ;;
17933 +
17934 + -v | -verbose | --verbose | --verbos | --verbo | --verb)
17935 + verbose=yes ;;
17936 +
17937 + -version | --version | --versio | --versi | --vers | -V)
17938 + ac_init_version=: ;;
17939 +
17940 + -with-* | --with-*)
17941 + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
17942 + # Reject names that are not valid shell variable names.
17943 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
17944 + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
17945 + { (exit 1); exit 1; }; }
17946 + ac_useropt_orig=$ac_useropt
17947 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
17948 + case $ac_user_opts in
17949 + *"
17950 +"with_$ac_useropt"
17951 +"*) ;;
17952 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
17953 + ac_unrecognized_sep=', ';;
17954 + esac
17955 + eval with_$ac_useropt=\$ac_optarg ;;
17956 +
17957 + -without-* | --without-*)
17958 + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
17959 + # Reject names that are not valid shell variable names.
17960 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
17961 + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
17962 + { (exit 1); exit 1; }; }
17963 + ac_useropt_orig=$ac_useropt
17964 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
17965 + case $ac_user_opts in
17966 + *"
17967 +"with_$ac_useropt"
17968 +"*) ;;
17969 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
17970 + ac_unrecognized_sep=', ';;
17971 + esac
17972 + eval with_$ac_useropt=no ;;
17973 +
17974 + --x)
17975 + # Obsolete; use --with-x.
17976 + with_x=yes ;;
17977 +
17978 + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
17979 + | --x-incl | --x-inc | --x-in | --x-i)
17980 + ac_prev=x_includes ;;
17981 + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
17982 + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
17983 + x_includes=$ac_optarg ;;
17984 +
17985 + -x-libraries | --x-libraries | --x-librarie | --x-librari \
17986 + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
17987 + ac_prev=x_libraries ;;
17988 + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
17989 + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
17990 + x_libraries=$ac_optarg ;;
17991 +
17992 + -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
17993 +Try \`$0 --help' for more information." >&2
17994 + { (exit 1); exit 1; }; }
17995 + ;;
17996 +
17997 + *=*)
17998 + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
17999 + # Reject names that are not valid shell variable names.
18000 + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
18001 + { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
18002 + { (exit 1); exit 1; }; }
18003 + eval $ac_envvar=\$ac_optarg
18004 + export $ac_envvar ;;
18005 +
18006 + *)
18007 + # FIXME: should be removed in autoconf 3.0.
18008 + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
18009 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
18010 + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
18011 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
18012 + ;;
18013 +
18014 + esac
18015 +done
18016 +
18017 +if test -n "$ac_prev"; then
18018 + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
18019 + { $as_echo "$as_me: error: missing argument to $ac_option" >&2
18020 + { (exit 1); exit 1; }; }
18021 +fi
18022 +
18023 +if test -n "$ac_unrecognized_opts"; then
18024 + case $enable_option_checking in
18025 + no) ;;
18026 + fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
18027 + { (exit 1); exit 1; }; } ;;
18028 + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
18029 + esac
18030 +fi
18031 +
18032 +# Check all directory arguments for consistency.
18033 +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
18034 + datadir sysconfdir sharedstatedir localstatedir includedir \
18035 + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
18036 + libdir localedir mandir
18037 +do
18038 + eval ac_val=\$$ac_var
18039 + # Remove trailing slashes.
18040 + case $ac_val in
18041 + */ )
18042 + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
18043 + eval $ac_var=\$ac_val;;
18044 + esac
18045 + # Be sure to have absolute directory names.
18046 + case $ac_val in
18047 + [\\/$]* | ?:[\\/]* ) continue;;
18048 + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
18049 + esac
18050 + { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
18051 + { (exit 1); exit 1; }; }
18052 +done
18053 +
18054 +# There might be people who depend on the old broken behavior: `$host'
18055 +# used to hold the argument of --host etc.
18056 +# FIXME: To remove some day.
18057 +build=$build_alias
18058 +host=$host_alias
18059 +target=$target_alias
18060 +
18061 +# FIXME: To remove some day.
18062 +if test "x$host_alias" != x; then
18063 + if test "x$build_alias" = x; then
18064 + cross_compiling=maybe
18065 + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
18066 + If a cross compiler is detected then cross compile mode will be used." >&2
18067 + elif test "x$build_alias" != "x$host_alias"; then
18068 + cross_compiling=yes
18069 + fi
18070 +fi
18071 +
18072 +ac_tool_prefix=
18073 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
18074 +
18075 +test "$silent" = yes && exec 6>/dev/null
18076 +
18077 +
18078 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
18079 +ac_ls_di=`ls -di .` &&
18080 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
18081 + { $as_echo "$as_me: error: working directory cannot be determined" >&2
18082 + { (exit 1); exit 1; }; }
18083 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
18084 + { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
18085 + { (exit 1); exit 1; }; }
18086 +
18087 +
18088 +# Find the source files, if location was not specified.
18089 +if test -z "$srcdir"; then
18090 + ac_srcdir_defaulted=yes
18091 + # Try the directory containing this script, then the parent directory.
18092 + ac_confdir=`$as_dirname -- "$as_myself" ||
18093 +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18094 + X"$as_myself" : 'X\(//\)[^/]' \| \
18095 + X"$as_myself" : 'X\(//\)$' \| \
18096 + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
18097 +$as_echo X"$as_myself" |
18098 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18099 + s//\1/
18100 + q
18101 + }
18102 + /^X\(\/\/\)[^/].*/{
18103 + s//\1/
18104 + q
18105 + }
18106 + /^X\(\/\/\)$/{
18107 + s//\1/
18108 + q
18109 + }
18110 + /^X\(\/\).*/{
18111 + s//\1/
18112 + q
18113 + }
18114 + s/.*/./; q'`
18115 + srcdir=$ac_confdir
18116 + if test ! -r "$srcdir/$ac_unique_file"; then
18117 + srcdir=..
18118 + fi
18119 +else
18120 + ac_srcdir_defaulted=no
18121 +fi
18122 +if test ! -r "$srcdir/$ac_unique_file"; then
18123 + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
18124 + { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
18125 + { (exit 1); exit 1; }; }
18126 +fi
18127 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
18128 +ac_abs_confdir=`(
18129 + cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
18130 + { (exit 1); exit 1; }; }
18131 + pwd)`
18132 +# When building in place, set srcdir=.
18133 +if test "$ac_abs_confdir" = "$ac_pwd"; then
18134 + srcdir=.
18135 +fi
18136 +# Remove unnecessary trailing slashes from srcdir.
18137 +# Double slashes in file names in object file debugging info
18138 +# mess up M-x gdb in Emacs.
18139 +case $srcdir in
18140 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
18141 +esac
18142 +for ac_var in $ac_precious_vars; do
18143 + eval ac_env_${ac_var}_set=\${${ac_var}+set}
18144 + eval ac_env_${ac_var}_value=\$${ac_var}
18145 + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
18146 + eval ac_cv_env_${ac_var}_value=\$${ac_var}
18147 +done
18148 +
18149 +#
18150 +# Report the --help message.
18151 +#
18152 +if test "$ac_init_help" = "long"; then
18153 + # Omit some internal or obsolete options to make the list less imposing.
18154 + # This message is too long to be a string in the A/UX 3.1 sh.
18155 + cat <<_ACEOF
18156 +\`configure' configures libltdl 2.2.6b to adapt to many kinds of systems.
18157 +
18158 +Usage: $0 [OPTION]... [VAR=VALUE]...
18159 +
18160 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
18161 +VAR=VALUE. See below for descriptions of some of the useful variables.
18162 +
18163 +Defaults for the options are specified in brackets.
18164 +
18165 +Configuration:
18166 + -h, --help display this help and exit
18167 + --help=short display options specific to this package
18168 + --help=recursive display the short help of all the included packages
18169 + -V, --version display version information and exit
18170 + -q, --quiet, --silent do not print \`checking...' messages
18171 + --cache-file=FILE cache test results in FILE [disabled]
18172 + -C, --config-cache alias for \`--cache-file=config.cache'
18173 + -n, --no-create do not create output files
18174 + --srcdir=DIR find the sources in DIR [configure dir or \`..']
18175 +
18176 +Installation directories:
18177 + --prefix=PREFIX install architecture-independent files in PREFIX
18178 + [$ac_default_prefix]
18179 + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
18180 + [PREFIX]
18181 +
18182 +By default, \`make install' will install all the files in
18183 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
18184 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
18185 +for instance \`--prefix=\$HOME'.
18186 +
18187 +For better control, use the options below.
18188 +
18189 +Fine tuning of the installation directories:
18190 + --bindir=DIR user executables [EPREFIX/bin]
18191 + --sbindir=DIR system admin executables [EPREFIX/sbin]
18192 + --libexecdir=DIR program executables [EPREFIX/libexec]
18193 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
18194 + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
18195 + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
18196 + --libdir=DIR object code libraries [EPREFIX/lib]
18197 + --includedir=DIR C header files [PREFIX/include]
18198 + --oldincludedir=DIR C header files for non-gcc [/usr/include]
18199 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
18200 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
18201 + --infodir=DIR info documentation [DATAROOTDIR/info]
18202 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
18203 + --mandir=DIR man documentation [DATAROOTDIR/man]
18204 + --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
18205 + --htmldir=DIR html documentation [DOCDIR]
18206 + --dvidir=DIR dvi documentation [DOCDIR]
18207 + --pdfdir=DIR pdf documentation [DOCDIR]
18208 + --psdir=DIR ps documentation [DOCDIR]
18209 +_ACEOF
18210 +
18211 + cat <<\_ACEOF
18212 +
18213 +Program names:
18214 + --program-prefix=PREFIX prepend PREFIX to installed program names
18215 + --program-suffix=SUFFIX append SUFFIX to installed program names
18216 + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
18217 +
18218 +System types:
18219 + --build=BUILD configure for building on BUILD [guessed]
18220 + --host=HOST cross-compile to build programs to run on HOST [BUILD]
18221 +_ACEOF
18222 +fi
18223 +
18224 +if test -n "$ac_init_help"; then
18225 + case $ac_init_help in
18226 + short | recursive ) echo "Configuration of libltdl 2.2.6b:";;
18227 + esac
18228 + cat <<\_ACEOF
18229 +
18230 +Optional Features:
18231 + --disable-option-checking ignore unrecognized --enable/--with options
18232 + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
18233 + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
18234 + --enable-shared[=PKGS] build shared libraries [default=yes]
18235 + --enable-static[=PKGS] build static libraries [default=yes]
18236 + --enable-fast-install[=PKGS]
18237 + optimize for fast installation [default=yes]
18238 + --disable-dependency-tracking speeds up one-time build
18239 + --enable-dependency-tracking do not reject slow dependency extractors
18240 + --disable-libtool-lock avoid locking (might break parallel builds)
18241 + --enable-ltdl-install install libltdl
18242 +
18243 +Optional Packages:
18244 + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
18245 + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
18246 + --with-pic try to use only PIC/non-PIC objects [default=use
18247 + both]
18248 + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
18249 +
18250 +Some influential environment variables:
18251 + CC C compiler command
18252 + CFLAGS C compiler flags
18253 + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
18254 + nonstandard directory <lib dir>
18255 + LIBS libraries to pass to the linker, e.g. -l<library>
18256 + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
18257 + you have headers in a nonstandard directory <include dir>
18258 + CPP C preprocessor
18259 +
18260 +Use these variables to override the choices made by `configure' or to help
18261 +it to find libraries and programs with nonstandard names/locations.
18262 +
18263 +Report bugs to <[email protected]>.
18264 +_ACEOF
18265 +ac_status=$?
18266 +fi
18267 +
18268 +if test "$ac_init_help" = "recursive"; then
18269 + # If there are subdirs, report their specific --help.
18270 + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
18271 + test -d "$ac_dir" ||
18272 + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
18273 + continue
18274 + ac_builddir=.
18275 +
18276 +case "$ac_dir" in
18277 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18278 +*)
18279 + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18280 + # A ".." for each directory in $ac_dir_suffix.
18281 + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18282 + case $ac_top_builddir_sub in
18283 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18284 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18285 + esac ;;
18286 +esac
18287 +ac_abs_top_builddir=$ac_pwd
18288 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
18289 +# for backward compatibility:
18290 +ac_top_builddir=$ac_top_build_prefix
18291 +
18292 +case $srcdir in
18293 + .) # We are building in place.
18294 + ac_srcdir=.
18295 + ac_top_srcdir=$ac_top_builddir_sub
18296 + ac_abs_top_srcdir=$ac_pwd ;;
18297 + [\\/]* | ?:[\\/]* ) # Absolute name.
18298 + ac_srcdir=$srcdir$ac_dir_suffix;
18299 + ac_top_srcdir=$srcdir
18300 + ac_abs_top_srcdir=$srcdir ;;
18301 + *) # Relative name.
18302 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18303 + ac_top_srcdir=$ac_top_build_prefix$srcdir
18304 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18305 +esac
18306 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18307 +
18308 + cd "$ac_dir" || { ac_status=$?; continue; }
18309 + # Check for guested configure.
18310 + if test -f "$ac_srcdir/configure.gnu"; then
18311 + echo &&
18312 + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
18313 + elif test -f "$ac_srcdir/configure"; then
18314 + echo &&
18315 + $SHELL "$ac_srcdir/configure" --help=recursive
18316 + else
18317 + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
18318 + fi || ac_status=$?
18319 + cd "$ac_pwd" || { ac_status=$?; break; }
18320 + done
18321 +fi
18322 +
18323 +test -n "$ac_init_help" && exit $ac_status
18324 +if $ac_init_version; then
18325 + cat <<\_ACEOF
18326 +libltdl configure 2.2.6b
18327 +generated by GNU Autoconf 2.63
18328 +
18329 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
18330 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
18331 +This configure script is free software; the Free Software Foundation
18332 +gives unlimited permission to copy, distribute and modify it.
18333 +_ACEOF
18334 + exit
18335 +fi
18336 +cat >config.log <<_ACEOF
18337 +This file contains any messages produced by compilers while
18338 +running configure, to aid debugging if configure makes a mistake.
18339 +
18340 +It was created by libltdl $as_me 2.2.6b, which was
18341 +generated by GNU Autoconf 2.63. Invocation command line was
18342 +
18343 + $ $0 $@
18344 +
18345 +_ACEOF
18346 +exec 5>>config.log
18347 +{
18348 +cat <<_ASUNAME
18349 +## --------- ##
18350 +## Platform. ##
18351 +## --------- ##
18352 +
18353 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
18354 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
18355 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
18356 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
18357 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
18358 +
18359 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
18360 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
18361 +
18362 +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
18363 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
18364 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
18365 +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
18366 +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
18367 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
18368 +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
18369 +
18370 +_ASUNAME
18371 +
18372 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18373 +for as_dir in $PATH
18374 +do
18375 + IFS=$as_save_IFS
18376 + test -z "$as_dir" && as_dir=.
18377 + $as_echo "PATH: $as_dir"
18378 +done
18379 +IFS=$as_save_IFS
18380 +
18381 +} >&5
18382 +
18383 +cat >&5 <<_ACEOF
18384 +
18385 +
18386 +## ----------- ##
18387 +## Core tests. ##
18388 +## ----------- ##
18389 +
18390 +_ACEOF
18391 +
18392 +
18393 +# Keep a trace of the command line.
18394 +# Strip out --no-create and --no-recursion so they do not pile up.
18395 +# Strip out --silent because we don't want to record it for future runs.
18396 +# Also quote any args containing shell meta-characters.
18397 +# Make two passes to allow for proper duplicate-argument suppression.
18398 +ac_configure_args=
18399 +ac_configure_args0=
18400 +ac_configure_args1=
18401 +ac_must_keep_next=false
18402 +for ac_pass in 1 2
18403 +do
18404 + for ac_arg
18405 + do
18406 + case $ac_arg in
18407 + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
18408 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18409 + | -silent | --silent | --silen | --sile | --sil)
18410 + continue ;;
18411 + *\'*)
18412 + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18413 + esac
18414 + case $ac_pass in
18415 + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
18416 + 2)
18417 + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
18418 + if test $ac_must_keep_next = true; then
18419 + ac_must_keep_next=false # Got value, back to normal.
18420 + else
18421 + case $ac_arg in
18422 + *=* | --config-cache | -C | -disable-* | --disable-* \
18423 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
18424 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
18425 + | -with-* | --with-* | -without-* | --without-* | --x)
18426 + case "$ac_configure_args0 " in
18427 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
18428 + esac
18429 + ;;
18430 + -* ) ac_must_keep_next=true ;;
18431 + esac
18432 + fi
18433 + ac_configure_args="$ac_configure_args '$ac_arg'"
18434 + ;;
18435 + esac
18436 + done
18437 +done
18438 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
18439 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
18440 +
18441 +# When interrupted or exit'd, cleanup temporary files, and complete
18442 +# config.log. We remove comments because anyway the quotes in there
18443 +# would cause problems or look ugly.
18444 +# WARNING: Use '\'' to represent an apostrophe within the trap.
18445 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
18446 +trap 'exit_status=$?
18447 + # Save into config.log some information that might help in debugging.
18448 + {
18449 + echo
18450 +
18451 + cat <<\_ASBOX
18452 +## ---------------- ##
18453 +## Cache variables. ##
18454 +## ---------------- ##
18455 +_ASBOX
18456 + echo
18457 + # The following way of writing the cache mishandles newlines in values,
18458 +(
18459 + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
18460 + eval ac_val=\$$ac_var
18461 + case $ac_val in #(
18462 + *${as_nl}*)
18463 + case $ac_var in #(
18464 + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18465 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18466 + esac
18467 + case $ac_var in #(
18468 + _ | IFS | as_nl) ;; #(
18469 + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18470 + *) $as_unset $ac_var ;;
18471 + esac ;;
18472 + esac
18473 + done
18474 + (set) 2>&1 |
18475 + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
18476 + *${as_nl}ac_space=\ *)
18477 + sed -n \
18478 + "s/'\''/'\''\\\\'\'''\''/g;
18479 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
18480 + ;; #(
18481 + *)
18482 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18483 + ;;
18484 + esac |
18485 + sort
18486 +)
18487 + echo
18488 +
18489 + cat <<\_ASBOX
18490 +## ----------------- ##
18491 +## Output variables. ##
18492 +## ----------------- ##
18493 +_ASBOX
18494 + echo
18495 + for ac_var in $ac_subst_vars
18496 + do
18497 + eval ac_val=\$$ac_var
18498 + case $ac_val in
18499 + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
18500 + esac
18501 + $as_echo "$ac_var='\''$ac_val'\''"
18502 + done | sort
18503 + echo
18504 +
18505 + if test -n "$ac_subst_files"; then
18506 + cat <<\_ASBOX
18507 +## ------------------- ##
18508 +## File substitutions. ##
18509 +## ------------------- ##
18510 +_ASBOX
18511 + echo
18512 + for ac_var in $ac_subst_files
18513 + do
18514 + eval ac_val=\$$ac_var
18515 + case $ac_val in
18516 + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
18517 + esac
18518 + $as_echo "$ac_var='\''$ac_val'\''"
18519 + done | sort
18520 + echo
18521 + fi
18522 +
18523 + if test -s confdefs.h; then
18524 + cat <<\_ASBOX
18525 +## ----------- ##
18526 +## confdefs.h. ##
18527 +## ----------- ##
18528 +_ASBOX
18529 + echo
18530 + cat confdefs.h
18531 + echo
18532 + fi
18533 + test "$ac_signal" != 0 &&
18534 + $as_echo "$as_me: caught signal $ac_signal"
18535 + $as_echo "$as_me: exit $exit_status"
18536 + } >&5
18537 + rm -f core *.core core.conftest.* &&
18538 + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
18539 + exit $exit_status
18540 +' 0
18541 +for ac_signal in 1 2 13 15; do
18542 + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
18543 +done
18544 +ac_signal=0
18545 +
18546 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
18547 +rm -f -r conftest* confdefs.h
18548 +
18549 +# Predefined preprocessor variables.
18550 +
18551 +cat >>confdefs.h <<_ACEOF
18552 +#define PACKAGE_NAME "$PACKAGE_NAME"
18553 +_ACEOF
18554 +
18555 +
18556 +cat >>confdefs.h <<_ACEOF
18557 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
18558 +_ACEOF
18559 +
18560 +
18561 +cat >>confdefs.h <<_ACEOF
18562 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
18563 +_ACEOF
18564 +
18565 +
18566 +cat >>confdefs.h <<_ACEOF
18567 +#define PACKAGE_STRING "$PACKAGE_STRING"
18568 +_ACEOF
18569 +
18570 +
18571 +cat >>confdefs.h <<_ACEOF
18572 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
18573 +_ACEOF
18574 +
18575 +
18576 +# Let the site file select an alternate cache file if it wants to.
18577 +# Prefer an explicitly selected file to automatically selected ones.
18578 +ac_site_file1=NONE
18579 +ac_site_file2=NONE
18580 +if test -n "$CONFIG_SITE"; then
18581 + ac_site_file1=$CONFIG_SITE
18582 +elif test "x$prefix" != xNONE; then
18583 + ac_site_file1=$prefix/share/config.site
18584 + ac_site_file2=$prefix/etc/config.site
18585 +else
18586 + ac_site_file1=$ac_default_prefix/share/config.site
18587 + ac_site_file2=$ac_default_prefix/etc/config.site
18588 +fi
18589 +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
18590 +do
18591 + test "x$ac_site_file" = xNONE && continue
18592 + if test -r "$ac_site_file"; then
18593 + { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
18594 +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
18595 + sed 's/^/| /' "$ac_site_file" >&5
18596 + . "$ac_site_file"
18597 + fi
18598 +done
18599 +
18600 +if test -r "$cache_file"; then
18601 + # Some versions of bash will fail to source /dev/null (special
18602 + # files actually), so we avoid doing that.
18603 + if test -f "$cache_file"; then
18604 + { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
18605 +$as_echo "$as_me: loading cache $cache_file" >&6;}
18606 + case $cache_file in
18607 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
18608 + *) . "./$cache_file";;
18609 + esac
18610 + fi
18611 +else
18612 + { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
18613 +$as_echo "$as_me: creating cache $cache_file" >&6;}
18614 + >$cache_file
18615 +fi
18616 +
18617 +# Check that the precious variables saved in the cache have kept the same
18618 +# value.
18619 +ac_cache_corrupted=false
18620 +for ac_var in $ac_precious_vars; do
18621 + eval ac_old_set=\$ac_cv_env_${ac_var}_set
18622 + eval ac_new_set=\$ac_env_${ac_var}_set
18623 + eval ac_old_val=\$ac_cv_env_${ac_var}_value
18624 + eval ac_new_val=\$ac_env_${ac_var}_value
18625 + case $ac_old_set,$ac_new_set in
18626 + set,)
18627 + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
18628 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
18629 + ac_cache_corrupted=: ;;
18630 + ,set)
18631 + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
18632 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
18633 + ac_cache_corrupted=: ;;
18634 + ,);;
18635 + *)
18636 + if test "x$ac_old_val" != "x$ac_new_val"; then
18637 + # differences in whitespace do not lead to failure.
18638 + ac_old_val_w=`echo x $ac_old_val`
18639 + ac_new_val_w=`echo x $ac_new_val`
18640 + if test "$ac_old_val_w" != "$ac_new_val_w"; then
18641 + { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
18642 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
18643 + ac_cache_corrupted=:
18644 + else
18645 + { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
18646 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
18647 + eval $ac_var=\$ac_old_val
18648 + fi
18649 + { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
18650 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
18651 + { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
18652 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
18653 + fi;;
18654 + esac
18655 + # Pass precious variables to config.status.
18656 + if test "$ac_new_set" = set; then
18657 + case $ac_new_val in
18658 + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
18659 + *) ac_arg=$ac_var=$ac_new_val ;;
18660 + esac
18661 + case " $ac_configure_args " in
18662 + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
18663 + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
18664 + esac
18665 + fi
18666 +done
18667 +if $ac_cache_corrupted; then
18668 + { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18669 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18670 + { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
18671 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
18672 + { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
18673 +$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
18674 + { (exit 1); exit 1; }; }
18675 +fi
18676 +
18677 +
18678 +
18679 +
18680 +
18681 +
18682 +
18683 +
18684 +
18685 +
18686 +
18687 +
18688 +
18689 +
18690 +
18691 +
18692 +
18693 +
18694 +
18695 +
18696 +
18697 +
18698 +
18699 +
18700 +
18701 +ac_ext=c
18702 +ac_cpp='$CPP $CPPFLAGS'
18703 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18704 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18705 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
18706 +
18707 +
18708 +ac_config_headers="$ac_config_headers config.h:config-h.in"
18709 +
18710 +
18711 +ac_aux_dir=
18712 +for ac_dir in config "$srcdir"/config; do
18713 + if test -f "$ac_dir/install-sh"; then
18714 + ac_aux_dir=$ac_dir
18715 + ac_install_sh="$ac_aux_dir/install-sh -c"
18716 + break
18717 + elif test -f "$ac_dir/install.sh"; then
18718 + ac_aux_dir=$ac_dir
18719 + ac_install_sh="$ac_aux_dir/install.sh -c"
18720 + break
18721 + elif test -f "$ac_dir/shtool"; then
18722 + ac_aux_dir=$ac_dir
18723 + ac_install_sh="$ac_aux_dir/shtool install -c"
18724 + break
18725 + fi
18726 +done
18727 +if test -z "$ac_aux_dir"; then
18728 + { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
18729 +$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
18730 + { (exit 1); exit 1; }; }
18731 +fi
18732 +
18733 +# These three variables are undocumented and unsupported,
18734 +# and are intended to be withdrawn in a future Autoconf release.
18735 +# They can cause serious problems if a builder's source tree is in a directory
18736 +# whose full name contains unusual characters.
18737 +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
18738 +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
18739 +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
18740 +
18741 +
18742 +
18743 +
18744 +
18745 +
18746 +
18747 +
18748 + # I am me!
18749 +
18750 +
18751 +## ------------------------ ##
18752 +## Automake Initialisation. ##
18753 +## ------------------------ ##
18754 +
18755 +am__api_version='1.11'
18756 +
18757 +# Find a good install program. We prefer a C program (faster),
18758 +# so one script is as good as another. But avoid the broken or
18759 +# incompatible versions:
18760 +# SysV /etc/install, /usr/sbin/install
18761 +# SunOS /usr/etc/install
18762 +# IRIX /sbin/install
18763 +# AIX /bin/install
18764 +# AmigaOS /C/install, which installs bootblocks on floppy discs
18765 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18766 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18767 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18768 +# OS/2's system install, which has a completely different semantic
18769 +# ./install, which can be erroneously created by make from ./install.sh.
18770 +# Reject install programs that cannot install multiple files.
18771 +{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18772 +$as_echo_n "checking for a BSD-compatible install... " >&6; }
18773 +if test -z "$INSTALL"; then
18774 +if test "${ac_cv_path_install+set}" = set; then
18775 + $as_echo_n "(cached) " >&6
18776 +else
18777 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18778 +for as_dir in $PATH
18779 +do
18780 + IFS=$as_save_IFS
18781 + test -z "$as_dir" && as_dir=.
18782 + # Account for people who put trailing slashes in PATH elements.
18783 +case $as_dir/ in
18784 + ./ | .// | /cC/* | \
18785 + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18786 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18787 + /usr/ucb/* ) ;;
18788 + *)
18789 + # OSF1 and SCO ODT 3.0 have their own names for install.
18790 + # Don't use installbsd from OSF since it installs stuff as root
18791 + # by default.
18792 + for ac_prog in ginstall scoinst install; do
18793 + for ac_exec_ext in '' $ac_executable_extensions; do
18794 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18795 + if test $ac_prog = install &&
18796 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18797 + # AIX install. It has an incompatible calling convention.
18798 + :
18799 + elif test $ac_prog = install &&
18800 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18801 + # program-specific install script used by HP pwplus--don't use.
18802 + :
18803 + else
18804 + rm -rf conftest.one conftest.two conftest.dir
18805 + echo one > conftest.one
18806 + echo two > conftest.two
18807 + mkdir conftest.dir
18808 + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
18809 + test -s conftest.one && test -s conftest.two &&
18810 + test -s conftest.dir/conftest.one &&
18811 + test -s conftest.dir/conftest.two
18812 + then
18813 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18814 + break 3
18815 + fi
18816 + fi
18817 + fi
18818 + done
18819 + done
18820 + ;;
18821 +esac
18822 +
18823 +done
18824 +IFS=$as_save_IFS
18825 +
18826 +rm -rf conftest.one conftest.two conftest.dir
18827 +
18828 +fi
18829 + if test "${ac_cv_path_install+set}" = set; then
18830 + INSTALL=$ac_cv_path_install
18831 + else
18832 + # As a last resort, use the slow shell script. Don't cache a
18833 + # value for INSTALL within a source directory, because that will
18834 + # break other packages using the cache if that directory is
18835 + # removed, or if the value is a relative name.
18836 + INSTALL=$ac_install_sh
18837 + fi
18838 +fi
18839 +{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
18840 +$as_echo "$INSTALL" >&6; }
18841 +
18842 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18843 +# It thinks the first close brace ends the variable substitution.
18844 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18845 +
18846 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18847 +
18848 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18849 +
18850 +{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
18851 +$as_echo_n "checking whether build environment is sane... " >&6; }
18852 +# Just in case
18853 +sleep 1
18854 +echo timestamp > conftest.file
18855 +# Reject unsafe characters in $srcdir or the absolute working directory
18856 +# name. Accept space and tab only in the latter.
18857 +am_lf='
18858 +'
18859 +case `pwd` in
18860 + *[\\\"\#\$\&\'\`$am_lf]*)
18861 + { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
18862 +$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
18863 + { (exit 1); exit 1; }; };;
18864 +esac
18865 +case $srcdir in
18866 + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
18867 + { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
18868 +$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
18869 + { (exit 1); exit 1; }; };;
18870 +esac
18871 +
18872 +# Do `set' in a subshell so we don't clobber the current shell's
18873 +# arguments. Must try -L first in case configure is actually a
18874 +# symlink; some systems play weird games with the mod time of symlinks
18875 +# (eg FreeBSD returns the mod time of the symlink's containing
18876 +# directory).
18877 +if (
18878 + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
18879 + if test "$*" = "X"; then
18880 + # -L didn't work.
18881 + set X `ls -t "$srcdir/configure" conftest.file`
18882 + fi
18883 + rm -f conftest.file
18884 + if test "$*" != "X $srcdir/configure conftest.file" \
18885 + && test "$*" != "X conftest.file $srcdir/configure"; then
18886 +
18887 + # If neither matched, then we have a broken ls. This can happen
18888 + # if, for instance, CONFIG_SHELL is bash and it inherits a
18889 + # broken ls alias from the environment. This has actually
18890 + # happened. Such a system could not be considered "sane".
18891 + { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
18892 +alias in your environment" >&5
18893 +$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
18894 +alias in your environment" >&2;}
18895 + { (exit 1); exit 1; }; }
18896 + fi
18897 +
18898 + test "$2" = conftest.file
18899 + )
18900 +then
18901 + # Ok.
18902 + :
18903 +else
18904 + { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
18905 +Check your system clock" >&5
18906 +$as_echo "$as_me: error: newly created file is older than distributed files!
18907 +Check your system clock" >&2;}
18908 + { (exit 1); exit 1; }; }
18909 +fi
18910 +{ $as_echo "$as_me:$LINENO: result: yes" >&5
18911 +$as_echo "yes" >&6; }
18912 +test "$program_prefix" != NONE &&
18913 + program_transform_name="s&^&$program_prefix&;$program_transform_name"
18914 +# Use a double $ so make ignores it.
18915 +test "$program_suffix" != NONE &&
18916 + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
18917 +# Double any \ or $.
18918 +# By default was `s,x,x', remove it if useless.
18919 +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
18920 +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
18921 +
18922 +# expand $ac_aux_dir to an absolute path
18923 +am_aux_dir=`cd $ac_aux_dir && pwd`
18924 +
18925 +if test x"${MISSING+set}" != xset; then
18926 + case $am_aux_dir in
18927 + *\ * | *\ *)
18928 + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
18929 + *)
18930 + MISSING="\${SHELL} $am_aux_dir/missing" ;;
18931 + esac
18932 +fi
18933 +# Use eval to expand $SHELL
18934 +if eval "$MISSING --run true"; then
18935 + am_missing_run="$MISSING --run "
18936 +else
18937 + am_missing_run=
18938 + { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
18939 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18940 +fi
18941 +
18942 +if test x"${install_sh}" != xset; then
18943 + case $am_aux_dir in
18944 + *\ * | *\ *)
18945 + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
18946 + *)
18947 + install_sh="\${SHELL} $am_aux_dir/install-sh"
18948 + esac
18949 +fi
18950 +
18951 +# Installed binaries are usually stripped using `strip' when the user
18952 +# run `make install-strip'. However `strip' might not be the right
18953 +# tool to use in cross-compilation environments, therefore Automake
18954 +# will honor the `STRIP' environment variable to overrule this program.
18955 +if test "$cross_compiling" != no; then
18956 + if test -n "$ac_tool_prefix"; then
18957 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
18958 +set dummy ${ac_tool_prefix}strip; ac_word=$2
18959 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18960 +$as_echo_n "checking for $ac_word... " >&6; }
18961 +if test "${ac_cv_prog_STRIP+set}" = set; then
18962 + $as_echo_n "(cached) " >&6
18963 +else
18964 + if test -n "$STRIP"; then
18965 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
18966 +else
18967 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18968 +for as_dir in $PATH
18969 +do
18970 + IFS=$as_save_IFS
18971 + test -z "$as_dir" && as_dir=.
18972 + for ac_exec_ext in '' $ac_executable_extensions; do
18973 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18974 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
18975 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18976 + break 2
18977 + fi
18978 +done
18979 +done
18980 +IFS=$as_save_IFS
18981 +
18982 +fi
18983 +fi
18984 +STRIP=$ac_cv_prog_STRIP
18985 +if test -n "$STRIP"; then
18986 + { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
18987 +$as_echo "$STRIP" >&6; }
18988 +else
18989 + { $as_echo "$as_me:$LINENO: result: no" >&5
18990 +$as_echo "no" >&6; }
18991 +fi
18992 +
18993 +
18994 +fi
18995 +if test -z "$ac_cv_prog_STRIP"; then
18996 + ac_ct_STRIP=$STRIP
18997 + # Extract the first word of "strip", so it can be a program name with args.
18998 +set dummy strip; ac_word=$2
18999 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19000 +$as_echo_n "checking for $ac_word... " >&6; }
19001 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19002 + $as_echo_n "(cached) " >&6
19003 +else
19004 + if test -n "$ac_ct_STRIP"; then
19005 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19006 +else
19007 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19008 +for as_dir in $PATH
19009 +do
19010 + IFS=$as_save_IFS
19011 + test -z "$as_dir" && as_dir=.
19012 + for ac_exec_ext in '' $ac_executable_extensions; do
19013 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19014 + ac_cv_prog_ac_ct_STRIP="strip"
19015 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19016 + break 2
19017 + fi
19018 +done
19019 +done
19020 +IFS=$as_save_IFS
19021 +
19022 +fi
19023 +fi
19024 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19025 +if test -n "$ac_ct_STRIP"; then
19026 + { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19027 +$as_echo "$ac_ct_STRIP" >&6; }
19028 +else
19029 + { $as_echo "$as_me:$LINENO: result: no" >&5
19030 +$as_echo "no" >&6; }
19031 +fi
19032 +
19033 + if test "x$ac_ct_STRIP" = x; then
19034 + STRIP=":"
19035 + else
19036 + case $cross_compiling:$ac_tool_warned in
19037 +yes:)
19038 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
19039 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19040 +ac_tool_warned=yes ;;
19041 +esac
19042 + STRIP=$ac_ct_STRIP
19043 + fi
19044 +else
19045 + STRIP="$ac_cv_prog_STRIP"
19046 +fi
19047 +
19048 +fi
19049 +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
19050 +
19051 +{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
19052 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
19053 +if test -z "$MKDIR_P"; then
19054 + if test "${ac_cv_path_mkdir+set}" = set; then
19055 + $as_echo_n "(cached) " >&6
19056 +else
19057 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19058 +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
19059 +do
19060 + IFS=$as_save_IFS
19061 + test -z "$as_dir" && as_dir=.
19062 + for ac_prog in mkdir gmkdir; do
19063 + for ac_exec_ext in '' $ac_executable_extensions; do
19064 + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
19065 + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
19066 + 'mkdir (GNU coreutils) '* | \
19067 + 'mkdir (coreutils) '* | \
19068 + 'mkdir (fileutils) '4.1*)
19069 + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
19070 + break 3;;
19071 + esac
19072 + done
19073 + done
19074 +done
19075 +IFS=$as_save_IFS
19076 +
19077 +fi
19078 +
19079 + if test "${ac_cv_path_mkdir+set}" = set; then
19080 + MKDIR_P="$ac_cv_path_mkdir -p"
19081 + else
19082 + # As a last resort, use the slow shell script. Don't cache a
19083 + # value for MKDIR_P within a source directory, because that will
19084 + # break other packages using the cache if that directory is
19085 + # removed, or if the value is a relative name.
19086 + test -d ./--version && rmdir ./--version
19087 + MKDIR_P="$ac_install_sh -d"
19088 + fi
19089 +fi
19090 +{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
19091 +$as_echo "$MKDIR_P" >&6; }
19092 +
19093 +mkdir_p="$MKDIR_P"
19094 +case $mkdir_p in
19095 + [\\/$]* | ?:[\\/]*) ;;
19096 + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
19097 +esac
19098 +
19099 +for ac_prog in gawk mawk nawk awk
19100 +do
19101 + # Extract the first word of "$ac_prog", so it can be a program name with args.
19102 +set dummy $ac_prog; ac_word=$2
19103 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19104 +$as_echo_n "checking for $ac_word... " >&6; }
19105 +if test "${ac_cv_prog_AWK+set}" = set; then
19106 + $as_echo_n "(cached) " >&6
19107 +else
19108 + if test -n "$AWK"; then
19109 + ac_cv_prog_AWK="$AWK" # Let the user override the test.
19110 +else
19111 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19112 +for as_dir in $PATH
19113 +do
19114 + IFS=$as_save_IFS
19115 + test -z "$as_dir" && as_dir=.
19116 + for ac_exec_ext in '' $ac_executable_extensions; do
19117 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19118 + ac_cv_prog_AWK="$ac_prog"
19119 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19120 + break 2
19121 + fi
19122 +done
19123 +done
19124 +IFS=$as_save_IFS
19125 +
19126 +fi
19127 +fi
19128 +AWK=$ac_cv_prog_AWK
19129 +if test -n "$AWK"; then
19130 + { $as_echo "$as_me:$LINENO: result: $AWK" >&5
19131 +$as_echo "$AWK" >&6; }
19132 +else
19133 + { $as_echo "$as_me:$LINENO: result: no" >&5
19134 +$as_echo "no" >&6; }
19135 +fi
19136 +
19137 +
19138 + test -n "$AWK" && break
19139 +done
19140 +
19141 +{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19142 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
19143 +set x ${MAKE-make}
19144 +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19145 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19146 + $as_echo_n "(cached) " >&6
19147 +else
19148 + cat >conftest.make <<\_ACEOF
19149 +SHELL = /bin/sh
19150 +all:
19151 + @echo '@@@%%%=$(MAKE)=@@@%%%'
19152 +_ACEOF
19153 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19154 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
19155 + *@@@%%%=?*=@@@%%%*)
19156 + eval ac_cv_prog_make_${ac_make}_set=yes;;
19157 + *)
19158 + eval ac_cv_prog_make_${ac_make}_set=no;;
19159 +esac
19160 +rm -f conftest.make
19161 +fi
19162 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19163 + { $as_echo "$as_me:$LINENO: result: yes" >&5
19164 +$as_echo "yes" >&6; }
19165 + SET_MAKE=
19166 +else
19167 + { $as_echo "$as_me:$LINENO: result: no" >&5
19168 +$as_echo "no" >&6; }
19169 + SET_MAKE="MAKE=${MAKE-make}"
19170 +fi
19171 +
19172 +rm -rf .tst 2>/dev/null
19173 +mkdir .tst 2>/dev/null
19174 +if test -d .tst; then
19175 + am__leading_dot=.
19176 +else
19177 + am__leading_dot=_
19178 +fi
19179 +rmdir .tst 2>/dev/null
19180 +
19181 +if test "`cd $srcdir && pwd`" != "`pwd`"; then
19182 + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
19183 + # is not polluted with repeated "-I."
19184 + am__isrc=' -I$(srcdir)'
19185 + # test to see if srcdir already configured
19186 + if test -f $srcdir/config.status; then
19187 + { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19188 +$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19189 + { (exit 1); exit 1; }; }
19190 + fi
19191 +fi
19192 +
19193 +# test whether we have cygpath
19194 +if test -z "$CYGPATH_W"; then
19195 + if (cygpath --version) >/dev/null 2>/dev/null; then
19196 + CYGPATH_W='cygpath -w'
19197 + else
19198 + CYGPATH_W=echo
19199 + fi
19200 +fi
19201 +
19202 +
19203 +# Define the identity of the package.
19204 + PACKAGE='libltdl'
19205 + VERSION='2.2.6b'
19206 +
19207 +
19208 +cat >>confdefs.h <<_ACEOF
19209 +#define PACKAGE "$PACKAGE"
19210 +_ACEOF
19211 +
19212 +
19213 +cat >>confdefs.h <<_ACEOF
19214 +#define VERSION "$VERSION"
19215 +_ACEOF
19216 +
19217 +# Some tools Automake needs.
19218 +
19219 +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19220 +
19221 +
19222 +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19223 +
19224 +
19225 +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19226 +
19227 +
19228 +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19229 +
19230 +
19231 +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19232 +
19233 +# We need awk for the "check" target. The system "awk" is bad on
19234 +# some platforms.
19235 +# Always define AMTAR for backward compatibility.
19236 +
19237 +AMTAR=${AMTAR-"${am_missing_run}tar"}
19238 +
19239 +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19240 +
19241 +
19242 +
19243 +
19244 +
19245 +
19246 +
19247 +## ------------------------------- ##
19248 +## Libtool specific configuration. ##
19249 +## ------------------------------- ##
19250 +pkgdatadir='${datadir}'"/${PACKAGE}"
19251 +
19252 +
19253 +## ----------------------- ##
19254 +## Libtool initialisation. ##
19255 +## ----------------------- ##
19256 +case `pwd` in
19257 + *\ * | *\ *)
19258 + { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
19259 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
19260 +esac
19261 +
19262 +
19263 +
19264 +macro_version='2.2.6b'
19265 +macro_revision='1.3017'
19266 +
19267 +
19268 +
19269 +
19270 +
19271 +
19272 +
19273 +
19274 +
19275 +
19276 +
19277 +
19278 +
19279 +ltmain="$ac_aux_dir/ltmain.sh"
19280 +
19281 +# Make sure we can run config.sub.
19282 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
19283 + { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
19284 +$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
19285 + { (exit 1); exit 1; }; }
19286 +
19287 +{ $as_echo "$as_me:$LINENO: checking build system type" >&5
19288 +$as_echo_n "checking build system type... " >&6; }
19289 +if test "${ac_cv_build+set}" = set; then
19290 + $as_echo_n "(cached) " >&6
19291 +else
19292 + ac_build_alias=$build_alias
19293 +test "x$ac_build_alias" = x &&
19294 + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
19295 +test "x$ac_build_alias" = x &&
19296 + { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
19297 +$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
19298 + { (exit 1); exit 1; }; }
19299 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
19300 + { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
19301 +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
19302 + { (exit 1); exit 1; }; }
19303 +
19304 +fi
19305 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
19306 +$as_echo "$ac_cv_build" >&6; }
19307 +case $ac_cv_build in
19308 +*-*-*) ;;
19309 +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
19310 +$as_echo "$as_me: error: invalid value of canonical build" >&2;}
19311 + { (exit 1); exit 1; }; };;
19312 +esac
19313 +build=$ac_cv_build
19314 +ac_save_IFS=$IFS; IFS='-'
19315 +set x $ac_cv_build
19316 +shift
19317 +build_cpu=$1
19318 +build_vendor=$2
19319 +shift; shift
19320 +# Remember, the first character of IFS is used to create $*,
19321 +# except with old shells:
19322 +build_os=$*
19323 +IFS=$ac_save_IFS
19324 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
19325 +
19326 +
19327 +{ $as_echo "$as_me:$LINENO: checking host system type" >&5
19328 +$as_echo_n "checking host system type... " >&6; }
19329 +if test "${ac_cv_host+set}" = set; then
19330 + $as_echo_n "(cached) " >&6
19331 +else
19332 + if test "x$host_alias" = x; then
19333 + ac_cv_host=$ac_cv_build
19334 +else
19335 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19336 + { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19337 +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19338 + { (exit 1); exit 1; }; }
19339 +fi
19340 +
19341 +fi
19342 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19343 +$as_echo "$ac_cv_host" >&6; }
19344 +case $ac_cv_host in
19345 +*-*-*) ;;
19346 +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19347 +$as_echo "$as_me: error: invalid value of canonical host" >&2;}
19348 + { (exit 1); exit 1; }; };;
19349 +esac
19350 +host=$ac_cv_host
19351 +ac_save_IFS=$IFS; IFS='-'
19352 +set x $ac_cv_host
19353 +shift
19354 +host_cpu=$1
19355 +host_vendor=$2
19356 +shift; shift
19357 +# Remember, the first character of IFS is used to create $*,
19358 +# except with old shells:
19359 +host_os=$*
19360 +IFS=$ac_save_IFS
19361 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
19362 +
19363 +
19364 +DEPDIR="${am__leading_dot}deps"
19365 +
19366 +ac_config_commands="$ac_config_commands depfiles"
19367 +
19368 +
19369 +am_make=${MAKE-make}
19370 +cat > confinc << 'END'
19371 +am__doit:
19372 + @echo this is the am__doit target
19373 +.PHONY: am__doit
19374 +END
19375 +# If we don't find an include directive, just comment out the code.
19376 +{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
19377 +$as_echo_n "checking for style of include used by $am_make... " >&6; }
19378 +am__include="#"
19379 +am__quote=
19380 +_am_result=none
19381 +# First try GNU make style include.
19382 +echo "include confinc" > confmf
19383 +# Ignore all kinds of additional output from `make'.
19384 +case `$am_make -s -f confmf 2> /dev/null` in #(
19385 +*the\ am__doit\ target*)
19386 + am__include=include
19387 + am__quote=
19388 + _am_result=GNU
19389 + ;;
19390 +esac
19391 +# Now try BSD make style include.
19392 +if test "$am__include" = "#"; then
19393 + echo '.include "confinc"' > confmf
19394 + case `$am_make -s -f confmf 2> /dev/null` in #(
19395 + *the\ am__doit\ target*)
19396 + am__include=.include
19397 + am__quote="\""
19398 + _am_result=BSD
19399 + ;;
19400 + esac
19401 +fi
19402 +
19403 +
19404 +{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
19405 +$as_echo "$_am_result" >&6; }
19406 +rm -f confinc confmf
19407 +
19408 +# Check whether --enable-dependency-tracking was given.
19409 +if test "${enable_dependency_tracking+set}" = set; then
19410 + enableval=$enable_dependency_tracking;
19411 +fi
19412 +
19413 +if test "x$enable_dependency_tracking" != xno; then
19414 + am_depcomp="$ac_aux_dir/depcomp"
19415 + AMDEPBACKSLASH='\'
19416 +fi
19417 + if test "x$enable_dependency_tracking" != xno; then
19418 + AMDEP_TRUE=
19419 + AMDEP_FALSE='#'
19420 +else
19421 + AMDEP_TRUE='#'
19422 + AMDEP_FALSE=
19423 +fi
19424 +
19425 +
19426 +ac_ext=c
19427 +ac_cpp='$CPP $CPPFLAGS'
19428 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19429 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19430 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
19431 +if test -n "$ac_tool_prefix"; then
19432 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19433 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
19434 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19435 +$as_echo_n "checking for $ac_word... " >&6; }
19436 +if test "${ac_cv_prog_CC+set}" = set; then
19437 + $as_echo_n "(cached) " >&6
19438 +else
19439 + if test -n "$CC"; then
19440 + ac_cv_prog_CC="$CC" # Let the user override the test.
19441 +else
19442 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19443 +for as_dir in $PATH
19444 +do
19445 + IFS=$as_save_IFS
19446 + test -z "$as_dir" && as_dir=.
19447 + for ac_exec_ext in '' $ac_executable_extensions; do
19448 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19449 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
19450 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19451 + break 2
19452 + fi
19453 +done
19454 +done
19455 +IFS=$as_save_IFS
19456 +
19457 +fi
19458 +fi
19459 +CC=$ac_cv_prog_CC
19460 +if test -n "$CC"; then
19461 + { $as_echo "$as_me:$LINENO: result: $CC" >&5
19462 +$as_echo "$CC" >&6; }
19463 +else
19464 + { $as_echo "$as_me:$LINENO: result: no" >&5
19465 +$as_echo "no" >&6; }
19466 +fi
19467 +
19468 +
19469 +fi
19470 +if test -z "$ac_cv_prog_CC"; then
19471 + ac_ct_CC=$CC
19472 + # Extract the first word of "gcc", so it can be a program name with args.
19473 +set dummy gcc; ac_word=$2
19474 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19475 +$as_echo_n "checking for $ac_word... " >&6; }
19476 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19477 + $as_echo_n "(cached) " >&6
19478 +else
19479 + if test -n "$ac_ct_CC"; then
19480 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19481 +else
19482 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19483 +for as_dir in $PATH
19484 +do
19485 + IFS=$as_save_IFS
19486 + test -z "$as_dir" && as_dir=.
19487 + for ac_exec_ext in '' $ac_executable_extensions; do
19488 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19489 + ac_cv_prog_ac_ct_CC="gcc"
19490 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19491 + break 2
19492 + fi
19493 +done
19494 +done
19495 +IFS=$as_save_IFS
19496 +
19497 +fi
19498 +fi
19499 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
19500 +if test -n "$ac_ct_CC"; then
19501 + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19502 +$as_echo "$ac_ct_CC" >&6; }
19503 +else
19504 + { $as_echo "$as_me:$LINENO: result: no" >&5
19505 +$as_echo "no" >&6; }
19506 +fi
19507 +
19508 + if test "x$ac_ct_CC" = x; then
19509 + CC=""
19510 + else
19511 + case $cross_compiling:$ac_tool_warned in
19512 +yes:)
19513 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
19514 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19515 +ac_tool_warned=yes ;;
19516 +esac
19517 + CC=$ac_ct_CC
19518 + fi
19519 +else
19520 + CC="$ac_cv_prog_CC"
19521 +fi
19522 +
19523 +if test -z "$CC"; then
19524 + if test -n "$ac_tool_prefix"; then
19525 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19526 +set dummy ${ac_tool_prefix}cc; ac_word=$2
19527 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19528 +$as_echo_n "checking for $ac_word... " >&6; }
19529 +if test "${ac_cv_prog_CC+set}" = set; then
19530 + $as_echo_n "(cached) " >&6
19531 +else
19532 + if test -n "$CC"; then
19533 + ac_cv_prog_CC="$CC" # Let the user override the test.
19534 +else
19535 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19536 +for as_dir in $PATH
19537 +do
19538 + IFS=$as_save_IFS
19539 + test -z "$as_dir" && as_dir=.
19540 + for ac_exec_ext in '' $ac_executable_extensions; do
19541 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19542 + ac_cv_prog_CC="${ac_tool_prefix}cc"
19543 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19544 + break 2
19545 + fi
19546 +done
19547 +done
19548 +IFS=$as_save_IFS
19549 +
19550 +fi
19551 +fi
19552 +CC=$ac_cv_prog_CC
19553 +if test -n "$CC"; then
19554 + { $as_echo "$as_me:$LINENO: result: $CC" >&5
19555 +$as_echo "$CC" >&6; }
19556 +else
19557 + { $as_echo "$as_me:$LINENO: result: no" >&5
19558 +$as_echo "no" >&6; }
19559 +fi
19560 +
19561 +
19562 + fi
19563 +fi
19564 +if test -z "$CC"; then
19565 + # Extract the first word of "cc", so it can be a program name with args.
19566 +set dummy cc; ac_word=$2
19567 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19568 +$as_echo_n "checking for $ac_word... " >&6; }
19569 +if test "${ac_cv_prog_CC+set}" = set; then
19570 + $as_echo_n "(cached) " >&6
19571 +else
19572 + if test -n "$CC"; then
19573 + ac_cv_prog_CC="$CC" # Let the user override the test.
19574 +else
19575 + ac_prog_rejected=no
19576 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19577 +for as_dir in $PATH
19578 +do
19579 + IFS=$as_save_IFS
19580 + test -z "$as_dir" && as_dir=.
19581 + for ac_exec_ext in '' $ac_executable_extensions; do
19582 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19583 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19584 + ac_prog_rejected=yes
19585 + continue
19586 + fi
19587 + ac_cv_prog_CC="cc"
19588 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19589 + break 2
19590 + fi
19591 +done
19592 +done
19593 +IFS=$as_save_IFS
19594 +
19595 +if test $ac_prog_rejected = yes; then
19596 + # We found a bogon in the path, so make sure we never use it.
19597 + set dummy $ac_cv_prog_CC
19598 + shift
19599 + if test $# != 0; then
19600 + # We chose a different compiler from the bogus one.
19601 + # However, it has the same basename, so the bogon will be chosen
19602 + # first if we set CC to just the basename; use the full file name.
19603 + shift
19604 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19605 + fi
19606 +fi
19607 +fi
19608 +fi
19609 +CC=$ac_cv_prog_CC
19610 +if test -n "$CC"; then
19611 + { $as_echo "$as_me:$LINENO: result: $CC" >&5
19612 +$as_echo "$CC" >&6; }
19613 +else
19614 + { $as_echo "$as_me:$LINENO: result: no" >&5
19615 +$as_echo "no" >&6; }
19616 +fi
19617 +
19618 +
19619 +fi
19620 +if test -z "$CC"; then
19621 + if test -n "$ac_tool_prefix"; then
19622 + for ac_prog in cl.exe
19623 + do
19624 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19625 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19626 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19627 +$as_echo_n "checking for $ac_word... " >&6; }
19628 +if test "${ac_cv_prog_CC+set}" = set; then
19629 + $as_echo_n "(cached) " >&6
19630 +else
19631 + if test -n "$CC"; then
19632 + ac_cv_prog_CC="$CC" # Let the user override the test.
19633 +else
19634 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19635 +for as_dir in $PATH
19636 +do
19637 + IFS=$as_save_IFS
19638 + test -z "$as_dir" && as_dir=.
19639 + for ac_exec_ext in '' $ac_executable_extensions; do
19640 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19641 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19642 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19643 + break 2
19644 + fi
19645 +done
19646 +done
19647 +IFS=$as_save_IFS
19648 +
19649 +fi
19650 +fi
19651 +CC=$ac_cv_prog_CC
19652 +if test -n "$CC"; then
19653 + { $as_echo "$as_me:$LINENO: result: $CC" >&5
19654 +$as_echo "$CC" >&6; }
19655 +else
19656 + { $as_echo "$as_me:$LINENO: result: no" >&5
19657 +$as_echo "no" >&6; }
19658 +fi
19659 +
19660 +
19661 + test -n "$CC" && break
19662 + done
19663 +fi
19664 +if test -z "$CC"; then
19665 + ac_ct_CC=$CC
19666 + for ac_prog in cl.exe
19667 +do
19668 + # Extract the first word of "$ac_prog", so it can be a program name with args.
19669 +set dummy $ac_prog; ac_word=$2
19670 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19671 +$as_echo_n "checking for $ac_word... " >&6; }
19672 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19673 + $as_echo_n "(cached) " >&6
19674 +else
19675 + if test -n "$ac_ct_CC"; then
19676 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19677 +else
19678 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19679 +for as_dir in $PATH
19680 +do
19681 + IFS=$as_save_IFS
19682 + test -z "$as_dir" && as_dir=.
19683 + for ac_exec_ext in '' $ac_executable_extensions; do
19684 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19685 + ac_cv_prog_ac_ct_CC="$ac_prog"
19686 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19687 + break 2
19688 + fi
19689 +done
19690 +done
19691 +IFS=$as_save_IFS
19692 +
19693 +fi
19694 +fi
19695 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
19696 +if test -n "$ac_ct_CC"; then
19697 + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19698 +$as_echo "$ac_ct_CC" >&6; }
19699 +else
19700 + { $as_echo "$as_me:$LINENO: result: no" >&5
19701 +$as_echo "no" >&6; }
19702 +fi
19703 +
19704 +
19705 + test -n "$ac_ct_CC" && break
19706 +done
19707 +
19708 + if test "x$ac_ct_CC" = x; then
19709 + CC=""
19710 + else
19711 + case $cross_compiling:$ac_tool_warned in
19712 +yes:)
19713 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
19714 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19715 +ac_tool_warned=yes ;;
19716 +esac
19717 + CC=$ac_ct_CC
19718 + fi
19719 +fi
19720 +
19721 +fi
19722 +
19723 +
19724 +test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19725 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19726 +{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19727 +See \`config.log' for more details." >&5
19728 +$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
19729 +See \`config.log' for more details." >&2;}
19730 + { (exit 1); exit 1; }; }; }
19731 +
19732 +# Provide some information about the compiler.
19733 +$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
19734 +set X $ac_compile
19735 +ac_compiler=$2
19736 +{ (ac_try="$ac_compiler --version >&5"
19737 +case "(($ac_try" in
19738 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739 + *) ac_try_echo=$ac_try;;
19740 +esac
19741 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19742 +$as_echo "$ac_try_echo") >&5
19743 + (eval "$ac_compiler --version >&5") 2>&5
19744 + ac_status=$?
19745 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 + (exit $ac_status); }
19747 +{ (ac_try="$ac_compiler -v >&5"
19748 +case "(($ac_try" in
19749 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750 + *) ac_try_echo=$ac_try;;
19751 +esac
19752 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19753 +$as_echo "$ac_try_echo") >&5
19754 + (eval "$ac_compiler -v >&5") 2>&5
19755 + ac_status=$?
19756 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 + (exit $ac_status); }
19758 +{ (ac_try="$ac_compiler -V >&5"
19759 +case "(($ac_try" in
19760 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19761 + *) ac_try_echo=$ac_try;;
19762 +esac
19763 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19764 +$as_echo "$ac_try_echo") >&5
19765 + (eval "$ac_compiler -V >&5") 2>&5
19766 + ac_status=$?
19767 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 + (exit $ac_status); }
19769 +
19770 +cat >conftest.$ac_ext <<_ACEOF
19771 +/* confdefs.h. */
19772 +_ACEOF
19773 +cat confdefs.h >>conftest.$ac_ext
19774 +cat >>conftest.$ac_ext <<_ACEOF
19775 +/* end confdefs.h. */
19776 +
19777 +int
19778 +main ()
19779 +{
19780 +
19781 + ;
19782 + return 0;
19783 +}
19784 +_ACEOF
19785 +ac_clean_files_save=$ac_clean_files
19786 +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
19787 +# Try to create an executable without -o first, disregard a.out.
19788 +# It will help us diagnose broken compilers, and finding out an intuition
19789 +# of exeext.
19790 +{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
19791 +$as_echo_n "checking for C compiler default output file name... " >&6; }
19792 +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
19793 +
19794 +# The possible output files:
19795 +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
19796 +
19797 +ac_rmfiles=
19798 +for ac_file in $ac_files
19799 +do
19800 + case $ac_file in
19801 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
19802 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
19803 + esac
19804 +done
19805 +rm -f $ac_rmfiles
19806 +
19807 +if { (ac_try="$ac_link_default"
19808 +case "(($ac_try" in
19809 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 + *) ac_try_echo=$ac_try;;
19811 +esac
19812 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19813 +$as_echo "$ac_try_echo") >&5
19814 + (eval "$ac_link_default") 2>&5
19815 + ac_status=$?
19816 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 + (exit $ac_status); }; then
19818 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
19819 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
19820 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
19821 +# so that the user can short-circuit this test for compilers unknown to
19822 +# Autoconf.
19823 +for ac_file in $ac_files ''
19824 +do
19825 + test -f "$ac_file" || continue
19826 + case $ac_file in
19827 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
19828 + ;;
19829 + [ab].out )
19830 + # We found the default executable, but exeext='' is most
19831 + # certainly right.
19832 + break;;
19833 + *.* )
19834 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
19835 + then :; else
19836 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
19837 + fi
19838 + # We set ac_cv_exeext here because the later test for it is not
19839 + # safe: cross compilers may not add the suffix if given an `-o'
19840 + # argument, so we may need to know it at that point already.
19841 + # Even if this section looks crufty: it has the advantage of
19842 + # actually working.
19843 + break;;
19844 + * )
19845 + break;;
19846 + esac
19847 +done
19848 +test "$ac_cv_exeext" = no && ac_cv_exeext=
19849 +
19850 +else
19851 + ac_file=''
19852 +fi
19853 +
19854 +{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
19855 +$as_echo "$ac_file" >&6; }
19856 +if test -z "$ac_file"; then
19857 + $as_echo "$as_me: failed program was:" >&5
19858 +sed 's/^/| /' conftest.$ac_ext >&5
19859 +
19860 +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19861 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19862 +{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
19863 +See \`config.log' for more details." >&5
19864 +$as_echo "$as_me: error: C compiler cannot create executables
19865 +See \`config.log' for more details." >&2;}
19866 + { (exit 77); exit 77; }; }; }
19867 +fi
19868 +
19869 +ac_exeext=$ac_cv_exeext
19870 +
19871 +# Check that the compiler produces executables we can run. If not, either
19872 +# the compiler is broken, or we cross compile.
19873 +{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
19874 +$as_echo_n "checking whether the C compiler works... " >&6; }
19875 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
19876 +# If not cross compiling, check that we can run a simple program.
19877 +if test "$cross_compiling" != yes; then
19878 + if { ac_try='./$ac_file'
19879 + { (case "(($ac_try" in
19880 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881 + *) ac_try_echo=$ac_try;;
19882 +esac
19883 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19884 +$as_echo "$ac_try_echo") >&5
19885 + (eval "$ac_try") 2>&5
19886 + ac_status=$?
19887 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 + (exit $ac_status); }; }; then
19889 + cross_compiling=no
19890 + else
19891 + if test "$cross_compiling" = maybe; then
19892 + cross_compiling=yes
19893 + else
19894 + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19895 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19896 +{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
19897 +If you meant to cross compile, use \`--host'.
19898 +See \`config.log' for more details." >&5
19899 +$as_echo "$as_me: error: cannot run C compiled programs.
19900 +If you meant to cross compile, use \`--host'.
19901 +See \`config.log' for more details." >&2;}
19902 + { (exit 1); exit 1; }; }; }
19903 + fi
19904 + fi
19905 +fi
19906 +{ $as_echo "$as_me:$LINENO: result: yes" >&5
19907 +$as_echo "yes" >&6; }
19908 +
19909 +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
19910 +ac_clean_files=$ac_clean_files_save
19911 +# Check that the compiler produces executables we can run. If not, either
19912 +# the compiler is broken, or we cross compile.
19913 +{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
19914 +$as_echo_n "checking whether we are cross compiling... " >&6; }
19915 +{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
19916 +$as_echo "$cross_compiling" >&6; }
19917 +
19918 +{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
19919 +$as_echo_n "checking for suffix of executables... " >&6; }
19920 +if { (ac_try="$ac_link"
19921 +case "(($ac_try" in
19922 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923 + *) ac_try_echo=$ac_try;;
19924 +esac
19925 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19926 +$as_echo "$ac_try_echo") >&5
19927 + (eval "$ac_link") 2>&5
19928 + ac_status=$?
19929 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 + (exit $ac_status); }; then
19931 + # If both `conftest.exe' and `conftest' are `present' (well, observable)
19932 +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
19933 +# work properly (i.e., refer to `conftest.exe'), while it won't with
19934 +# `rm'.
19935 +for ac_file in conftest.exe conftest conftest.*; do
19936 + test -f "$ac_file" || continue
19937 + case $ac_file in
19938 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
19939 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
19940 + break;;
19941 + * ) break;;
19942 + esac
19943 +done
19944 +else
19945 + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19946 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19947 +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
19948 +See \`config.log' for more details." >&5
19949 +$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
19950 +See \`config.log' for more details." >&2;}
19951 + { (exit 1); exit 1; }; }; }
19952 +fi
19953 +
19954 +rm -f conftest$ac_cv_exeext
19955 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
19956 +$as_echo "$ac_cv_exeext" >&6; }
19957 +
19958 +rm -f conftest.$ac_ext
19959 +EXEEXT=$ac_cv_exeext
19960 +ac_exeext=$EXEEXT
19961 +{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
19962 +$as_echo_n "checking for suffix of object files... " >&6; }
19963 +if test "${ac_cv_objext+set}" = set; then
19964 + $as_echo_n "(cached) " >&6
19965 +else
19966 + cat >conftest.$ac_ext <<_ACEOF
19967 +/* confdefs.h. */
19968 +_ACEOF
19969 +cat confdefs.h >>conftest.$ac_ext
19970 +cat >>conftest.$ac_ext <<_ACEOF
19971 +/* end confdefs.h. */
19972 +
19973 +int
19974 +main ()
19975 +{
19976 +
19977 + ;
19978 + return 0;
19979 +}
19980 +_ACEOF
19981 +rm -f conftest.o conftest.obj
19982 +if { (ac_try="$ac_compile"
19983 +case "(($ac_try" in
19984 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985 + *) ac_try_echo=$ac_try;;
19986 +esac
19987 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19988 +$as_echo "$ac_try_echo") >&5
19989 + (eval "$ac_compile") 2>&5
19990 + ac_status=$?
19991 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 + (exit $ac_status); }; then
19993 + for ac_file in conftest.o conftest.obj conftest.*; do
19994 + test -f "$ac_file" || continue;
19995 + case $ac_file in
19996 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
19997 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
19998 + break;;
19999 + esac
20000 +done
20001 +else
20002 + $as_echo "$as_me: failed program was:" >&5
20003 +sed 's/^/| /' conftest.$ac_ext >&5
20004 +
20005 +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20006 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20007 +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
20008 +See \`config.log' for more details." >&5
20009 +$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
20010 +See \`config.log' for more details." >&2;}
20011 + { (exit 1); exit 1; }; }; }
20012 +fi
20013 +
20014 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
20015 +fi
20016 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
20017 +$as_echo "$ac_cv_objext" >&6; }
20018 +OBJEXT=$ac_cv_objext
20019 +ac_objext=$OBJEXT
20020 +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20021 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20022 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
20023 + $as_echo_n "(cached) " >&6
20024 +else
20025 + cat >conftest.$ac_ext <<_ACEOF
20026 +/* confdefs.h. */
20027 +_ACEOF
20028 +cat confdefs.h >>conftest.$ac_ext
20029 +cat >>conftest.$ac_ext <<_ACEOF
20030 +/* end confdefs.h. */
20031 +
20032 +int
20033 +main ()
20034 +{
20035 +#ifndef __GNUC__
20036 + choke me
20037 +#endif
20038 +
20039 + ;
20040 + return 0;
20041 +}
20042 +_ACEOF
20043 +rm -f conftest.$ac_objext
20044 +if { (ac_try="$ac_compile"
20045 +case "(($ac_try" in
20046 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20047 + *) ac_try_echo=$ac_try;;
20048 +esac
20049 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20050 +$as_echo "$ac_try_echo") >&5
20051 + (eval "$ac_compile") 2>conftest.er1
20052 + ac_status=$?
20053 + grep -v '^ *+' conftest.er1 >conftest.err
20054 + rm -f conftest.er1
20055 + cat conftest.err >&5
20056 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 + (exit $ac_status); } && {
20058 + test -z "$ac_c_werror_flag" ||
20059 + test ! -s conftest.err
20060 + } && test -s conftest.$ac_objext; then
20061 + ac_compiler_gnu=yes
20062 +else
20063 + $as_echo "$as_me: failed program was:" >&5
20064 +sed 's/^/| /' conftest.$ac_ext >&5
20065 +
20066 + ac_compiler_gnu=no
20067 +fi
20068 +
20069 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20070 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
20071 +
20072 +fi
20073 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20074 +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
20075 +if test $ac_compiler_gnu = yes; then
20076 + GCC=yes
20077 +else
20078 + GCC=
20079 +fi
20080 +ac_test_CFLAGS=${CFLAGS+set}
20081 +ac_save_CFLAGS=$CFLAGS
20082 +{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20083 +$as_echo_n "checking whether $CC accepts -g... " >&6; }
20084 +if test "${ac_cv_prog_cc_g+set}" = set; then
20085 + $as_echo_n "(cached) " >&6
20086 +else
20087 + ac_save_c_werror_flag=$ac_c_werror_flag
20088 + ac_c_werror_flag=yes
20089 + ac_cv_prog_cc_g=no
20090 + CFLAGS="-g"
20091 + cat >conftest.$ac_ext <<_ACEOF
20092 +/* confdefs.h. */
20093 +_ACEOF
20094 +cat confdefs.h >>conftest.$ac_ext
20095 +cat >>conftest.$ac_ext <<_ACEOF
20096 +/* end confdefs.h. */
20097 +
20098 +int
20099 +main ()
20100 +{
20101 +
20102 + ;
20103 + return 0;
20104 +}
20105 +_ACEOF
20106 +rm -f conftest.$ac_objext
20107 +if { (ac_try="$ac_compile"
20108 +case "(($ac_try" in
20109 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110 + *) ac_try_echo=$ac_try;;
20111 +esac
20112 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20113 +$as_echo "$ac_try_echo") >&5
20114 + (eval "$ac_compile") 2>conftest.er1
20115 + ac_status=$?
20116 + grep -v '^ *+' conftest.er1 >conftest.err
20117 + rm -f conftest.er1
20118 + cat conftest.err >&5
20119 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 + (exit $ac_status); } && {
20121 + test -z "$ac_c_werror_flag" ||
20122 + test ! -s conftest.err
20123 + } && test -s conftest.$ac_objext; then
20124 + ac_cv_prog_cc_g=yes
20125 +else
20126 + $as_echo "$as_me: failed program was:" >&5
20127 +sed 's/^/| /' conftest.$ac_ext >&5
20128 +
20129 + CFLAGS=""
20130 + cat >conftest.$ac_ext <<_ACEOF
20131 +/* confdefs.h. */
20132 +_ACEOF
20133 +cat confdefs.h >>conftest.$ac_ext
20134 +cat >>conftest.$ac_ext <<_ACEOF
20135 +/* end confdefs.h. */
20136 +
20137 +int
20138 +main ()
20139 +{
20140 +
20141 + ;
20142 + return 0;
20143 +}
20144 +_ACEOF
20145 +rm -f conftest.$ac_objext
20146 +if { (ac_try="$ac_compile"
20147 +case "(($ac_try" in
20148 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149 + *) ac_try_echo=$ac_try;;
20150 +esac
20151 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20152 +$as_echo "$ac_try_echo") >&5
20153 + (eval "$ac_compile") 2>conftest.er1
20154 + ac_status=$?
20155 + grep -v '^ *+' conftest.er1 >conftest.err
20156 + rm -f conftest.er1
20157 + cat conftest.err >&5
20158 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 + (exit $ac_status); } && {
20160 + test -z "$ac_c_werror_flag" ||
20161 + test ! -s conftest.err
20162 + } && test -s conftest.$ac_objext; then
20163 + :
20164 +else
20165 + $as_echo "$as_me: failed program was:" >&5
20166 +sed 's/^/| /' conftest.$ac_ext >&5
20167 +
20168 + ac_c_werror_flag=$ac_save_c_werror_flag
20169 + CFLAGS="-g"
20170 + cat >conftest.$ac_ext <<_ACEOF
20171 +/* confdefs.h. */
20172 +_ACEOF
20173 +cat confdefs.h >>conftest.$ac_ext
20174 +cat >>conftest.$ac_ext <<_ACEOF
20175 +/* end confdefs.h. */
20176 +
20177 +int
20178 +main ()
20179 +{
20180 +
20181 + ;
20182 + return 0;
20183 +}
20184 +_ACEOF
20185 +rm -f conftest.$ac_objext
20186 +if { (ac_try="$ac_compile"
20187 +case "(($ac_try" in
20188 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 + *) ac_try_echo=$ac_try;;
20190 +esac
20191 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20192 +$as_echo "$ac_try_echo") >&5
20193 + (eval "$ac_compile") 2>conftest.er1
20194 + ac_status=$?
20195 + grep -v '^ *+' conftest.er1 >conftest.err
20196 + rm -f conftest.er1
20197 + cat conftest.err >&5
20198 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 + (exit $ac_status); } && {
20200 + test -z "$ac_c_werror_flag" ||
20201 + test ! -s conftest.err
20202 + } && test -s conftest.$ac_objext; then
20203 + ac_cv_prog_cc_g=yes
20204 +else
20205 + $as_echo "$as_me: failed program was:" >&5
20206 +sed 's/^/| /' conftest.$ac_ext >&5
20207 +
20208 +
20209 +fi
20210 +
20211 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20212 +fi
20213 +
20214 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20215 +fi
20216 +
20217 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20218 + ac_c_werror_flag=$ac_save_c_werror_flag
20219 +fi
20220 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20221 +$as_echo "$ac_cv_prog_cc_g" >&6; }
20222 +if test "$ac_test_CFLAGS" = set; then
20223 + CFLAGS=$ac_save_CFLAGS
20224 +elif test $ac_cv_prog_cc_g = yes; then
20225 + if test "$GCC" = yes; then
20226 + CFLAGS="-g -O2"
20227 + else
20228 + CFLAGS="-g"
20229 + fi
20230 +else
20231 + if test "$GCC" = yes; then
20232 + CFLAGS="-O2"
20233 + else
20234 + CFLAGS=
20235 + fi
20236 +fi
20237 +{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20238 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20239 +if test "${ac_cv_prog_cc_c89+set}" = set; then
20240 + $as_echo_n "(cached) " >&6
20241 +else
20242 + ac_cv_prog_cc_c89=no
20243 +ac_save_CC=$CC
20244 +cat >conftest.$ac_ext <<_ACEOF
20245 +/* confdefs.h. */
20246 +_ACEOF
20247 +cat confdefs.h >>conftest.$ac_ext
20248 +cat >>conftest.$ac_ext <<_ACEOF
20249 +/* end confdefs.h. */
20250 +#include <stdarg.h>
20251 +#include <stdio.h>
20252 +#include <sys/types.h>
20253 +#include <sys/stat.h>
20254 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20255 +struct buf { int x; };
20256 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
20257 +static char *e (p, i)
20258 + char **p;
20259 + int i;
20260 +{
20261 + return p[i];
20262 +}
20263 +static char *f (char * (*g) (char **, int), char **p, ...)
20264 +{
20265 + char *s;
20266 + va_list v;
20267 + va_start (v,p);
20268 + s = g (p, va_arg (v,int));
20269 + va_end (v);
20270 + return s;
20271 +}
20272 +
20273 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20274 + function prototypes and stuff, but not '\xHH' hex character constants.
20275 + These don't provoke an error unfortunately, instead are silently treated
20276 + as 'x'. The following induces an error, until -std is added to get
20277 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20278 + array size at least. It's necessary to write '\x00'==0 to get something
20279 + that's true only with -std. */
20280 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20281 +
20282 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20283 + inside strings and character constants. */
20284 +#define FOO(x) 'x'
20285 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20286 +
20287 +int test (int i, double x);
20288 +struct s1 {int (*f) (int a);};
20289 +struct s2 {int (*f) (double a);};
20290 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20291 +int argc;
20292 +char **argv;
20293 +int
20294 +main ()
20295 +{
20296 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20297 + ;
20298 + return 0;
20299 +}
20300 +_ACEOF
20301 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20302 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20303 +do
20304 + CC="$ac_save_CC $ac_arg"
20305 + rm -f conftest.$ac_objext
20306 +if { (ac_try="$ac_compile"
20307 +case "(($ac_try" in
20308 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 + *) ac_try_echo=$ac_try;;
20310 +esac
20311 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20312 +$as_echo "$ac_try_echo") >&5
20313 + (eval "$ac_compile") 2>conftest.er1
20314 + ac_status=$?
20315 + grep -v '^ *+' conftest.er1 >conftest.err
20316 + rm -f conftest.er1
20317 + cat conftest.err >&5
20318 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 + (exit $ac_status); } && {
20320 + test -z "$ac_c_werror_flag" ||
20321 + test ! -s conftest.err
20322 + } && test -s conftest.$ac_objext; then
20323 + ac_cv_prog_cc_c89=$ac_arg
20324 +else
20325 + $as_echo "$as_me: failed program was:" >&5
20326 +sed 's/^/| /' conftest.$ac_ext >&5
20327 +
20328 +
20329 +fi
20330 +
20331 +rm -f core conftest.err conftest.$ac_objext
20332 + test "x$ac_cv_prog_cc_c89" != "xno" && break
20333 +done
20334 +rm -f conftest.$ac_ext
20335 +CC=$ac_save_CC
20336 +
20337 +fi
20338 +# AC_CACHE_VAL
20339 +case "x$ac_cv_prog_cc_c89" in
20340 + x)
20341 + { $as_echo "$as_me:$LINENO: result: none needed" >&5
20342 +$as_echo "none needed" >&6; } ;;
20343 + xno)
20344 + { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20345 +$as_echo "unsupported" >&6; } ;;
20346 + *)
20347 + CC="$CC $ac_cv_prog_cc_c89"
20348 + { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20349 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20350 +esac
20351 +
20352 +
20353 +ac_ext=c
20354 +ac_cpp='$CPP $CPPFLAGS'
20355 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20356 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20357 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
20358 +
20359 +depcc="$CC" am_compiler_list=
20360 +
20361 +{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20362 +$as_echo_n "checking dependency style of $depcc... " >&6; }
20363 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20364 + $as_echo_n "(cached) " >&6
20365 +else
20366 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20367 + # We make a subdir and do the tests there. Otherwise we can end up
20368 + # making bogus files that we don't know about and never remove. For
20369 + # instance it was reported that on HP-UX the gcc test will end up
20370 + # making a dummy file named `D' -- because `-MD' means `put the output
20371 + # in D'.
20372 + mkdir conftest.dir
20373 + # Copy depcomp to subdir because otherwise we won't find it if we're
20374 + # using a relative directory.
20375 + cp "$am_depcomp" conftest.dir
20376 + cd conftest.dir
20377 + # We will build objects and dependencies in a subdirectory because
20378 + # it helps to detect inapplicable dependency modes. For instance
20379 + # both Tru64's cc and ICC support -MD to output dependencies as a
20380 + # side effect of compilation, but ICC will put the dependencies in
20381 + # the current directory while Tru64 will put them in the object
20382 + # directory.
20383 + mkdir sub
20384 +
20385 + am_cv_CC_dependencies_compiler_type=none
20386 + if test "$am_compiler_list" = ""; then
20387 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20388 + fi
20389 + am__universal=false
20390 + case " $depcc " in #(
20391 + *\ -arch\ *\ -arch\ *) am__universal=true ;;
20392 + esac
20393 +
20394 + for depmode in $am_compiler_list; do
20395 + # Setup a source with many dependencies, because some compilers
20396 + # like to wrap large dependency lists on column 80 (with \), and
20397 + # we should not choose a depcomp mode which is confused by this.
20398 + #
20399 + # We need to recreate these files for each test, as the compiler may
20400 + # overwrite some of them when testing with obscure command lines.
20401 + # This happens at least with the AIX C compiler.
20402 + : > sub/conftest.c
20403 + for i in 1 2 3 4 5 6; do
20404 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
20405 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20406 + # Solaris 8's {/usr,}/bin/sh.
20407 + touch sub/conftst$i.h
20408 + done
20409 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20410 +
20411 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
20412 + # mode. It turns out that the SunPro C++ compiler does not properly
20413 + # handle `-M -o', and we need to detect this. Also, some Intel
20414 + # versions had trouble with output in subdirs
20415 + am__obj=sub/conftest.${OBJEXT-o}
20416 + am__minus_obj="-o $am__obj"
20417 + case $depmode in
20418 + gcc)
20419 + # This depmode causes a compiler race in universal mode.
20420 + test "$am__universal" = false || continue
20421 + ;;
20422 + nosideeffect)
20423 + # after this tag, mechanisms are not by side-effect, so they'll
20424 + # only be used when explicitly requested
20425 + if test "x$enable_dependency_tracking" = xyes; then
20426 + continue
20427 + else
20428 + break
20429 + fi
20430 + ;;
20431 + msvisualcpp | msvcmsys)
20432 + # This compiler won't grok `-c -o', but also, the minuso test has
20433 + # not run yet. These depmodes are late enough in the game, and
20434 + # so weak that their functioning should not be impacted.
20435 + am__obj=conftest.${OBJEXT-o}
20436 + am__minus_obj=
20437 + ;;
20438 + none) break ;;
20439 + esac
20440 + if depmode=$depmode \
20441 + source=sub/conftest.c object=$am__obj \
20442 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20443 + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
20444 + >/dev/null 2>conftest.err &&
20445 + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20446 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20447 + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
20448 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20449 + # icc doesn't choke on unknown options, it will just issue warnings
20450 + # or remarks (even with -Werror). So we grep stderr for any message
20451 + # that says an option was ignored or not supported.
20452 + # When given -MP, icc 7.0 and 7.1 complain thusly:
20453 + # icc: Command line warning: ignoring option '-M'; no argument required
20454 + # The diagnosis changed in icc 8.0:
20455 + # icc: Command line remark: option '-MP' not supported
20456 + if (grep 'ignoring option' conftest.err ||
20457 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20458 + am_cv_CC_dependencies_compiler_type=$depmode
20459 + break
20460 + fi
20461 + fi
20462 + done
20463 +
20464 + cd ..
20465 + rm -rf conftest.dir
20466 +else
20467 + am_cv_CC_dependencies_compiler_type=none
20468 +fi
20469 +
20470 +fi
20471 +{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20472 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20473 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20474 +
20475 + if
20476 + test "x$enable_dependency_tracking" != xno \
20477 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20478 + am__fastdepCC_TRUE=
20479 + am__fastdepCC_FALSE='#'
20480 +else
20481 + am__fastdepCC_TRUE='#'
20482 + am__fastdepCC_FALSE=
20483 +fi
20484 +
20485 +
20486 +{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
20487 +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
20488 +if test "${ac_cv_path_SED+set}" = set; then
20489 + $as_echo_n "(cached) " >&6
20490 +else
20491 + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
20492 + for ac_i in 1 2 3 4 5 6 7; do
20493 + ac_script="$ac_script$as_nl$ac_script"
20494 + done
20495 + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
20496 + $as_unset ac_script || ac_script=
20497 + if test -z "$SED"; then
20498 + ac_path_SED_found=false
20499 + # Loop through the user's path and test for each of PROGNAME-LIST
20500 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20501 +for as_dir in $PATH
20502 +do
20503 + IFS=$as_save_IFS
20504 + test -z "$as_dir" && as_dir=.
20505 + for ac_prog in sed gsed; do
20506 + for ac_exec_ext in '' $ac_executable_extensions; do
20507 + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
20508 + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
20509 +# Check for GNU ac_path_SED and select it if it is found.
20510 + # Check for GNU $ac_path_SED
20511 +case `"$ac_path_SED" --version 2>&1` in
20512 +*GNU*)
20513 + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
20514 +*)
20515 + ac_count=0
20516 + $as_echo_n 0123456789 >"conftest.in"
20517 + while :
20518 + do
20519 + cat "conftest.in" "conftest.in" >"conftest.tmp"
20520 + mv "conftest.tmp" "conftest.in"
20521 + cp "conftest.in" "conftest.nl"
20522 + $as_echo '' >> "conftest.nl"
20523 + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
20524 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
20525 + ac_count=`expr $ac_count + 1`
20526 + if test $ac_count -gt ${ac_path_SED_max-0}; then
20527 + # Best one so far, save it but keep looking for a better one
20528 + ac_cv_path_SED="$ac_path_SED"
20529 + ac_path_SED_max=$ac_count
20530 + fi
20531 + # 10*(2^10) chars as input seems more than enough
20532 + test $ac_count -gt 10 && break
20533 + done
20534 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
20535 +esac
20536 +
20537 + $ac_path_SED_found && break 3
20538 + done
20539 + done
20540 +done
20541 +IFS=$as_save_IFS
20542 + if test -z "$ac_cv_path_SED"; then
20543 + { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
20544 +$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
20545 + { (exit 1); exit 1; }; }
20546 + fi
20547 +else
20548 + ac_cv_path_SED=$SED
20549 +fi
20550 +
20551 +fi
20552 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
20553 +$as_echo "$ac_cv_path_SED" >&6; }
20554 + SED="$ac_cv_path_SED"
20555 + rm -f conftest.sed
20556 +
20557 +test -z "$SED" && SED=sed
20558 +Xsed="$SED -e 1s/^X//"
20559 +
20560 +
20561 +
20562 +
20563 +
20564 +
20565 +
20566 +
20567 +
20568 +
20569 +
20570 +{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
20571 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
20572 +if test "${ac_cv_path_GREP+set}" = set; then
20573 + $as_echo_n "(cached) " >&6
20574 +else
20575 + if test -z "$GREP"; then
20576 + ac_path_GREP_found=false
20577 + # Loop through the user's path and test for each of PROGNAME-LIST
20578 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20579 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
20580 +do
20581 + IFS=$as_save_IFS
20582 + test -z "$as_dir" && as_dir=.
20583 + for ac_prog in grep ggrep; do
20584 + for ac_exec_ext in '' $ac_executable_extensions; do
20585 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
20586 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
20587 +# Check for GNU ac_path_GREP and select it if it is found.
20588 + # Check for GNU $ac_path_GREP
20589 +case `"$ac_path_GREP" --version 2>&1` in
20590 +*GNU*)
20591 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
20592 +*)
20593 + ac_count=0
20594 + $as_echo_n 0123456789 >"conftest.in"
20595 + while :
20596 + do
20597 + cat "conftest.in" "conftest.in" >"conftest.tmp"
20598 + mv "conftest.tmp" "conftest.in"
20599 + cp "conftest.in" "conftest.nl"
20600 + $as_echo 'GREP' >> "conftest.nl"
20601 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
20602 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
20603 + ac_count=`expr $ac_count + 1`
20604 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
20605 + # Best one so far, save it but keep looking for a better one
20606 + ac_cv_path_GREP="$ac_path_GREP"
20607 + ac_path_GREP_max=$ac_count
20608 + fi
20609 + # 10*(2^10) chars as input seems more than enough
20610 + test $ac_count -gt 10 && break
20611 + done
20612 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
20613 +esac
20614 +
20615 + $ac_path_GREP_found && break 3
20616 + done
20617 + done
20618 +done
20619 +IFS=$as_save_IFS
20620 + if test -z "$ac_cv_path_GREP"; then
20621 + { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
20622 +$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
20623 + { (exit 1); exit 1; }; }
20624 + fi
20625 +else
20626 + ac_cv_path_GREP=$GREP
20627 +fi
20628 +
20629 +fi
20630 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
20631 +$as_echo "$ac_cv_path_GREP" >&6; }
20632 + GREP="$ac_cv_path_GREP"
20633 +
20634 +
20635 +{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
20636 +$as_echo_n "checking for egrep... " >&6; }
20637 +if test "${ac_cv_path_EGREP+set}" = set; then
20638 + $as_echo_n "(cached) " >&6
20639 +else
20640 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
20641 + then ac_cv_path_EGREP="$GREP -E"
20642 + else
20643 + if test -z "$EGREP"; then
20644 + ac_path_EGREP_found=false
20645 + # Loop through the user's path and test for each of PROGNAME-LIST
20646 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20647 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
20648 +do
20649 + IFS=$as_save_IFS
20650 + test -z "$as_dir" && as_dir=.
20651 + for ac_prog in egrep; do
20652 + for ac_exec_ext in '' $ac_executable_extensions; do
20653 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
20654 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
20655 +# Check for GNU ac_path_EGREP and select it if it is found.
20656 + # Check for GNU $ac_path_EGREP
20657 +case `"$ac_path_EGREP" --version 2>&1` in
20658 +*GNU*)
20659 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
20660 +*)
20661 + ac_count=0
20662 + $as_echo_n 0123456789 >"conftest.in"
20663 + while :
20664 + do
20665 + cat "conftest.in" "conftest.in" >"conftest.tmp"
20666 + mv "conftest.tmp" "conftest.in"
20667 + cp "conftest.in" "conftest.nl"
20668 + $as_echo 'EGREP' >> "conftest.nl"
20669 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
20670 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
20671 + ac_count=`expr $ac_count + 1`
20672 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
20673 + # Best one so far, save it but keep looking for a better one
20674 + ac_cv_path_EGREP="$ac_path_EGREP"
20675 + ac_path_EGREP_max=$ac_count
20676 + fi
20677 + # 10*(2^10) chars as input seems more than enough
20678 + test $ac_count -gt 10 && break
20679 + done
20680 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
20681 +esac
20682 +
20683 + $ac_path_EGREP_found && break 3
20684 + done
20685 + done
20686 +done
20687 +IFS=$as_save_IFS
20688 + if test -z "$ac_cv_path_EGREP"; then
20689 + { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
20690 +$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
20691 + { (exit 1); exit 1; }; }
20692 + fi
20693 +else
20694 + ac_cv_path_EGREP=$EGREP
20695 +fi
20696 +
20697 + fi
20698 +fi
20699 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
20700 +$as_echo "$ac_cv_path_EGREP" >&6; }
20701 + EGREP="$ac_cv_path_EGREP"
20702 +
20703 +
20704 +{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
20705 +$as_echo_n "checking for fgrep... " >&6; }
20706 +if test "${ac_cv_path_FGREP+set}" = set; then
20707 + $as_echo_n "(cached) " >&6
20708 +else
20709 + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
20710 + then ac_cv_path_FGREP="$GREP -F"
20711 + else
20712 + if test -z "$FGREP"; then
20713 + ac_path_FGREP_found=false
20714 + # Loop through the user's path and test for each of PROGNAME-LIST
20715 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20716 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
20717 +do
20718 + IFS=$as_save_IFS
20719 + test -z "$as_dir" && as_dir=.
20720 + for ac_prog in fgrep; do
20721 + for ac_exec_ext in '' $ac_executable_extensions; do
20722 + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
20723 + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
20724 +# Check for GNU ac_path_FGREP and select it if it is found.
20725 + # Check for GNU $ac_path_FGREP
20726 +case `"$ac_path_FGREP" --version 2>&1` in
20727 +*GNU*)
20728 + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
20729 +*)
20730 + ac_count=0
20731 + $as_echo_n 0123456789 >"conftest.in"
20732 + while :
20733 + do
20734 + cat "conftest.in" "conftest.in" >"conftest.tmp"
20735 + mv "conftest.tmp" "conftest.in"
20736 + cp "conftest.in" "conftest.nl"
20737 + $as_echo 'FGREP' >> "conftest.nl"
20738 + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
20739 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
20740 + ac_count=`expr $ac_count + 1`
20741 + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
20742 + # Best one so far, save it but keep looking for a better one
20743 + ac_cv_path_FGREP="$ac_path_FGREP"
20744 + ac_path_FGREP_max=$ac_count
20745 + fi
20746 + # 10*(2^10) chars as input seems more than enough
20747 + test $ac_count -gt 10 && break
20748 + done
20749 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
20750 +esac
20751 +
20752 + $ac_path_FGREP_found && break 3
20753 + done
20754 + done
20755 +done
20756 +IFS=$as_save_IFS
20757 + if test -z "$ac_cv_path_FGREP"; then
20758 + { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
20759 +$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
20760 + { (exit 1); exit 1; }; }
20761 + fi
20762 +else
20763 + ac_cv_path_FGREP=$FGREP
20764 +fi
20765 +
20766 + fi
20767 +fi
20768 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
20769 +$as_echo "$ac_cv_path_FGREP" >&6; }
20770 + FGREP="$ac_cv_path_FGREP"
20771 +
20772 +
20773 +test -z "$GREP" && GREP=grep
20774 +
20775 +
20776 +
20777 +
20778 +
20779 +
20780 +
20781 +
20782 +
20783 +
20784 +
20785 +
20786 +
20787 +
20788 +
20789 +
20790 +
20791 +
20792 +
20793 +# Check whether --with-gnu-ld was given.
20794 +if test "${with_gnu_ld+set}" = set; then
20795 + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20796 +else
20797 + with_gnu_ld=no
20798 +fi
20799 +
20800 +ac_prog=ld
20801 +if test "$GCC" = yes; then
20802 + # Check if gcc -print-prog-name=ld gives a path.
20803 + { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
20804 +$as_echo_n "checking for ld used by $CC... " >&6; }
20805 + case $host in
20806 + *-*-mingw*)
20807 + # gcc leaves a trailing carriage return which upsets mingw
20808 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20809 + *)
20810 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20811 + esac
20812 + case $ac_prog in
20813 + # Accept absolute paths.
20814 + [\\/]* | ?:[\\/]*)
20815 + re_direlt='/[^/][^/]*/\.\./'
20816 + # Canonicalize the pathname of ld
20817 + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20818 + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20819 + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20820 + done
20821 + test -z "$LD" && LD="$ac_prog"
20822 + ;;
20823 + "")
20824 + # If it fails, then pretend we aren't using GCC.
20825 + ac_prog=ld
20826 + ;;
20827 + *)
20828 + # If it is relative, then search for the first ld in PATH.
20829 + with_gnu_ld=unknown
20830 + ;;
20831 + esac
20832 +elif test "$with_gnu_ld" = yes; then
20833 + { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
20834 +$as_echo_n "checking for GNU ld... " >&6; }
20835 +else
20836 + { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20837 +$as_echo_n "checking for non-GNU ld... " >&6; }
20838 +fi
20839 +if test "${lt_cv_path_LD+set}" = set; then
20840 + $as_echo_n "(cached) " >&6
20841 +else
20842 + if test -z "$LD"; then
20843 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20844 + for ac_dir in $PATH; do
20845 + IFS="$lt_save_ifs"
20846 + test -z "$ac_dir" && ac_dir=.
20847 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20848 + lt_cv_path_LD="$ac_dir/$ac_prog"
20849 + # Check to see if the program is GNU ld. I'd rather use --version,
20850 + # but apparently some variants of GNU ld only accept -v.
20851 + # Break only if it was the GNU/non-GNU ld that we prefer.
20852 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20853 + *GNU* | *'with BFD'*)
20854 + test "$with_gnu_ld" != no && break
20855 + ;;
20856 + *)
20857 + test "$with_gnu_ld" != yes && break
20858 + ;;
20859 + esac
20860 + fi
20861 + done
20862 + IFS="$lt_save_ifs"
20863 +else
20864 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
20865 +fi
20866 +fi
20867 +
20868 +LD="$lt_cv_path_LD"
20869 +if test -n "$LD"; then
20870 + { $as_echo "$as_me:$LINENO: result: $LD" >&5
20871 +$as_echo "$LD" >&6; }
20872 +else
20873 + { $as_echo "$as_me:$LINENO: result: no" >&5
20874 +$as_echo "no" >&6; }
20875 +fi
20876 +test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20877 +$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20878 + { (exit 1); exit 1; }; }
20879 +{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20880 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20881 +if test "${lt_cv_prog_gnu_ld+set}" = set; then
20882 + $as_echo_n "(cached) " >&6
20883 +else
20884 + # I'd rather use --version here, but apparently some GNU lds only accept -v.
20885 +case `$LD -v 2>&1 </dev/null` in
20886 +*GNU* | *'with BFD'*)
20887 + lt_cv_prog_gnu_ld=yes
20888 + ;;
20889 +*)
20890 + lt_cv_prog_gnu_ld=no
20891 + ;;
20892 +esac
20893 +fi
20894 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
20895 +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
20896 +with_gnu_ld=$lt_cv_prog_gnu_ld
20897 +
20898 +
20899 +
20900 +
20901 +
20902 +
20903 +
20904 +
20905 +
20906 +{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
20907 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
20908 +if test "${lt_cv_path_NM+set}" = set; then
20909 + $as_echo_n "(cached) " >&6
20910 +else
20911 + if test -n "$NM"; then
20912 + # Let the user override the test.
20913 + lt_cv_path_NM="$NM"
20914 +else
20915 + lt_nm_to_check="${ac_tool_prefix}nm"
20916 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
20917 + lt_nm_to_check="$lt_nm_to_check nm"
20918 + fi
20919 + for lt_tmp_nm in $lt_nm_to_check; do
20920 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20921 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
20922 + IFS="$lt_save_ifs"
20923 + test -z "$ac_dir" && ac_dir=.
20924 + tmp_nm="$ac_dir/$lt_tmp_nm"
20925 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
20926 + # Check to see if the nm accepts a BSD-compat flag.
20927 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
20928 + # nm: unknown option "B" ignored
20929 + # Tru64's nm complains that /dev/null is an invalid object file
20930 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
20931 + */dev/null* | *'Invalid file or object type'*)
20932 + lt_cv_path_NM="$tmp_nm -B"
20933 + break
20934 + ;;
20935 + *)
20936 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
20937 + */dev/null*)
20938 + lt_cv_path_NM="$tmp_nm -p"
20939 + break
20940 + ;;
20941 + *)
20942 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
20943 + continue # so that we can try to find one that supports BSD flags
20944 + ;;
20945 + esac
20946 + ;;
20947 + esac
20948 + fi
20949 + done
20950 + IFS="$lt_save_ifs"
20951 + done
20952 + : ${lt_cv_path_NM=no}
20953 +fi
20954 +fi
20955 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
20956 +$as_echo "$lt_cv_path_NM" >&6; }
20957 +if test "$lt_cv_path_NM" != "no"; then
20958 + NM="$lt_cv_path_NM"
20959 +else
20960 + # Didn't find any BSD compatible name lister, look for dumpbin.
20961 + if test -n "$ac_tool_prefix"; then
20962 + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
20963 + do
20964 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20965 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20966 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20967 +$as_echo_n "checking for $ac_word... " >&6; }
20968 +if test "${ac_cv_prog_DUMPBIN+set}" = set; then
20969 + $as_echo_n "(cached) " >&6
20970 +else
20971 + if test -n "$DUMPBIN"; then
20972 + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
20973 +else
20974 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20975 +for as_dir in $PATH
20976 +do
20977 + IFS=$as_save_IFS
20978 + test -z "$as_dir" && as_dir=.
20979 + for ac_exec_ext in '' $ac_executable_extensions; do
20980 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20981 + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
20982 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20983 + break 2
20984 + fi
20985 +done
20986 +done
20987 +IFS=$as_save_IFS
20988 +
20989 +fi
20990 +fi
20991 +DUMPBIN=$ac_cv_prog_DUMPBIN
20992 +if test -n "$DUMPBIN"; then
20993 + { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
20994 +$as_echo "$DUMPBIN" >&6; }
20995 +else
20996 + { $as_echo "$as_me:$LINENO: result: no" >&5
20997 +$as_echo "no" >&6; }
20998 +fi
20999 +
21000 +
21001 + test -n "$DUMPBIN" && break
21002 + done
21003 +fi
21004 +if test -z "$DUMPBIN"; then
21005 + ac_ct_DUMPBIN=$DUMPBIN
21006 + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
21007 +do
21008 + # Extract the first word of "$ac_prog", so it can be a program name with args.
21009 +set dummy $ac_prog; ac_word=$2
21010 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21011 +$as_echo_n "checking for $ac_word... " >&6; }
21012 +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
21013 + $as_echo_n "(cached) " >&6
21014 +else
21015 + if test -n "$ac_ct_DUMPBIN"; then
21016 + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
21017 +else
21018 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21019 +for as_dir in $PATH
21020 +do
21021 + IFS=$as_save_IFS
21022 + test -z "$as_dir" && as_dir=.
21023 + for ac_exec_ext in '' $ac_executable_extensions; do
21024 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21025 + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
21026 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21027 + break 2
21028 + fi
21029 +done
21030 +done
21031 +IFS=$as_save_IFS
21032 +
21033 +fi
21034 +fi
21035 +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
21036 +if test -n "$ac_ct_DUMPBIN"; then
21037 + { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
21038 +$as_echo "$ac_ct_DUMPBIN" >&6; }
21039 +else
21040 + { $as_echo "$as_me:$LINENO: result: no" >&5
21041 +$as_echo "no" >&6; }
21042 +fi
21043 +
21044 +
21045 + test -n "$ac_ct_DUMPBIN" && break
21046 +done
21047 +
21048 + if test "x$ac_ct_DUMPBIN" = x; then
21049 + DUMPBIN=":"
21050 + else
21051 + case $cross_compiling:$ac_tool_warned in
21052 +yes:)
21053 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21054 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21055 +ac_tool_warned=yes ;;
21056 +esac
21057 + DUMPBIN=$ac_ct_DUMPBIN
21058 + fi
21059 +fi
21060 +
21061 +
21062 + if test "$DUMPBIN" != ":"; then
21063 + NM="$DUMPBIN"
21064 + fi
21065 +fi
21066 +test -z "$NM" && NM=nm
21067 +
21068 +
21069 +
21070 +
21071 +
21072 +
21073 +{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
21074 +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
21075 +if test "${lt_cv_nm_interface+set}" = set; then
21076 + $as_echo_n "(cached) " >&6
21077 +else
21078 + lt_cv_nm_interface="BSD nm"
21079 + echo "int some_variable = 0;" > conftest.$ac_ext
21080 + (eval echo "\"\$as_me:4410: $ac_compile\"" >&5)
21081 + (eval "$ac_compile" 2>conftest.err)
21082 + cat conftest.err >&5
21083 + (eval echo "\"\$as_me:4413: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
21084 + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
21085 + cat conftest.err >&5
21086 + (eval echo "\"\$as_me:4416: output\"" >&5)
21087 + cat conftest.out >&5
21088 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
21089 + lt_cv_nm_interface="MS dumpbin"
21090 + fi
21091 + rm -f conftest*
21092 +fi
21093 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
21094 +$as_echo "$lt_cv_nm_interface" >&6; }
21095 +
21096 +{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
21097 +$as_echo_n "checking whether ln -s works... " >&6; }
21098 +LN_S=$as_ln_s
21099 +if test "$LN_S" = "ln -s"; then
21100 + { $as_echo "$as_me:$LINENO: result: yes" >&5
21101 +$as_echo "yes" >&6; }
21102 +else
21103 + { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
21104 +$as_echo "no, using $LN_S" >&6; }
21105 +fi
21106 +
21107 +# find the maximum length of command line arguments
21108 +{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
21109 +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
21110 +if test "${lt_cv_sys_max_cmd_len+set}" = set; then
21111 + $as_echo_n "(cached) " >&6
21112 +else
21113 + i=0
21114 + teststring="ABCD"
21115 +
21116 + case $build_os in
21117 + msdosdjgpp*)
21118 + # On DJGPP, this test can blow up pretty badly due to problems in libc
21119 + # (any single argument exceeding 2000 bytes causes a buffer overrun
21120 + # during glob expansion). Even if it were fixed, the result of this
21121 + # check would be larger than it should be.
21122 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
21123 + ;;
21124 +
21125 + gnu*)
21126 + # Under GNU Hurd, this test is not required because there is
21127 + # no limit to the length of command line arguments.
21128 + # Libtool will interpret -1 as no limit whatsoever
21129 + lt_cv_sys_max_cmd_len=-1;
21130 + ;;
21131 +
21132 + cygwin* | mingw* | cegcc*)
21133 + # On Win9x/ME, this test blows up -- it succeeds, but takes
21134 + # about 5 minutes as the teststring grows exponentially.
21135 + # Worse, since 9x/ME are not pre-emptively multitasking,
21136 + # you end up with a "frozen" computer, even though with patience
21137 + # the test eventually succeeds (with a max line length of 256k).
21138 + # Instead, let's just punt: use the minimum linelength reported by
21139 + # all of the supported platforms: 8192 (on NT/2K/XP).
21140 + lt_cv_sys_max_cmd_len=8192;
21141 + ;;
21142 +
21143 + amigaos*)
21144 + # On AmigaOS with pdksh, this test takes hours, literally.
21145 + # So we just punt and use a minimum line length of 8192.
21146 + lt_cv_sys_max_cmd_len=8192;
21147 + ;;
21148 +
21149 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
21150 + # This has been around since 386BSD, at least. Likely further.
21151 + if test -x /sbin/sysctl; then
21152 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
21153 + elif test -x /usr/sbin/sysctl; then
21154 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
21155 + else
21156 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
21157 + fi
21158 + # And add a safety zone
21159 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
21160 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
21161 + ;;
21162 +
21163 + interix*)
21164 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
21165 + lt_cv_sys_max_cmd_len=196608
21166 + ;;
21167 +
21168 + osf*)
21169 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
21170 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
21171 + # nice to cause kernel panics so lets avoid the loop below.
21172 + # First set a reasonable default.
21173 + lt_cv_sys_max_cmd_len=16384
21174 + #
21175 + if test -x /sbin/sysconfig; then
21176 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
21177 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
21178 + esac
21179 + fi
21180 + ;;
21181 + sco3.2v5*)
21182 + lt_cv_sys_max_cmd_len=102400
21183 + ;;
21184 + sysv5* | sco5v6* | sysv4.2uw2*)
21185 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
21186 + if test -n "$kargmax"; then
21187 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
21188 + else
21189 + lt_cv_sys_max_cmd_len=32768
21190 + fi
21191 + ;;
21192 + *)
21193 + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
21194 + if test -n "$lt_cv_sys_max_cmd_len"; then
21195 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
21196 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
21197 + else
21198 + # Make teststring a little bigger before we do anything with it.
21199 + # a 1K string should be a reasonable start.
21200 + for i in 1 2 3 4 5 6 7 8 ; do
21201 + teststring=$teststring$teststring
21202 + done
21203 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
21204 + # If test is not a shell built-in, we'll probably end up computing a
21205 + # maximum length that is only half of the actual maximum length, but
21206 + # we can't tell.
21207 + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
21208 + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
21209 + test $i != 17 # 1/2 MB should be enough
21210 + do
21211 + i=`expr $i + 1`
21212 + teststring=$teststring$teststring
21213 + done
21214 + # Only check the string length outside the loop.
21215 + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
21216 + teststring=
21217 + # Add a significant safety factor because C++ compilers can tack on
21218 + # massive amounts of additional arguments before passing them to the
21219 + # linker. It appears as though 1/2 is a usable value.
21220 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
21221 + fi
21222 + ;;
21223 + esac
21224 +
21225 +fi
21226 +
21227 +if test -n $lt_cv_sys_max_cmd_len ; then
21228 + { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
21229 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
21230 +else
21231 + { $as_echo "$as_me:$LINENO: result: none" >&5
21232 +$as_echo "none" >&6; }
21233 +fi
21234 +max_cmd_len=$lt_cv_sys_max_cmd_len
21235 +
21236 +
21237 +
21238 +
21239 +
21240 +
21241 +: ${CP="cp -f"}
21242 +: ${MV="mv -f"}
21243 +: ${RM="rm -f"}
21244 +
21245 +{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
21246 +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
21247 +# Try some XSI features
21248 +xsi_shell=no
21249 +( _lt_dummy="a/b/c"
21250 + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
21251 + = c,a/b,, \
21252 + && eval 'test $(( 1 + 1 )) -eq 2 \
21253 + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
21254 + && xsi_shell=yes
21255 +{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
21256 +$as_echo "$xsi_shell" >&6; }
21257 +
21258 +
21259 +{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
21260 +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
21261 +lt_shell_append=no
21262 +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
21263 + >/dev/null 2>&1 \
21264 + && lt_shell_append=yes
21265 +{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
21266 +$as_echo "$lt_shell_append" >&6; }
21267 +
21268 +
21269 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21270 + lt_unset=unset
21271 +else
21272 + lt_unset=false
21273 +fi
21274 +
21275 +
21276 +
21277 +
21278 +
21279 +# test EBCDIC or ASCII
21280 +case `echo X|tr X '\101'` in
21281 + A) # ASCII based system
21282 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
21283 + lt_SP2NL='tr \040 \012'
21284 + lt_NL2SP='tr \015\012 \040\040'
21285 + ;;
21286 + *) # EBCDIC based system
21287 + lt_SP2NL='tr \100 \n'
21288 + lt_NL2SP='tr \r\n \100\100'
21289 + ;;
21290 +esac
21291 +
21292 +
21293 +
21294 +
21295 +
21296 +
21297 +
21298 +
21299 +
21300 +{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
21301 +$as_echo_n "checking for $LD option to reload object files... " >&6; }
21302 +if test "${lt_cv_ld_reload_flag+set}" = set; then
21303 + $as_echo_n "(cached) " >&6
21304 +else
21305 + lt_cv_ld_reload_flag='-r'
21306 +fi
21307 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
21308 +$as_echo "$lt_cv_ld_reload_flag" >&6; }
21309 +reload_flag=$lt_cv_ld_reload_flag
21310 +case $reload_flag in
21311 +"" | " "*) ;;
21312 +*) reload_flag=" $reload_flag" ;;
21313 +esac
21314 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
21315 +case $host_os in
21316 + darwin*)
21317 + if test "$GCC" = yes; then
21318 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
21319 + else
21320 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
21321 + fi
21322 + ;;
21323 +esac
21324 +
21325 +
21326 +
21327 +
21328 +
21329 +
21330 +
21331 +
21332 +
21333 +if test -n "$ac_tool_prefix"; then
21334 + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
21335 +set dummy ${ac_tool_prefix}objdump; ac_word=$2
21336 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21337 +$as_echo_n "checking for $ac_word... " >&6; }
21338 +if test "${ac_cv_prog_OBJDUMP+set}" = set; then
21339 + $as_echo_n "(cached) " >&6
21340 +else
21341 + if test -n "$OBJDUMP"; then
21342 + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
21343 +else
21344 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21345 +for as_dir in $PATH
21346 +do
21347 + IFS=$as_save_IFS
21348 + test -z "$as_dir" && as_dir=.
21349 + for ac_exec_ext in '' $ac_executable_extensions; do
21350 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21351 + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
21352 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21353 + break 2
21354 + fi
21355 +done
21356 +done
21357 +IFS=$as_save_IFS
21358 +
21359 +fi
21360 +fi
21361 +OBJDUMP=$ac_cv_prog_OBJDUMP
21362 +if test -n "$OBJDUMP"; then
21363 + { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
21364 +$as_echo "$OBJDUMP" >&6; }
21365 +else
21366 + { $as_echo "$as_me:$LINENO: result: no" >&5
21367 +$as_echo "no" >&6; }
21368 +fi
21369 +
21370 +
21371 +fi
21372 +if test -z "$ac_cv_prog_OBJDUMP"; then
21373 + ac_ct_OBJDUMP=$OBJDUMP
21374 + # Extract the first word of "objdump", so it can be a program name with args.
21375 +set dummy objdump; ac_word=$2
21376 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21377 +$as_echo_n "checking for $ac_word... " >&6; }
21378 +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
21379 + $as_echo_n "(cached) " >&6
21380 +else
21381 + if test -n "$ac_ct_OBJDUMP"; then
21382 + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
21383 +else
21384 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21385 +for as_dir in $PATH
21386 +do
21387 + IFS=$as_save_IFS
21388 + test -z "$as_dir" && as_dir=.
21389 + for ac_exec_ext in '' $ac_executable_extensions; do
21390 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21391 + ac_cv_prog_ac_ct_OBJDUMP="objdump"
21392 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21393 + break 2
21394 + fi
21395 +done
21396 +done
21397 +IFS=$as_save_IFS
21398 +
21399 +fi
21400 +fi
21401 +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
21402 +if test -n "$ac_ct_OBJDUMP"; then
21403 + { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
21404 +$as_echo "$ac_ct_OBJDUMP" >&6; }
21405 +else
21406 + { $as_echo "$as_me:$LINENO: result: no" >&5
21407 +$as_echo "no" >&6; }
21408 +fi
21409 +
21410 + if test "x$ac_ct_OBJDUMP" = x; then
21411 + OBJDUMP="false"
21412 + else
21413 + case $cross_compiling:$ac_tool_warned in
21414 +yes:)
21415 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21416 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21417 +ac_tool_warned=yes ;;
21418 +esac
21419 + OBJDUMP=$ac_ct_OBJDUMP
21420 + fi
21421 +else
21422 + OBJDUMP="$ac_cv_prog_OBJDUMP"
21423 +fi
21424 +
21425 +test -z "$OBJDUMP" && OBJDUMP=objdump
21426 +
21427 +
21428 +
21429 +
21430 +
21431 +
21432 +{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
21433 +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
21434 +if test "${lt_cv_deplibs_check_method+set}" = set; then
21435 + $as_echo_n "(cached) " >&6
21436 +else
21437 + lt_cv_file_magic_cmd='$MAGIC_CMD'
21438 +lt_cv_file_magic_test_file=
21439 +lt_cv_deplibs_check_method='unknown'
21440 +# Need to set the preceding variable on all platforms that support
21441 +# interlibrary dependencies.
21442 +# 'none' -- dependencies not supported.
21443 +# `unknown' -- same as none, but documents that we really don't know.
21444 +# 'pass_all' -- all dependencies passed with no checks.
21445 +# 'test_compile' -- check by making test program.
21446 +# 'file_magic [[regex]]' -- check by looking for files in library path
21447 +# which responds to the $file_magic_cmd with a given extended regex.
21448 +# If you have `file' or equivalent on your system and you're not sure
21449 +# whether `pass_all' will *always* work, you probably want this one.
21450 +
21451 +case $host_os in
21452 +aix[4-9]*)
21453 + lt_cv_deplibs_check_method=pass_all
21454 + ;;
21455 +
21456 +beos*)
21457 + lt_cv_deplibs_check_method=pass_all
21458 + ;;
21459 +
21460 +bsdi[45]*)
21461 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
21462 + lt_cv_file_magic_cmd='/usr/bin/file -L'
21463 + lt_cv_file_magic_test_file=/shlib/libc.so
21464 + ;;
21465 +
21466 +cygwin*)
21467 + # func_win32_libid is a shell function defined in ltmain.sh
21468 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
21469 + lt_cv_file_magic_cmd='func_win32_libid'
21470 + ;;
21471 +
21472 +mingw* | pw32*)
21473 + # Base MSYS/MinGW do not provide the 'file' command needed by
21474 + # func_win32_libid shell function, so use a weaker test based on 'objdump',
21475 + # unless we find 'file', for example because we are cross-compiling.
21476 + if ( file / ) >/dev/null 2>&1; then
21477 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
21478 + lt_cv_file_magic_cmd='func_win32_libid'
21479 + else
21480 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
21481 + lt_cv_file_magic_cmd='$OBJDUMP -f'
21482 + fi
21483 + ;;
21484 +
21485 +cegcc)
21486 + # use the weaker test based on 'objdump'. See mingw*.
21487 + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
21488 + lt_cv_file_magic_cmd='$OBJDUMP -f'
21489 + ;;
21490 +
21491 +darwin* | rhapsody*)
21492 + lt_cv_deplibs_check_method=pass_all
21493 + ;;
21494 +
21495 +freebsd* | dragonfly*)
21496 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
21497 + case $host_cpu in
21498 + i*86 )
21499 + # Not sure whether the presence of OpenBSD here was a mistake.
21500 + # Let's accept both of them until this is cleared up.
21501 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
21502 + lt_cv_file_magic_cmd=/usr/bin/file
21503 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
21504 + ;;
21505 + esac
21506 + else
21507 + lt_cv_deplibs_check_method=pass_all
21508 + fi
21509 + ;;
21510 +
21511 +gnu*)
21512 + lt_cv_deplibs_check_method=pass_all
21513 + ;;
21514 +
21515 +hpux10.20* | hpux11*)
21516 + lt_cv_file_magic_cmd=/usr/bin/file
21517 + case $host_cpu in
21518 + ia64*)
21519 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
21520 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
21521 + ;;
21522 + hppa*64*)
21523 + 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]'
21524 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
21525 + ;;
21526 + *)
21527 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
21528 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
21529 + ;;
21530 + esac
21531 + ;;
21532 +
21533 +interix[3-9]*)
21534 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
21535 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
21536 + ;;
21537 +
21538 +irix5* | irix6* | nonstopux*)
21539 + case $LD in
21540 + *-32|*"-32 ") libmagic=32-bit;;
21541 + *-n32|*"-n32 ") libmagic=N32;;
21542 + *-64|*"-64 ") libmagic=64-bit;;
21543 + *) libmagic=never-match;;
21544 + esac
21545 + lt_cv_deplibs_check_method=pass_all
21546 + ;;
21547 +
21548 +# This must be Linux ELF.
21549 +linux* | k*bsd*-gnu)
21550 + lt_cv_deplibs_check_method=pass_all
21551 + ;;
21552 +
21553 +netbsd*)
21554 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
21555 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
21556 + else
21557 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
21558 + fi
21559 + ;;
21560 +
21561 +newos6*)
21562 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
21563 + lt_cv_file_magic_cmd=/usr/bin/file
21564 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
21565 + ;;
21566 +
21567 +*nto* | *qnx*)
21568 + lt_cv_deplibs_check_method=pass_all
21569 + ;;
21570 +
21571 +openbsd*)
21572 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21573 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
21574 + else
21575 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
21576 + fi
21577 + ;;
21578 +
21579 +osf3* | osf4* | osf5*)
21580 + lt_cv_deplibs_check_method=pass_all
21581 + ;;
21582 +
21583 +rdos*)
21584 + lt_cv_deplibs_check_method=pass_all
21585 + ;;
21586 +
21587 +solaris*)
21588 + lt_cv_deplibs_check_method=pass_all
21589 + ;;
21590 +
21591 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21592 + lt_cv_deplibs_check_method=pass_all
21593 + ;;
21594 +
21595 +sysv4 | sysv4.3*)
21596 + case $host_vendor in
21597 + motorola)
21598 + 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]'
21599 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
21600 + ;;
21601 + ncr)
21602 + lt_cv_deplibs_check_method=pass_all
21603 + ;;
21604 + sequent)
21605 + lt_cv_file_magic_cmd='/bin/file'
21606 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
21607 + ;;
21608 + sni)
21609 + lt_cv_file_magic_cmd='/bin/file'
21610 + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
21611 + lt_cv_file_magic_test_file=/lib/libc.so
21612 + ;;
21613 + siemens)
21614 + lt_cv_deplibs_check_method=pass_all
21615 + ;;
21616 + pc)
21617 + lt_cv_deplibs_check_method=pass_all
21618 + ;;
21619 + esac
21620 + ;;
21621 +
21622 +tpf*)
21623 + lt_cv_deplibs_check_method=pass_all
21624 + ;;
21625 +esac
21626 +
21627 +fi
21628 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
21629 +$as_echo "$lt_cv_deplibs_check_method" >&6; }
21630 +file_magic_cmd=$lt_cv_file_magic_cmd
21631 +deplibs_check_method=$lt_cv_deplibs_check_method
21632 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
21633 +
21634 +
21635 +
21636 +
21637 +
21638 +
21639 +
21640 +
21641 +
21642 +
21643 +
21644 +
21645 +if test -n "$ac_tool_prefix"; then
21646 + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21647 +set dummy ${ac_tool_prefix}ar; ac_word=$2
21648 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21649 +$as_echo_n "checking for $ac_word... " >&6; }
21650 +if test "${ac_cv_prog_AR+set}" = set; then
21651 + $as_echo_n "(cached) " >&6
21652 +else
21653 + if test -n "$AR"; then
21654 + ac_cv_prog_AR="$AR" # Let the user override the test.
21655 +else
21656 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21657 +for as_dir in $PATH
21658 +do
21659 + IFS=$as_save_IFS
21660 + test -z "$as_dir" && as_dir=.
21661 + for ac_exec_ext in '' $ac_executable_extensions; do
21662 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21663 + ac_cv_prog_AR="${ac_tool_prefix}ar"
21664 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21665 + break 2
21666 + fi
21667 +done
21668 +done
21669 +IFS=$as_save_IFS
21670 +
21671 +fi
21672 +fi
21673 +AR=$ac_cv_prog_AR
21674 +if test -n "$AR"; then
21675 + { $as_echo "$as_me:$LINENO: result: $AR" >&5
21676 +$as_echo "$AR" >&6; }
21677 +else
21678 + { $as_echo "$as_me:$LINENO: result: no" >&5
21679 +$as_echo "no" >&6; }
21680 +fi
21681 +
21682 +
21683 +fi
21684 +if test -z "$ac_cv_prog_AR"; then
21685 + ac_ct_AR=$AR
21686 + # Extract the first word of "ar", so it can be a program name with args.
21687 +set dummy ar; ac_word=$2
21688 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21689 +$as_echo_n "checking for $ac_word... " >&6; }
21690 +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21691 + $as_echo_n "(cached) " >&6
21692 +else
21693 + if test -n "$ac_ct_AR"; then
21694 + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21695 +else
21696 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21697 +for as_dir in $PATH
21698 +do
21699 + IFS=$as_save_IFS
21700 + test -z "$as_dir" && as_dir=.
21701 + for ac_exec_ext in '' $ac_executable_extensions; do
21702 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21703 + ac_cv_prog_ac_ct_AR="ar"
21704 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21705 + break 2
21706 + fi
21707 +done
21708 +done
21709 +IFS=$as_save_IFS
21710 +
21711 +fi
21712 +fi
21713 +ac_ct_AR=$ac_cv_prog_ac_ct_AR
21714 +if test -n "$ac_ct_AR"; then
21715 + { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21716 +$as_echo "$ac_ct_AR" >&6; }
21717 +else
21718 + { $as_echo "$as_me:$LINENO: result: no" >&5
21719 +$as_echo "no" >&6; }
21720 +fi
21721 +
21722 + if test "x$ac_ct_AR" = x; then
21723 + AR="false"
21724 + else
21725 + case $cross_compiling:$ac_tool_warned in
21726 +yes:)
21727 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21728 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21729 +ac_tool_warned=yes ;;
21730 +esac
21731 + AR=$ac_ct_AR
21732 + fi
21733 +else
21734 + AR="$ac_cv_prog_AR"
21735 +fi
21736 +
21737 +test -z "$AR" && AR=ar
21738 +test -z "$AR_FLAGS" && AR_FLAGS=cru
21739 +
21740 +
21741 +
21742 +
21743 +
21744 +
21745 +
21746 +
21747 +
21748 +
21749 +
21750 +if test -n "$ac_tool_prefix"; then
21751 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
21752 +set dummy ${ac_tool_prefix}strip; ac_word=$2
21753 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21754 +$as_echo_n "checking for $ac_word... " >&6; }
21755 +if test "${ac_cv_prog_STRIP+set}" = set; then
21756 + $as_echo_n "(cached) " >&6
21757 +else
21758 + if test -n "$STRIP"; then
21759 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
21760 +else
21761 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21762 +for as_dir in $PATH
21763 +do
21764 + IFS=$as_save_IFS
21765 + test -z "$as_dir" && as_dir=.
21766 + for ac_exec_ext in '' $ac_executable_extensions; do
21767 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21768 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
21769 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21770 + break 2
21771 + fi
21772 +done
21773 +done
21774 +IFS=$as_save_IFS
21775 +
21776 +fi
21777 +fi
21778 +STRIP=$ac_cv_prog_STRIP
21779 +if test -n "$STRIP"; then
21780 + { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
21781 +$as_echo "$STRIP" >&6; }
21782 +else
21783 + { $as_echo "$as_me:$LINENO: result: no" >&5
21784 +$as_echo "no" >&6; }
21785 +fi
21786 +
21787 +
21788 +fi
21789 +if test -z "$ac_cv_prog_STRIP"; then
21790 + ac_ct_STRIP=$STRIP
21791 + # Extract the first word of "strip", so it can be a program name with args.
21792 +set dummy strip; ac_word=$2
21793 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21794 +$as_echo_n "checking for $ac_word... " >&6; }
21795 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
21796 + $as_echo_n "(cached) " >&6
21797 +else
21798 + if test -n "$ac_ct_STRIP"; then
21799 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
21800 +else
21801 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21802 +for as_dir in $PATH
21803 +do
21804 + IFS=$as_save_IFS
21805 + test -z "$as_dir" && as_dir=.
21806 + for ac_exec_ext in '' $ac_executable_extensions; do
21807 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21808 + ac_cv_prog_ac_ct_STRIP="strip"
21809 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21810 + break 2
21811 + fi
21812 +done
21813 +done
21814 +IFS=$as_save_IFS
21815 +
21816 +fi
21817 +fi
21818 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
21819 +if test -n "$ac_ct_STRIP"; then
21820 + { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
21821 +$as_echo "$ac_ct_STRIP" >&6; }
21822 +else
21823 + { $as_echo "$as_me:$LINENO: result: no" >&5
21824 +$as_echo "no" >&6; }
21825 +fi
21826 +
21827 + if test "x$ac_ct_STRIP" = x; then
21828 + STRIP=":"
21829 + else
21830 + case $cross_compiling:$ac_tool_warned in
21831 +yes:)
21832 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21833 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21834 +ac_tool_warned=yes ;;
21835 +esac
21836 + STRIP=$ac_ct_STRIP
21837 + fi
21838 +else
21839 + STRIP="$ac_cv_prog_STRIP"
21840 +fi
21841 +
21842 +test -z "$STRIP" && STRIP=:
21843 +
21844 +
21845 +
21846 +
21847 +
21848 +
21849 +if test -n "$ac_tool_prefix"; then
21850 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
21851 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
21852 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21853 +$as_echo_n "checking for $ac_word... " >&6; }
21854 +if test "${ac_cv_prog_RANLIB+set}" = set; then
21855 + $as_echo_n "(cached) " >&6
21856 +else
21857 + if test -n "$RANLIB"; then
21858 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
21859 +else
21860 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21861 +for as_dir in $PATH
21862 +do
21863 + IFS=$as_save_IFS
21864 + test -z "$as_dir" && as_dir=.
21865 + for ac_exec_ext in '' $ac_executable_extensions; do
21866 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21867 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
21868 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21869 + break 2
21870 + fi
21871 +done
21872 +done
21873 +IFS=$as_save_IFS
21874 +
21875 +fi
21876 +fi
21877 +RANLIB=$ac_cv_prog_RANLIB
21878 +if test -n "$RANLIB"; then
21879 + { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
21880 +$as_echo "$RANLIB" >&6; }
21881 +else
21882 + { $as_echo "$as_me:$LINENO: result: no" >&5
21883 +$as_echo "no" >&6; }
21884 +fi
21885 +
21886 +
21887 +fi
21888 +if test -z "$ac_cv_prog_RANLIB"; then
21889 + ac_ct_RANLIB=$RANLIB
21890 + # Extract the first word of "ranlib", so it can be a program name with args.
21891 +set dummy ranlib; ac_word=$2
21892 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21893 +$as_echo_n "checking for $ac_word... " >&6; }
21894 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
21895 + $as_echo_n "(cached) " >&6
21896 +else
21897 + if test -n "$ac_ct_RANLIB"; then
21898 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
21899 +else
21900 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21901 +for as_dir in $PATH
21902 +do
21903 + IFS=$as_save_IFS
21904 + test -z "$as_dir" && as_dir=.
21905 + for ac_exec_ext in '' $ac_executable_extensions; do
21906 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21907 + ac_cv_prog_ac_ct_RANLIB="ranlib"
21908 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21909 + break 2
21910 + fi
21911 +done
21912 +done
21913 +IFS=$as_save_IFS
21914 +
21915 +fi
21916 +fi
21917 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
21918 +if test -n "$ac_ct_RANLIB"; then
21919 + { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
21920 +$as_echo "$ac_ct_RANLIB" >&6; }
21921 +else
21922 + { $as_echo "$as_me:$LINENO: result: no" >&5
21923 +$as_echo "no" >&6; }
21924 +fi
21925 +
21926 + if test "x$ac_ct_RANLIB" = x; then
21927 + RANLIB=":"
21928 + else
21929 + case $cross_compiling:$ac_tool_warned in
21930 +yes:)
21931 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21932 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21933 +ac_tool_warned=yes ;;
21934 +esac
21935 + RANLIB=$ac_ct_RANLIB
21936 + fi
21937 +else
21938 + RANLIB="$ac_cv_prog_RANLIB"
21939 +fi
21940 +
21941 +test -z "$RANLIB" && RANLIB=:
21942 +
21943 +
21944 +
21945 +
21946 +
21947 +
21948 +# Determine commands to create old-style static archives.
21949 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
21950 +old_postinstall_cmds='chmod 644 $oldlib'
21951 +old_postuninstall_cmds=
21952 +
21953 +if test -n "$RANLIB"; then
21954 + case $host_os in
21955 + openbsd*)
21956 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
21957 + ;;
21958 + *)
21959 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
21960 + ;;
21961 + esac
21962 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
21963 +fi
21964 +
21965 +
21966 +
21967 +
21968 +
21969 +
21970 +
21971 +
21972 +
21973 +
21974 +
21975 +
21976 +
21977 +
21978 +
21979 +
21980 +
21981 +
21982 +
21983 +
21984 +
21985 +
21986 +
21987 +
21988 +
21989 +
21990 +
21991 +
21992 +
21993 +
21994 +
21995 +
21996 +
21997 +
21998 +# If no C compiler was specified, use CC.
21999 +LTCC=${LTCC-"$CC"}
22000 +
22001 +# If no C compiler flags were specified, use CFLAGS.
22002 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22003 +
22004 +# Allow CC to be a program name with arguments.
22005 +compiler=$CC
22006 +
22007 +
22008 +# Check for command to grab the raw symbol name followed by C symbol from nm.
22009 +{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
22010 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22011 +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
22012 + $as_echo_n "(cached) " >&6
22013 +else
22014 +
22015 +# These are sane defaults that work on at least a few old systems.
22016 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
22017 +
22018 +# Character class describing NM global symbol codes.
22019 +symcode='[BCDEGRST]'
22020 +
22021 +# Regexp to match symbols that can be accessed directly from C.
22022 +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
22023 +
22024 +# Define system-specific variables.
22025 +case $host_os in
22026 +aix*)
22027 + symcode='[BCDT]'
22028 + ;;
22029 +cygwin* | mingw* | pw32* | cegcc*)
22030 + symcode='[ABCDGISTW]'
22031 + ;;
22032 +hpux*)
22033 + if test "$host_cpu" = ia64; then
22034 + symcode='[ABCDEGRST]'
22035 + fi
22036 + ;;
22037 +irix* | nonstopux*)
22038 + symcode='[BCDEGRST]'
22039 + ;;
22040 +osf*)
22041 + symcode='[BCDEGQRST]'
22042 + ;;
22043 +solaris*)
22044 + symcode='[BDRT]'
22045 + ;;
22046 +sco3.2v5*)
22047 + symcode='[DT]'
22048 + ;;
22049 +sysv4.2uw2*)
22050 + symcode='[DT]'
22051 + ;;
22052 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
22053 + symcode='[ABDT]'
22054 + ;;
22055 +sysv4)
22056 + symcode='[DFNSTU]'
22057 + ;;
22058 +esac
22059 +
22060 +# If we're using GNU nm, then use its standard symbol codes.
22061 +case `$NM -V 2>&1` in
22062 +*GNU* | *'with BFD'*)
22063 + symcode='[ABCDGIRSTW]' ;;
22064 +esac
22065 +
22066 +# Transform an extracted symbol line into a proper C declaration.
22067 +# Some systems (esp. on ia64) link data and code symbols differently,
22068 +# so use this general approach.
22069 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
22070 +
22071 +# Transform an extracted symbol line into symbol name and symbol address
22072 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
22073 +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'"
22074 +
22075 +# Handle CRLF in mingw tool chain
22076 +opt_cr=
22077 +case $build_os in
22078 +mingw*)
22079 + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
22080 + ;;
22081 +esac
22082 +
22083 +# Try without a prefix underscore, then with it.
22084 +for ac_symprfx in "" "_"; do
22085 +
22086 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
22087 + symxfrm="\\1 $ac_symprfx\\2 \\2"
22088 +
22089 + # Write the raw and C identifiers.
22090 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
22091 + # Fake it for dumpbin and say T for any non-static function
22092 + # and D for any global variable.
22093 + # Also find C++ and __fastcall symbols from MSVC++,
22094 + # which start with @ or ?.
22095 + lt_cv_sys_global_symbol_pipe="$AWK '"\
22096 +" {last_section=section; section=\$ 3};"\
22097 +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
22098 +" \$ 0!~/External *\|/{next};"\
22099 +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
22100 +" {if(hide[section]) next};"\
22101 +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
22102 +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
22103 +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
22104 +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
22105 +" ' prfx=^$ac_symprfx"
22106 + else
22107 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
22108 + fi
22109 +
22110 + # Check to see that the pipe works correctly.
22111 + pipe_works=no
22112 +
22113 + rm -f conftest*
22114 + cat > conftest.$ac_ext <<_LT_EOF
22115 +#ifdef __cplusplus
22116 +extern "C" {
22117 +#endif
22118 +char nm_test_var;
22119 +void nm_test_func(void);
22120 +void nm_test_func(void){}
22121 +#ifdef __cplusplus
22122 +}
22123 +#endif
22124 +int main(){nm_test_var='a';nm_test_func();return(0);}
22125 +_LT_EOF
22126 +
22127 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22128 + (eval $ac_compile) 2>&5
22129 + ac_status=$?
22130 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 + (exit $ac_status); }; then
22132 + # Now try to grab the symbols.
22133 + nlist=conftest.nm
22134 + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
22135 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
22136 + ac_status=$?
22137 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 + (exit $ac_status); } && test -s "$nlist"; then
22139 + # Try sorting and uniquifying the output.
22140 + if sort "$nlist" | uniq > "$nlist"T; then
22141 + mv -f "$nlist"T "$nlist"
22142 + else
22143 + rm -f "$nlist"T
22144 + fi
22145 +
22146 + # Make sure that we snagged all the symbols we need.
22147 + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
22148 + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
22149 + cat <<_LT_EOF > conftest.$ac_ext
22150 +#ifdef __cplusplus
22151 +extern "C" {
22152 +#endif
22153 +
22154 +_LT_EOF
22155 + # Now generate the symbol file.
22156 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
22157 +
22158 + cat <<_LT_EOF >> conftest.$ac_ext
22159 +
22160 +/* The mapping between symbol names and symbols. */
22161 +const struct {
22162 + const char *name;
22163 + void *address;
22164 +}
22165 +lt__PROGRAM__LTX_preloaded_symbols[] =
22166 +{
22167 + { "@PROGRAM@", (void *) 0 },
22168 +_LT_EOF
22169 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
22170 + cat <<\_LT_EOF >> conftest.$ac_ext
22171 + {0, (void *) 0}
22172 +};
22173 +
22174 +/* This works around a problem in FreeBSD linker */
22175 +#ifdef FREEBSD_WORKAROUND
22176 +static const void *lt_preloaded_setup() {
22177 + return lt__PROGRAM__LTX_preloaded_symbols;
22178 +}
22179 +#endif
22180 +
22181 +#ifdef __cplusplus
22182 +}
22183 +#endif
22184 +_LT_EOF
22185 + # Now try linking the two files.
22186 + mv conftest.$ac_objext conftstm.$ac_objext
22187 + lt_save_LIBS="$LIBS"
22188 + lt_save_CFLAGS="$CFLAGS"
22189 + LIBS="conftstm.$ac_objext"
22190 + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
22191 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22192 + (eval $ac_link) 2>&5
22193 + ac_status=$?
22194 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 + (exit $ac_status); } && test -s conftest${ac_exeext}; then
22196 + pipe_works=yes
22197 + fi
22198 + LIBS="$lt_save_LIBS"
22199 + CFLAGS="$lt_save_CFLAGS"
22200 + else
22201 + echo "cannot find nm_test_func in $nlist" >&5
22202 + fi
22203 + else
22204 + echo "cannot find nm_test_var in $nlist" >&5
22205 + fi
22206 + else
22207 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
22208 + fi
22209 + else
22210 + echo "$progname: failed program was:" >&5
22211 + cat conftest.$ac_ext >&5
22212 + fi
22213 + rm -rf conftest* conftst*
22214 +
22215 + # Do not use the global_symbol_pipe unless it works.
22216 + if test "$pipe_works" = yes; then
22217 + break
22218 + else
22219 + lt_cv_sys_global_symbol_pipe=
22220 + fi
22221 +done
22222 +
22223 +fi
22224 +
22225 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
22226 + lt_cv_sys_global_symbol_to_cdecl=
22227 +fi
22228 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
22229 + { $as_echo "$as_me:$LINENO: result: failed" >&5
22230 +$as_echo "failed" >&6; }
22231 +else
22232 + { $as_echo "$as_me:$LINENO: result: ok" >&5
22233 +$as_echo "ok" >&6; }
22234 +fi
22235 +
22236 +
22237 +
22238 +
22239 +
22240 +
22241 +
22242 +
22243 +
22244 +
22245 +
22246 +
22247 +
22248 +
22249 +
22250 +
22251 +
22252 +
22253 +
22254 +
22255 +
22256 +
22257 +
22258 +# Check whether --enable-libtool-lock was given.
22259 +if test "${enable_libtool_lock+set}" = set; then
22260 + enableval=$enable_libtool_lock;
22261 +fi
22262 +
22263 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
22264 +
22265 +# Some flags need to be propagated to the compiler or linker for good
22266 +# libtool support.
22267 +case $host in
22268 +ia64-*-hpux*)
22269 + # Find out which ABI we are using.
22270 + echo 'int i;' > conftest.$ac_ext
22271 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22272 + (eval $ac_compile) 2>&5
22273 + ac_status=$?
22274 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 + (exit $ac_status); }; then
22276 + case `/usr/bin/file conftest.$ac_objext` in
22277 + *ELF-32*)
22278 + HPUX_IA64_MODE="32"
22279 + ;;
22280 + *ELF-64*)
22281 + HPUX_IA64_MODE="64"
22282 + ;;
22283 + esac
22284 + fi
22285 + rm -rf conftest*
22286 + ;;
22287 +*-*-irix6*)
22288 + # Find out which ABI we are using.
22289 + echo '#line 5619 "configure"' > conftest.$ac_ext
22290 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22291 + (eval $ac_compile) 2>&5
22292 + ac_status=$?
22293 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 + (exit $ac_status); }; then
22295 + if test "$lt_cv_prog_gnu_ld" = yes; then
22296 + case `/usr/bin/file conftest.$ac_objext` in
22297 + *32-bit*)
22298 + LD="${LD-ld} -melf32bsmip"
22299 + ;;
22300 + *N32*)
22301 + LD="${LD-ld} -melf32bmipn32"
22302 + ;;
22303 + *64-bit*)
22304 + LD="${LD-ld} -melf64bmip"
22305 + ;;
22306 + esac
22307 + else
22308 + case `/usr/bin/file conftest.$ac_objext` in
22309 + *32-bit*)
22310 + LD="${LD-ld} -32"
22311 + ;;
22312 + *N32*)
22313 + LD="${LD-ld} -n32"
22314 + ;;
22315 + *64-bit*)
22316 + LD="${LD-ld} -64"
22317 + ;;
22318 + esac
22319 + fi
22320 + fi
22321 + rm -rf conftest*
22322 + ;;
22323 +
22324 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
22325 +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
22326 + # Find out which ABI we are using.
22327 + echo 'int i;' > conftest.$ac_ext
22328 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22329 + (eval $ac_compile) 2>&5
22330 + ac_status=$?
22331 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 + (exit $ac_status); }; then
22333 + case `/usr/bin/file conftest.o` in
22334 + *32-bit*)
22335 + case $host in
22336 + x86_64-*kfreebsd*-gnu)
22337 + LD="${LD-ld} -m elf_i386_fbsd"
22338 + ;;
22339 + x86_64-*linux*)
22340 + LD="${LD-ld} -m elf_i386"
22341 + ;;
22342 + ppc64-*linux*|powerpc64-*linux*)
22343 + LD="${LD-ld} -m elf32ppclinux"
22344 + ;;
22345 + s390x-*linux*)
22346 + LD="${LD-ld} -m elf_s390"
22347 + ;;
22348 + sparc64-*linux*)
22349 + LD="${LD-ld} -m elf32_sparc"
22350 + ;;
22351 + esac
22352 + ;;
22353 + *64-bit*)
22354 + case $host in
22355 + x86_64-*kfreebsd*-gnu)
22356 + LD="${LD-ld} -m elf_x86_64_fbsd"
22357 + ;;
22358 + x86_64-*linux*)
22359 + LD="${LD-ld} -m elf_x86_64"
22360 + ;;
22361 + ppc*-*linux*|powerpc*-*linux*)
22362 + LD="${LD-ld} -m elf64ppc"
22363 + ;;
22364 + s390*-*linux*|s390*-*tpf*)
22365 + LD="${LD-ld} -m elf64_s390"
22366 + ;;
22367 + sparc*-*linux*)
22368 + LD="${LD-ld} -m elf64_sparc"
22369 + ;;
22370 + esac
22371 + ;;
22372 + esac
22373 + fi
22374 + rm -rf conftest*
22375 + ;;
22376 +
22377 +*-*-sco3.2v5*)
22378 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
22379 + SAVE_CFLAGS="$CFLAGS"
22380 + CFLAGS="$CFLAGS -belf"
22381 + { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
22382 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22383 +if test "${lt_cv_cc_needs_belf+set}" = set; then
22384 + $as_echo_n "(cached) " >&6
22385 +else
22386 + ac_ext=c
22387 +ac_cpp='$CPP $CPPFLAGS'
22388 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22389 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22390 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
22391 +
22392 + cat >conftest.$ac_ext <<_ACEOF
22393 +/* confdefs.h. */
22394 +_ACEOF
22395 +cat confdefs.h >>conftest.$ac_ext
22396 +cat >>conftest.$ac_ext <<_ACEOF
22397 +/* end confdefs.h. */
22398 +
22399 +int
22400 +main ()
22401 +{
22402 +
22403 + ;
22404 + return 0;
22405 +}
22406 +_ACEOF
22407 +rm -f conftest.$ac_objext conftest$ac_exeext
22408 +if { (ac_try="$ac_link"
22409 +case "(($ac_try" in
22410 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22411 + *) ac_try_echo=$ac_try;;
22412 +esac
22413 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22414 +$as_echo "$ac_try_echo") >&5
22415 + (eval "$ac_link") 2>conftest.er1
22416 + ac_status=$?
22417 + grep -v '^ *+' conftest.er1 >conftest.err
22418 + rm -f conftest.er1
22419 + cat conftest.err >&5
22420 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 + (exit $ac_status); } && {
22422 + test -z "$ac_c_werror_flag" ||
22423 + test ! -s conftest.err
22424 + } && test -s conftest$ac_exeext && {
22425 + test "$cross_compiling" = yes ||
22426 + $as_test_x conftest$ac_exeext
22427 + }; then
22428 + lt_cv_cc_needs_belf=yes
22429 +else
22430 + $as_echo "$as_me: failed program was:" >&5
22431 +sed 's/^/| /' conftest.$ac_ext >&5
22432 +
22433 + lt_cv_cc_needs_belf=no
22434 +fi
22435 +
22436 +rm -rf conftest.dSYM
22437 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22438 + conftest$ac_exeext conftest.$ac_ext
22439 + ac_ext=c
22440 +ac_cpp='$CPP $CPPFLAGS'
22441 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22442 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22443 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
22444 +
22445 +fi
22446 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
22447 +$as_echo "$lt_cv_cc_needs_belf" >&6; }
22448 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
22449 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
22450 + CFLAGS="$SAVE_CFLAGS"
22451 + fi
22452 + ;;
22453 +sparc*-*solaris*)
22454 + # Find out which ABI we are using.
22455 + echo 'int i;' > conftest.$ac_ext
22456 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22457 + (eval $ac_compile) 2>&5
22458 + ac_status=$?
22459 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 + (exit $ac_status); }; then
22461 + case `/usr/bin/file conftest.o` in
22462 + *64-bit*)
22463 + case $lt_cv_prog_gnu_ld in
22464 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
22465 + *)
22466 + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
22467 + LD="${LD-ld} -64"
22468 + fi
22469 + ;;
22470 + esac
22471 + ;;
22472 + esac
22473 + fi
22474 + rm -rf conftest*
22475 + ;;
22476 +esac
22477 +
22478 +need_locks="$enable_libtool_lock"
22479 +
22480 +
22481 + case $host_os in
22482 + rhapsody* | darwin*)
22483 + if test -n "$ac_tool_prefix"; then
22484 + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
22485 +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
22486 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22487 +$as_echo_n "checking for $ac_word... " >&6; }
22488 +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
22489 + $as_echo_n "(cached) " >&6
22490 +else
22491 + if test -n "$DSYMUTIL"; then
22492 + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
22493 +else
22494 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22495 +for as_dir in $PATH
22496 +do
22497 + IFS=$as_save_IFS
22498 + test -z "$as_dir" && as_dir=.
22499 + for ac_exec_ext in '' $ac_executable_extensions; do
22500 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22501 + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
22502 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22503 + break 2
22504 + fi
22505 +done
22506 +done
22507 +IFS=$as_save_IFS
22508 +
22509 +fi
22510 +fi
22511 +DSYMUTIL=$ac_cv_prog_DSYMUTIL
22512 +if test -n "$DSYMUTIL"; then
22513 + { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
22514 +$as_echo "$DSYMUTIL" >&6; }
22515 +else
22516 + { $as_echo "$as_me:$LINENO: result: no" >&5
22517 +$as_echo "no" >&6; }
22518 +fi
22519 +
22520 +
22521 +fi
22522 +if test -z "$ac_cv_prog_DSYMUTIL"; then
22523 + ac_ct_DSYMUTIL=$DSYMUTIL
22524 + # Extract the first word of "dsymutil", so it can be a program name with args.
22525 +set dummy dsymutil; ac_word=$2
22526 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22527 +$as_echo_n "checking for $ac_word... " >&6; }
22528 +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
22529 + $as_echo_n "(cached) " >&6
22530 +else
22531 + if test -n "$ac_ct_DSYMUTIL"; then
22532 + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
22533 +else
22534 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22535 +for as_dir in $PATH
22536 +do
22537 + IFS=$as_save_IFS
22538 + test -z "$as_dir" && as_dir=.
22539 + for ac_exec_ext in '' $ac_executable_extensions; do
22540 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22541 + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
22542 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22543 + break 2
22544 + fi
22545 +done
22546 +done
22547 +IFS=$as_save_IFS
22548 +
22549 +fi
22550 +fi
22551 +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
22552 +if test -n "$ac_ct_DSYMUTIL"; then
22553 + { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
22554 +$as_echo "$ac_ct_DSYMUTIL" >&6; }
22555 +else
22556 + { $as_echo "$as_me:$LINENO: result: no" >&5
22557 +$as_echo "no" >&6; }
22558 +fi
22559 +
22560 + if test "x$ac_ct_DSYMUTIL" = x; then
22561 + DSYMUTIL=":"
22562 + else
22563 + case $cross_compiling:$ac_tool_warned in
22564 +yes:)
22565 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
22566 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22567 +ac_tool_warned=yes ;;
22568 +esac
22569 + DSYMUTIL=$ac_ct_DSYMUTIL
22570 + fi
22571 +else
22572 + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
22573 +fi
22574 +
22575 + if test -n "$ac_tool_prefix"; then
22576 + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
22577 +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
22578 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22579 +$as_echo_n "checking for $ac_word... " >&6; }
22580 +if test "${ac_cv_prog_NMEDIT+set}" = set; then
22581 + $as_echo_n "(cached) " >&6
22582 +else
22583 + if test -n "$NMEDIT"; then
22584 + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
22585 +else
22586 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22587 +for as_dir in $PATH
22588 +do
22589 + IFS=$as_save_IFS
22590 + test -z "$as_dir" && as_dir=.
22591 + for ac_exec_ext in '' $ac_executable_extensions; do
22592 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22593 + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
22594 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22595 + break 2
22596 + fi
22597 +done
22598 +done
22599 +IFS=$as_save_IFS
22600 +
22601 +fi
22602 +fi
22603 +NMEDIT=$ac_cv_prog_NMEDIT
22604 +if test -n "$NMEDIT"; then
22605 + { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
22606 +$as_echo "$NMEDIT" >&6; }
22607 +else
22608 + { $as_echo "$as_me:$LINENO: result: no" >&5
22609 +$as_echo "no" >&6; }
22610 +fi
22611 +
22612 +
22613 +fi
22614 +if test -z "$ac_cv_prog_NMEDIT"; then
22615 + ac_ct_NMEDIT=$NMEDIT
22616 + # Extract the first word of "nmedit", so it can be a program name with args.
22617 +set dummy nmedit; ac_word=$2
22618 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22619 +$as_echo_n "checking for $ac_word... " >&6; }
22620 +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
22621 + $as_echo_n "(cached) " >&6
22622 +else
22623 + if test -n "$ac_ct_NMEDIT"; then
22624 + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
22625 +else
22626 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22627 +for as_dir in $PATH
22628 +do
22629 + IFS=$as_save_IFS
22630 + test -z "$as_dir" && as_dir=.
22631 + for ac_exec_ext in '' $ac_executable_extensions; do
22632 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22633 + ac_cv_prog_ac_ct_NMEDIT="nmedit"
22634 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22635 + break 2
22636 + fi
22637 +done
22638 +done
22639 +IFS=$as_save_IFS
22640 +
22641 +fi
22642 +fi
22643 +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
22644 +if test -n "$ac_ct_NMEDIT"; then
22645 + { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
22646 +$as_echo "$ac_ct_NMEDIT" >&6; }
22647 +else
22648 + { $as_echo "$as_me:$LINENO: result: no" >&5
22649 +$as_echo "no" >&6; }
22650 +fi
22651 +
22652 + if test "x$ac_ct_NMEDIT" = x; then
22653 + NMEDIT=":"
22654 + else
22655 + case $cross_compiling:$ac_tool_warned in
22656 +yes:)
22657 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
22658 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22659 +ac_tool_warned=yes ;;
22660 +esac
22661 + NMEDIT=$ac_ct_NMEDIT
22662 + fi
22663 +else
22664 + NMEDIT="$ac_cv_prog_NMEDIT"
22665 +fi
22666 +
22667 + if test -n "$ac_tool_prefix"; then
22668 + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
22669 +set dummy ${ac_tool_prefix}lipo; ac_word=$2
22670 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22671 +$as_echo_n "checking for $ac_word... " >&6; }
22672 +if test "${ac_cv_prog_LIPO+set}" = set; then
22673 + $as_echo_n "(cached) " >&6
22674 +else
22675 + if test -n "$LIPO"; then
22676 + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
22677 +else
22678 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22679 +for as_dir in $PATH
22680 +do
22681 + IFS=$as_save_IFS
22682 + test -z "$as_dir" && as_dir=.
22683 + for ac_exec_ext in '' $ac_executable_extensions; do
22684 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22685 + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
22686 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22687 + break 2
22688 + fi
22689 +done
22690 +done
22691 +IFS=$as_save_IFS
22692 +
22693 +fi
22694 +fi
22695 +LIPO=$ac_cv_prog_LIPO
22696 +if test -n "$LIPO"; then
22697 + { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
22698 +$as_echo "$LIPO" >&6; }
22699 +else
22700 + { $as_echo "$as_me:$LINENO: result: no" >&5
22701 +$as_echo "no" >&6; }
22702 +fi
22703 +
22704 +
22705 +fi
22706 +if test -z "$ac_cv_prog_LIPO"; then
22707 + ac_ct_LIPO=$LIPO
22708 + # Extract the first word of "lipo", so it can be a program name with args.
22709 +set dummy lipo; ac_word=$2
22710 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22711 +$as_echo_n "checking for $ac_word... " >&6; }
22712 +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
22713 + $as_echo_n "(cached) " >&6
22714 +else
22715 + if test -n "$ac_ct_LIPO"; then
22716 + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
22717 +else
22718 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22719 +for as_dir in $PATH
22720 +do
22721 + IFS=$as_save_IFS
22722 + test -z "$as_dir" && as_dir=.
22723 + for ac_exec_ext in '' $ac_executable_extensions; do
22724 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22725 + ac_cv_prog_ac_ct_LIPO="lipo"
22726 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22727 + break 2
22728 + fi
22729 +done
22730 +done
22731 +IFS=$as_save_IFS
22732 +
22733 +fi
22734 +fi
22735 +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
22736 +if test -n "$ac_ct_LIPO"; then
22737 + { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
22738 +$as_echo "$ac_ct_LIPO" >&6; }
22739 +else
22740 + { $as_echo "$as_me:$LINENO: result: no" >&5
22741 +$as_echo "no" >&6; }
22742 +fi
22743 +
22744 + if test "x$ac_ct_LIPO" = x; then
22745 + LIPO=":"
22746 + else
22747 + case $cross_compiling:$ac_tool_warned in
22748 +yes:)
22749 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
22750 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22751 +ac_tool_warned=yes ;;
22752 +esac
22753 + LIPO=$ac_ct_LIPO
22754 + fi
22755 +else
22756 + LIPO="$ac_cv_prog_LIPO"
22757 +fi
22758 +
22759 + if test -n "$ac_tool_prefix"; then
22760 + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
22761 +set dummy ${ac_tool_prefix}otool; ac_word=$2
22762 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22763 +$as_echo_n "checking for $ac_word... " >&6; }
22764 +if test "${ac_cv_prog_OTOOL+set}" = set; then
22765 + $as_echo_n "(cached) " >&6
22766 +else
22767 + if test -n "$OTOOL"; then
22768 + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
22769 +else
22770 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22771 +for as_dir in $PATH
22772 +do
22773 + IFS=$as_save_IFS
22774 + test -z "$as_dir" && as_dir=.
22775 + for ac_exec_ext in '' $ac_executable_extensions; do
22776 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22777 + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
22778 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22779 + break 2
22780 + fi
22781 +done
22782 +done
22783 +IFS=$as_save_IFS
22784 +
22785 +fi
22786 +fi
22787 +OTOOL=$ac_cv_prog_OTOOL
22788 +if test -n "$OTOOL"; then
22789 + { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
22790 +$as_echo "$OTOOL" >&6; }
22791 +else
22792 + { $as_echo "$as_me:$LINENO: result: no" >&5
22793 +$as_echo "no" >&6; }
22794 +fi
22795 +
22796 +
22797 +fi
22798 +if test -z "$ac_cv_prog_OTOOL"; then
22799 + ac_ct_OTOOL=$OTOOL
22800 + # Extract the first word of "otool", so it can be a program name with args.
22801 +set dummy otool; ac_word=$2
22802 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22803 +$as_echo_n "checking for $ac_word... " >&6; }
22804 +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
22805 + $as_echo_n "(cached) " >&6
22806 +else
22807 + if test -n "$ac_ct_OTOOL"; then
22808 + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
22809 +else
22810 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22811 +for as_dir in $PATH
22812 +do
22813 + IFS=$as_save_IFS
22814 + test -z "$as_dir" && as_dir=.
22815 + for ac_exec_ext in '' $ac_executable_extensions; do
22816 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22817 + ac_cv_prog_ac_ct_OTOOL="otool"
22818 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22819 + break 2
22820 + fi
22821 +done
22822 +done
22823 +IFS=$as_save_IFS
22824 +
22825 +fi
22826 +fi
22827 +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
22828 +if test -n "$ac_ct_OTOOL"; then
22829 + { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
22830 +$as_echo "$ac_ct_OTOOL" >&6; }
22831 +else
22832 + { $as_echo "$as_me:$LINENO: result: no" >&5
22833 +$as_echo "no" >&6; }
22834 +fi
22835 +
22836 + if test "x$ac_ct_OTOOL" = x; then
22837 + OTOOL=":"
22838 + else
22839 + case $cross_compiling:$ac_tool_warned in
22840 +yes:)
22841 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
22842 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22843 +ac_tool_warned=yes ;;
22844 +esac
22845 + OTOOL=$ac_ct_OTOOL
22846 + fi
22847 +else
22848 + OTOOL="$ac_cv_prog_OTOOL"
22849 +fi
22850 +
22851 + if test -n "$ac_tool_prefix"; then
22852 + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
22853 +set dummy ${ac_tool_prefix}otool64; ac_word=$2
22854 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22855 +$as_echo_n "checking for $ac_word... " >&6; }
22856 +if test "${ac_cv_prog_OTOOL64+set}" = set; then
22857 + $as_echo_n "(cached) " >&6
22858 +else
22859 + if test -n "$OTOOL64"; then
22860 + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
22861 +else
22862 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22863 +for as_dir in $PATH
22864 +do
22865 + IFS=$as_save_IFS
22866 + test -z "$as_dir" && as_dir=.
22867 + for ac_exec_ext in '' $ac_executable_extensions; do
22868 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22869 + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
22870 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22871 + break 2
22872 + fi
22873 +done
22874 +done
22875 +IFS=$as_save_IFS
22876 +
22877 +fi
22878 +fi
22879 +OTOOL64=$ac_cv_prog_OTOOL64
22880 +if test -n "$OTOOL64"; then
22881 + { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
22882 +$as_echo "$OTOOL64" >&6; }
22883 +else
22884 + { $as_echo "$as_me:$LINENO: result: no" >&5
22885 +$as_echo "no" >&6; }
22886 +fi
22887 +
22888 +
22889 +fi
22890 +if test -z "$ac_cv_prog_OTOOL64"; then
22891 + ac_ct_OTOOL64=$OTOOL64
22892 + # Extract the first word of "otool64", so it can be a program name with args.
22893 +set dummy otool64; ac_word=$2
22894 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22895 +$as_echo_n "checking for $ac_word... " >&6; }
22896 +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
22897 + $as_echo_n "(cached) " >&6
22898 +else
22899 + if test -n "$ac_ct_OTOOL64"; then
22900 + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
22901 +else
22902 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22903 +for as_dir in $PATH
22904 +do
22905 + IFS=$as_save_IFS
22906 + test -z "$as_dir" && as_dir=.
22907 + for ac_exec_ext in '' $ac_executable_extensions; do
22908 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22909 + ac_cv_prog_ac_ct_OTOOL64="otool64"
22910 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22911 + break 2
22912 + fi
22913 +done
22914 +done
22915 +IFS=$as_save_IFS
22916 +
22917 +fi
22918 +fi
22919 +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
22920 +if test -n "$ac_ct_OTOOL64"; then
22921 + { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
22922 +$as_echo "$ac_ct_OTOOL64" >&6; }
22923 +else
22924 + { $as_echo "$as_me:$LINENO: result: no" >&5
22925 +$as_echo "no" >&6; }
22926 +fi
22927 +
22928 + if test "x$ac_ct_OTOOL64" = x; then
22929 + OTOOL64=":"
22930 + else
22931 + case $cross_compiling:$ac_tool_warned in
22932 +yes:)
22933 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
22934 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22935 +ac_tool_warned=yes ;;
22936 +esac
22937 + OTOOL64=$ac_ct_OTOOL64
22938 + fi
22939 +else
22940 + OTOOL64="$ac_cv_prog_OTOOL64"
22941 +fi
22942 +
22943 +
22944 +
22945 +
22946 +
22947 +
22948 +
22949 +
22950 +
22951 +
22952 +
22953 +
22954 +
22955 +
22956 +
22957 +
22958 +
22959 +
22960 +
22961 +
22962 +
22963 +
22964 +
22965 +
22966 +
22967 +
22968 +
22969 + { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
22970 +$as_echo_n "checking for -single_module linker flag... " >&6; }
22971 +if test "${lt_cv_apple_cc_single_mod+set}" = set; then
22972 + $as_echo_n "(cached) " >&6
22973 +else
22974 + lt_cv_apple_cc_single_mod=no
22975 + if test -z "${LT_MULTI_MODULE}"; then
22976 + # By default we will add the -single_module flag. You can override
22977 + # by either setting the environment variable LT_MULTI_MODULE
22978 + # non-empty at configure time, or by adding -multi_module to the
22979 + # link flags.
22980 + rm -rf libconftest.dylib*
22981 + echo "int foo(void){return 1;}" > conftest.c
22982 + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
22983 +-dynamiclib -Wl,-single_module conftest.c" >&5
22984 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
22985 + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
22986 + _lt_result=$?
22987 + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
22988 + lt_cv_apple_cc_single_mod=yes
22989 + else
22990 + cat conftest.err >&5
22991 + fi
22992 + rm -rf libconftest.dylib*
22993 + rm -f conftest.*
22994 + fi
22995 +fi
22996 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
22997 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
22998 + { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
22999 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
23000 +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
23001 + $as_echo_n "(cached) " >&6
23002 +else
23003 + lt_cv_ld_exported_symbols_list=no
23004 + save_LDFLAGS=$LDFLAGS
23005 + echo "_main" > conftest.sym
23006 + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
23007 + cat >conftest.$ac_ext <<_ACEOF
23008 +/* confdefs.h. */
23009 +_ACEOF
23010 +cat confdefs.h >>conftest.$ac_ext
23011 +cat >>conftest.$ac_ext <<_ACEOF
23012 +/* end confdefs.h. */
23013 +
23014 +int
23015 +main ()
23016 +{
23017 +
23018 + ;
23019 + return 0;
23020 +}
23021 +_ACEOF
23022 +rm -f conftest.$ac_objext conftest$ac_exeext
23023 +if { (ac_try="$ac_link"
23024 +case "(($ac_try" in
23025 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23026 + *) ac_try_echo=$ac_try;;
23027 +esac
23028 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23029 +$as_echo "$ac_try_echo") >&5
23030 + (eval "$ac_link") 2>conftest.er1
23031 + ac_status=$?
23032 + grep -v '^ *+' conftest.er1 >conftest.err
23033 + rm -f conftest.er1
23034 + cat conftest.err >&5
23035 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 + (exit $ac_status); } && {
23037 + test -z "$ac_c_werror_flag" ||
23038 + test ! -s conftest.err
23039 + } && test -s conftest$ac_exeext && {
23040 + test "$cross_compiling" = yes ||
23041 + $as_test_x conftest$ac_exeext
23042 + }; then
23043 + lt_cv_ld_exported_symbols_list=yes
23044 +else
23045 + $as_echo "$as_me: failed program was:" >&5
23046 +sed 's/^/| /' conftest.$ac_ext >&5
23047 +
23048 + lt_cv_ld_exported_symbols_list=no
23049 +fi
23050 +
23051 +rm -rf conftest.dSYM
23052 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23053 + conftest$ac_exeext conftest.$ac_ext
23054 + LDFLAGS="$save_LDFLAGS"
23055 +
23056 +fi
23057 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
23058 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
23059 + case $host_os in
23060 + rhapsody* | darwin1.[012])
23061 + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
23062 + darwin1.*)
23063 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
23064 + darwin*) # darwin 5.x on
23065 + # if running on 10.5 or later, the deployment target defaults
23066 + # to the OS version, if on x86, and 10.4, the deployment
23067 + # target defaults to 10.4. Don't you love it?
23068 + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
23069 + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
23070 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
23071 + 10.[012]*)
23072 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
23073 + 10.*)
23074 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
23075 + esac
23076 + ;;
23077 + esac
23078 + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
23079 + _lt_dar_single_mod='$single_module'
23080 + fi
23081 + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
23082 + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
23083 + else
23084 + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
23085 + fi
23086 + if test "$DSYMUTIL" != ":"; then
23087 + _lt_dsymutil='~$DSYMUTIL $lib || :'
23088 + else
23089 + _lt_dsymutil=
23090 + fi
23091 + ;;
23092 + esac
23093 +
23094 +ac_ext=c
23095 +ac_cpp='$CPP $CPPFLAGS'
23096 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23097 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23098 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
23099 +{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
23100 +$as_echo_n "checking how to run the C preprocessor... " >&6; }
23101 +# On Suns, sometimes $CPP names a directory.
23102 +if test -n "$CPP" && test -d "$CPP"; then
23103 + CPP=
23104 +fi
23105 +if test -z "$CPP"; then
23106 + if test "${ac_cv_prog_CPP+set}" = set; then
23107 + $as_echo_n "(cached) " >&6
23108 +else
23109 + # Double quotes because CPP needs to be expanded
23110 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
23111 + do
23112 + ac_preproc_ok=false
23113 +for ac_c_preproc_warn_flag in '' yes
23114 +do
23115 + # Use a header file that comes with gcc, so configuring glibc
23116 + # with a fresh cross-compiler works.
23117 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23118 + # <limits.h> exists even on freestanding compilers.
23119 + # On the NeXT, cc -E runs the code through the compiler's parser,
23120 + # not just through cpp. "Syntax error" is here to catch this case.
23121 + cat >conftest.$ac_ext <<_ACEOF
23122 +/* confdefs.h. */
23123 +_ACEOF
23124 +cat confdefs.h >>conftest.$ac_ext
23125 +cat >>conftest.$ac_ext <<_ACEOF
23126 +/* end confdefs.h. */
23127 +#ifdef __STDC__
23128 +# include <limits.h>
23129 +#else
23130 +# include <assert.h>
23131 +#endif
23132 + Syntax error
23133 +_ACEOF
23134 +if { (ac_try="$ac_cpp conftest.$ac_ext"
23135 +case "(($ac_try" in
23136 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23137 + *) ac_try_echo=$ac_try;;
23138 +esac
23139 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23140 +$as_echo "$ac_try_echo") >&5
23141 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23142 + ac_status=$?
23143 + grep -v '^ *+' conftest.er1 >conftest.err
23144 + rm -f conftest.er1
23145 + cat conftest.err >&5
23146 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 + (exit $ac_status); } >/dev/null && {
23148 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23149 + test ! -s conftest.err
23150 + }; then
23151 + :
23152 +else
23153 + $as_echo "$as_me: failed program was:" >&5
23154 +sed 's/^/| /' conftest.$ac_ext >&5
23155 +
23156 + # Broken: fails on valid input.
23157 +continue
23158 +fi
23159 +
23160 +rm -f conftest.err conftest.$ac_ext
23161 +
23162 + # OK, works on sane cases. Now check whether nonexistent headers
23163 + # can be detected and how.
23164 + cat >conftest.$ac_ext <<_ACEOF
23165 +/* confdefs.h. */
23166 +_ACEOF
23167 +cat confdefs.h >>conftest.$ac_ext
23168 +cat >>conftest.$ac_ext <<_ACEOF
23169 +/* end confdefs.h. */
23170 +#include <ac_nonexistent.h>
23171 +_ACEOF
23172 +if { (ac_try="$ac_cpp conftest.$ac_ext"
23173 +case "(($ac_try" in
23174 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23175 + *) ac_try_echo=$ac_try;;
23176 +esac
23177 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23178 +$as_echo "$ac_try_echo") >&5
23179 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23180 + ac_status=$?
23181 + grep -v '^ *+' conftest.er1 >conftest.err
23182 + rm -f conftest.er1
23183 + cat conftest.err >&5
23184 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 + (exit $ac_status); } >/dev/null && {
23186 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23187 + test ! -s conftest.err
23188 + }; then
23189 + # Broken: success on invalid input.
23190 +continue
23191 +else
23192 + $as_echo "$as_me: failed program was:" >&5
23193 +sed 's/^/| /' conftest.$ac_ext >&5
23194 +
23195 + # Passes both tests.
23196 +ac_preproc_ok=:
23197 +break
23198 +fi
23199 +
23200 +rm -f conftest.err conftest.$ac_ext
23201 +
23202 +done
23203 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23204 +rm -f conftest.err conftest.$ac_ext
23205 +if $ac_preproc_ok; then
23206 + break
23207 +fi
23208 +
23209 + done
23210 + ac_cv_prog_CPP=$CPP
23211 +
23212 +fi
23213 + CPP=$ac_cv_prog_CPP
23214 +else
23215 + ac_cv_prog_CPP=$CPP
23216 +fi
23217 +{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
23218 +$as_echo "$CPP" >&6; }
23219 +ac_preproc_ok=false
23220 +for ac_c_preproc_warn_flag in '' yes
23221 +do
23222 + # Use a header file that comes with gcc, so configuring glibc
23223 + # with a fresh cross-compiler works.
23224 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23225 + # <limits.h> exists even on freestanding compilers.
23226 + # On the NeXT, cc -E runs the code through the compiler's parser,
23227 + # not just through cpp. "Syntax error" is here to catch this case.
23228 + cat >conftest.$ac_ext <<_ACEOF
23229 +/* confdefs.h. */
23230 +_ACEOF
23231 +cat confdefs.h >>conftest.$ac_ext
23232 +cat >>conftest.$ac_ext <<_ACEOF
23233 +/* end confdefs.h. */
23234 +#ifdef __STDC__
23235 +# include <limits.h>
23236 +#else
23237 +# include <assert.h>
23238 +#endif
23239 + Syntax error
23240 +_ACEOF
23241 +if { (ac_try="$ac_cpp conftest.$ac_ext"
23242 +case "(($ac_try" in
23243 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23244 + *) ac_try_echo=$ac_try;;
23245 +esac
23246 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23247 +$as_echo "$ac_try_echo") >&5
23248 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23249 + ac_status=$?
23250 + grep -v '^ *+' conftest.er1 >conftest.err
23251 + rm -f conftest.er1
23252 + cat conftest.err >&5
23253 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 + (exit $ac_status); } >/dev/null && {
23255 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23256 + test ! -s conftest.err
23257 + }; then
23258 + :
23259 +else
23260 + $as_echo "$as_me: failed program was:" >&5
23261 +sed 's/^/| /' conftest.$ac_ext >&5
23262 +
23263 + # Broken: fails on valid input.
23264 +continue
23265 +fi
23266 +
23267 +rm -f conftest.err conftest.$ac_ext
23268 +
23269 + # OK, works on sane cases. Now check whether nonexistent headers
23270 + # can be detected and how.
23271 + cat >conftest.$ac_ext <<_ACEOF
23272 +/* confdefs.h. */
23273 +_ACEOF
23274 +cat confdefs.h >>conftest.$ac_ext
23275 +cat >>conftest.$ac_ext <<_ACEOF
23276 +/* end confdefs.h. */
23277 +#include <ac_nonexistent.h>
23278 +_ACEOF
23279 +if { (ac_try="$ac_cpp conftest.$ac_ext"
23280 +case "(($ac_try" in
23281 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23282 + *) ac_try_echo=$ac_try;;
23283 +esac
23284 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23285 +$as_echo "$ac_try_echo") >&5
23286 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23287 + ac_status=$?
23288 + grep -v '^ *+' conftest.er1 >conftest.err
23289 + rm -f conftest.er1
23290 + cat conftest.err >&5
23291 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 + (exit $ac_status); } >/dev/null && {
23293 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23294 + test ! -s conftest.err
23295 + }; then
23296 + # Broken: success on invalid input.
23297 +continue
23298 +else
23299 + $as_echo "$as_me: failed program was:" >&5
23300 +sed 's/^/| /' conftest.$ac_ext >&5
23301 +
23302 + # Passes both tests.
23303 +ac_preproc_ok=:
23304 +break
23305 +fi
23306 +
23307 +rm -f conftest.err conftest.$ac_ext
23308 +
23309 +done
23310 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23311 +rm -f conftest.err conftest.$ac_ext
23312 +if $ac_preproc_ok; then
23313 + :
23314 +else
23315 + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23316 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23317 +{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
23318 +See \`config.log' for more details." >&5
23319 +$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
23320 +See \`config.log' for more details." >&2;}
23321 + { (exit 1); exit 1; }; }; }
23322 +fi
23323 +
23324 +ac_ext=c
23325 +ac_cpp='$CPP $CPPFLAGS'
23326 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23327 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23328 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
23329 +
23330 +
23331 +{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23332 +$as_echo_n "checking for ANSI C header files... " >&6; }
23333 +if test "${ac_cv_header_stdc+set}" = set; then
23334 + $as_echo_n "(cached) " >&6
23335 +else
23336 + cat >conftest.$ac_ext <<_ACEOF
23337 +/* confdefs.h. */
23338 +_ACEOF
23339 +cat confdefs.h >>conftest.$ac_ext
23340 +cat >>conftest.$ac_ext <<_ACEOF
23341 +/* end confdefs.h. */
23342 +#include <stdlib.h>
23343 +#include <stdarg.h>
23344 +#include <string.h>
23345 +#include <float.h>
23346 +
23347 +int
23348 +main ()
23349 +{
23350 +
23351 + ;
23352 + return 0;
23353 +}
23354 +_ACEOF
23355 +rm -f conftest.$ac_objext
23356 +if { (ac_try="$ac_compile"
23357 +case "(($ac_try" in
23358 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23359 + *) ac_try_echo=$ac_try;;
23360 +esac
23361 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23362 +$as_echo "$ac_try_echo") >&5
23363 + (eval "$ac_compile") 2>conftest.er1
23364 + ac_status=$?
23365 + grep -v '^ *+' conftest.er1 >conftest.err
23366 + rm -f conftest.er1
23367 + cat conftest.err >&5
23368 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369 + (exit $ac_status); } && {
23370 + test -z "$ac_c_werror_flag" ||
23371 + test ! -s conftest.err
23372 + } && test -s conftest.$ac_objext; then
23373 + ac_cv_header_stdc=yes
23374 +else
23375 + $as_echo "$as_me: failed program was:" >&5
23376 +sed 's/^/| /' conftest.$ac_ext >&5
23377 +
23378 + ac_cv_header_stdc=no
23379 +fi
23380 +
23381 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23382 +
23383 +if test $ac_cv_header_stdc = yes; then
23384 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23385 + cat >conftest.$ac_ext <<_ACEOF
23386 +/* confdefs.h. */
23387 +_ACEOF
23388 +cat confdefs.h >>conftest.$ac_ext
23389 +cat >>conftest.$ac_ext <<_ACEOF
23390 +/* end confdefs.h. */
23391 +#include <string.h>
23392 +
23393 +_ACEOF
23394 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23395 + $EGREP "memchr" >/dev/null 2>&1; then
23396 + :
23397 +else
23398 + ac_cv_header_stdc=no
23399 +fi
23400 +rm -f conftest*
23401 +
23402 +fi
23403 +
23404 +if test $ac_cv_header_stdc = yes; then
23405 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23406 + cat >conftest.$ac_ext <<_ACEOF
23407 +/* confdefs.h. */
23408 +_ACEOF
23409 +cat confdefs.h >>conftest.$ac_ext
23410 +cat >>conftest.$ac_ext <<_ACEOF
23411 +/* end confdefs.h. */
23412 +#include <stdlib.h>
23413 +
23414 +_ACEOF
23415 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23416 + $EGREP "free" >/dev/null 2>&1; then
23417 + :
23418 +else
23419 + ac_cv_header_stdc=no
23420 +fi
23421 +rm -f conftest*
23422 +
23423 +fi
23424 +
23425 +if test $ac_cv_header_stdc = yes; then
23426 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23427 + if test "$cross_compiling" = yes; then
23428 + :
23429 +else
23430 + cat >conftest.$ac_ext <<_ACEOF
23431 +/* confdefs.h. */
23432 +_ACEOF
23433 +cat confdefs.h >>conftest.$ac_ext
23434 +cat >>conftest.$ac_ext <<_ACEOF
23435 +/* end confdefs.h. */
23436 +#include <ctype.h>
23437 +#include <stdlib.h>
23438 +#if ((' ' & 0x0FF) == 0x020)
23439 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23440 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23441 +#else
23442 +# define ISLOWER(c) \
23443 + (('a' <= (c) && (c) <= 'i') \
23444 + || ('j' <= (c) && (c) <= 'r') \
23445 + || ('s' <= (c) && (c) <= 'z'))
23446 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23447 +#endif
23448 +
23449 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23450 +int
23451 +main ()
23452 +{
23453 + int i;
23454 + for (i = 0; i < 256; i++)
23455 + if (XOR (islower (i), ISLOWER (i))
23456 + || toupper (i) != TOUPPER (i))
23457 + return 2;
23458 + return 0;
23459 +}
23460 +_ACEOF
23461 +rm -f conftest$ac_exeext
23462 +if { (ac_try="$ac_link"
23463 +case "(($ac_try" in
23464 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465 + *) ac_try_echo=$ac_try;;
23466 +esac
23467 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23468 +$as_echo "$ac_try_echo") >&5
23469 + (eval "$ac_link") 2>&5
23470 + ac_status=$?
23471 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23473 + { (case "(($ac_try" in
23474 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23475 + *) ac_try_echo=$ac_try;;
23476 +esac
23477 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23478 +$as_echo "$ac_try_echo") >&5
23479 + (eval "$ac_try") 2>&5
23480 + ac_status=$?
23481 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 + (exit $ac_status); }; }; then
23483 + :
23484 +else
23485 + $as_echo "$as_me: program exited with status $ac_status" >&5
23486 +$as_echo "$as_me: failed program was:" >&5
23487 +sed 's/^/| /' conftest.$ac_ext >&5
23488 +
23489 +( exit $ac_status )
23490 +ac_cv_header_stdc=no
23491 +fi
23492 +rm -rf conftest.dSYM
23493 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23494 +fi
23495 +
23496 +
23497 +fi
23498 +fi
23499 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23500 +$as_echo "$ac_cv_header_stdc" >&6; }
23501 +if test $ac_cv_header_stdc = yes; then
23502 +
23503 +cat >>confdefs.h <<\_ACEOF
23504 +#define STDC_HEADERS 1
23505 +_ACEOF
23506 +
23507 +fi
23508 +
23509 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
23510 +
23511 +
23512 +
23513 +
23514 +
23515 +
23516 +
23517 +
23518 +
23519 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
23520 + inttypes.h stdint.h unistd.h
23521 +do
23522 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23523 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23524 +$as_echo_n "checking for $ac_header... " >&6; }
23525 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23526 + $as_echo_n "(cached) " >&6
23527 +else
23528 + cat >conftest.$ac_ext <<_ACEOF
23529 +/* confdefs.h. */
23530 +_ACEOF
23531 +cat confdefs.h >>conftest.$ac_ext
23532 +cat >>conftest.$ac_ext <<_ACEOF
23533 +/* end confdefs.h. */
23534 +$ac_includes_default
23535 +
23536 +#include <$ac_header>
23537 +_ACEOF
23538 +rm -f conftest.$ac_objext
23539 +if { (ac_try="$ac_compile"
23540 +case "(($ac_try" in
23541 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542 + *) ac_try_echo=$ac_try;;
23543 +esac
23544 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23545 +$as_echo "$ac_try_echo") >&5
23546 + (eval "$ac_compile") 2>conftest.er1
23547 + ac_status=$?
23548 + grep -v '^ *+' conftest.er1 >conftest.err
23549 + rm -f conftest.er1
23550 + cat conftest.err >&5
23551 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 + (exit $ac_status); } && {
23553 + test -z "$ac_c_werror_flag" ||
23554 + test ! -s conftest.err
23555 + } && test -s conftest.$ac_objext; then
23556 + eval "$as_ac_Header=yes"
23557 +else
23558 + $as_echo "$as_me: failed program was:" >&5
23559 +sed 's/^/| /' conftest.$ac_ext >&5
23560 +
23561 + eval "$as_ac_Header=no"
23562 +fi
23563 +
23564 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23565 +fi
23566 +ac_res=`eval 'as_val=${'$as_ac_Header'}
23567 + $as_echo "$as_val"'`
23568 + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23569 +$as_echo "$ac_res" >&6; }
23570 +as_val=`eval 'as_val=${'$as_ac_Header'}
23571 + $as_echo "$as_val"'`
23572 + if test "x$as_val" = x""yes; then
23573 + cat >>confdefs.h <<_ACEOF
23574 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23575 +_ACEOF
23576 +
23577 +fi
23578 +
23579 +done
23580 +
23581 +
23582 +
23583 +for ac_header in dlfcn.h
23584 +do
23585 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23586 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23587 +$as_echo_n "checking for $ac_header... " >&6; }
23588 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23589 + $as_echo_n "(cached) " >&6
23590 +else
23591 + cat >conftest.$ac_ext <<_ACEOF
23592 +/* confdefs.h. */
23593 +_ACEOF
23594 +cat confdefs.h >>conftest.$ac_ext
23595 +cat >>conftest.$ac_ext <<_ACEOF
23596 +/* end confdefs.h. */
23597 +$ac_includes_default
23598 +
23599 +#include <$ac_header>
23600 +_ACEOF
23601 +rm -f conftest.$ac_objext
23602 +if { (ac_try="$ac_compile"
23603 +case "(($ac_try" in
23604 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23605 + *) ac_try_echo=$ac_try;;
23606 +esac
23607 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23608 +$as_echo "$ac_try_echo") >&5
23609 + (eval "$ac_compile") 2>conftest.er1
23610 + ac_status=$?
23611 + grep -v '^ *+' conftest.er1 >conftest.err
23612 + rm -f conftest.er1
23613 + cat conftest.err >&5
23614 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 + (exit $ac_status); } && {
23616 + test -z "$ac_c_werror_flag" ||
23617 + test ! -s conftest.err
23618 + } && test -s conftest.$ac_objext; then
23619 + eval "$as_ac_Header=yes"
23620 +else
23621 + $as_echo "$as_me: failed program was:" >&5
23622 +sed 's/^/| /' conftest.$ac_ext >&5
23623 +
23624 + eval "$as_ac_Header=no"
23625 +fi
23626 +
23627 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23628 +fi
23629 +ac_res=`eval 'as_val=${'$as_ac_Header'}
23630 + $as_echo "$as_val"'`
23631 + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23632 +$as_echo "$ac_res" >&6; }
23633 +as_val=`eval 'as_val=${'$as_ac_Header'}
23634 + $as_echo "$as_val"'`
23635 + if test "x$as_val" = x""yes; then
23636 + cat >>confdefs.h <<_ACEOF
23637 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23638 +_ACEOF
23639 +
23640 +fi
23641 +
23642 +done
23643 +
23644 +
23645 +
23646 +# Set options
23647 +enable_dlopen=yes
23648 +enable_win32_dll=yes
23649 +
23650 +case $host in
23651 +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
23652 + if test -n "$ac_tool_prefix"; then
23653 + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
23654 +set dummy ${ac_tool_prefix}as; ac_word=$2
23655 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23656 +$as_echo_n "checking for $ac_word... " >&6; }
23657 +if test "${ac_cv_prog_AS+set}" = set; then
23658 + $as_echo_n "(cached) " >&6
23659 +else
23660 + if test -n "$AS"; then
23661 + ac_cv_prog_AS="$AS" # Let the user override the test.
23662 +else
23663 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23664 +for as_dir in $PATH
23665 +do
23666 + IFS=$as_save_IFS
23667 + test -z "$as_dir" && as_dir=.
23668 + for ac_exec_ext in '' $ac_executable_extensions; do
23669 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23670 + ac_cv_prog_AS="${ac_tool_prefix}as"
23671 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23672 + break 2
23673 + fi
23674 +done
23675 +done
23676 +IFS=$as_save_IFS
23677 +
23678 +fi
23679 +fi
23680 +AS=$ac_cv_prog_AS
23681 +if test -n "$AS"; then
23682 + { $as_echo "$as_me:$LINENO: result: $AS" >&5
23683 +$as_echo "$AS" >&6; }
23684 +else
23685 + { $as_echo "$as_me:$LINENO: result: no" >&5
23686 +$as_echo "no" >&6; }
23687 +fi
23688 +
23689 +
23690 +fi
23691 +if test -z "$ac_cv_prog_AS"; then
23692 + ac_ct_AS=$AS
23693 + # Extract the first word of "as", so it can be a program name with args.
23694 +set dummy as; ac_word=$2
23695 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23696 +$as_echo_n "checking for $ac_word... " >&6; }
23697 +if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
23698 + $as_echo_n "(cached) " >&6
23699 +else
23700 + if test -n "$ac_ct_AS"; then
23701 + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
23702 +else
23703 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23704 +for as_dir in $PATH
23705 +do
23706 + IFS=$as_save_IFS
23707 + test -z "$as_dir" && as_dir=.
23708 + for ac_exec_ext in '' $ac_executable_extensions; do
23709 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23710 + ac_cv_prog_ac_ct_AS="as"
23711 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23712 + break 2
23713 + fi
23714 +done
23715 +done
23716 +IFS=$as_save_IFS
23717 +
23718 +fi
23719 +fi
23720 +ac_ct_AS=$ac_cv_prog_ac_ct_AS
23721 +if test -n "$ac_ct_AS"; then
23722 + { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
23723 +$as_echo "$ac_ct_AS" >&6; }
23724 +else
23725 + { $as_echo "$as_me:$LINENO: result: no" >&5
23726 +$as_echo "no" >&6; }
23727 +fi
23728 +
23729 + if test "x$ac_ct_AS" = x; then
23730 + AS="false"
23731 + else
23732 + case $cross_compiling:$ac_tool_warned in
23733 +yes:)
23734 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
23735 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23736 +ac_tool_warned=yes ;;
23737 +esac
23738 + AS=$ac_ct_AS
23739 + fi
23740 +else
23741 + AS="$ac_cv_prog_AS"
23742 +fi
23743 +
23744 + if test -n "$ac_tool_prefix"; then
23745 + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
23746 +set dummy ${ac_tool_prefix}dlltool; ac_word=$2
23747 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23748 +$as_echo_n "checking for $ac_word... " >&6; }
23749 +if test "${ac_cv_prog_DLLTOOL+set}" = set; then
23750 + $as_echo_n "(cached) " >&6
23751 +else
23752 + if test -n "$DLLTOOL"; then
23753 + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
23754 +else
23755 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23756 +for as_dir in $PATH
23757 +do
23758 + IFS=$as_save_IFS
23759 + test -z "$as_dir" && as_dir=.
23760 + for ac_exec_ext in '' $ac_executable_extensions; do
23761 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23762 + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
23763 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23764 + break 2
23765 + fi
23766 +done
23767 +done
23768 +IFS=$as_save_IFS
23769 +
23770 +fi
23771 +fi
23772 +DLLTOOL=$ac_cv_prog_DLLTOOL
23773 +if test -n "$DLLTOOL"; then
23774 + { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
23775 +$as_echo "$DLLTOOL" >&6; }
23776 +else
23777 + { $as_echo "$as_me:$LINENO: result: no" >&5
23778 +$as_echo "no" >&6; }
23779 +fi
23780 +
23781 +
23782 +fi
23783 +if test -z "$ac_cv_prog_DLLTOOL"; then
23784 + ac_ct_DLLTOOL=$DLLTOOL
23785 + # Extract the first word of "dlltool", so it can be a program name with args.
23786 +set dummy dlltool; ac_word=$2
23787 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23788 +$as_echo_n "checking for $ac_word... " >&6; }
23789 +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
23790 + $as_echo_n "(cached) " >&6
23791 +else
23792 + if test -n "$ac_ct_DLLTOOL"; then
23793 + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
23794 +else
23795 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23796 +for as_dir in $PATH
23797 +do
23798 + IFS=$as_save_IFS
23799 + test -z "$as_dir" && as_dir=.
23800 + for ac_exec_ext in '' $ac_executable_extensions; do
23801 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23802 + ac_cv_prog_ac_ct_DLLTOOL="dlltool"
23803 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23804 + break 2
23805 + fi
23806 +done
23807 +done
23808 +IFS=$as_save_IFS
23809 +
23810 +fi
23811 +fi
23812 +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
23813 +if test -n "$ac_ct_DLLTOOL"; then
23814 + { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
23815 +$as_echo "$ac_ct_DLLTOOL" >&6; }
23816 +else
23817 + { $as_echo "$as_me:$LINENO: result: no" >&5
23818 +$as_echo "no" >&6; }
23819 +fi
23820 +
23821 + if test "x$ac_ct_DLLTOOL" = x; then
23822 + DLLTOOL="false"
23823 + else
23824 + case $cross_compiling:$ac_tool_warned in
23825 +yes:)
23826 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
23827 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23828 +ac_tool_warned=yes ;;
23829 +esac
23830 + DLLTOOL=$ac_ct_DLLTOOL
23831 + fi
23832 +else
23833 + DLLTOOL="$ac_cv_prog_DLLTOOL"
23834 +fi
23835 +
23836 + if test -n "$ac_tool_prefix"; then
23837 + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
23838 +set dummy ${ac_tool_prefix}objdump; ac_word=$2
23839 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23840 +$as_echo_n "checking for $ac_word... " >&6; }
23841 +if test "${ac_cv_prog_OBJDUMP+set}" = set; then
23842 + $as_echo_n "(cached) " >&6
23843 +else
23844 + if test -n "$OBJDUMP"; then
23845 + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
23846 +else
23847 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23848 +for as_dir in $PATH
23849 +do
23850 + IFS=$as_save_IFS
23851 + test -z "$as_dir" && as_dir=.
23852 + for ac_exec_ext in '' $ac_executable_extensions; do
23853 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23854 + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
23855 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23856 + break 2
23857 + fi
23858 +done
23859 +done
23860 +IFS=$as_save_IFS
23861 +
23862 +fi
23863 +fi
23864 +OBJDUMP=$ac_cv_prog_OBJDUMP
23865 +if test -n "$OBJDUMP"; then
23866 + { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
23867 +$as_echo "$OBJDUMP" >&6; }
23868 +else
23869 + { $as_echo "$as_me:$LINENO: result: no" >&5
23870 +$as_echo "no" >&6; }
23871 +fi
23872 +
23873 +
23874 +fi
23875 +if test -z "$ac_cv_prog_OBJDUMP"; then
23876 + ac_ct_OBJDUMP=$OBJDUMP
23877 + # Extract the first word of "objdump", so it can be a program name with args.
23878 +set dummy objdump; ac_word=$2
23879 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23880 +$as_echo_n "checking for $ac_word... " >&6; }
23881 +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
23882 + $as_echo_n "(cached) " >&6
23883 +else
23884 + if test -n "$ac_ct_OBJDUMP"; then
23885 + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
23886 +else
23887 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23888 +for as_dir in $PATH
23889 +do
23890 + IFS=$as_save_IFS
23891 + test -z "$as_dir" && as_dir=.
23892 + for ac_exec_ext in '' $ac_executable_extensions; do
23893 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23894 + ac_cv_prog_ac_ct_OBJDUMP="objdump"
23895 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23896 + break 2
23897 + fi
23898 +done
23899 +done
23900 +IFS=$as_save_IFS
23901 +
23902 +fi
23903 +fi
23904 +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
23905 +if test -n "$ac_ct_OBJDUMP"; then
23906 + { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
23907 +$as_echo "$ac_ct_OBJDUMP" >&6; }
23908 +else
23909 + { $as_echo "$as_me:$LINENO: result: no" >&5
23910 +$as_echo "no" >&6; }
23911 +fi
23912 +
23913 + if test "x$ac_ct_OBJDUMP" = x; then
23914 + OBJDUMP="false"
23915 + else
23916 + case $cross_compiling:$ac_tool_warned in
23917 +yes:)
23918 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
23919 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23920 +ac_tool_warned=yes ;;
23921 +esac
23922 + OBJDUMP=$ac_ct_OBJDUMP
23923 + fi
23924 +else
23925 + OBJDUMP="$ac_cv_prog_OBJDUMP"
23926 +fi
23927 +
23928 + ;;
23929 +esac
23930 +
23931 +test -z "$AS" && AS=as
23932 +
23933 +
23934 +
23935 +
23936 +
23937 +test -z "$DLLTOOL" && DLLTOOL=dlltool
23938 +
23939 +
23940 +
23941 +
23942 +
23943 +test -z "$OBJDUMP" && OBJDUMP=objdump
23944 +
23945 +
23946 +
23947 +
23948 +
23949 +
23950 +
23951 +
23952 +
23953 + # Check whether --enable-shared was given.
23954 +if test "${enable_shared+set}" = set; then
23955 + enableval=$enable_shared; p=${PACKAGE-default}
23956 + case $enableval in
23957 + yes) enable_shared=yes ;;
23958 + no) enable_shared=no ;;
23959 + *)
23960 + enable_shared=no
23961 + # Look at the argument we got. We use all the common list separators.
23962 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
23963 + for pkg in $enableval; do
23964 + IFS="$lt_save_ifs"
23965 + if test "X$pkg" = "X$p"; then
23966 + enable_shared=yes
23967 + fi
23968 + done
23969 + IFS="$lt_save_ifs"
23970 + ;;
23971 + esac
23972 +else
23973 + enable_shared=yes
23974 +fi
23975 +
23976 +
23977 +
23978 +
23979 +
23980 +
23981 +
23982 +
23983 +
23984 + # Check whether --enable-static was given.
23985 +if test "${enable_static+set}" = set; then
23986 + enableval=$enable_static; p=${PACKAGE-default}
23987 + case $enableval in
23988 + yes) enable_static=yes ;;
23989 + no) enable_static=no ;;
23990 + *)
23991 + enable_static=no
23992 + # Look at the argument we got. We use all the common list separators.
23993 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
23994 + for pkg in $enableval; do
23995 + IFS="$lt_save_ifs"
23996 + if test "X$pkg" = "X$p"; then
23997 + enable_static=yes
23998 + fi
23999 + done
24000 + IFS="$lt_save_ifs"
24001 + ;;
24002 + esac
24003 +else
24004 + enable_static=yes
24005 +fi
24006 +
24007 +
24008 +
24009 +
24010 +
24011 +
24012 +
24013 +
24014 +
24015 +
24016 +# Check whether --with-pic was given.
24017 +if test "${with_pic+set}" = set; then
24018 + withval=$with_pic; pic_mode="$withval"
24019 +else
24020 + pic_mode=default
24021 +fi
24022 +
24023 +
24024 +test -z "$pic_mode" && pic_mode=default
24025 +
24026 +
24027 +
24028 +
24029 +
24030 +
24031 +
24032 + # Check whether --enable-fast-install was given.
24033 +if test "${enable_fast_install+set}" = set; then
24034 + enableval=$enable_fast_install; p=${PACKAGE-default}
24035 + case $enableval in
24036 + yes) enable_fast_install=yes ;;
24037 + no) enable_fast_install=no ;;
24038 + *)
24039 + enable_fast_install=no
24040 + # Look at the argument we got. We use all the common list separators.
24041 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
24042 + for pkg in $enableval; do
24043 + IFS="$lt_save_ifs"
24044 + if test "X$pkg" = "X$p"; then
24045 + enable_fast_install=yes
24046 + fi
24047 + done
24048 + IFS="$lt_save_ifs"
24049 + ;;
24050 + esac
24051 +else
24052 + enable_fast_install=yes
24053 +fi
24054 +
24055 +
24056 +
24057 +
24058 +
24059 +
24060 +
24061 +
24062 +
24063 +
24064 +
24065 +# This can be used to rebuild libtool when needed
24066 +LIBTOOL_DEPS="$ltmain"
24067 +
24068 +# Always use our own libtool.
24069 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
24070 +
24071 +
24072 +
24073 +
24074 +
24075 +
24076 +
24077 +
24078 +
24079 +
24080 +
24081 +
24082 +
24083 +
24084 +
24085 +
24086 +
24087 +
24088 +
24089 +
24090 +
24091 +
24092 +
24093 +
24094 +
24095 +test -z "$LN_S" && LN_S="ln -s"
24096 +
24097 +
24098 +
24099 +
24100 +
24101 +
24102 +
24103 +
24104 +
24105 +
24106 +
24107 +
24108 +
24109 +
24110 +if test -n "${ZSH_VERSION+set}" ; then
24111 + setopt NO_GLOB_SUBST
24112 +fi
24113 +
24114 +{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
24115 +$as_echo_n "checking for objdir... " >&6; }
24116 +if test "${lt_cv_objdir+set}" = set; then
24117 + $as_echo_n "(cached) " >&6
24118 +else
24119 + rm -f .libs 2>/dev/null
24120 +mkdir .libs 2>/dev/null
24121 +if test -d .libs; then
24122 + lt_cv_objdir=.libs
24123 +else
24124 + # MS-DOS does not allow filenames that begin with a dot.
24125 + lt_cv_objdir=_libs
24126 +fi
24127 +rmdir .libs 2>/dev/null
24128 +fi
24129 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
24130 +$as_echo "$lt_cv_objdir" >&6; }
24131 +objdir=$lt_cv_objdir
24132 +
24133 +
24134 +
24135 +
24136 +
24137 +cat >>confdefs.h <<_ACEOF
24138 +#define LT_OBJDIR "$lt_cv_objdir/"
24139 +_ACEOF
24140 +
24141 +
24142 +
24143 +
24144 +
24145 +
24146 +
24147 +
24148 +
24149 +
24150 +
24151 +
24152 +
24153 +
24154 +
24155 +
24156 +
24157 +case $host_os in
24158 +aix3*)
24159 + # AIX sometimes has problems with the GCC collect2 program. For some
24160 + # reason, if we set the COLLECT_NAMES environment variable, the problems
24161 + # vanish in a puff of smoke.
24162 + if test "X${COLLECT_NAMES+set}" != Xset; then
24163 + COLLECT_NAMES=
24164 + export COLLECT_NAMES
24165 + fi
24166 + ;;
24167 +esac
24168 +
24169 +# Sed substitution that helps us do robust quoting. It backslashifies
24170 +# metacharacters that are still active within double-quoted strings.
24171 +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
24172 +
24173 +# Same as above, but do not quote variable references.
24174 +double_quote_subst='s/\(["`\\]\)/\\\1/g'
24175 +
24176 +# Sed substitution to delay expansion of an escaped shell variable in a
24177 +# double_quote_subst'ed string.
24178 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
24179 +
24180 +# Sed substitution to delay expansion of an escaped single quote.
24181 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
24182 +
24183 +# Sed substitution to avoid accidental globbing in evaled expressions
24184 +no_glob_subst='s/\*/\\\*/g'
24185 +
24186 +# Global variables:
24187 +ofile=libtool
24188 +can_build_shared=yes
24189 +
24190 +# All known linkers require a `.a' archive for static linking (except MSVC,
24191 +# which needs '.lib').
24192 +libext=a
24193 +
24194 +with_gnu_ld="$lt_cv_prog_gnu_ld"
24195 +
24196 +old_CC="$CC"
24197 +old_CFLAGS="$CFLAGS"
24198 +
24199 +# Set sane defaults for various variables
24200 +test -z "$CC" && CC=cc
24201 +test -z "$LTCC" && LTCC=$CC
24202 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
24203 +test -z "$LD" && LD=ld
24204 +test -z "$ac_objext" && ac_objext=o
24205 +
24206 +for cc_temp in $compiler""; do
24207 + case $cc_temp in
24208 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24209 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24210 + \-*) ;;
24211 + *) break;;
24212 + esac
24213 +done
24214 +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24215 +
24216 +
24217 +# Only perform the check for file, if the check method requires it
24218 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
24219 +case $deplibs_check_method in
24220 +file_magic*)
24221 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
24222 + { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
24223 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
24224 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
24225 + $as_echo_n "(cached) " >&6
24226 +else
24227 + case $MAGIC_CMD in
24228 +[\\/*] | ?:[\\/]*)
24229 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
24230 + ;;
24231 +*)
24232 + lt_save_MAGIC_CMD="$MAGIC_CMD"
24233 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
24234 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
24235 + for ac_dir in $ac_dummy; do
24236 + IFS="$lt_save_ifs"
24237 + test -z "$ac_dir" && ac_dir=.
24238 + if test -f $ac_dir/${ac_tool_prefix}file; then
24239 + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
24240 + if test -n "$file_magic_test_file"; then
24241 + case $deplibs_check_method in
24242 + "file_magic "*)
24243 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
24244 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
24245 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
24246 + $EGREP "$file_magic_regex" > /dev/null; then
24247 + :
24248 + else
24249 + cat <<_LT_EOF 1>&2
24250 +
24251 +*** Warning: the command libtool uses to detect shared libraries,
24252 +*** $file_magic_cmd, produces output that libtool cannot recognize.
24253 +*** The result is that libtool may fail to recognize shared libraries
24254 +*** as such. This will affect the creation of libtool libraries that
24255 +*** depend on shared libraries, but programs linked with such libtool
24256 +*** libraries will work regardless of this problem. Nevertheless, you
24257 +*** may want to report the problem to your system manager and/or to
24258 +*** [email protected]
24259 +
24260 +_LT_EOF
24261 + fi ;;
24262 + esac
24263 + fi
24264 + break
24265 + fi
24266 + done
24267 + IFS="$lt_save_ifs"
24268 + MAGIC_CMD="$lt_save_MAGIC_CMD"
24269 + ;;
24270 +esac
24271 +fi
24272 +
24273 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
24274 +if test -n "$MAGIC_CMD"; then
24275 + { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
24276 +$as_echo "$MAGIC_CMD" >&6; }
24277 +else
24278 + { $as_echo "$as_me:$LINENO: result: no" >&5
24279 +$as_echo "no" >&6; }
24280 +fi
24281 +
24282 +
24283 +
24284 +
24285 +
24286 +if test -z "$lt_cv_path_MAGIC_CMD"; then
24287 + if test -n "$ac_tool_prefix"; then
24288 + { $as_echo "$as_me:$LINENO: checking for file" >&5
24289 +$as_echo_n "checking for file... " >&6; }
24290 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
24291 + $as_echo_n "(cached) " >&6
24292 +else
24293 + case $MAGIC_CMD in
24294 +[\\/*] | ?:[\\/]*)
24295 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
24296 + ;;
24297 +*)
24298 + lt_save_MAGIC_CMD="$MAGIC_CMD"
24299 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
24300 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
24301 + for ac_dir in $ac_dummy; do
24302 + IFS="$lt_save_ifs"
24303 + test -z "$ac_dir" && ac_dir=.
24304 + if test -f $ac_dir/file; then
24305 + lt_cv_path_MAGIC_CMD="$ac_dir/file"
24306 + if test -n "$file_magic_test_file"; then
24307 + case $deplibs_check_method in
24308 + "file_magic "*)
24309 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
24310 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
24311 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
24312 + $EGREP "$file_magic_regex" > /dev/null; then
24313 + :
24314 + else
24315 + cat <<_LT_EOF 1>&2
24316 +
24317 +*** Warning: the command libtool uses to detect shared libraries,
24318 +*** $file_magic_cmd, produces output that libtool cannot recognize.
24319 +*** The result is that libtool may fail to recognize shared libraries
24320 +*** as such. This will affect the creation of libtool libraries that
24321 +*** depend on shared libraries, but programs linked with such libtool
24322 +*** libraries will work regardless of this problem. Nevertheless, you
24323 +*** may want to report the problem to your system manager and/or to
24324 +*** [email protected]
24325 +
24326 +_LT_EOF
24327 + fi ;;
24328 + esac
24329 + fi
24330 + break
24331 + fi
24332 + done
24333 + IFS="$lt_save_ifs"
24334 + MAGIC_CMD="$lt_save_MAGIC_CMD"
24335 + ;;
24336 +esac
24337 +fi
24338 +
24339 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
24340 +if test -n "$MAGIC_CMD"; then
24341 + { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
24342 +$as_echo "$MAGIC_CMD" >&6; }
24343 +else
24344 + { $as_echo "$as_me:$LINENO: result: no" >&5
24345 +$as_echo "no" >&6; }
24346 +fi
24347 +
24348 +
24349 + else
24350 + MAGIC_CMD=:
24351 + fi
24352 +fi
24353 +
24354 + fi
24355 + ;;
24356 +esac
24357 +
24358 +# Use C for the default configuration in the libtool script
24359 +
24360 +lt_save_CC="$CC"
24361 +ac_ext=c
24362 +ac_cpp='$CPP $CPPFLAGS'
24363 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24364 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24365 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
24366 +
24367 +
24368 +# Source file extension for C test sources.
24369 +ac_ext=c
24370 +
24371 +# Object file extension for compiled C test sources.
24372 +objext=o
24373 +objext=$objext
24374 +
24375 +# Code to be used in simple compile tests
24376 +lt_simple_compile_test_code="int some_variable = 0;"
24377 +
24378 +# Code to be used in simple link tests
24379 +lt_simple_link_test_code='int main(){return(0);}'
24380 +
24381 +
24382 +
24383 +
24384 +
24385 +
24386 +
24387 +# If no C compiler was specified, use CC.
24388 +LTCC=${LTCC-"$CC"}
24389 +
24390 +# If no C compiler flags were specified, use CFLAGS.
24391 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24392 +
24393 +# Allow CC to be a program name with arguments.
24394 +compiler=$CC
24395 +
24396 +# Save the default compiler, since it gets overwritten when the other
24397 +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
24398 +compiler_DEFAULT=$CC
24399 +
24400 +# save warnings/boilerplate of simple test code
24401 +ac_outfile=conftest.$ac_objext
24402 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
24403 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24404 +_lt_compiler_boilerplate=`cat conftest.err`
24405 +$RM conftest*
24406 +
24407 +ac_outfile=conftest.$ac_objext
24408 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
24409 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24410 +_lt_linker_boilerplate=`cat conftest.err`
24411 +$RM -r conftest*
24412 +
24413 +
24414 +## CAVEAT EMPTOR:
24415 +## There is no encapsulation within the following macros, do not change
24416 +## the running order or otherwise move them around unless you know exactly
24417 +## what you are doing...
24418 +if test -n "$compiler"; then
24419 +
24420 +lt_prog_compiler_no_builtin_flag=
24421 +
24422 +if test "$GCC" = yes; then
24423 + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
24424 +
24425 + { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24426 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
24427 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24428 + $as_echo_n "(cached) " >&6
24429 +else
24430 + lt_cv_prog_compiler_rtti_exceptions=no
24431 + ac_outfile=conftest.$ac_objext
24432 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24433 + lt_compiler_flag="-fno-rtti -fno-exceptions"
24434 + # Insert the option either (1) after the last *FLAGS variable, or
24435 + # (2) before a word containing "conftest.", or (3) at the end.
24436 + # Note that $ac_compile itself does not contain backslashes and begins
24437 + # with a dollar sign (not a hyphen), so the echo should work correctly.
24438 + # The option is referenced via a variable to avoid confusing sed.
24439 + lt_compile=`echo "$ac_compile" | $SED \
24440 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24441 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24442 + -e 's:$: $lt_compiler_flag:'`
24443 + (eval echo "\"\$as_me:7773: $lt_compile\"" >&5)
24444 + (eval "$lt_compile" 2>conftest.err)
24445 + ac_status=$?
24446 + cat conftest.err >&5
24447 + echo "$as_me:7777: \$? = $ac_status" >&5
24448 + if (exit $ac_status) && test -s "$ac_outfile"; then
24449 + # The compiler can only warn and ignore the option if not recognized
24450 + # So say no if there are warnings other than the usual output.
24451 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24452 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24453 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24454 + lt_cv_prog_compiler_rtti_exceptions=yes
24455 + fi
24456 + fi
24457 + $RM conftest*
24458 +
24459 +fi
24460 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24461 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24462 +
24463 +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24464 + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
24465 +else
24466 + :
24467 +fi
24468 +
24469 +fi
24470 +
24471 +
24472 +
24473 +
24474 +
24475 +
24476 + lt_prog_compiler_wl=
24477 +lt_prog_compiler_pic=
24478 +lt_prog_compiler_static=
24479 +
24480 +{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24481 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
24482 +
24483 + if test "$GCC" = yes; then
24484 + lt_prog_compiler_wl='-Wl,'
24485 + lt_prog_compiler_static='-static'
24486 +
24487 + case $host_os in
24488 + aix*)
24489 + # All AIX code is PIC.
24490 + if test "$host_cpu" = ia64; then
24491 + # AIX 5 now supports IA64 processor
24492 + lt_prog_compiler_static='-Bstatic'
24493 + fi
24494 + ;;
24495 +
24496 + amigaos*)
24497 + case $host_cpu in
24498 + powerpc)
24499 + # see comment about AmigaOS4 .so support
24500 + lt_prog_compiler_pic='-fPIC'
24501 + ;;
24502 + m68k)
24503 + # FIXME: we need at least 68020 code to build shared libraries, but
24504 + # adding the `-m68020' flag to GCC prevents building anything better,
24505 + # like `-m68040'.
24506 + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
24507 + ;;
24508 + esac
24509 + ;;
24510 +
24511 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24512 + # PIC is the default for these OSes.
24513 + ;;
24514 +
24515 + mingw* | cygwin* | pw32* | os2* | cegcc*)
24516 + # This hack is so that the source file can tell whether it is being
24517 + # built for inclusion in a dll (and should export symbols for example).
24518 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
24519 + # (--disable-auto-import) libraries
24520 + lt_prog_compiler_pic='-DDLL_EXPORT'
24521 + ;;
24522 +
24523 + darwin* | rhapsody*)
24524 + # PIC is the default on this platform
24525 + # Common symbols not allowed in MH_DYLIB files
24526 + lt_prog_compiler_pic='-fno-common'
24527 + ;;
24528 +
24529 + hpux*)
24530 + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
24531 + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
24532 + # sets the default TLS model and affects inlining.
24533 + case $host_cpu in
24534 + hppa*64*)
24535 + # +Z the default
24536 + ;;
24537 + *)
24538 + lt_prog_compiler_pic='-fPIC'
24539 + ;;
24540 + esac
24541 + ;;
24542 +
24543 + interix[3-9]*)
24544 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24545 + # Instead, we relocate shared libraries at runtime.
24546 + ;;
24547 +
24548 + msdosdjgpp*)
24549 + # Just because we use GCC doesn't mean we suddenly get shared libraries
24550 + # on systems that don't support them.
24551 + lt_prog_compiler_can_build_shared=no
24552 + enable_shared=no
24553 + ;;
24554 +
24555 + *nto* | *qnx*)
24556 + # QNX uses GNU C++, but need to define -shared option too, otherwise
24557 + # it will coredump.
24558 + lt_prog_compiler_pic='-fPIC -shared'
24559 + ;;
24560 +
24561 + sysv4*MP*)
24562 + if test -d /usr/nec; then
24563 + lt_prog_compiler_pic=-Kconform_pic
24564 + fi
24565 + ;;
24566 +
24567 + *)
24568 + lt_prog_compiler_pic='-fPIC'
24569 + ;;
24570 + esac
24571 + else
24572 + # PORTME Check for flag to pass linker flags through the system compiler.
24573 + case $host_os in
24574 + aix*)
24575 + lt_prog_compiler_wl='-Wl,'
24576 + if test "$host_cpu" = ia64; then
24577 + # AIX 5 now supports IA64 processor
24578 + lt_prog_compiler_static='-Bstatic'
24579 + else
24580 + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
24581 + fi
24582 + ;;
24583 +
24584 + mingw* | cygwin* | pw32* | os2* | cegcc*)
24585 + # This hack is so that the source file can tell whether it is being
24586 + # built for inclusion in a dll (and should export symbols for example).
24587 + lt_prog_compiler_pic='-DDLL_EXPORT'
24588 + ;;
24589 +
24590 + hpux9* | hpux10* | hpux11*)
24591 + lt_prog_compiler_wl='-Wl,'
24592 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24593 + # not for PA HP-UX.
24594 + case $host_cpu in
24595 + hppa*64*|ia64*)
24596 + # +Z the default
24597 + ;;
24598 + *)
24599 + lt_prog_compiler_pic='+Z'
24600 + ;;
24601 + esac
24602 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
24603 + lt_prog_compiler_static='${wl}-a ${wl}archive'
24604 + ;;
24605 +
24606 + irix5* | irix6* | nonstopux*)
24607 + lt_prog_compiler_wl='-Wl,'
24608 + # PIC (with -KPIC) is the default.
24609 + lt_prog_compiler_static='-non_shared'
24610 + ;;
24611 +
24612 + linux* | k*bsd*-gnu)
24613 + case $cc_basename in
24614 + # old Intel for x86_64 which still supported -KPIC.
24615 + ecc*)
24616 + lt_prog_compiler_wl='-Wl,'
24617 + lt_prog_compiler_pic='-KPIC'
24618 + lt_prog_compiler_static='-static'
24619 + ;;
24620 + # icc used to be incompatible with GCC.
24621 + # ICC 10 doesn't accept -KPIC any more.
24622 + icc* | ifort*)
24623 + lt_prog_compiler_wl='-Wl,'
24624 + lt_prog_compiler_pic='-fPIC'
24625 + lt_prog_compiler_static='-static'
24626 + ;;
24627 + # Lahey Fortran 8.1.
24628 + lf95*)
24629 + lt_prog_compiler_wl='-Wl,'
24630 + lt_prog_compiler_pic='--shared'
24631 + lt_prog_compiler_static='--static'
24632 + ;;
24633 + pgcc* | pgf77* | pgf90* | pgf95*)
24634 + # Portland Group compilers (*not* the Pentium gcc compiler,
24635 + # which looks to be a dead project)
24636 + lt_prog_compiler_wl='-Wl,'
24637 + lt_prog_compiler_pic='-fpic'
24638 + lt_prog_compiler_static='-Bstatic'
24639 + ;;
24640 + ccc*)
24641 + lt_prog_compiler_wl='-Wl,'
24642 + # All Alpha code is PIC.
24643 + lt_prog_compiler_static='-non_shared'
24644 + ;;
24645 + xl*)
24646 + # IBM XL C 8.0/Fortran 10.1 on PPC
24647 + lt_prog_compiler_wl='-Wl,'
24648 + lt_prog_compiler_pic='-qpic'
24649 + lt_prog_compiler_static='-qstaticlink'
24650 + ;;
24651 + *)
24652 + case `$CC -V 2>&1 | sed 5q` in
24653 + *Sun\ C*)
24654 + # Sun C 5.9
24655 + lt_prog_compiler_pic='-KPIC'
24656 + lt_prog_compiler_static='-Bstatic'
24657 + lt_prog_compiler_wl='-Wl,'
24658 + ;;
24659 + *Sun\ F*)
24660 + # Sun Fortran 8.3 passes all unrecognized flags to the linker
24661 + lt_prog_compiler_pic='-KPIC'
24662 + lt_prog_compiler_static='-Bstatic'
24663 + lt_prog_compiler_wl=''
24664 + ;;
24665 + esac
24666 + ;;
24667 + esac
24668 + ;;
24669 +
24670 + newsos6)
24671 + lt_prog_compiler_pic='-KPIC'
24672 + lt_prog_compiler_static='-Bstatic'
24673 + ;;
24674 +
24675 + *nto* | *qnx*)
24676 + # QNX uses GNU C++, but need to define -shared option too, otherwise
24677 + # it will coredump.
24678 + lt_prog_compiler_pic='-fPIC -shared'
24679 + ;;
24680 +
24681 + osf3* | osf4* | osf5*)
24682 + lt_prog_compiler_wl='-Wl,'
24683 + # All OSF/1 code is PIC.
24684 + lt_prog_compiler_static='-non_shared'
24685 + ;;
24686 +
24687 + rdos*)
24688 + lt_prog_compiler_static='-non_shared'
24689 + ;;
24690 +
24691 + solaris*)
24692 + lt_prog_compiler_pic='-KPIC'
24693 + lt_prog_compiler_static='-Bstatic'
24694 + case $cc_basename in
24695 + f77* | f90* | f95*)
24696 + lt_prog_compiler_wl='-Qoption ld ';;
24697 + *)
24698 + lt_prog_compiler_wl='-Wl,';;
24699 + esac
24700 + ;;
24701 +
24702 + sunos4*)
24703 + lt_prog_compiler_wl='-Qoption ld '
24704 + lt_prog_compiler_pic='-PIC'
24705 + lt_prog_compiler_static='-Bstatic'
24706 + ;;
24707 +
24708 + sysv4 | sysv4.2uw2* | sysv4.3*)
24709 + lt_prog_compiler_wl='-Wl,'
24710 + lt_prog_compiler_pic='-KPIC'
24711 + lt_prog_compiler_static='-Bstatic'
24712 + ;;
24713 +
24714 + sysv4*MP*)
24715 + if test -d /usr/nec ;then
24716 + lt_prog_compiler_pic='-Kconform_pic'
24717 + lt_prog_compiler_static='-Bstatic'
24718 + fi
24719 + ;;
24720 +
24721 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24722 + lt_prog_compiler_wl='-Wl,'
24723 + lt_prog_compiler_pic='-KPIC'
24724 + lt_prog_compiler_static='-Bstatic'
24725 + ;;
24726 +
24727 + unicos*)
24728 + lt_prog_compiler_wl='-Wl,'
24729 + lt_prog_compiler_can_build_shared=no
24730 + ;;
24731 +
24732 + uts4*)
24733 + lt_prog_compiler_pic='-pic'
24734 + lt_prog_compiler_static='-Bstatic'
24735 + ;;
24736 +
24737 + *)
24738 + lt_prog_compiler_can_build_shared=no
24739 + ;;
24740 + esac
24741 + fi
24742 +
24743 +case $host_os in
24744 + # For platforms which do not support PIC, -DPIC is meaningless:
24745 + *djgpp*)
24746 + lt_prog_compiler_pic=
24747 + ;;
24748 + *)
24749 + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
24750 + ;;
24751 +esac
24752 +{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
24753 +$as_echo "$lt_prog_compiler_pic" >&6; }
24754 +
24755 +
24756 +
24757 +
24758 +
24759 +
24760 +#
24761 +# Check to make sure the PIC flag actually works.
24762 +#
24763 +if test -n "$lt_prog_compiler_pic"; then
24764 + { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
24765 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
24766 +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
24767 + $as_echo_n "(cached) " >&6
24768 +else
24769 + lt_cv_prog_compiler_pic_works=no
24770 + ac_outfile=conftest.$ac_objext
24771 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24772 + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
24773 + # Insert the option either (1) after the last *FLAGS variable, or
24774 + # (2) before a word containing "conftest.", or (3) at the end.
24775 + # Note that $ac_compile itself does not contain backslashes and begins
24776 + # with a dollar sign (not a hyphen), so the echo should work correctly.
24777 + # The option is referenced via a variable to avoid confusing sed.
24778 + lt_compile=`echo "$ac_compile" | $SED \
24779 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24780 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24781 + -e 's:$: $lt_compiler_flag:'`
24782 + (eval echo "\"\$as_me:8112: $lt_compile\"" >&5)
24783 + (eval "$lt_compile" 2>conftest.err)
24784 + ac_status=$?
24785 + cat conftest.err >&5
24786 + echo "$as_me:8116: \$? = $ac_status" >&5
24787 + if (exit $ac_status) && test -s "$ac_outfile"; then
24788 + # The compiler can only warn and ignore the option if not recognized
24789 + # So say no if there are warnings other than the usual output.
24790 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24791 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24792 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24793 + lt_cv_prog_compiler_pic_works=yes
24794 + fi
24795 + fi
24796 + $RM conftest*
24797 +
24798 +fi
24799 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
24800 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
24801 +
24802 +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
24803 + case $lt_prog_compiler_pic in
24804 + "" | " "*) ;;
24805 + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
24806 + esac
24807 +else
24808 + lt_prog_compiler_pic=
24809 + lt_prog_compiler_can_build_shared=no
24810 +fi
24811 +
24812 +fi
24813 +
24814 +
24815 +
24816 +
24817 +
24818 +
24819 +#
24820 +# Check to make sure the static flag actually works.
24821 +#
24822 +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
24823 +{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24824 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
24825 +if test "${lt_cv_prog_compiler_static_works+set}" = set; then
24826 + $as_echo_n "(cached) " >&6
24827 +else
24828 + lt_cv_prog_compiler_static_works=no
24829 + save_LDFLAGS="$LDFLAGS"
24830 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24831 + echo "$lt_simple_link_test_code" > conftest.$ac_ext
24832 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24833 + # The linker can only warn and ignore the option if not recognized
24834 + # So say no if there are warnings
24835 + if test -s conftest.err; then
24836 + # Append any errors to the config.log.
24837 + cat conftest.err 1>&5
24838 + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24839 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24840 + if diff conftest.exp conftest.er2 >/dev/null; then
24841 + lt_cv_prog_compiler_static_works=yes
24842 + fi
24843 + else
24844 + lt_cv_prog_compiler_static_works=yes
24845 + fi
24846 + fi
24847 + $RM -r conftest*
24848 + LDFLAGS="$save_LDFLAGS"
24849 +
24850 +fi
24851 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
24852 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
24853 +
24854 +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
24855 + :
24856 +else
24857 + lt_prog_compiler_static=
24858 +fi
24859 +
24860 +
24861 +
24862 +
24863 +
24864 +
24865 +
24866 + { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24867 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
24868 +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
24869 + $as_echo_n "(cached) " >&6
24870 +else
24871 + lt_cv_prog_compiler_c_o=no
24872 + $RM -r conftest 2>/dev/null
24873 + mkdir conftest
24874 + cd conftest
24875 + mkdir out
24876 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24877 +
24878 + lt_compiler_flag="-o out/conftest2.$ac_objext"
24879 + # Insert the option either (1) after the last *FLAGS variable, or
24880 + # (2) before a word containing "conftest.", or (3) at the end.
24881 + # Note that $ac_compile itself does not contain backslashes and begins
24882 + # with a dollar sign (not a hyphen), so the echo should work correctly.
24883 + lt_compile=`echo "$ac_compile" | $SED \
24884 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24885 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24886 + -e 's:$: $lt_compiler_flag:'`
24887 + (eval echo "\"\$as_me:8217: $lt_compile\"" >&5)
24888 + (eval "$lt_compile" 2>out/conftest.err)
24889 + ac_status=$?
24890 + cat out/conftest.err >&5
24891 + echo "$as_me:8221: \$? = $ac_status" >&5
24892 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
24893 + then
24894 + # The compiler can only warn and ignore the option if not recognized
24895 + # So say no if there are warnings
24896 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24897 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24898 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24899 + lt_cv_prog_compiler_c_o=yes
24900 + fi
24901 + fi
24902 + chmod u+w . 2>&5
24903 + $RM conftest*
24904 + # SGI C++ compiler will create directory out/ii_files/ for
24905 + # template instantiation
24906 + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
24907 + $RM out/* && rmdir out
24908 + cd ..
24909 + $RM -r conftest
24910 + $RM conftest*
24911 +
24912 +fi
24913 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
24914 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
24915 +
24916 +
24917 +
24918 +
24919 +
24920 +
24921 + { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24922 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
24923 +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
24924 + $as_echo_n "(cached) " >&6
24925 +else
24926 + lt_cv_prog_compiler_c_o=no
24927 + $RM -r conftest 2>/dev/null
24928 + mkdir conftest
24929 + cd conftest
24930 + mkdir out
24931 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24932 +
24933 + lt_compiler_flag="-o out/conftest2.$ac_objext"
24934 + # Insert the option either (1) after the last *FLAGS variable, or
24935 + # (2) before a word containing "conftest.", or (3) at the end.
24936 + # Note that $ac_compile itself does not contain backslashes and begins
24937 + # with a dollar sign (not a hyphen), so the echo should work correctly.
24938 + lt_compile=`echo "$ac_compile" | $SED \
24939 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24940 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24941 + -e 's:$: $lt_compiler_flag:'`
24942 + (eval echo "\"\$as_me:8272: $lt_compile\"" >&5)
24943 + (eval "$lt_compile" 2>out/conftest.err)
24944 + ac_status=$?
24945 + cat out/conftest.err >&5
24946 + echo "$as_me:8276: \$? = $ac_status" >&5
24947 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
24948 + then
24949 + # The compiler can only warn and ignore the option if not recognized
24950 + # So say no if there are warnings
24951 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24952 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24953 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24954 + lt_cv_prog_compiler_c_o=yes
24955 + fi
24956 + fi
24957 + chmod u+w . 2>&5
24958 + $RM conftest*
24959 + # SGI C++ compiler will create directory out/ii_files/ for
24960 + # template instantiation
24961 + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
24962 + $RM out/* && rmdir out
24963 + cd ..
24964 + $RM -r conftest
24965 + $RM conftest*
24966 +
24967 +fi
24968 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
24969 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
24970 +
24971 +
24972 +
24973 +
24974 +hard_links="nottested"
24975 +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
24976 + # do not overwrite the value of need_locks provided by the user
24977 + { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24978 +$as_echo_n "checking if we can lock with hard links... " >&6; }
24979 + hard_links=yes
24980 + $RM conftest*
24981 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
24982 + touch conftest.a
24983 + ln conftest.a conftest.b 2>&5 || hard_links=no
24984 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
24985 + { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
24986 +$as_echo "$hard_links" >&6; }
24987 + if test "$hard_links" = no; then
24988 + { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24989 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24990 + need_locks=warn
24991 + fi
24992 +else
24993 + need_locks=no
24994 +fi
24995 +
24996 +
24997 +
24998 +
24999 +
25000 +
25001 + { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25002 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
25003 +
25004 + runpath_var=
25005 + allow_undefined_flag=
25006 + always_export_symbols=no
25007 + archive_cmds=
25008 + archive_expsym_cmds=
25009 + compiler_needs_object=no
25010 + enable_shared_with_static_runtimes=no
25011 + export_dynamic_flag_spec=
25012 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
25013 + hardcode_automatic=no
25014 + hardcode_direct=no
25015 + hardcode_direct_absolute=no
25016 + hardcode_libdir_flag_spec=
25017 + hardcode_libdir_flag_spec_ld=
25018 + hardcode_libdir_separator=
25019 + hardcode_minus_L=no
25020 + hardcode_shlibpath_var=unsupported
25021 + inherit_rpath=no
25022 + link_all_deplibs=unknown
25023 + module_cmds=
25024 + module_expsym_cmds=
25025 + old_archive_from_new_cmds=
25026 + old_archive_from_expsyms_cmds=
25027 + thread_safe_flag_spec=
25028 + whole_archive_flag_spec=
25029 + # include_expsyms should be a list of space-separated symbols to be *always*
25030 + # included in the symbol list
25031 + include_expsyms=
25032 + # exclude_expsyms can be an extended regexp of symbols to exclude
25033 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
25034 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
25035 + # as well as any symbol that contains `d'.
25036 + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
25037 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
25038 + # platforms (ab)use it in PIC code, but their linkers get confused if
25039 + # the symbol is explicitly referenced. Since portable code cannot
25040 + # rely on this symbol name, it's probably fine to never include it in
25041 + # preloaded symbol tables.
25042 + # Exclude shared library initialization/finalization symbols.
25043 + extract_expsyms_cmds=
25044 +
25045 + case $host_os in
25046 + cygwin* | mingw* | pw32* | cegcc*)
25047 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
25048 + # When not using gcc, we currently assume that we are using
25049 + # Microsoft Visual C++.
25050 + if test "$GCC" != yes; then
25051 + with_gnu_ld=no
25052 + fi
25053 + ;;
25054 + interix*)
25055 + # we just hope/assume this is gcc and not c89 (= MSVC++)
25056 + with_gnu_ld=yes
25057 + ;;
25058 + openbsd*)
25059 + with_gnu_ld=no
25060 + ;;
25061 + esac
25062 +
25063 + ld_shlibs=yes
25064 + if test "$with_gnu_ld" = yes; then
25065 + # If archive_cmds runs LD, not CC, wlarc should be empty
25066 + wlarc='${wl}'
25067 +
25068 + # Set some defaults for GNU ld with shared library support. These
25069 + # are reset later if shared libraries are not supported. Putting them
25070 + # here allows them to be overridden if necessary.
25071 + runpath_var=LD_RUN_PATH
25072 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
25073 + export_dynamic_flag_spec='${wl}--export-dynamic'
25074 + # ancient GNU ld didn't support --whole-archive et. al.
25075 + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
25076 + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25077 + else
25078 + whole_archive_flag_spec=
25079 + fi
25080 + supports_anon_versioning=no
25081 + case `$LD -v 2>&1` in
25082 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25083 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25084 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25085 + *\ 2.11.*) ;; # other 2.11 versions
25086 + *) supports_anon_versioning=yes ;;
25087 + esac
25088 +
25089 + # See if GNU ld supports shared libraries.
25090 + case $host_os in
25091 + aix[3-9]*)
25092 + # On AIX/PPC, the GNU linker is very broken
25093 + if test "$host_cpu" != ia64; then
25094 + ld_shlibs=no
25095 + cat <<_LT_EOF 1>&2
25096 +
25097 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
25098 +*** to be unable to reliably create shared libraries on AIX.
25099 +*** Therefore, libtool is disabling shared libraries support. If you
25100 +*** really care for shared libraries, you may want to modify your PATH
25101 +*** so that a non-GNU linker is found, and then restart.
25102 +
25103 +_LT_EOF
25104 + fi
25105 + ;;
25106 +
25107 + amigaos*)
25108 + case $host_cpu in
25109 + powerpc)
25110 + # see comment about AmigaOS4 .so support
25111 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25112 + archive_expsym_cmds=''
25113 + ;;
25114 + m68k)
25115 + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
25116 + hardcode_libdir_flag_spec='-L$libdir'
25117 + hardcode_minus_L=yes
25118 + ;;
25119 + esac
25120 + ;;
25121 +
25122 + beos*)
25123 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25124 + allow_undefined_flag=unsupported
25125 + # Joseph Beckenbach <[email protected]> says some releases of gcc
25126 + # support --undefined. This deserves some investigation. FIXME
25127 + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25128 + else
25129 + ld_shlibs=no
25130 + fi
25131 + ;;
25132 +
25133 + cygwin* | mingw* | pw32* | cegcc*)
25134 + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
25135 + # as there is no search path for DLLs.
25136 + hardcode_libdir_flag_spec='-L$libdir'
25137 + allow_undefined_flag=unsupported
25138 + always_export_symbols=no
25139 + enable_shared_with_static_runtimes=yes
25140 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
25141 +
25142 + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
25143 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25144 + # If the export-symbols file already is a .def file (1st line
25145 + # is EXPORTS), use it as is; otherwise, prepend...
25146 + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25147 + cp $export_symbols $output_objdir/$soname.def;
25148 + else
25149 + echo EXPORTS > $output_objdir/$soname.def;
25150 + cat $export_symbols >> $output_objdir/$soname.def;
25151 + fi~
25152 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25153 + else
25154 + ld_shlibs=no
25155 + fi
25156 + ;;
25157 +
25158 + interix[3-9]*)
25159 + hardcode_direct=no
25160 + hardcode_shlibpath_var=no
25161 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
25162 + export_dynamic_flag_spec='${wl}-E'
25163 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
25164 + # Instead, shared libraries are loaded at an image base (0x10000000 by
25165 + # default) and relocated if they conflict, which is a slow very memory
25166 + # consuming and fragmenting process. To avoid this, we pick a random,
25167 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
25168 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
25169 + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
25170 + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
25171 + ;;
25172 +
25173 + gnu* | linux* | tpf* | k*bsd*-gnu)
25174 + tmp_diet=no
25175 + if test "$host_os" = linux-dietlibc; then
25176 + case $cc_basename in
25177 + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
25178 + esac
25179 + fi
25180 + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
25181 + && test "$tmp_diet" = no
25182 + then
25183 + tmp_addflag=
25184 + tmp_sharedflag='-shared'
25185 + case $cc_basename,$host_cpu in
25186 + pgcc*) # Portland Group C compiler
25187 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
25188 + tmp_addflag=' $pic_flag'
25189 + ;;
25190 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
25191 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
25192 + tmp_addflag=' $pic_flag -Mnomain' ;;
25193 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
25194 + tmp_addflag=' -i_dynamic' ;;
25195 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
25196 + tmp_addflag=' -i_dynamic -nofor_main' ;;
25197 + ifc* | ifort*) # Intel Fortran compiler
25198 + tmp_addflag=' -nofor_main' ;;
25199 + lf95*) # Lahey Fortran 8.1
25200 + whole_archive_flag_spec=
25201 + tmp_sharedflag='--shared' ;;
25202 + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
25203 + tmp_sharedflag='-qmkshrobj'
25204 + tmp_addflag= ;;
25205 + esac
25206 + case `$CC -V 2>&1 | sed 5q` in
25207 + *Sun\ C*) # Sun C 5.9
25208 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
25209 + compiler_needs_object=yes
25210 + tmp_sharedflag='-G' ;;
25211 + *Sun\ F*) # Sun Fortran 8.3
25212 + tmp_sharedflag='-G' ;;
25213 + esac
25214 + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25215 +
25216 + if test "x$supports_anon_versioning" = xyes; then
25217 + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
25218 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25219 + echo "local: *; };" >> $output_objdir/$libname.ver~
25220 + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25221 + fi
25222 +
25223 + case $cc_basename in
25224 + xlf*)
25225 + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
25226 + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
25227 + hardcode_libdir_flag_spec=
25228 + hardcode_libdir_flag_spec_ld='-rpath $libdir'
25229 + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
25230 + if test "x$supports_anon_versioning" = xyes; then
25231 + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
25232 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25233 + echo "local: *; };" >> $output_objdir/$libname.ver~
25234 + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
25235 + fi
25236 + ;;
25237 + esac
25238 + else
25239 + ld_shlibs=no
25240 + fi
25241 + ;;
25242 +
25243 + netbsd*)
25244 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
25245 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25246 + wlarc=
25247 + else
25248 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25249 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25250 + fi
25251 + ;;
25252 +
25253 + solaris*)
25254 + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
25255 + ld_shlibs=no
25256 + cat <<_LT_EOF 1>&2
25257 +
25258 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
25259 +*** create shared libraries on Solaris systems. Therefore, libtool
25260 +*** is disabling shared libraries support. We urge you to upgrade GNU
25261 +*** binutils to release 2.9.1 or newer. Another option is to modify
25262 +*** your PATH or compiler configuration so that the native linker is
25263 +*** used, and then restart.
25264 +
25265 +_LT_EOF
25266 + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25267 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25268 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25269 + else
25270 + ld_shlibs=no
25271 + fi
25272 + ;;
25273 +
25274 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
25275 + case `$LD -v 2>&1` in
25276 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
25277 + ld_shlibs=no
25278 + cat <<_LT_EOF 1>&2
25279 +
25280 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
25281 +*** reliably create shared libraries on SCO systems. Therefore, libtool
25282 +*** is disabling shared libraries support. We urge you to upgrade GNU
25283 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
25284 +*** your PATH or compiler configuration so that the native linker is
25285 +*** used, and then restart.
25286 +
25287 +_LT_EOF
25288 + ;;
25289 + *)
25290 + # For security reasons, it is highly recommended that you always
25291 + # use absolute paths for naming shared libraries, and exclude the
25292 + # DT_RUNPATH tag from executables and libraries. But doing so
25293 + # requires that you compile everything twice, which is a pain.
25294 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25295 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
25296 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25297 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25298 + else
25299 + ld_shlibs=no
25300 + fi
25301 + ;;
25302 + esac
25303 + ;;
25304 +
25305 + sunos4*)
25306 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25307 + wlarc=
25308 + hardcode_direct=yes
25309 + hardcode_shlibpath_var=no
25310 + ;;
25311 +
25312 + *)
25313 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
25314 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25315 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25316 + else
25317 + ld_shlibs=no
25318 + fi
25319 + ;;
25320 + esac
25321 +
25322 + if test "$ld_shlibs" = no; then
25323 + runpath_var=
25324 + hardcode_libdir_flag_spec=
25325 + export_dynamic_flag_spec=
25326 + whole_archive_flag_spec=
25327 + fi
25328 + else
25329 + # PORTME fill in a description of your system's linker (not GNU ld)
25330 + case $host_os in
25331 + aix3*)
25332 + allow_undefined_flag=unsupported
25333 + always_export_symbols=yes
25334 + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
25335 + # Note: this linker hardcodes the directories in LIBPATH if there
25336 + # are no directories specified by -L.
25337 + hardcode_minus_L=yes
25338 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
25339 + # Neither direct hardcoding nor static linking is supported with a
25340 + # broken collect2.
25341 + hardcode_direct=unsupported
25342 + fi
25343 + ;;
25344 +
25345 + aix[4-9]*)
25346 + if test "$host_cpu" = ia64; then
25347 + # On IA64, the linker does run time linking by default, so we don't
25348 + # have to do anything special.
25349 + aix_use_runtimelinking=no
25350 + exp_sym_flag='-Bexport'
25351 + no_entry_flag=""
25352 + else
25353 + # If we're using GNU nm, then we don't want the "-C" option.
25354 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
25355 + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
25356 + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
25357 + else
25358 + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
25359 + fi
25360 + aix_use_runtimelinking=no
25361 +
25362 + # Test if we are trying to use run time linking or normal
25363 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25364 + # need to do runtime linking.
25365 + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
25366 + for ld_flag in $LDFLAGS; do
25367 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25368 + aix_use_runtimelinking=yes
25369 + break
25370 + fi
25371 + done
25372 + ;;
25373 + esac
25374 +
25375 + exp_sym_flag='-bexport'
25376 + no_entry_flag='-bnoentry'
25377 + fi
25378 +
25379 + # When large executables or shared objects are built, AIX ld can
25380 + # have problems creating the table of contents. If linking a library
25381 + # or program results in "error TOC overflow" add -mminimal-toc to
25382 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
25383 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25384 +
25385 + archive_cmds=''
25386 + hardcode_direct=yes
25387 + hardcode_direct_absolute=yes
25388 + hardcode_libdir_separator=':'
25389 + link_all_deplibs=yes
25390 + file_list_spec='${wl}-f,'
25391 +
25392 + if test "$GCC" = yes; then
25393 + case $host_os in aix4.[012]|aix4.[012].*)
25394 + # We only want to do this on AIX 4.2 and lower, the check
25395 + # below for broken collect2 doesn't work under 4.3+
25396 + collect2name=`${CC} -print-prog-name=collect2`
25397 + if test -f "$collect2name" &&
25398 + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
25399 + then
25400 + # We have reworked collect2
25401 + :
25402 + else
25403 + # We have old collect2
25404 + hardcode_direct=unsupported
25405 + # It fails to find uninstalled libraries when the uninstalled
25406 + # path is not listed in the libpath. Setting hardcode_minus_L
25407 + # to unsupported forces relinking
25408 + hardcode_minus_L=yes
25409 + hardcode_libdir_flag_spec='-L$libdir'
25410 + hardcode_libdir_separator=
25411 + fi
25412 + ;;
25413 + esac
25414 + shared_flag='-shared'
25415 + if test "$aix_use_runtimelinking" = yes; then
25416 + shared_flag="$shared_flag "'${wl}-G'
25417 + fi
25418 + else
25419 + # not using gcc
25420 + if test "$host_cpu" = ia64; then
25421 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25422 + # chokes on -Wl,-G. The following line is correct:
25423 + shared_flag='-G'
25424 + else
25425 + if test "$aix_use_runtimelinking" = yes; then
25426 + shared_flag='${wl}-G'
25427 + else
25428 + shared_flag='${wl}-bM:SRE'
25429 + fi
25430 + fi
25431 + fi
25432 +
25433 + export_dynamic_flag_spec='${wl}-bexpall'
25434 + # It seems that -bexpall does not export symbols beginning with
25435 + # underscore (_), so it is better to generate a list of symbols to export.
25436 + always_export_symbols=yes
25437 + if test "$aix_use_runtimelinking" = yes; then
25438 + # Warning - without using the other runtime loading flags (-brtl),
25439 + # -berok will link without error, but may produce a broken library.
25440 + allow_undefined_flag='-berok'
25441 + # Determine the default libpath from the value encoded in an
25442 + # empty executable.
25443 + cat >conftest.$ac_ext <<_ACEOF
25444 +/* confdefs.h. */
25445 +_ACEOF
25446 +cat confdefs.h >>conftest.$ac_ext
25447 +cat >>conftest.$ac_ext <<_ACEOF
25448 +/* end confdefs.h. */
25449 +
25450 +int
25451 +main ()
25452 +{
25453 +
25454 + ;
25455 + return 0;
25456 +}
25457 +_ACEOF
25458 +rm -f conftest.$ac_objext conftest$ac_exeext
25459 +if { (ac_try="$ac_link"
25460 +case "(($ac_try" in
25461 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25462 + *) ac_try_echo=$ac_try;;
25463 +esac
25464 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25465 +$as_echo "$ac_try_echo") >&5
25466 + (eval "$ac_link") 2>conftest.er1
25467 + ac_status=$?
25468 + grep -v '^ *+' conftest.er1 >conftest.err
25469 + rm -f conftest.er1
25470 + cat conftest.err >&5
25471 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472 + (exit $ac_status); } && {
25473 + test -z "$ac_c_werror_flag" ||
25474 + test ! -s conftest.err
25475 + } && test -s conftest$ac_exeext && {
25476 + test "$cross_compiling" = yes ||
25477 + $as_test_x conftest$ac_exeext
25478 + }; then
25479 +
25480 +lt_aix_libpath_sed='
25481 + /Import File Strings/,/^$/ {
25482 + /^0/ {
25483 + s/^0 *\(.*\)$/\1/
25484 + p
25485 + }
25486 + }'
25487 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25488 +# Check for a 64-bit object if we didn't find anything.
25489 +if test -z "$aix_libpath"; then
25490 + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25491 +fi
25492 +else
25493 + $as_echo "$as_me: failed program was:" >&5
25494 +sed 's/^/| /' conftest.$ac_ext >&5
25495 +
25496 +
25497 +fi
25498 +
25499 +rm -rf conftest.dSYM
25500 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25501 + conftest$ac_exeext conftest.$ac_ext
25502 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25503 +
25504 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
25505 + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
25506 + else
25507 + if test "$host_cpu" = ia64; then
25508 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
25509 + allow_undefined_flag="-z nodefs"
25510 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
25511 + else
25512 + # Determine the default libpath from the value encoded in an
25513 + # empty executable.
25514 + cat >conftest.$ac_ext <<_ACEOF
25515 +/* confdefs.h. */
25516 +_ACEOF
25517 +cat confdefs.h >>conftest.$ac_ext
25518 +cat >>conftest.$ac_ext <<_ACEOF
25519 +/* end confdefs.h. */
25520 +
25521 +int
25522 +main ()
25523 +{
25524 +
25525 + ;
25526 + return 0;
25527 +}
25528 +_ACEOF
25529 +rm -f conftest.$ac_objext conftest$ac_exeext
25530 +if { (ac_try="$ac_link"
25531 +case "(($ac_try" in
25532 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25533 + *) ac_try_echo=$ac_try;;
25534 +esac
25535 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25536 +$as_echo "$ac_try_echo") >&5
25537 + (eval "$ac_link") 2>conftest.er1
25538 + ac_status=$?
25539 + grep -v '^ *+' conftest.er1 >conftest.err
25540 + rm -f conftest.er1
25541 + cat conftest.err >&5
25542 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 + (exit $ac_status); } && {
25544 + test -z "$ac_c_werror_flag" ||
25545 + test ! -s conftest.err
25546 + } && test -s conftest$ac_exeext && {
25547 + test "$cross_compiling" = yes ||
25548 + $as_test_x conftest$ac_exeext
25549 + }; then
25550 +
25551 +lt_aix_libpath_sed='
25552 + /Import File Strings/,/^$/ {
25553 + /^0/ {
25554 + s/^0 *\(.*\)$/\1/
25555 + p
25556 + }
25557 + }'
25558 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25559 +# Check for a 64-bit object if we didn't find anything.
25560 +if test -z "$aix_libpath"; then
25561 + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25562 +fi
25563 +else
25564 + $as_echo "$as_me: failed program was:" >&5
25565 +sed 's/^/| /' conftest.$ac_ext >&5
25566 +
25567 +
25568 +fi
25569 +
25570 +rm -rf conftest.dSYM
25571 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25572 + conftest$ac_exeext conftest.$ac_ext
25573 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25574 +
25575 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
25576 + # Warning - without using the other run time loading flags,
25577 + # -berok will link without error, but may produce a broken library.
25578 + no_undefined_flag=' ${wl}-bernotok'
25579 + allow_undefined_flag=' ${wl}-berok'
25580 + # Exported symbols can be pulled into shared objects from archives
25581 + whole_archive_flag_spec='$convenience'
25582 + archive_cmds_need_lc=yes
25583 + # This is similar to how AIX traditionally builds its shared libraries.
25584 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
25585 + fi
25586 + fi
25587 + ;;
25588 +
25589 + amigaos*)
25590 + case $host_cpu in
25591 + powerpc)
25592 + # see comment about AmigaOS4 .so support
25593 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25594 + archive_expsym_cmds=''
25595 + ;;
25596 + m68k)
25597 + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
25598 + hardcode_libdir_flag_spec='-L$libdir'
25599 + hardcode_minus_L=yes
25600 + ;;
25601 + esac
25602 + ;;
25603 +
25604 + bsdi[45]*)
25605 + export_dynamic_flag_spec=-rdynamic
25606 + ;;
25607 +
25608 + cygwin* | mingw* | pw32* | cegcc*)
25609 + # When not using gcc, we currently assume that we are using
25610 + # Microsoft Visual C++.
25611 + # hardcode_libdir_flag_spec is actually meaningless, as there is
25612 + # no search path for DLLs.
25613 + hardcode_libdir_flag_spec=' '
25614 + allow_undefined_flag=unsupported
25615 + # Tell ltmain to make .lib files, not .a files.
25616 + libext=lib
25617 + # Tell ltmain to make .dll files, not .so files.
25618 + shrext_cmds=".dll"
25619 + # FIXME: Setting linknames here is a bad hack.
25620 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
25621 + # The linker will automatically build a .lib file if we build a DLL.
25622 + old_archive_from_new_cmds='true'
25623 + # FIXME: Should let the user specify the lib program.
25624 + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
25625 + fix_srcfile_path='`cygpath -w "$srcfile"`'
25626 + enable_shared_with_static_runtimes=yes
25627 + ;;
25628 +
25629 + darwin* | rhapsody*)
25630 +
25631 +
25632 + archive_cmds_need_lc=no
25633 + hardcode_direct=no
25634 + hardcode_automatic=yes
25635 + hardcode_shlibpath_var=unsupported
25636 + whole_archive_flag_spec=''
25637 + link_all_deplibs=yes
25638 + allow_undefined_flag="$_lt_dar_allow_undefined"
25639 + case $cc_basename in
25640 + ifort*) _lt_dar_can_shared=yes ;;
25641 + *) _lt_dar_can_shared=$GCC ;;
25642 + esac
25643 + if test "$_lt_dar_can_shared" = "yes"; then
25644 + output_verbose_link_cmd=echo
25645 + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
25646 + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
25647 + archive_expsym_cmds="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}"
25648 + module_expsym_cmds="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}"
25649 +
25650 + else
25651 + ld_shlibs=no
25652 + fi
25653 +
25654 + ;;
25655 +
25656 + dgux*)
25657 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25658 + hardcode_libdir_flag_spec='-L$libdir'
25659 + hardcode_shlibpath_var=no
25660 + ;;
25661 +
25662 + freebsd1*)
25663 + ld_shlibs=no
25664 + ;;
25665 +
25666 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25667 + # support. Future versions do this automatically, but an explicit c++rt0.o
25668 + # does not break anything, and helps significantly (at the cost of a little
25669 + # extra space).
25670 + freebsd2.2*)
25671 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25672 + hardcode_libdir_flag_spec='-R$libdir'
25673 + hardcode_direct=yes
25674 + hardcode_shlibpath_var=no
25675 + ;;
25676 +
25677 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25678 + freebsd2*)
25679 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25680 + hardcode_direct=yes
25681 + hardcode_minus_L=yes
25682 + hardcode_shlibpath_var=no
25683 + ;;
25684 +
25685 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25686 + freebsd* | dragonfly*)
25687 + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25688 + hardcode_libdir_flag_spec='-R$libdir'
25689 + hardcode_direct=yes
25690 + hardcode_shlibpath_var=no
25691 + ;;
25692 +
25693 + hpux9*)
25694 + if test "$GCC" = yes; then
25695 + archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
25696 + else
25697 + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
25698 + fi
25699 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
25700 + hardcode_libdir_separator=:
25701 + hardcode_direct=yes
25702 +
25703 + # hardcode_minus_L: Not really in the search PATH,
25704 + # but as the default location of the library.
25705 + hardcode_minus_L=yes
25706 + export_dynamic_flag_spec='${wl}-E'
25707 + ;;
25708 +
25709 + hpux10*)
25710 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25711 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25712 + else
25713 + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25714 + fi
25715 + if test "$with_gnu_ld" = no; then
25716 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
25717 + hardcode_libdir_flag_spec_ld='+b $libdir'
25718 + hardcode_libdir_separator=:
25719 + hardcode_direct=yes
25720 + hardcode_direct_absolute=yes
25721 + export_dynamic_flag_spec='${wl}-E'
25722 + # hardcode_minus_L: Not really in the search PATH,
25723 + # but as the default location of the library.
25724 + hardcode_minus_L=yes
25725 + fi
25726 + ;;
25727 +
25728 + hpux11*)
25729 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25730 + case $host_cpu in
25731 + hppa*64*)
25732 + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25733 + ;;
25734 + ia64*)
25735 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25736 + ;;
25737 + *)
25738 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25739 + ;;
25740 + esac
25741 + else
25742 + case $host_cpu in
25743 + hppa*64*)
25744 + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25745 + ;;
25746 + ia64*)
25747 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25748 + ;;
25749 + *)
25750 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25751 + ;;
25752 + esac
25753 + fi
25754 + if test "$with_gnu_ld" = no; then
25755 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
25756 + hardcode_libdir_separator=:
25757 +
25758 + case $host_cpu in
25759 + hppa*64*|ia64*)
25760 + hardcode_direct=no
25761 + hardcode_shlibpath_var=no
25762 + ;;
25763 + *)
25764 + hardcode_direct=yes
25765 + hardcode_direct_absolute=yes
25766 + export_dynamic_flag_spec='${wl}-E'
25767 +
25768 + # hardcode_minus_L: Not really in the search PATH,
25769 + # but as the default location of the library.
25770 + hardcode_minus_L=yes
25771 + ;;
25772 + esac
25773 + fi
25774 + ;;
25775 +
25776 + irix5* | irix6* | nonstopux*)
25777 + if test "$GCC" = yes; then
25778 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25779 + # Try to use the -exported_symbol ld option, if it does not
25780 + # work, assume that -exports_file does not work either and
25781 + # implicitly export all symbols.
25782 + save_LDFLAGS="$LDFLAGS"
25783 + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
25784 + cat >conftest.$ac_ext <<_ACEOF
25785 +int foo(void) {}
25786 +_ACEOF
25787 +rm -f conftest.$ac_objext conftest$ac_exeext
25788 +if { (ac_try="$ac_link"
25789 +case "(($ac_try" in
25790 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25791 + *) ac_try_echo=$ac_try;;
25792 +esac
25793 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25794 +$as_echo "$ac_try_echo") >&5
25795 + (eval "$ac_link") 2>conftest.er1
25796 + ac_status=$?
25797 + grep -v '^ *+' conftest.er1 >conftest.err
25798 + rm -f conftest.er1
25799 + cat conftest.err >&5
25800 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 + (exit $ac_status); } && {
25802 + test -z "$ac_c_werror_flag" ||
25803 + test ! -s conftest.err
25804 + } && test -s conftest$ac_exeext && {
25805 + test "$cross_compiling" = yes ||
25806 + $as_test_x conftest$ac_exeext
25807 + }; then
25808 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
25809 +
25810 +else
25811 + $as_echo "$as_me: failed program was:" >&5
25812 +sed 's/^/| /' conftest.$ac_ext >&5
25813 +
25814 +
25815 +fi
25816 +
25817 +rm -rf conftest.dSYM
25818 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25819 + conftest$ac_exeext conftest.$ac_ext
25820 + LDFLAGS="$save_LDFLAGS"
25821 + else
25822 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
25823 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
25824 + fi
25825 + archive_cmds_need_lc='no'
25826 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
25827 + hardcode_libdir_separator=:
25828 + inherit_rpath=yes
25829 + link_all_deplibs=yes
25830 + ;;
25831 +
25832 + netbsd*)
25833 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
25834 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25835 + else
25836 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25837 + fi
25838 + hardcode_libdir_flag_spec='-R$libdir'
25839 + hardcode_direct=yes
25840 + hardcode_shlibpath_var=no
25841 + ;;
25842 +
25843 + newsos6)
25844 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25845 + hardcode_direct=yes
25846 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
25847 + hardcode_libdir_separator=:
25848 + hardcode_shlibpath_var=no
25849 + ;;
25850 +
25851 + *nto* | *qnx*)
25852 + ;;
25853 +
25854 + openbsd*)
25855 + if test -f /usr/libexec/ld.so; then
25856 + hardcode_direct=yes
25857 + hardcode_shlibpath_var=no
25858 + hardcode_direct_absolute=yes
25859 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25860 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25861 + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25862 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
25863 + export_dynamic_flag_spec='${wl}-E'
25864 + else
25865 + case $host_os in
25866 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25867 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25868 + hardcode_libdir_flag_spec='-R$libdir'
25869 + ;;
25870 + *)
25871 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25872 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
25873 + ;;
25874 + esac
25875 + fi
25876 + else
25877 + ld_shlibs=no
25878 + fi
25879 + ;;
25880 +
25881 + os2*)
25882 + hardcode_libdir_flag_spec='-L$libdir'
25883 + hardcode_minus_L=yes
25884 + allow_undefined_flag=unsupported
25885 + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
25886 + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25887 + ;;
25888 +
25889 + osf3*)
25890 + if test "$GCC" = yes; then
25891 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
25892 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25893 + else
25894 + allow_undefined_flag=' -expect_unresolved \*'
25895 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
25896 + fi
25897 + archive_cmds_need_lc='no'
25898 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
25899 + hardcode_libdir_separator=:
25900 + ;;
25901 +
25902 + osf4* | osf5*) # as osf3* with the addition of -msym flag
25903 + if test "$GCC" = yes; then
25904 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
25905 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25906 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
25907 + else
25908 + allow_undefined_flag=' -expect_unresolved \*'
25909 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
25910 + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
25911 + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
25912 +
25913 + # Both c and cxx compiler support -rpath directly
25914 + hardcode_libdir_flag_spec='-rpath $libdir'
25915 + fi
25916 + archive_cmds_need_lc='no'
25917 + hardcode_libdir_separator=:
25918 + ;;
25919 +
25920 + solaris*)
25921 + no_undefined_flag=' -z defs'
25922 + if test "$GCC" = yes; then
25923 + wlarc='${wl}'
25924 + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25925 + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
25926 + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
25927 + else
25928 + case `$CC -V 2>&1` in
25929 + *"Compilers 5.0"*)
25930 + wlarc=''
25931 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25932 + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
25933 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
25934 + ;;
25935 + *)
25936 + wlarc='${wl}'
25937 + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
25938 + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
25939 + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
25940 + ;;
25941 + esac
25942 + fi
25943 + hardcode_libdir_flag_spec='-R$libdir'
25944 + hardcode_shlibpath_var=no
25945 + case $host_os in
25946 + solaris2.[0-5] | solaris2.[0-5].*) ;;
25947 + *)
25948 + # The compiler driver will combine and reorder linker options,
25949 + # but understands `-z linker_flag'. GCC discards it without `$wl',
25950 + # but is careful enough not to reorder.
25951 + # Supported since Solaris 2.6 (maybe 2.5.1?)
25952 + if test "$GCC" = yes; then
25953 + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
25954 + else
25955 + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
25956 + fi
25957 + ;;
25958 + esac
25959 + link_all_deplibs=yes
25960 + ;;
25961 +
25962 + sunos4*)
25963 + if test "x$host_vendor" = xsequent; then
25964 + # Use $CC to link under sequent, because it throws in some extra .o
25965 + # files that make .init and .fini sections work.
25966 + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25967 + else
25968 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25969 + fi
25970 + hardcode_libdir_flag_spec='-L$libdir'
25971 + hardcode_direct=yes
25972 + hardcode_minus_L=yes
25973 + hardcode_shlibpath_var=no
25974 + ;;
25975 +
25976 + sysv4)
25977 + case $host_vendor in
25978 + sni)
25979 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25980 + hardcode_direct=yes # is this really true???
25981 + ;;
25982 + siemens)
25983 + ## LD is ld it makes a PLAMLIB
25984 + ## CC just makes a GrossModule.
25985 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25986 + reload_cmds='$CC -r -o $output$reload_objs'
25987 + hardcode_direct=no
25988 + ;;
25989 + motorola)
25990 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25991 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
25992 + ;;
25993 + esac
25994 + runpath_var='LD_RUN_PATH'
25995 + hardcode_shlibpath_var=no
25996 + ;;
25997 +
25998 + sysv4.3*)
25999 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26000 + hardcode_shlibpath_var=no
26001 + export_dynamic_flag_spec='-Bexport'
26002 + ;;
26003 +
26004 + sysv4*MP*)
26005 + if test -d /usr/nec; then
26006 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26007 + hardcode_shlibpath_var=no
26008 + runpath_var=LD_RUN_PATH
26009 + hardcode_runpath_var=yes
26010 + ld_shlibs=yes
26011 + fi
26012 + ;;
26013 +
26014 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
26015 + no_undefined_flag='${wl}-z,text'
26016 + archive_cmds_need_lc=no
26017 + hardcode_shlibpath_var=no
26018 + runpath_var='LD_RUN_PATH'
26019 +
26020 + if test "$GCC" = yes; then
26021 + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26022 + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26023 + else
26024 + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26025 + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26026 + fi
26027 + ;;
26028 +
26029 + sysv5* | sco3.2v5* | sco5v6*)
26030 + # Note: We can NOT use -z defs as we might desire, because we do not
26031 + # link with -lc, and that would cause any symbols used from libc to
26032 + # always be unresolved, which means just about no library would
26033 + # ever link correctly. If we're not using GNU ld we use -z text
26034 + # though, which does catch some bad symbols but isn't as heavy-handed
26035 + # as -z defs.
26036 + no_undefined_flag='${wl}-z,text'
26037 + allow_undefined_flag='${wl}-z,nodefs'
26038 + archive_cmds_need_lc=no
26039 + hardcode_shlibpath_var=no
26040 + hardcode_libdir_flag_spec='${wl}-R,$libdir'
26041 + hardcode_libdir_separator=':'
26042 + link_all_deplibs=yes
26043 + export_dynamic_flag_spec='${wl}-Bexport'
26044 + runpath_var='LD_RUN_PATH'
26045 +
26046 + if test "$GCC" = yes; then
26047 + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26048 + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26049 + else
26050 + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26051 + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26052 + fi
26053 + ;;
26054 +
26055 + uts4*)
26056 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26057 + hardcode_libdir_flag_spec='-L$libdir'
26058 + hardcode_shlibpath_var=no
26059 + ;;
26060 +
26061 + *)
26062 + ld_shlibs=no
26063 + ;;
26064 + esac
26065 +
26066 + if test x$host_vendor = xsni; then
26067 + case $host in
26068 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26069 + export_dynamic_flag_spec='${wl}-Blargedynsym'
26070 + ;;
26071 + esac
26072 + fi
26073 + fi
26074 +
26075 +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
26076 +$as_echo "$ld_shlibs" >&6; }
26077 +test "$ld_shlibs" = no && can_build_shared=no
26078 +
26079 +with_gnu_ld=$with_gnu_ld
26080 +
26081 +
26082 +
26083 +
26084 +
26085 +
26086 +
26087 +
26088 +
26089 +
26090 +
26091 +
26092 +
26093 +
26094 +
26095 +#
26096 +# Do we need to explicitly link libc?
26097 +#
26098 +case "x$archive_cmds_need_lc" in
26099 +x|xyes)
26100 + # Assume -lc should be added
26101 + archive_cmds_need_lc=yes
26102 +
26103 + if test "$enable_shared" = yes && test "$GCC" = yes; then
26104 + case $archive_cmds in
26105 + *'~'*)
26106 + # FIXME: we may have to deal with multi-command sequences.
26107 + ;;
26108 + '$CC '*)
26109 + # Test whether the compiler implicitly links with -lc since on some
26110 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
26111 + # to ld, don't add -lc before -lgcc.
26112 + { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26113 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
26114 + $RM conftest*
26115 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
26116 +
26117 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26118 + (eval $ac_compile) 2>&5
26119 + ac_status=$?
26120 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121 + (exit $ac_status); } 2>conftest.err; then
26122 + soname=conftest
26123 + lib=conftest
26124 + libobjs=conftest.$ac_objext
26125 + deplibs=
26126 + wl=$lt_prog_compiler_wl
26127 + pic_flag=$lt_prog_compiler_pic
26128 + compiler_flags=-v
26129 + linker_flags=-v
26130 + verstring=
26131 + output_objdir=.
26132 + libname=conftest
26133 + lt_save_allow_undefined_flag=$allow_undefined_flag
26134 + allow_undefined_flag=
26135 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
26136 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
26137 + ac_status=$?
26138 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139 + (exit $ac_status); }
26140 + then
26141 + archive_cmds_need_lc=no
26142 + else
26143 + archive_cmds_need_lc=yes
26144 + fi
26145 + allow_undefined_flag=$lt_save_allow_undefined_flag
26146 + else
26147 + cat conftest.err 1>&5
26148 + fi
26149 + $RM conftest*
26150 + { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
26151 +$as_echo "$archive_cmds_need_lc" >&6; }
26152 + ;;
26153 + esac
26154 + fi
26155 + ;;
26156 +esac
26157 +
26158 +
26159 +
26160 +
26161 +
26162 +
26163 +
26164 +
26165 +
26166 +
26167 +
26168 +
26169 +
26170 +
26171 +
26172 +
26173 +
26174 +
26175 +
26176 +
26177 +
26178 +
26179 +
26180 +
26181 +
26182 +
26183 +
26184 +
26185 +
26186 +
26187 +
26188 +
26189 +
26190 +
26191 +
26192 +
26193 +
26194 +
26195 +
26196 +
26197 +
26198 +
26199 +
26200 +
26201 +
26202 +
26203 +
26204 +
26205 +
26206 +
26207 +
26208 +
26209 +
26210 +
26211 +
26212 +
26213 +
26214 +
26215 +
26216 +
26217 +
26218 +
26219 +
26220 +
26221 +
26222 +
26223 +
26224 +
26225 +
26226 +
26227 +
26228 +
26229 +
26230 +
26231 +
26232 +
26233 +
26234 +
26235 +
26236 +
26237 +
26238 +
26239 +
26240 +
26241 +
26242 +
26243 +
26244 +
26245 +
26246 +
26247 +
26248 +
26249 +
26250 +
26251 +
26252 +
26253 +
26254 +
26255 +
26256 +
26257 +
26258 +
26259 +
26260 +
26261 +
26262 +
26263 +
26264 +
26265 +
26266 +
26267 +
26268 +
26269 +
26270 +
26271 +
26272 +
26273 +
26274 +
26275 +
26276 +
26277 +
26278 +
26279 +
26280 +
26281 +
26282 +
26283 +
26284 +
26285 +
26286 +
26287 +
26288 +
26289 +
26290 +
26291 +
26292 +
26293 +
26294 +
26295 +
26296 +
26297 +
26298 +
26299 +
26300 +
26301 +
26302 +
26303 +
26304 +
26305 +
26306 +
26307 +
26308 +
26309 +
26310 +
26311 +
26312 +
26313 +
26314 + { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
26315 +$as_echo_n "checking dynamic linker characteristics... " >&6; }
26316 +
26317 +if test "$GCC" = yes; then
26318 + case $host_os in
26319 + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
26320 + *) lt_awk_arg="/^libraries:/" ;;
26321 + esac
26322 + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26323 + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
26324 + # if the path contains ";" then we assume it to be the separator
26325 + # otherwise default to the standard path separator (i.e. ":") - it is
26326 + # assumed that no part of a normal pathname contains ";" but that should
26327 + # okay in the real world where ";" in dirpaths is itself problematic.
26328 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
26329 + else
26330 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
26331 + fi
26332 + # Ok, now we have the path, separated by spaces, we can step through it
26333 + # and add multilib dir if necessary.
26334 + lt_tmp_lt_search_path_spec=
26335 + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
26336 + for lt_sys_path in $lt_search_path_spec; do
26337 + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
26338 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
26339 + else
26340 + test -d "$lt_sys_path" && \
26341 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
26342 + fi
26343 + done
26344 + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
26345 +BEGIN {RS=" "; FS="/|\n";} {
26346 + lt_foo="";
26347 + lt_count=0;
26348 + for (lt_i = NF; lt_i > 0; lt_i--) {
26349 + if ($lt_i != "" && $lt_i != ".") {
26350 + if ($lt_i == "..") {
26351 + lt_count++;
26352 + } else {
26353 + if (lt_count == 0) {
26354 + lt_foo="/" $lt_i lt_foo;
26355 + } else {
26356 + lt_count--;
26357 + }
26358 + }
26359 + }
26360 + }
26361 + if (lt_foo != "") { lt_freq[lt_foo]++; }
26362 + if (lt_freq[lt_foo] == 1) { print lt_foo; }
26363 +}'`
26364 + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
26365 +else
26366 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
26367 +fi
26368 +library_names_spec=
26369 +libname_spec='lib$name'
26370 +soname_spec=
26371 +shrext_cmds=".so"
26372 +postinstall_cmds=
26373 +postuninstall_cmds=
26374 +finish_cmds=
26375 +finish_eval=
26376 +shlibpath_var=
26377 +shlibpath_overrides_runpath=unknown
26378 +version_type=none
26379 +dynamic_linker="$host_os ld.so"
26380 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
26381 +need_lib_prefix=unknown
26382 +hardcode_into_libs=no
26383 +
26384 +# when you set need_version to no, make sure it does not cause -set_version
26385 +# flags to be left without arguments
26386 +need_version=unknown
26387 +
26388 +case $host_os in
26389 +aix3*)
26390 + version_type=linux
26391 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
26392 + shlibpath_var=LIBPATH
26393 +
26394 + # AIX 3 has no versioning support, so we append a major version to the name.
26395 + soname_spec='${libname}${release}${shared_ext}$major'
26396 + ;;
26397 +
26398 +aix[4-9]*)
26399 + version_type=linux
26400 + need_lib_prefix=no
26401 + need_version=no
26402 + hardcode_into_libs=yes
26403 + if test "$host_cpu" = ia64; then
26404 + # AIX 5 supports IA64
26405 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
26406 + shlibpath_var=LD_LIBRARY_PATH
26407 + else
26408 + # With GCC up to 2.95.x, collect2 would create an import file
26409 + # for dependence libraries. The import file would start with
26410 + # the line `#! .'. This would cause the generated library to
26411 + # depend on `.', always an invalid library. This was fixed in
26412 + # development snapshots of GCC prior to 3.0.
26413 + case $host_os in
26414 + aix4 | aix4.[01] | aix4.[01].*)
26415 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
26416 + echo ' yes '
26417 + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
26418 + :
26419 + else
26420 + can_build_shared=no
26421 + fi
26422 + ;;
26423 + esac
26424 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
26425 + # soname into executable. Probably we can add versioning support to
26426 + # collect2, so additional links can be useful in future.
26427 + if test "$aix_use_runtimelinking" = yes; then
26428 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
26429 + # instead of lib<name>.a to let people know that these are not
26430 + # typical AIX shared libraries.
26431 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26432 + else
26433 + # We preserve .a as extension for shared libraries through AIX4.2
26434 + # and later when we are not doing run time linking.
26435 + library_names_spec='${libname}${release}.a $libname.a'
26436 + soname_spec='${libname}${release}${shared_ext}$major'
26437 + fi
26438 + shlibpath_var=LIBPATH
26439 + fi
26440 + ;;
26441 +
26442 +amigaos*)
26443 + case $host_cpu in
26444 + powerpc)
26445 + # Since July 2007 AmigaOS4 officially supports .so libraries.
26446 + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
26447 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26448 + ;;
26449 + m68k)
26450 + library_names_spec='$libname.ixlibrary $libname.a'
26451 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
26452 + 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'
26453 + ;;
26454 + esac
26455 + ;;
26456 +
26457 +beos*)
26458 + library_names_spec='${libname}${shared_ext}'
26459 + dynamic_linker="$host_os ld.so"
26460 + shlibpath_var=LIBRARY_PATH
26461 + ;;
26462 +
26463 +bsdi[45]*)
26464 + version_type=linux
26465 + need_version=no
26466 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26467 + soname_spec='${libname}${release}${shared_ext}$major'
26468 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
26469 + shlibpath_var=LD_LIBRARY_PATH
26470 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
26471 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
26472 + # the default ld.so.conf also contains /usr/contrib/lib and
26473 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
26474 + # libtool to hard-code these into programs
26475 + ;;
26476 +
26477 +cygwin* | mingw* | pw32* | cegcc*)
26478 + version_type=windows
26479 + shrext_cmds=".dll"
26480 + need_version=no
26481 + need_lib_prefix=no
26482 +
26483 + case $GCC,$host_os in
26484 + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
26485 + library_names_spec='$libname.dll.a'
26486 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
26487 + postinstall_cmds='base_file=`basename \${file}`~
26488 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
26489 + dldir=$destdir/`dirname \$dlpath`~
26490 + test -d \$dldir || mkdir -p \$dldir~
26491 + $install_prog $dir/$dlname \$dldir/$dlname~
26492 + chmod a+x \$dldir/$dlname~
26493 + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
26494 + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
26495 + fi'
26496 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
26497 + dlpath=$dir/\$dldll~
26498 + $RM \$dlpath'
26499 + shlibpath_overrides_runpath=yes
26500 +
26501 + case $host_os in
26502 + cygwin*)
26503 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
26504 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26505 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
26506 + ;;
26507 + mingw* | cegcc*)
26508 + # MinGW DLLs use traditional 'lib' prefix
26509 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26510 + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26511 + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
26512 + # It is most probably a Windows format PATH printed by
26513 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
26514 + # path with ; separators, and with drive letters. We can handle the
26515 + # drive letters (cygwin fileutils understands them), so leave them,
26516 + # especially as we might pass files found there to a mingw objdump,
26517 + # which wouldn't understand a cygwinified path. Ahh.
26518 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26519 + else
26520 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
26521 + fi
26522 + ;;
26523 + pw32*)
26524 + # pw32 DLLs use 'pw' prefix rather than 'lib'
26525 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26526 + ;;
26527 + esac
26528 + ;;
26529 +
26530 + *)
26531 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
26532 + ;;
26533 + esac
26534 + dynamic_linker='Win32 ld.exe'
26535 + # FIXME: first we should search . and the directory the executable is in
26536 + shlibpath_var=PATH
26537 + ;;
26538 +
26539 +darwin* | rhapsody*)
26540 + dynamic_linker="$host_os dyld"
26541 + version_type=darwin
26542 + need_lib_prefix=no
26543 + need_version=no
26544 + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
26545 + soname_spec='${libname}${release}${major}$shared_ext'
26546 + shlibpath_overrides_runpath=yes
26547 + shlibpath_var=DYLD_LIBRARY_PATH
26548 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
26549 +
26550 + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
26551 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
26552 + ;;
26553 +
26554 +dgux*)
26555 + version_type=linux
26556 + need_lib_prefix=no
26557 + need_version=no
26558 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
26559 + soname_spec='${libname}${release}${shared_ext}$major'
26560 + shlibpath_var=LD_LIBRARY_PATH
26561 + ;;
26562 +
26563 +freebsd1*)
26564 + dynamic_linker=no
26565 + ;;
26566 +
26567 +freebsd* | dragonfly*)
26568 + # DragonFly does not have aout. When/if they implement a new
26569 + # versioning mechanism, adjust this.
26570 + if test -x /usr/bin/objformat; then
26571 + objformat=`/usr/bin/objformat`
26572 + else
26573 + case $host_os in
26574 + freebsd[123]*) objformat=aout ;;
26575 + *) objformat=elf ;;
26576 + esac
26577 + fi
26578 + version_type=freebsd-$objformat
26579 + case $version_type in
26580 + freebsd-elf*)
26581 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26582 + need_version=no
26583 + need_lib_prefix=no
26584 + ;;
26585 + freebsd-*)
26586 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26587 + need_version=yes
26588 + ;;
26589 + esac
26590 + shlibpath_var=LD_LIBRARY_PATH
26591 + case $host_os in
26592 + freebsd2*)
26593 + shlibpath_overrides_runpath=yes
26594 + ;;
26595 + freebsd3.[01]* | freebsdelf3.[01]*)
26596 + shlibpath_overrides_runpath=yes
26597 + hardcode_into_libs=yes
26598 + ;;
26599 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
26600 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
26601 + shlibpath_overrides_runpath=no
26602 + hardcode_into_libs=yes
26603 + ;;
26604 + *) # from 4.6 on, and DragonFly
26605 + shlibpath_overrides_runpath=yes
26606 + hardcode_into_libs=yes
26607 + ;;
26608 + esac
26609 + ;;
26610 +
26611 +gnu*)
26612 + version_type=linux
26613 + need_lib_prefix=no
26614 + need_version=no
26615 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26616 + soname_spec='${libname}${release}${shared_ext}$major'
26617 + shlibpath_var=LD_LIBRARY_PATH
26618 + hardcode_into_libs=yes
26619 + ;;
26620 +
26621 +hpux9* | hpux10* | hpux11*)
26622 + # Give a soname corresponding to the major version so that dld.sl refuses to
26623 + # link against other versions.
26624 + version_type=sunos
26625 + need_lib_prefix=no
26626 + need_version=no
26627 + case $host_cpu in
26628 + ia64*)
26629 + shrext_cmds='.so'
26630 + hardcode_into_libs=yes
26631 + dynamic_linker="$host_os dld.so"
26632 + shlibpath_var=LD_LIBRARY_PATH
26633 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26634 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26635 + soname_spec='${libname}${release}${shared_ext}$major'
26636 + if test "X$HPUX_IA64_MODE" = X32; then
26637 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26638 + else
26639 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26640 + fi
26641 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26642 + ;;
26643 + hppa*64*)
26644 + shrext_cmds='.sl'
26645 + hardcode_into_libs=yes
26646 + dynamic_linker="$host_os dld.sl"
26647 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26648 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26649 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26650 + soname_spec='${libname}${release}${shared_ext}$major'
26651 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26652 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26653 + ;;
26654 + *)
26655 + shrext_cmds='.sl'
26656 + dynamic_linker="$host_os dld.sl"
26657 + shlibpath_var=SHLIB_PATH
26658 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26659 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26660 + soname_spec='${libname}${release}${shared_ext}$major'
26661 + ;;
26662 + esac
26663 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
26664 + postinstall_cmds='chmod 555 $lib'
26665 + ;;
26666 +
26667 +interix[3-9]*)
26668 + version_type=linux
26669 + need_lib_prefix=no
26670 + need_version=no
26671 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26672 + soname_spec='${libname}${release}${shared_ext}$major'
26673 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26674 + shlibpath_var=LD_LIBRARY_PATH
26675 + shlibpath_overrides_runpath=no
26676 + hardcode_into_libs=yes
26677 + ;;
26678 +
26679 +irix5* | irix6* | nonstopux*)
26680 + case $host_os in
26681 + nonstopux*) version_type=nonstopux ;;
26682 + *)
26683 + if test "$lt_cv_prog_gnu_ld" = yes; then
26684 + version_type=linux
26685 + else
26686 + version_type=irix
26687 + fi ;;
26688 + esac
26689 + need_lib_prefix=no
26690 + need_version=no
26691 + soname_spec='${libname}${release}${shared_ext}$major'
26692 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26693 + case $host_os in
26694 + irix5* | nonstopux*)
26695 + libsuff= shlibsuff=
26696 + ;;
26697 + *)
26698 + case $LD in # libtool.m4 will add one of these switches to LD
26699 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26700 + libsuff= shlibsuff= libmagic=32-bit;;
26701 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26702 + libsuff=32 shlibsuff=N32 libmagic=N32;;
26703 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26704 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
26705 + *) libsuff= shlibsuff= libmagic=never-match;;
26706 + esac
26707 + ;;
26708 + esac
26709 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26710 + shlibpath_overrides_runpath=no
26711 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26712 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26713 + hardcode_into_libs=yes
26714 + ;;
26715 +
26716 +# No shared lib support for Linux oldld, aout, or coff.
26717 +linux*oldld* | linux*aout* | linux*coff*)
26718 + dynamic_linker=no
26719 + ;;
26720 +
26721 +# This must be Linux ELF.
26722 +linux* | k*bsd*-gnu)
26723 + version_type=linux
26724 + need_lib_prefix=no
26725 + need_version=no
26726 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26727 + soname_spec='${libname}${release}${shared_ext}$major'
26728 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26729 + shlibpath_var=LD_LIBRARY_PATH
26730 + shlibpath_overrides_runpath=no
26731 + # Some binutils ld are patched to set DT_RUNPATH
26732 + save_LDFLAGS=$LDFLAGS
26733 + save_libdir=$libdir
26734 + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
26735 + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
26736 + cat >conftest.$ac_ext <<_ACEOF
26737 +/* confdefs.h. */
26738 +_ACEOF
26739 +cat confdefs.h >>conftest.$ac_ext
26740 +cat >>conftest.$ac_ext <<_ACEOF
26741 +/* end confdefs.h. */
26742 +
26743 +int
26744 +main ()
26745 +{
26746 +
26747 + ;
26748 + return 0;
26749 +}
26750 +_ACEOF
26751 +rm -f conftest.$ac_objext conftest$ac_exeext
26752 +if { (ac_try="$ac_link"
26753 +case "(($ac_try" in
26754 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26755 + *) ac_try_echo=$ac_try;;
26756 +esac
26757 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26758 +$as_echo "$ac_try_echo") >&5
26759 + (eval "$ac_link") 2>conftest.er1
26760 + ac_status=$?
26761 + grep -v '^ *+' conftest.er1 >conftest.err
26762 + rm -f conftest.er1
26763 + cat conftest.err >&5
26764 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765 + (exit $ac_status); } && {
26766 + test -z "$ac_c_werror_flag" ||
26767 + test ! -s conftest.err
26768 + } && test -s conftest$ac_exeext && {
26769 + test "$cross_compiling" = yes ||
26770 + $as_test_x conftest$ac_exeext
26771 + }; then
26772 + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
26773 + shlibpath_overrides_runpath=yes
26774 +fi
26775 +
26776 +else
26777 + $as_echo "$as_me: failed program was:" >&5
26778 +sed 's/^/| /' conftest.$ac_ext >&5
26779 +
26780 +
26781 +fi
26782 +
26783 +rm -rf conftest.dSYM
26784 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26785 + conftest$ac_exeext conftest.$ac_ext
26786 + LDFLAGS=$save_LDFLAGS
26787 + libdir=$save_libdir
26788 +
26789 + # This implies no fast_install, which is unacceptable.
26790 + # Some rework will be needed to allow for fast_install
26791 + # before this can be enabled.
26792 + hardcode_into_libs=yes
26793 +
26794 + # Add ABI-specific directories to the system library path.
26795 + sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
26796 +
26797 + # Append ld.so.conf contents to the search path
26798 + if test -f /etc/ld.so.conf; then
26799 + 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' ' '`
26800 + sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
26801 + fi
26802 +
26803 + # We used to test for /lib/ld.so.1 and disable shared libraries on
26804 + # powerpc, because MkLinux only supported shared libraries with the
26805 + # GNU dynamic linker. Since this was broken with cross compilers,
26806 + # most powerpc-linux boxes support dynamic linking these days and
26807 + # people can always --disable-shared, the test was removed, and we
26808 + # assume the GNU/Linux dynamic linker is in use.
26809 + dynamic_linker='GNU/Linux ld.so'
26810 + ;;
26811 +
26812 +netbsd*)
26813 + version_type=sunos
26814 + need_lib_prefix=no
26815 + need_version=no
26816 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
26817 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26818 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26819 + dynamic_linker='NetBSD (a.out) ld.so'
26820 + else
26821 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26822 + soname_spec='${libname}${release}${shared_ext}$major'
26823 + dynamic_linker='NetBSD ld.elf_so'
26824 + fi
26825 + shlibpath_var=LD_LIBRARY_PATH
26826 + shlibpath_overrides_runpath=yes
26827 + hardcode_into_libs=yes
26828 + ;;
26829 +
26830 +newsos6)
26831 + version_type=linux
26832 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26833 + shlibpath_var=LD_LIBRARY_PATH
26834 + shlibpath_overrides_runpath=yes
26835 + ;;
26836 +
26837 +*nto* | *qnx*)
26838 + version_type=qnx
26839 + need_lib_prefix=no
26840 + need_version=no
26841 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26842 + soname_spec='${libname}${release}${shared_ext}$major'
26843 + shlibpath_var=LD_LIBRARY_PATH
26844 + shlibpath_overrides_runpath=no
26845 + hardcode_into_libs=yes
26846 + dynamic_linker='ldqnx.so'
26847 + ;;
26848 +
26849 +openbsd*)
26850 + version_type=sunos
26851 + sys_lib_dlsearch_path_spec="/usr/lib"
26852 + need_lib_prefix=no
26853 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26854 + case $host_os in
26855 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26856 + *) need_version=no ;;
26857 + esac
26858 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26859 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26860 + shlibpath_var=LD_LIBRARY_PATH
26861 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26862 + case $host_os in
26863 + openbsd2.[89] | openbsd2.[89].*)
26864 + shlibpath_overrides_runpath=no
26865 + ;;
26866 + *)
26867 + shlibpath_overrides_runpath=yes
26868 + ;;
26869 + esac
26870 + else
26871 + shlibpath_overrides_runpath=yes
26872 + fi
26873 + ;;
26874 +
26875 +os2*)
26876 + libname_spec='$name'
26877 + shrext_cmds=".dll"
26878 + need_lib_prefix=no
26879 + library_names_spec='$libname${shared_ext} $libname.a'
26880 + dynamic_linker='OS/2 ld.exe'
26881 + shlibpath_var=LIBPATH
26882 + ;;
26883 +
26884 +osf3* | osf4* | osf5*)
26885 + version_type=osf
26886 + need_lib_prefix=no
26887 + need_version=no
26888 + soname_spec='${libname}${release}${shared_ext}$major'
26889 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26890 + shlibpath_var=LD_LIBRARY_PATH
26891 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26892 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26893 + ;;
26894 +
26895 +rdos*)
26896 + dynamic_linker=no
26897 + ;;
26898 +
26899 +solaris*)
26900 + version_type=linux
26901 + need_lib_prefix=no
26902 + need_version=no
26903 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26904 + soname_spec='${libname}${release}${shared_ext}$major'
26905 + shlibpath_var=LD_LIBRARY_PATH
26906 + shlibpath_overrides_runpath=yes
26907 + hardcode_into_libs=yes
26908 + # ldd complains unless libraries are executable
26909 + postinstall_cmds='chmod +x $lib'
26910 + ;;
26911 +
26912 +sunos4*)
26913 + version_type=sunos
26914 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26915 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26916 + shlibpath_var=LD_LIBRARY_PATH
26917 + shlibpath_overrides_runpath=yes
26918 + if test "$with_gnu_ld" = yes; then
26919 + need_lib_prefix=no
26920 + fi
26921 + need_version=yes
26922 + ;;
26923 +
26924 +sysv4 | sysv4.3*)
26925 + version_type=linux
26926 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26927 + soname_spec='${libname}${release}${shared_ext}$major'
26928 + shlibpath_var=LD_LIBRARY_PATH
26929 + case $host_vendor in
26930 + sni)
26931 + shlibpath_overrides_runpath=no
26932 + need_lib_prefix=no
26933 + runpath_var=LD_RUN_PATH
26934 + ;;
26935 + siemens)
26936 + need_lib_prefix=no
26937 + ;;
26938 + motorola)
26939 + need_lib_prefix=no
26940 + need_version=no
26941 + shlibpath_overrides_runpath=no
26942 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26943 + ;;
26944 + esac
26945 + ;;
26946 +
26947 +sysv4*MP*)
26948 + if test -d /usr/nec ;then
26949 + version_type=linux
26950 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26951 + soname_spec='$libname${shared_ext}.$major'
26952 + shlibpath_var=LD_LIBRARY_PATH
26953 + fi
26954 + ;;
26955 +
26956 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26957 + version_type=freebsd-elf
26958 + need_lib_prefix=no
26959 + need_version=no
26960 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26961 + soname_spec='${libname}${release}${shared_ext}$major'
26962 + shlibpath_var=LD_LIBRARY_PATH
26963 + shlibpath_overrides_runpath=yes
26964 + hardcode_into_libs=yes
26965 + if test "$with_gnu_ld" = yes; then
26966 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26967 + else
26968 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26969 + case $host_os in
26970 + sco3.2v5*)
26971 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26972 + ;;
26973 + esac
26974 + fi
26975 + sys_lib_dlsearch_path_spec='/usr/lib'
26976 + ;;
26977 +
26978 +tpf*)
26979 + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
26980 + version_type=linux
26981 + need_lib_prefix=no
26982 + need_version=no
26983 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26984 + shlibpath_var=LD_LIBRARY_PATH
26985 + shlibpath_overrides_runpath=no
26986 + hardcode_into_libs=yes
26987 + ;;
26988 +
26989 +uts4*)
26990 + version_type=linux
26991 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26992 + soname_spec='${libname}${release}${shared_ext}$major'
26993 + shlibpath_var=LD_LIBRARY_PATH
26994 + ;;
26995 +
26996 +*)
26997 + dynamic_linker=no
26998 + ;;
26999 +esac
27000 +{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
27001 +$as_echo "$dynamic_linker" >&6; }
27002 +test "$dynamic_linker" = no && can_build_shared=no
27003 +
27004 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
27005 +if test "$GCC" = yes; then
27006 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
27007 +fi
27008 +
27009 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
27010 + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
27011 +fi
27012 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
27013 + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
27014 +fi
27015 +
27016 +
27017 +
27018 +
27019 +
27020 +
27021 +
27022 +
27023 +
27024 +
27025 +
27026 +
27027 +
27028 +
27029 +
27030 +
27031 +
27032 +
27033 +
27034 +
27035 +
27036 +
27037 +
27038 +
27039 +
27040 +
27041 +
27042 +
27043 +
27044 +
27045 +
27046 +
27047 +
27048 +
27049 +
27050 +
27051 +
27052 +
27053 +
27054 +
27055 +
27056 +
27057 +
27058 +
27059 +
27060 +
27061 +
27062 +
27063 +
27064 +
27065 +
27066 +
27067 +
27068 +
27069 +
27070 +
27071 +
27072 +
27073 +
27074 +
27075 +
27076 +
27077 +
27078 +
27079 +
27080 +
27081 +
27082 +
27083 +
27084 +
27085 +
27086 +
27087 +
27088 +
27089 +
27090 +
27091 +
27092 +
27093 +
27094 +
27095 +
27096 +
27097 +
27098 +
27099 +
27100 +
27101 +
27102 + { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
27103 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
27104 +hardcode_action=
27105 +if test -n "$hardcode_libdir_flag_spec" ||
27106 + test -n "$runpath_var" ||
27107 + test "X$hardcode_automatic" = "Xyes" ; then
27108 +
27109 + # We can hardcode non-existent directories.
27110 + if test "$hardcode_direct" != no &&
27111 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
27112 + # have to relink, otherwise we might link with an installed library
27113 + # when we should be linking with a yet-to-be-installed one
27114 + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
27115 + test "$hardcode_minus_L" != no; then
27116 + # Linking always hardcodes the temporary library directory.
27117 + hardcode_action=relink
27118 + else
27119 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
27120 + hardcode_action=immediate
27121 + fi
27122 +else
27123 + # We cannot hardcode anything, or else we can only hardcode existing
27124 + # directories.
27125 + hardcode_action=unsupported
27126 +fi
27127 +{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
27128 +$as_echo "$hardcode_action" >&6; }
27129 +
27130 +if test "$hardcode_action" = relink ||
27131 + test "$inherit_rpath" = yes; then
27132 + # Fast installation is not supported
27133 + enable_fast_install=no
27134 +elif test "$shlibpath_overrides_runpath" = yes ||
27135 + test "$enable_shared" = no; then
27136 + # Fast installation is not necessary
27137 + enable_fast_install=needless
27138 +fi
27139 +
27140 +
27141 +
27142 +
27143 +
27144 +
27145 + if test "x$enable_dlopen" != xyes; then
27146 + enable_dlopen=unknown
27147 + enable_dlopen_self=unknown
27148 + enable_dlopen_self_static=unknown
27149 +else
27150 + lt_cv_dlopen=no
27151 + lt_cv_dlopen_libs=
27152 +
27153 + case $host_os in
27154 + beos*)
27155 + lt_cv_dlopen="load_add_on"
27156 + lt_cv_dlopen_libs=
27157 + lt_cv_dlopen_self=yes
27158 + ;;
27159 +
27160 + mingw* | pw32* | cegcc*)
27161 + lt_cv_dlopen="LoadLibrary"
27162 + lt_cv_dlopen_libs=
27163 + ;;
27164 +
27165 + cygwin*)
27166 + lt_cv_dlopen="dlopen"
27167 + lt_cv_dlopen_libs=
27168 + ;;
27169 +
27170 + darwin*)
27171 + # if libdl is installed we need to link against it
27172 + { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27173 +$as_echo_n "checking for dlopen in -ldl... " >&6; }
27174 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27175 + $as_echo_n "(cached) " >&6
27176 +else
27177 + ac_check_lib_save_LIBS=$LIBS
27178 +LIBS="-ldl $LIBS"
27179 +cat >conftest.$ac_ext <<_ACEOF
27180 +/* confdefs.h. */
27181 +_ACEOF
27182 +cat confdefs.h >>conftest.$ac_ext
27183 +cat >>conftest.$ac_ext <<_ACEOF
27184 +/* end confdefs.h. */
27185 +
27186 +/* Override any GCC internal prototype to avoid an error.
27187 + Use char because int might match the return type of a GCC
27188 + builtin and then its argument prototype would still apply. */
27189 +#ifdef __cplusplus
27190 +extern "C"
27191 +#endif
27192 +char dlopen ();
27193 +int
27194 +main ()
27195 +{
27196 +return dlopen ();
27197 + ;
27198 + return 0;
27199 +}
27200 +_ACEOF
27201 +rm -f conftest.$ac_objext conftest$ac_exeext
27202 +if { (ac_try="$ac_link"
27203 +case "(($ac_try" in
27204 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27205 + *) ac_try_echo=$ac_try;;
27206 +esac
27207 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27208 +$as_echo "$ac_try_echo") >&5
27209 + (eval "$ac_link") 2>conftest.er1
27210 + ac_status=$?
27211 + grep -v '^ *+' conftest.er1 >conftest.err
27212 + rm -f conftest.er1
27213 + cat conftest.err >&5
27214 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 + (exit $ac_status); } && {
27216 + test -z "$ac_c_werror_flag" ||
27217 + test ! -s conftest.err
27218 + } && test -s conftest$ac_exeext && {
27219 + test "$cross_compiling" = yes ||
27220 + $as_test_x conftest$ac_exeext
27221 + }; then
27222 + ac_cv_lib_dl_dlopen=yes
27223 +else
27224 + $as_echo "$as_me: failed program was:" >&5
27225 +sed 's/^/| /' conftest.$ac_ext >&5
27226 +
27227 + ac_cv_lib_dl_dlopen=no
27228 +fi
27229 +
27230 +rm -rf conftest.dSYM
27231 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27232 + conftest$ac_exeext conftest.$ac_ext
27233 +LIBS=$ac_check_lib_save_LIBS
27234 +fi
27235 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27236 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
27237 +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
27238 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
27239 +else
27240 +
27241 + lt_cv_dlopen="dyld"
27242 + lt_cv_dlopen_libs=
27243 + lt_cv_dlopen_self=yes
27244 +
27245 +fi
27246 +
27247 + ;;
27248 +
27249 + *)
27250 + { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
27251 +$as_echo_n "checking for shl_load... " >&6; }
27252 +if test "${ac_cv_func_shl_load+set}" = set; then
27253 + $as_echo_n "(cached) " >&6
27254 +else
27255 + cat >conftest.$ac_ext <<_ACEOF
27256 +/* confdefs.h. */
27257 +_ACEOF
27258 +cat confdefs.h >>conftest.$ac_ext
27259 +cat >>conftest.$ac_ext <<_ACEOF
27260 +/* end confdefs.h. */
27261 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
27262 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
27263 +#define shl_load innocuous_shl_load
27264 +
27265 +/* System header to define __stub macros and hopefully few prototypes,
27266 + which can conflict with char shl_load (); below.
27267 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27268 + <limits.h> exists even on freestanding compilers. */
27269 +
27270 +#ifdef __STDC__
27271 +# include <limits.h>
27272 +#else
27273 +# include <assert.h>
27274 +#endif
27275 +
27276 +#undef shl_load
27277 +
27278 +/* Override any GCC internal prototype to avoid an error.
27279 + Use char because int might match the return type of a GCC
27280 + builtin and then its argument prototype would still apply. */
27281 +#ifdef __cplusplus
27282 +extern "C"
27283 +#endif
27284 +char shl_load ();
27285 +/* The GNU C library defines this for functions which it implements
27286 + to always fail with ENOSYS. Some functions are actually named
27287 + something starting with __ and the normal name is an alias. */
27288 +#if defined __stub_shl_load || defined __stub___shl_load
27289 +choke me
27290 +#endif
27291 +
27292 +int
27293 +main ()
27294 +{
27295 +return shl_load ();
27296 + ;
27297 + return 0;
27298 +}
27299 +_ACEOF
27300 +rm -f conftest.$ac_objext conftest$ac_exeext
27301 +if { (ac_try="$ac_link"
27302 +case "(($ac_try" in
27303 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27304 + *) ac_try_echo=$ac_try;;
27305 +esac
27306 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27307 +$as_echo "$ac_try_echo") >&5
27308 + (eval "$ac_link") 2>conftest.er1
27309 + ac_status=$?
27310 + grep -v '^ *+' conftest.er1 >conftest.err
27311 + rm -f conftest.er1
27312 + cat conftest.err >&5
27313 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27314 + (exit $ac_status); } && {
27315 + test -z "$ac_c_werror_flag" ||
27316 + test ! -s conftest.err
27317 + } && test -s conftest$ac_exeext && {
27318 + test "$cross_compiling" = yes ||
27319 + $as_test_x conftest$ac_exeext
27320 + }; then
27321 + ac_cv_func_shl_load=yes
27322 +else
27323 + $as_echo "$as_me: failed program was:" >&5
27324 +sed 's/^/| /' conftest.$ac_ext >&5
27325 +
27326 + ac_cv_func_shl_load=no
27327 +fi
27328 +
27329 +rm -rf conftest.dSYM
27330 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27331 + conftest$ac_exeext conftest.$ac_ext
27332 +fi
27333 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
27334 +$as_echo "$ac_cv_func_shl_load" >&6; }
27335 +if test "x$ac_cv_func_shl_load" = x""yes; then
27336 + lt_cv_dlopen="shl_load"
27337 +else
27338 + { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
27339 +$as_echo_n "checking for shl_load in -ldld... " >&6; }
27340 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
27341 + $as_echo_n "(cached) " >&6
27342 +else
27343 + ac_check_lib_save_LIBS=$LIBS
27344 +LIBS="-ldld $LIBS"
27345 +cat >conftest.$ac_ext <<_ACEOF
27346 +/* confdefs.h. */
27347 +_ACEOF
27348 +cat confdefs.h >>conftest.$ac_ext
27349 +cat >>conftest.$ac_ext <<_ACEOF
27350 +/* end confdefs.h. */
27351 +
27352 +/* Override any GCC internal prototype to avoid an error.
27353 + Use char because int might match the return type of a GCC
27354 + builtin and then its argument prototype would still apply. */
27355 +#ifdef __cplusplus
27356 +extern "C"
27357 +#endif
27358 +char shl_load ();
27359 +int
27360 +main ()
27361 +{
27362 +return shl_load ();
27363 + ;
27364 + return 0;
27365 +}
27366 +_ACEOF
27367 +rm -f conftest.$ac_objext conftest$ac_exeext
27368 +if { (ac_try="$ac_link"
27369 +case "(($ac_try" in
27370 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27371 + *) ac_try_echo=$ac_try;;
27372 +esac
27373 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27374 +$as_echo "$ac_try_echo") >&5
27375 + (eval "$ac_link") 2>conftest.er1
27376 + ac_status=$?
27377 + grep -v '^ *+' conftest.er1 >conftest.err
27378 + rm -f conftest.er1
27379 + cat conftest.err >&5
27380 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381 + (exit $ac_status); } && {
27382 + test -z "$ac_c_werror_flag" ||
27383 + test ! -s conftest.err
27384 + } && test -s conftest$ac_exeext && {
27385 + test "$cross_compiling" = yes ||
27386 + $as_test_x conftest$ac_exeext
27387 + }; then
27388 + ac_cv_lib_dld_shl_load=yes
27389 +else
27390 + $as_echo "$as_me: failed program was:" >&5
27391 +sed 's/^/| /' conftest.$ac_ext >&5
27392 +
27393 + ac_cv_lib_dld_shl_load=no
27394 +fi
27395 +
27396 +rm -rf conftest.dSYM
27397 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27398 + conftest$ac_exeext conftest.$ac_ext
27399 +LIBS=$ac_check_lib_save_LIBS
27400 +fi
27401 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
27402 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
27403 +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
27404 + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
27405 +else
27406 + { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
27407 +$as_echo_n "checking for dlopen... " >&6; }
27408 +if test "${ac_cv_func_dlopen+set}" = set; then
27409 + $as_echo_n "(cached) " >&6
27410 +else
27411 + cat >conftest.$ac_ext <<_ACEOF
27412 +/* confdefs.h. */
27413 +_ACEOF
27414 +cat confdefs.h >>conftest.$ac_ext
27415 +cat >>conftest.$ac_ext <<_ACEOF
27416 +/* end confdefs.h. */
27417 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
27418 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
27419 +#define dlopen innocuous_dlopen
27420 +
27421 +/* System header to define __stub macros and hopefully few prototypes,
27422 + which can conflict with char dlopen (); below.
27423 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27424 + <limits.h> exists even on freestanding compilers. */
27425 +
27426 +#ifdef __STDC__
27427 +# include <limits.h>
27428 +#else
27429 +# include <assert.h>
27430 +#endif
27431 +
27432 +#undef dlopen
27433 +
27434 +/* Override any GCC internal prototype to avoid an error.
27435 + Use char because int might match the return type of a GCC
27436 + builtin and then its argument prototype would still apply. */
27437 +#ifdef __cplusplus
27438 +extern "C"
27439 +#endif
27440 +char dlopen ();
27441 +/* The GNU C library defines this for functions which it implements
27442 + to always fail with ENOSYS. Some functions are actually named
27443 + something starting with __ and the normal name is an alias. */
27444 +#if defined __stub_dlopen || defined __stub___dlopen
27445 +choke me
27446 +#endif
27447 +
27448 +int
27449 +main ()
27450 +{
27451 +return dlopen ();
27452 + ;
27453 + return 0;
27454 +}
27455 +_ACEOF
27456 +rm -f conftest.$ac_objext conftest$ac_exeext
27457 +if { (ac_try="$ac_link"
27458 +case "(($ac_try" in
27459 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27460 + *) ac_try_echo=$ac_try;;
27461 +esac
27462 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27463 +$as_echo "$ac_try_echo") >&5
27464 + (eval "$ac_link") 2>conftest.er1
27465 + ac_status=$?
27466 + grep -v '^ *+' conftest.er1 >conftest.err
27467 + rm -f conftest.er1
27468 + cat conftest.err >&5
27469 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 + (exit $ac_status); } && {
27471 + test -z "$ac_c_werror_flag" ||
27472 + test ! -s conftest.err
27473 + } && test -s conftest$ac_exeext && {
27474 + test "$cross_compiling" = yes ||
27475 + $as_test_x conftest$ac_exeext
27476 + }; then
27477 + ac_cv_func_dlopen=yes
27478 +else
27479 + $as_echo "$as_me: failed program was:" >&5
27480 +sed 's/^/| /' conftest.$ac_ext >&5
27481 +
27482 + ac_cv_func_dlopen=no
27483 +fi
27484 +
27485 +rm -rf conftest.dSYM
27486 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27487 + conftest$ac_exeext conftest.$ac_ext
27488 +fi
27489 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
27490 +$as_echo "$ac_cv_func_dlopen" >&6; }
27491 +if test "x$ac_cv_func_dlopen" = x""yes; then
27492 + lt_cv_dlopen="dlopen"
27493 +else
27494 + { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27495 +$as_echo_n "checking for dlopen in -ldl... " >&6; }
27496 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27497 + $as_echo_n "(cached) " >&6
27498 +else
27499 + ac_check_lib_save_LIBS=$LIBS
27500 +LIBS="-ldl $LIBS"
27501 +cat >conftest.$ac_ext <<_ACEOF
27502 +/* confdefs.h. */
27503 +_ACEOF
27504 +cat confdefs.h >>conftest.$ac_ext
27505 +cat >>conftest.$ac_ext <<_ACEOF
27506 +/* end confdefs.h. */
27507 +
27508 +/* Override any GCC internal prototype to avoid an error.
27509 + Use char because int might match the return type of a GCC
27510 + builtin and then its argument prototype would still apply. */
27511 +#ifdef __cplusplus
27512 +extern "C"
27513 +#endif
27514 +char dlopen ();
27515 +int
27516 +main ()
27517 +{
27518 +return dlopen ();
27519 + ;
27520 + return 0;
27521 +}
27522 +_ACEOF
27523 +rm -f conftest.$ac_objext conftest$ac_exeext
27524 +if { (ac_try="$ac_link"
27525 +case "(($ac_try" in
27526 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27527 + *) ac_try_echo=$ac_try;;
27528 +esac
27529 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27530 +$as_echo "$ac_try_echo") >&5
27531 + (eval "$ac_link") 2>conftest.er1
27532 + ac_status=$?
27533 + grep -v '^ *+' conftest.er1 >conftest.err
27534 + rm -f conftest.er1
27535 + cat conftest.err >&5
27536 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537 + (exit $ac_status); } && {
27538 + test -z "$ac_c_werror_flag" ||
27539 + test ! -s conftest.err
27540 + } && test -s conftest$ac_exeext && {
27541 + test "$cross_compiling" = yes ||
27542 + $as_test_x conftest$ac_exeext
27543 + }; then
27544 + ac_cv_lib_dl_dlopen=yes
27545 +else
27546 + $as_echo "$as_me: failed program was:" >&5
27547 +sed 's/^/| /' conftest.$ac_ext >&5
27548 +
27549 + ac_cv_lib_dl_dlopen=no
27550 +fi
27551 +
27552 +rm -rf conftest.dSYM
27553 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27554 + conftest$ac_exeext conftest.$ac_ext
27555 +LIBS=$ac_check_lib_save_LIBS
27556 +fi
27557 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27558 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
27559 +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
27560 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
27561 +else
27562 + { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
27563 +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
27564 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
27565 + $as_echo_n "(cached) " >&6
27566 +else
27567 + ac_check_lib_save_LIBS=$LIBS
27568 +LIBS="-lsvld $LIBS"
27569 +cat >conftest.$ac_ext <<_ACEOF
27570 +/* confdefs.h. */
27571 +_ACEOF
27572 +cat confdefs.h >>conftest.$ac_ext
27573 +cat >>conftest.$ac_ext <<_ACEOF
27574 +/* end confdefs.h. */
27575 +
27576 +/* Override any GCC internal prototype to avoid an error.
27577 + Use char because int might match the return type of a GCC
27578 + builtin and then its argument prototype would still apply. */
27579 +#ifdef __cplusplus
27580 +extern "C"
27581 +#endif
27582 +char dlopen ();
27583 +int
27584 +main ()
27585 +{
27586 +return dlopen ();
27587 + ;
27588 + return 0;
27589 +}
27590 +_ACEOF
27591 +rm -f conftest.$ac_objext conftest$ac_exeext
27592 +if { (ac_try="$ac_link"
27593 +case "(($ac_try" in
27594 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27595 + *) ac_try_echo=$ac_try;;
27596 +esac
27597 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27598 +$as_echo "$ac_try_echo") >&5
27599 + (eval "$ac_link") 2>conftest.er1
27600 + ac_status=$?
27601 + grep -v '^ *+' conftest.er1 >conftest.err
27602 + rm -f conftest.er1
27603 + cat conftest.err >&5
27604 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605 + (exit $ac_status); } && {
27606 + test -z "$ac_c_werror_flag" ||
27607 + test ! -s conftest.err
27608 + } && test -s conftest$ac_exeext && {
27609 + test "$cross_compiling" = yes ||
27610 + $as_test_x conftest$ac_exeext
27611 + }; then
27612 + ac_cv_lib_svld_dlopen=yes
27613 +else
27614 + $as_echo "$as_me: failed program was:" >&5
27615 +sed 's/^/| /' conftest.$ac_ext >&5
27616 +
27617 + ac_cv_lib_svld_dlopen=no
27618 +fi
27619 +
27620 +rm -rf conftest.dSYM
27621 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27622 + conftest$ac_exeext conftest.$ac_ext
27623 +LIBS=$ac_check_lib_save_LIBS
27624 +fi
27625 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
27626 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
27627 +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
27628 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
27629 +else
27630 + { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
27631 +$as_echo_n "checking for dld_link in -ldld... " >&6; }
27632 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
27633 + $as_echo_n "(cached) " >&6
27634 +else
27635 + ac_check_lib_save_LIBS=$LIBS
27636 +LIBS="-ldld $LIBS"
27637 +cat >conftest.$ac_ext <<_ACEOF
27638 +/* confdefs.h. */
27639 +_ACEOF
27640 +cat confdefs.h >>conftest.$ac_ext
27641 +cat >>conftest.$ac_ext <<_ACEOF
27642 +/* end confdefs.h. */
27643 +
27644 +/* Override any GCC internal prototype to avoid an error.
27645 + Use char because int might match the return type of a GCC
27646 + builtin and then its argument prototype would still apply. */
27647 +#ifdef __cplusplus
27648 +extern "C"
27649 +#endif
27650 +char dld_link ();
27651 +int
27652 +main ()
27653 +{
27654 +return dld_link ();
27655 + ;
27656 + return 0;
27657 +}
27658 +_ACEOF
27659 +rm -f conftest.$ac_objext conftest$ac_exeext
27660 +if { (ac_try="$ac_link"
27661 +case "(($ac_try" in
27662 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663 + *) ac_try_echo=$ac_try;;
27664 +esac
27665 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27666 +$as_echo "$ac_try_echo") >&5
27667 + (eval "$ac_link") 2>conftest.er1
27668 + ac_status=$?
27669 + grep -v '^ *+' conftest.er1 >conftest.err
27670 + rm -f conftest.er1
27671 + cat conftest.err >&5
27672 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 + (exit $ac_status); } && {
27674 + test -z "$ac_c_werror_flag" ||
27675 + test ! -s conftest.err
27676 + } && test -s conftest$ac_exeext && {
27677 + test "$cross_compiling" = yes ||
27678 + $as_test_x conftest$ac_exeext
27679 + }; then
27680 + ac_cv_lib_dld_dld_link=yes
27681 +else
27682 + $as_echo "$as_me: failed program was:" >&5
27683 +sed 's/^/| /' conftest.$ac_ext >&5
27684 +
27685 + ac_cv_lib_dld_dld_link=no
27686 +fi
27687 +
27688 +rm -rf conftest.dSYM
27689 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27690 + conftest$ac_exeext conftest.$ac_ext
27691 +LIBS=$ac_check_lib_save_LIBS
27692 +fi
27693 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
27694 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
27695 +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
27696 + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
27697 +fi
27698 +
27699 +
27700 +fi
27701 +
27702 +
27703 +fi
27704 +
27705 +
27706 +fi
27707 +
27708 +
27709 +fi
27710 +
27711 +
27712 +fi
27713 +
27714 + ;;
27715 + esac
27716 +
27717 + if test "x$lt_cv_dlopen" != xno; then
27718 + enable_dlopen=yes
27719 + else
27720 + enable_dlopen=no
27721 + fi
27722 +
27723 + case $lt_cv_dlopen in
27724 + dlopen)
27725 + save_CPPFLAGS="$CPPFLAGS"
27726 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
27727 +
27728 + save_LDFLAGS="$LDFLAGS"
27729 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
27730 +
27731 + save_LIBS="$LIBS"
27732 + LIBS="$lt_cv_dlopen_libs $LIBS"
27733 +
27734 + { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
27735 +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
27736 +if test "${lt_cv_dlopen_self+set}" = set; then
27737 + $as_echo_n "(cached) " >&6
27738 +else
27739 + if test "$cross_compiling" = yes; then :
27740 + lt_cv_dlopen_self=cross
27741 +else
27742 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27743 + lt_status=$lt_dlunknown
27744 + cat > conftest.$ac_ext <<_LT_EOF
27745 +#line 11075 "configure"
27746 +#include "confdefs.h"
27747 +
27748 +#if HAVE_DLFCN_H
27749 +#include <dlfcn.h>
27750 +#endif
27751 +
27752 +#include <stdio.h>
27753 +
27754 +#ifdef RTLD_GLOBAL
27755 +# define LT_DLGLOBAL RTLD_GLOBAL
27756 +#else
27757 +# ifdef DL_GLOBAL
27758 +# define LT_DLGLOBAL DL_GLOBAL
27759 +# else
27760 +# define LT_DLGLOBAL 0
27761 +# endif
27762 +#endif
27763 +
27764 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27765 + find out it does not work in some platform. */
27766 +#ifndef LT_DLLAZY_OR_NOW
27767 +# ifdef RTLD_LAZY
27768 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
27769 +# else
27770 +# ifdef DL_LAZY
27771 +# define LT_DLLAZY_OR_NOW DL_LAZY
27772 +# else
27773 +# ifdef RTLD_NOW
27774 +# define LT_DLLAZY_OR_NOW RTLD_NOW
27775 +# else
27776 +# ifdef DL_NOW
27777 +# define LT_DLLAZY_OR_NOW DL_NOW
27778 +# else
27779 +# define LT_DLLAZY_OR_NOW 0
27780 +# endif
27781 +# endif
27782 +# endif
27783 +# endif
27784 +#endif
27785 +
27786 +void fnord() { int i=42;}
27787 +int main ()
27788 +{
27789 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27790 + int status = $lt_dlunknown;
27791 +
27792 + if (self)
27793 + {
27794 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
27795 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27796 + /* dlclose (self); */
27797 + }
27798 + else
27799 + puts (dlerror ());
27800 +
27801 + return status;
27802 +}
27803 +_LT_EOF
27804 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27805 + (eval $ac_link) 2>&5
27806 + ac_status=$?
27807 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27809 + (./conftest; exit; ) >&5 2>/dev/null
27810 + lt_status=$?
27811 + case x$lt_status in
27812 + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
27813 + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
27814 + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
27815 + esac
27816 + else :
27817 + # compilation failed
27818 + lt_cv_dlopen_self=no
27819 + fi
27820 +fi
27821 +rm -fr conftest*
27822 +
27823 +
27824 +fi
27825 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
27826 +$as_echo "$lt_cv_dlopen_self" >&6; }
27827 +
27828 + if test "x$lt_cv_dlopen_self" = xyes; then
27829 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
27830 + { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
27831 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
27832 +if test "${lt_cv_dlopen_self_static+set}" = set; then
27833 + $as_echo_n "(cached) " >&6
27834 +else
27835 + if test "$cross_compiling" = yes; then :
27836 + lt_cv_dlopen_self_static=cross
27837 +else
27838 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27839 + lt_status=$lt_dlunknown
27840 + cat > conftest.$ac_ext <<_LT_EOF
27841 +#line 11171 "configure"
27842 +#include "confdefs.h"
27843 +
27844 +#if HAVE_DLFCN_H
27845 +#include <dlfcn.h>
27846 +#endif
27847 +
27848 +#include <stdio.h>
27849 +
27850 +#ifdef RTLD_GLOBAL
27851 +# define LT_DLGLOBAL RTLD_GLOBAL
27852 +#else
27853 +# ifdef DL_GLOBAL
27854 +# define LT_DLGLOBAL DL_GLOBAL
27855 +# else
27856 +# define LT_DLGLOBAL 0
27857 +# endif
27858 +#endif
27859 +
27860 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27861 + find out it does not work in some platform. */
27862 +#ifndef LT_DLLAZY_OR_NOW
27863 +# ifdef RTLD_LAZY
27864 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
27865 +# else
27866 +# ifdef DL_LAZY
27867 +# define LT_DLLAZY_OR_NOW DL_LAZY
27868 +# else
27869 +# ifdef RTLD_NOW
27870 +# define LT_DLLAZY_OR_NOW RTLD_NOW
27871 +# else
27872 +# ifdef DL_NOW
27873 +# define LT_DLLAZY_OR_NOW DL_NOW
27874 +# else
27875 +# define LT_DLLAZY_OR_NOW 0
27876 +# endif
27877 +# endif
27878 +# endif
27879 +# endif
27880 +#endif
27881 +
27882 +void fnord() { int i=42;}
27883 +int main ()
27884 +{
27885 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27886 + int status = $lt_dlunknown;
27887 +
27888 + if (self)
27889 + {
27890 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
27891 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27892 + /* dlclose (self); */
27893 + }
27894 + else
27895 + puts (dlerror ());
27896 +
27897 + return status;
27898 +}
27899 +_LT_EOF
27900 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27901 + (eval $ac_link) 2>&5
27902 + ac_status=$?
27903 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27905 + (./conftest; exit; ) >&5 2>/dev/null
27906 + lt_status=$?
27907 + case x$lt_status in
27908 + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
27909 + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
27910 + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
27911 + esac
27912 + else :
27913 + # compilation failed
27914 + lt_cv_dlopen_self_static=no
27915 + fi
27916 +fi
27917 +rm -fr conftest*
27918 +
27919 +
27920 +fi
27921 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
27922 +$as_echo "$lt_cv_dlopen_self_static" >&6; }
27923 + fi
27924 +
27925 + CPPFLAGS="$save_CPPFLAGS"
27926 + LDFLAGS="$save_LDFLAGS"
27927 + LIBS="$save_LIBS"
27928 + ;;
27929 + esac
27930 +
27931 + case $lt_cv_dlopen_self in
27932 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
27933 + *) enable_dlopen_self=unknown ;;
27934 + esac
27935 +
27936 + case $lt_cv_dlopen_self_static in
27937 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
27938 + *) enable_dlopen_self_static=unknown ;;
27939 + esac
27940 +fi
27941 +
27942 +
27943 +
27944 +
27945 +
27946 +
27947 +
27948 +
27949 +
27950 +
27951 +
27952 +
27953 +
27954 +
27955 +
27956 +
27957 +
27958 +striplib=
27959 +old_striplib=
27960 +{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
27961 +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
27962 +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
27963 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
27964 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
27965 + { $as_echo "$as_me:$LINENO: result: yes" >&5
27966 +$as_echo "yes" >&6; }
27967 +else
27968 +# FIXME - insert some real tests, host_os isn't really good enough
27969 + case $host_os in
27970 + darwin*)
27971 + if test -n "$STRIP" ; then
27972 + striplib="$STRIP -x"
27973 + old_striplib="$STRIP -S"
27974 + { $as_echo "$as_me:$LINENO: result: yes" >&5
27975 +$as_echo "yes" >&6; }
27976 + else
27977 + { $as_echo "$as_me:$LINENO: result: no" >&5
27978 +$as_echo "no" >&6; }
27979 + fi
27980 + ;;
27981 + *)
27982 + { $as_echo "$as_me:$LINENO: result: no" >&5
27983 +$as_echo "no" >&6; }
27984 + ;;
27985 + esac
27986 +fi
27987 +
27988 +
27989 +
27990 +
27991 +
27992 +
27993 +
27994 +
27995 +
27996 +
27997 +
27998 +
27999 + # Report which library types will actually be built
28000 + { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
28001 +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
28002 + { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
28003 +$as_echo "$can_build_shared" >&6; }
28004 +
28005 + { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
28006 +$as_echo_n "checking whether to build shared libraries... " >&6; }
28007 + test "$can_build_shared" = "no" && enable_shared=no
28008 +
28009 + # On AIX, shared libraries and static libraries use the same namespace, and
28010 + # are all built from PIC.
28011 + case $host_os in
28012 + aix3*)
28013 + test "$enable_shared" = yes && enable_static=no
28014 + if test -n "$RANLIB"; then
28015 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
28016 + postinstall_cmds='$RANLIB $lib'
28017 + fi
28018 + ;;
28019 +
28020 + aix[4-9]*)
28021 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
28022 + test "$enable_shared" = yes && enable_static=no
28023 + fi
28024 + ;;
28025 + esac
28026 + { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
28027 +$as_echo "$enable_shared" >&6; }
28028 +
28029 + { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
28030 +$as_echo_n "checking whether to build static libraries... " >&6; }
28031 + # Make sure either enable_shared or enable_static is yes.
28032 + test "$enable_shared" = yes || enable_static=yes
28033 + { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
28034 +$as_echo "$enable_static" >&6; }
28035 +
28036 +
28037 +
28038 +
28039 +fi
28040 +ac_ext=c
28041 +ac_cpp='$CPP $CPPFLAGS'
28042 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28043 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28044 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
28045 +
28046 +CC="$lt_save_CC"
28047 +
28048 +
28049 +
28050 +
28051 +
28052 +
28053 +
28054 +
28055 +
28056 +
28057 +
28058 +
28059 +
28060 + ac_config_commands="$ac_config_commands libtool"
28061 +
28062 +
28063 +
28064 +
28065 +# Only expand once:
28066 +
28067 +
28068 +{ $as_echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
28069 +$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
28070 +if test "${libltdl_cv_shlibext+set}" = set; then
28071 + $as_echo_n "(cached) " >&6
28072 +else
28073 +
28074 +module=yes
28075 +eval libltdl_cv_shlibext=$shrext_cmds
28076 +
28077 +fi
28078 +{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
28079 +$as_echo "$libltdl_cv_shlibext" >&6; }
28080 +if test -n "$libltdl_cv_shlibext"; then
28081 +
28082 +cat >>confdefs.h <<_ACEOF
28083 +#define LT_MODULE_EXT "$libltdl_cv_shlibext"
28084 +_ACEOF
28085 +
28086 +fi
28087 +
28088 +{ $as_echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
28089 +$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
28090 +if test "${lt_cv_module_path_var+set}" = set; then
28091 + $as_echo_n "(cached) " >&6
28092 +else
28093 + lt_cv_module_path_var="$shlibpath_var"
28094 +fi
28095 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
28096 +$as_echo "$lt_cv_module_path_var" >&6; }
28097 +if test -n "$lt_cv_module_path_var"; then
28098 +
28099 +cat >>confdefs.h <<_ACEOF
28100 +#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
28101 +_ACEOF
28102 +
28103 +fi
28104 +
28105 +{ $as_echo "$as_me:$LINENO: checking for the default library search path" >&5
28106 +$as_echo_n "checking for the default library search path... " >&6; }
28107 +if test "${lt_cv_sys_dlsearch_path+set}" = set; then
28108 + $as_echo_n "(cached) " >&6
28109 +else
28110 + lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
28111 +fi
28112 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
28113 +$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
28114 +if test -n "$lt_cv_sys_dlsearch_path"; then
28115 + sys_dlsearch_path=
28116 + for dir in $lt_cv_sys_dlsearch_path; do
28117 + if test -z "$sys_dlsearch_path"; then
28118 + sys_dlsearch_path="$dir"
28119 + else
28120 + sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
28121 + fi
28122 + done
28123 +
28124 +cat >>confdefs.h <<_ACEOF
28125 +#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
28126 +_ACEOF
28127 +
28128 +fi
28129 +
28130 +
28131 +LT_DLLOADERS=
28132 +
28133 +
28134 +ac_ext=c
28135 +ac_cpp='$CPP $CPPFLAGS'
28136 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28137 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28138 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
28139 +
28140 +
28141 +LIBADD_DLOPEN=
28142 +{ $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
28143 +$as_echo_n "checking for library containing dlopen... " >&6; }
28144 +if test "${ac_cv_search_dlopen+set}" = set; then
28145 + $as_echo_n "(cached) " >&6
28146 +else
28147 + ac_func_search_save_LIBS=$LIBS
28148 +cat >conftest.$ac_ext <<_ACEOF
28149 +/* confdefs.h. */
28150 +_ACEOF
28151 +cat confdefs.h >>conftest.$ac_ext
28152 +cat >>conftest.$ac_ext <<_ACEOF
28153 +/* end confdefs.h. */
28154 +
28155 +/* Override any GCC internal prototype to avoid an error.
28156 + Use char because int might match the return type of a GCC
28157 + builtin and then its argument prototype would still apply. */
28158 +#ifdef __cplusplus
28159 +extern "C"
28160 +#endif
28161 +char dlopen ();
28162 +int
28163 +main ()
28164 +{
28165 +return dlopen ();
28166 + ;
28167 + return 0;
28168 +}
28169 +_ACEOF
28170 +for ac_lib in '' dl; do
28171 + if test -z "$ac_lib"; then
28172 + ac_res="none required"
28173 + else
28174 + ac_res=-l$ac_lib
28175 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28176 + fi
28177 + rm -f conftest.$ac_objext conftest$ac_exeext
28178 +if { (ac_try="$ac_link"
28179 +case "(($ac_try" in
28180 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28181 + *) ac_try_echo=$ac_try;;
28182 +esac
28183 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28184 +$as_echo "$ac_try_echo") >&5
28185 + (eval "$ac_link") 2>conftest.er1
28186 + ac_status=$?
28187 + grep -v '^ *+' conftest.er1 >conftest.err
28188 + rm -f conftest.er1
28189 + cat conftest.err >&5
28190 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 + (exit $ac_status); } && {
28192 + test -z "$ac_c_werror_flag" ||
28193 + test ! -s conftest.err
28194 + } && test -s conftest$ac_exeext && {
28195 + test "$cross_compiling" = yes ||
28196 + $as_test_x conftest$ac_exeext
28197 + }; then
28198 + ac_cv_search_dlopen=$ac_res
28199 +else
28200 + $as_echo "$as_me: failed program was:" >&5
28201 +sed 's/^/| /' conftest.$ac_ext >&5
28202 +
28203 +
28204 +fi
28205 +
28206 +rm -rf conftest.dSYM
28207 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28208 + conftest$ac_exeext
28209 + if test "${ac_cv_search_dlopen+set}" = set; then
28210 + break
28211 +fi
28212 +done
28213 +if test "${ac_cv_search_dlopen+set}" = set; then
28214 + :
28215 +else
28216 + ac_cv_search_dlopen=no
28217 +fi
28218 +rm conftest.$ac_ext
28219 +LIBS=$ac_func_search_save_LIBS
28220 +fi
28221 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
28222 +$as_echo "$ac_cv_search_dlopen" >&6; }
28223 +ac_res=$ac_cv_search_dlopen
28224 +if test "$ac_res" != no; then
28225 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28226 +
28227 +cat >>confdefs.h <<\_ACEOF
28228 +#define HAVE_LIBDL 1
28229 +_ACEOF
28230 +
28231 + if test "$ac_cv_search_dlopen" != "none required" ; then
28232 + LIBADD_DLOPEN="-ldl"
28233 + fi
28234 + libltdl_cv_lib_dl_dlopen="yes"
28235 + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
28236 +else
28237 + cat >conftest.$ac_ext <<_ACEOF
28238 +/* confdefs.h. */
28239 +_ACEOF
28240 +cat confdefs.h >>conftest.$ac_ext
28241 +cat >>conftest.$ac_ext <<_ACEOF
28242 +/* end confdefs.h. */
28243 +#if HAVE_DLFCN_H
28244 +# include <dlfcn.h>
28245 +#endif
28246 +
28247 +int
28248 +main ()
28249 +{
28250 +dlopen(0, 0);
28251 + ;
28252 + return 0;
28253 +}
28254 +_ACEOF
28255 +rm -f conftest.$ac_objext conftest$ac_exeext
28256 +if { (ac_try="$ac_link"
28257 +case "(($ac_try" in
28258 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28259 + *) ac_try_echo=$ac_try;;
28260 +esac
28261 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28262 +$as_echo "$ac_try_echo") >&5
28263 + (eval "$ac_link") 2>conftest.er1
28264 + ac_status=$?
28265 + grep -v '^ *+' conftest.er1 >conftest.err
28266 + rm -f conftest.er1
28267 + cat conftest.err >&5
28268 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 + (exit $ac_status); } && {
28270 + test -z "$ac_c_werror_flag" ||
28271 + test ! -s conftest.err
28272 + } && test -s conftest$ac_exeext && {
28273 + test "$cross_compiling" = yes ||
28274 + $as_test_x conftest$ac_exeext
28275 + }; then
28276 +
28277 +cat >>confdefs.h <<\_ACEOF
28278 +#define HAVE_LIBDL 1
28279 +_ACEOF
28280 +
28281 + libltdl_cv_func_dlopen="yes"
28282 + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
28283 +else
28284 + $as_echo "$as_me: failed program was:" >&5
28285 +sed 's/^/| /' conftest.$ac_ext >&5
28286 +
28287 + { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
28288 +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
28289 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
28290 + $as_echo_n "(cached) " >&6
28291 +else
28292 + ac_check_lib_save_LIBS=$LIBS
28293 +LIBS="-lsvld $LIBS"
28294 +cat >conftest.$ac_ext <<_ACEOF
28295 +/* confdefs.h. */
28296 +_ACEOF
28297 +cat confdefs.h >>conftest.$ac_ext
28298 +cat >>conftest.$ac_ext <<_ACEOF
28299 +/* end confdefs.h. */
28300 +
28301 +/* Override any GCC internal prototype to avoid an error.
28302 + Use char because int might match the return type of a GCC
28303 + builtin and then its argument prototype would still apply. */
28304 +#ifdef __cplusplus
28305 +extern "C"
28306 +#endif
28307 +char dlopen ();
28308 +int
28309 +main ()
28310 +{
28311 +return dlopen ();
28312 + ;
28313 + return 0;
28314 +}
28315 +_ACEOF
28316 +rm -f conftest.$ac_objext conftest$ac_exeext
28317 +if { (ac_try="$ac_link"
28318 +case "(($ac_try" in
28319 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28320 + *) ac_try_echo=$ac_try;;
28321 +esac
28322 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28323 +$as_echo "$ac_try_echo") >&5
28324 + (eval "$ac_link") 2>conftest.er1
28325 + ac_status=$?
28326 + grep -v '^ *+' conftest.er1 >conftest.err
28327 + rm -f conftest.er1
28328 + cat conftest.err >&5
28329 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330 + (exit $ac_status); } && {
28331 + test -z "$ac_c_werror_flag" ||
28332 + test ! -s conftest.err
28333 + } && test -s conftest$ac_exeext && {
28334 + test "$cross_compiling" = yes ||
28335 + $as_test_x conftest$ac_exeext
28336 + }; then
28337 + ac_cv_lib_svld_dlopen=yes
28338 +else
28339 + $as_echo "$as_me: failed program was:" >&5
28340 +sed 's/^/| /' conftest.$ac_ext >&5
28341 +
28342 + ac_cv_lib_svld_dlopen=no
28343 +fi
28344 +
28345 +rm -rf conftest.dSYM
28346 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28347 + conftest$ac_exeext conftest.$ac_ext
28348 +LIBS=$ac_check_lib_save_LIBS
28349 +fi
28350 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
28351 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
28352 +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
28353 +
28354 +cat >>confdefs.h <<\_ACEOF
28355 +#define HAVE_LIBDL 1
28356 +_ACEOF
28357 +
28358 + LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
28359 + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
28360 +fi
28361 +
28362 +fi
28363 +
28364 +rm -rf conftest.dSYM
28365 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28366 + conftest$ac_exeext conftest.$ac_ext
28367 +fi
28368 +
28369 +if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
28370 +then
28371 + lt_save_LIBS="$LIBS"
28372 + LIBS="$LIBS $LIBADD_DLOPEN"
28373 +
28374 +for ac_func in dlerror
28375 +do
28376 +as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28377 +{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28378 +$as_echo_n "checking for $ac_func... " >&6; }
28379 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28380 + $as_echo_n "(cached) " >&6
28381 +else
28382 + cat >conftest.$ac_ext <<_ACEOF
28383 +/* confdefs.h. */
28384 +_ACEOF
28385 +cat confdefs.h >>conftest.$ac_ext
28386 +cat >>conftest.$ac_ext <<_ACEOF
28387 +/* end confdefs.h. */
28388 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28389 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
28390 +#define $ac_func innocuous_$ac_func
28391 +
28392 +/* System header to define __stub macros and hopefully few prototypes,
28393 + which can conflict with char $ac_func (); below.
28394 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28395 + <limits.h> exists even on freestanding compilers. */
28396 +
28397 +#ifdef __STDC__
28398 +# include <limits.h>
28399 +#else
28400 +# include <assert.h>
28401 +#endif
28402 +
28403 +#undef $ac_func
28404 +
28405 +/* Override any GCC internal prototype to avoid an error.
28406 + Use char because int might match the return type of a GCC
28407 + builtin and then its argument prototype would still apply. */
28408 +#ifdef __cplusplus
28409 +extern "C"
28410 +#endif
28411 +char $ac_func ();
28412 +/* The GNU C library defines this for functions which it implements
28413 + to always fail with ENOSYS. Some functions are actually named
28414 + something starting with __ and the normal name is an alias. */
28415 +#if defined __stub_$ac_func || defined __stub___$ac_func
28416 +choke me
28417 +#endif
28418 +
28419 +int
28420 +main ()
28421 +{
28422 +return $ac_func ();
28423 + ;
28424 + return 0;
28425 +}
28426 +_ACEOF
28427 +rm -f conftest.$ac_objext conftest$ac_exeext
28428 +if { (ac_try="$ac_link"
28429 +case "(($ac_try" in
28430 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28431 + *) ac_try_echo=$ac_try;;
28432 +esac
28433 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28434 +$as_echo "$ac_try_echo") >&5
28435 + (eval "$ac_link") 2>conftest.er1
28436 + ac_status=$?
28437 + grep -v '^ *+' conftest.er1 >conftest.err
28438 + rm -f conftest.er1
28439 + cat conftest.err >&5
28440 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28441 + (exit $ac_status); } && {
28442 + test -z "$ac_c_werror_flag" ||
28443 + test ! -s conftest.err
28444 + } && test -s conftest$ac_exeext && {
28445 + test "$cross_compiling" = yes ||
28446 + $as_test_x conftest$ac_exeext
28447 + }; then
28448 + eval "$as_ac_var=yes"
28449 +else
28450 + $as_echo "$as_me: failed program was:" >&5
28451 +sed 's/^/| /' conftest.$ac_ext >&5
28452 +
28453 + eval "$as_ac_var=no"
28454 +fi
28455 +
28456 +rm -rf conftest.dSYM
28457 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28458 + conftest$ac_exeext conftest.$ac_ext
28459 +fi
28460 +ac_res=`eval 'as_val=${'$as_ac_var'}
28461 + $as_echo "$as_val"'`
28462 + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28463 +$as_echo "$ac_res" >&6; }
28464 +as_val=`eval 'as_val=${'$as_ac_var'}
28465 + $as_echo "$as_val"'`
28466 + if test "x$as_val" = x""yes; then
28467 + cat >>confdefs.h <<_ACEOF
28468 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28469 +_ACEOF
28470 +
28471 +fi
28472 +done
28473 +
28474 + LIBS="$lt_save_LIBS"
28475 +fi
28476 +
28477 +
28478 +LIBADD_SHL_LOAD=
28479 +{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
28480 +$as_echo_n "checking for shl_load... " >&6; }
28481 +if test "${ac_cv_func_shl_load+set}" = set; then
28482 + $as_echo_n "(cached) " >&6
28483 +else
28484 + cat >conftest.$ac_ext <<_ACEOF
28485 +/* confdefs.h. */
28486 +_ACEOF
28487 +cat confdefs.h >>conftest.$ac_ext
28488 +cat >>conftest.$ac_ext <<_ACEOF
28489 +/* end confdefs.h. */
28490 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
28491 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
28492 +#define shl_load innocuous_shl_load
28493 +
28494 +/* System header to define __stub macros and hopefully few prototypes,
28495 + which can conflict with char shl_load (); below.
28496 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28497 + <limits.h> exists even on freestanding compilers. */
28498 +
28499 +#ifdef __STDC__
28500 +# include <limits.h>
28501 +#else
28502 +# include <assert.h>
28503 +#endif
28504 +
28505 +#undef shl_load
28506 +
28507 +/* Override any GCC internal prototype to avoid an error.
28508 + Use char because int might match the return type of a GCC
28509 + builtin and then its argument prototype would still apply. */
28510 +#ifdef __cplusplus
28511 +extern "C"
28512 +#endif
28513 +char shl_load ();
28514 +/* The GNU C library defines this for functions which it implements
28515 + to always fail with ENOSYS. Some functions are actually named
28516 + something starting with __ and the normal name is an alias. */
28517 +#if defined __stub_shl_load || defined __stub___shl_load
28518 +choke me
28519 +#endif
28520 +
28521 +int
28522 +main ()
28523 +{
28524 +return shl_load ();
28525 + ;
28526 + return 0;
28527 +}
28528 +_ACEOF
28529 +rm -f conftest.$ac_objext conftest$ac_exeext
28530 +if { (ac_try="$ac_link"
28531 +case "(($ac_try" in
28532 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533 + *) ac_try_echo=$ac_try;;
28534 +esac
28535 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28536 +$as_echo "$ac_try_echo") >&5
28537 + (eval "$ac_link") 2>conftest.er1
28538 + ac_status=$?
28539 + grep -v '^ *+' conftest.er1 >conftest.err
28540 + rm -f conftest.er1
28541 + cat conftest.err >&5
28542 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 + (exit $ac_status); } && {
28544 + test -z "$ac_c_werror_flag" ||
28545 + test ! -s conftest.err
28546 + } && test -s conftest$ac_exeext && {
28547 + test "$cross_compiling" = yes ||
28548 + $as_test_x conftest$ac_exeext
28549 + }; then
28550 + ac_cv_func_shl_load=yes
28551 +else
28552 + $as_echo "$as_me: failed program was:" >&5
28553 +sed 's/^/| /' conftest.$ac_ext >&5
28554 +
28555 + ac_cv_func_shl_load=no
28556 +fi
28557 +
28558 +rm -rf conftest.dSYM
28559 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28560 + conftest$ac_exeext conftest.$ac_ext
28561 +fi
28562 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
28563 +$as_echo "$ac_cv_func_shl_load" >&6; }
28564 +if test "x$ac_cv_func_shl_load" = x""yes; then
28565 +
28566 +cat >>confdefs.h <<\_ACEOF
28567 +#define HAVE_SHL_LOAD 1
28568 +_ACEOF
28569 +
28570 + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
28571 +else
28572 + { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
28573 +$as_echo_n "checking for shl_load in -ldld... " >&6; }
28574 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
28575 + $as_echo_n "(cached) " >&6
28576 +else
28577 + ac_check_lib_save_LIBS=$LIBS
28578 +LIBS="-ldld $LIBS"
28579 +cat >conftest.$ac_ext <<_ACEOF
28580 +/* confdefs.h. */
28581 +_ACEOF
28582 +cat confdefs.h >>conftest.$ac_ext
28583 +cat >>conftest.$ac_ext <<_ACEOF
28584 +/* end confdefs.h. */
28585 +
28586 +/* Override any GCC internal prototype to avoid an error.
28587 + Use char because int might match the return type of a GCC
28588 + builtin and then its argument prototype would still apply. */
28589 +#ifdef __cplusplus
28590 +extern "C"
28591 +#endif
28592 +char shl_load ();
28593 +int
28594 +main ()
28595 +{
28596 +return shl_load ();
28597 + ;
28598 + return 0;
28599 +}
28600 +_ACEOF
28601 +rm -f conftest.$ac_objext conftest$ac_exeext
28602 +if { (ac_try="$ac_link"
28603 +case "(($ac_try" in
28604 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28605 + *) ac_try_echo=$ac_try;;
28606 +esac
28607 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28608 +$as_echo "$ac_try_echo") >&5
28609 + (eval "$ac_link") 2>conftest.er1
28610 + ac_status=$?
28611 + grep -v '^ *+' conftest.er1 >conftest.err
28612 + rm -f conftest.er1
28613 + cat conftest.err >&5
28614 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615 + (exit $ac_status); } && {
28616 + test -z "$ac_c_werror_flag" ||
28617 + test ! -s conftest.err
28618 + } && test -s conftest$ac_exeext && {
28619 + test "$cross_compiling" = yes ||
28620 + $as_test_x conftest$ac_exeext
28621 + }; then
28622 + ac_cv_lib_dld_shl_load=yes
28623 +else
28624 + $as_echo "$as_me: failed program was:" >&5
28625 +sed 's/^/| /' conftest.$ac_ext >&5
28626 +
28627 + ac_cv_lib_dld_shl_load=no
28628 +fi
28629 +
28630 +rm -rf conftest.dSYM
28631 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28632 + conftest$ac_exeext conftest.$ac_ext
28633 +LIBS=$ac_check_lib_save_LIBS
28634 +fi
28635 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
28636 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
28637 +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
28638 +
28639 +cat >>confdefs.h <<\_ACEOF
28640 +#define HAVE_SHL_LOAD 1
28641 +_ACEOF
28642 +
28643 + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
28644 + LIBADD_SHL_LOAD="-ldld"
28645 +fi
28646 +
28647 +fi
28648 +
28649 +
28650 +
28651 +case $host_os in
28652 +darwin[1567].*)
28653 +# We only want this for pre-Mac OS X 10.4.
28654 + { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
28655 +$as_echo_n "checking for _dyld_func_lookup... " >&6; }
28656 +if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
28657 + $as_echo_n "(cached) " >&6
28658 +else
28659 + cat >conftest.$ac_ext <<_ACEOF
28660 +/* confdefs.h. */
28661 +_ACEOF
28662 +cat confdefs.h >>conftest.$ac_ext
28663 +cat >>conftest.$ac_ext <<_ACEOF
28664 +/* end confdefs.h. */
28665 +/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
28666 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
28667 +#define _dyld_func_lookup innocuous__dyld_func_lookup
28668 +
28669 +/* System header to define __stub macros and hopefully few prototypes,
28670 + which can conflict with char _dyld_func_lookup (); below.
28671 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28672 + <limits.h> exists even on freestanding compilers. */
28673 +
28674 +#ifdef __STDC__
28675 +# include <limits.h>
28676 +#else
28677 +# include <assert.h>
28678 +#endif
28679 +
28680 +#undef _dyld_func_lookup
28681 +
28682 +/* Override any GCC internal prototype to avoid an error.
28683 + Use char because int might match the return type of a GCC
28684 + builtin and then its argument prototype would still apply. */
28685 +#ifdef __cplusplus
28686 +extern "C"
28687 +#endif
28688 +char _dyld_func_lookup ();
28689 +/* The GNU C library defines this for functions which it implements
28690 + to always fail with ENOSYS. Some functions are actually named
28691 + something starting with __ and the normal name is an alias. */
28692 +#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
28693 +choke me
28694 +#endif
28695 +
28696 +int
28697 +main ()
28698 +{
28699 +return _dyld_func_lookup ();
28700 + ;
28701 + return 0;
28702 +}
28703 +_ACEOF
28704 +rm -f conftest.$ac_objext conftest$ac_exeext
28705 +if { (ac_try="$ac_link"
28706 +case "(($ac_try" in
28707 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708 + *) ac_try_echo=$ac_try;;
28709 +esac
28710 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28711 +$as_echo "$ac_try_echo") >&5
28712 + (eval "$ac_link") 2>conftest.er1
28713 + ac_status=$?
28714 + grep -v '^ *+' conftest.er1 >conftest.err
28715 + rm -f conftest.er1
28716 + cat conftest.err >&5
28717 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 + (exit $ac_status); } && {
28719 + test -z "$ac_c_werror_flag" ||
28720 + test ! -s conftest.err
28721 + } && test -s conftest$ac_exeext && {
28722 + test "$cross_compiling" = yes ||
28723 + $as_test_x conftest$ac_exeext
28724 + }; then
28725 + ac_cv_func__dyld_func_lookup=yes
28726 +else
28727 + $as_echo "$as_me: failed program was:" >&5
28728 +sed 's/^/| /' conftest.$ac_ext >&5
28729 +
28730 + ac_cv_func__dyld_func_lookup=no
28731 +fi
28732 +
28733 +rm -rf conftest.dSYM
28734 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28735 + conftest$ac_exeext conftest.$ac_ext
28736 +fi
28737 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
28738 +$as_echo "$ac_cv_func__dyld_func_lookup" >&6; }
28739 +if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then
28740 +
28741 +cat >>confdefs.h <<\_ACEOF
28742 +#define HAVE_DYLD 1
28743 +_ACEOF
28744 +
28745 + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
28746 +fi
28747 +
28748 + ;;
28749 +beos*)
28750 + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
28751 + ;;
28752 +cygwin* | mingw* | os2* | pw32*)
28753 + { $as_echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
28754 +$as_echo_n "checking whether cygwin_conv_path is declared... " >&6; }
28755 +if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
28756 + $as_echo_n "(cached) " >&6
28757 +else
28758 + cat >conftest.$ac_ext <<_ACEOF
28759 +/* confdefs.h. */
28760 +_ACEOF
28761 +cat confdefs.h >>conftest.$ac_ext
28762 +cat >>conftest.$ac_ext <<_ACEOF
28763 +/* end confdefs.h. */
28764 +#include <sys/cygwin.h>
28765 +
28766 +int
28767 +main ()
28768 +{
28769 +#ifndef cygwin_conv_path
28770 + (void) cygwin_conv_path;
28771 +#endif
28772 +
28773 + ;
28774 + return 0;
28775 +}
28776 +_ACEOF
28777 +rm -f conftest.$ac_objext
28778 +if { (ac_try="$ac_compile"
28779 +case "(($ac_try" in
28780 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28781 + *) ac_try_echo=$ac_try;;
28782 +esac
28783 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28784 +$as_echo "$ac_try_echo") >&5
28785 + (eval "$ac_compile") 2>conftest.er1
28786 + ac_status=$?
28787 + grep -v '^ *+' conftest.er1 >conftest.err
28788 + rm -f conftest.er1
28789 + cat conftest.err >&5
28790 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791 + (exit $ac_status); } && {
28792 + test -z "$ac_c_werror_flag" ||
28793 + test ! -s conftest.err
28794 + } && test -s conftest.$ac_objext; then
28795 + ac_cv_have_decl_cygwin_conv_path=yes
28796 +else
28797 + $as_echo "$as_me: failed program was:" >&5
28798 +sed 's/^/| /' conftest.$ac_ext >&5
28799 +
28800 + ac_cv_have_decl_cygwin_conv_path=no
28801 +fi
28802 +
28803 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28804 +fi
28805 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
28806 +$as_echo "$ac_cv_have_decl_cygwin_conv_path" >&6; }
28807 +if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then
28808 +
28809 +cat >>confdefs.h <<_ACEOF
28810 +#define HAVE_DECL_CYGWIN_CONV_PATH 1
28811 +_ACEOF
28812 +
28813 +
28814 +else
28815 + cat >>confdefs.h <<_ACEOF
28816 +#define HAVE_DECL_CYGWIN_CONV_PATH 0
28817 +_ACEOF
28818 +
28819 +
28820 +fi
28821 +
28822 +
28823 + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
28824 + ;;
28825 +esac
28826 +
28827 +{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
28828 +$as_echo_n "checking for dld_link in -ldld... " >&6; }
28829 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
28830 + $as_echo_n "(cached) " >&6
28831 +else
28832 + ac_check_lib_save_LIBS=$LIBS
28833 +LIBS="-ldld $LIBS"
28834 +cat >conftest.$ac_ext <<_ACEOF
28835 +/* confdefs.h. */
28836 +_ACEOF
28837 +cat confdefs.h >>conftest.$ac_ext
28838 +cat >>conftest.$ac_ext <<_ACEOF
28839 +/* end confdefs.h. */
28840 +
28841 +/* Override any GCC internal prototype to avoid an error.
28842 + Use char because int might match the return type of a GCC
28843 + builtin and then its argument prototype would still apply. */
28844 +#ifdef __cplusplus
28845 +extern "C"
28846 +#endif
28847 +char dld_link ();
28848 +int
28849 +main ()
28850 +{
28851 +return dld_link ();
28852 + ;
28853 + return 0;
28854 +}
28855 +_ACEOF
28856 +rm -f conftest.$ac_objext conftest$ac_exeext
28857 +if { (ac_try="$ac_link"
28858 +case "(($ac_try" in
28859 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28860 + *) ac_try_echo=$ac_try;;
28861 +esac
28862 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28863 +$as_echo "$ac_try_echo") >&5
28864 + (eval "$ac_link") 2>conftest.er1
28865 + ac_status=$?
28866 + grep -v '^ *+' conftest.er1 >conftest.err
28867 + rm -f conftest.er1
28868 + cat conftest.err >&5
28869 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870 + (exit $ac_status); } && {
28871 + test -z "$ac_c_werror_flag" ||
28872 + test ! -s conftest.err
28873 + } && test -s conftest$ac_exeext && {
28874 + test "$cross_compiling" = yes ||
28875 + $as_test_x conftest$ac_exeext
28876 + }; then
28877 + ac_cv_lib_dld_dld_link=yes
28878 +else
28879 + $as_echo "$as_me: failed program was:" >&5
28880 +sed 's/^/| /' conftest.$ac_ext >&5
28881 +
28882 + ac_cv_lib_dld_dld_link=no
28883 +fi
28884 +
28885 +rm -rf conftest.dSYM
28886 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28887 + conftest$ac_exeext conftest.$ac_ext
28888 +LIBS=$ac_check_lib_save_LIBS
28889 +fi
28890 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
28891 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
28892 +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
28893 +
28894 +cat >>confdefs.h <<\_ACEOF
28895 +#define HAVE_DLD 1
28896 +_ACEOF
28897 +
28898 + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
28899 +fi
28900 +
28901 +
28902 +
28903 +
28904 +LT_DLPREOPEN=
28905 +if test -n "$LT_DLLOADERS"
28906 +then
28907 + for lt_loader in $LT_DLLOADERS; do
28908 + LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
28909 + done
28910 +
28911 +cat >>confdefs.h <<\_ACEOF
28912 +#define HAVE_LIBDLLOADER 1
28913 +_ACEOF
28914 +
28915 +fi
28916 +
28917 +
28918 +LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
28919 +
28920 +
28921 +ac_ext=c
28922 +ac_cpp='$CPP $CPPFLAGS'
28923 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28924 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28925 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
28926 +
28927 +
28928 +{ $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
28929 +$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
28930 +if test "${lt_cv_sys_symbol_underscore+set}" = set; then
28931 + $as_echo_n "(cached) " >&6
28932 +else
28933 + lt_cv_sys_symbol_underscore=no
28934 + cat > conftest.$ac_ext <<_LT_EOF
28935 +void nm_test_func(){}
28936 +int main(){nm_test_func;return 0;}
28937 +_LT_EOF
28938 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28939 + (eval $ac_compile) 2>&5
28940 + ac_status=$?
28941 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 + (exit $ac_status); }; then
28943 + # Now try to grab the symbols.
28944 + ac_nlist=conftest.nm
28945 + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
28946 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
28947 + ac_status=$?
28948 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 + (exit $ac_status); } && test -s "$ac_nlist"; then
28950 + # See whether the symbols have a leading underscore.
28951 + if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
28952 + lt_cv_sys_symbol_underscore=yes
28953 + else
28954 + if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
28955 + :
28956 + else
28957 + echo "configure: cannot find nm_test_func in $ac_nlist" >&5
28958 + fi
28959 + fi
28960 + else
28961 + echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
28962 + fi
28963 + else
28964 + echo "configure: failed program was:" >&5
28965 + cat conftest.c >&5
28966 + fi
28967 + rm -rf conftest*
28968 +
28969 +fi
28970 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
28971 +$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
28972 + sys_symbol_underscore=$lt_cv_sys_symbol_underscore
28973 +
28974 +
28975 +if test x"$lt_cv_sys_symbol_underscore" = xyes; then
28976 + if test x"$libltdl_cv_func_dlopen" = xyes ||
28977 + test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
28978 + { $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
28979 +$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
28980 +if test "${libltdl_cv_need_uscore+set}" = set; then
28981 + $as_echo_n "(cached) " >&6
28982 +else
28983 + libltdl_cv_need_uscore=unknown
28984 + save_LIBS="$LIBS"
28985 + LIBS="$LIBS $LIBADD_DLOPEN"
28986 + if test "$cross_compiling" = yes; then :
28987 + libltdl_cv_need_uscore=cross
28988 +else
28989 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
28990 + lt_status=$lt_dlunknown
28991 + cat > conftest.$ac_ext <<_LT_EOF
28992 +#line 12322 "configure"
28993 +#include "confdefs.h"
28994 +
28995 +#if HAVE_DLFCN_H
28996 +#include <dlfcn.h>
28997 +#endif
28998 +
28999 +#include <stdio.h>
29000 +
29001 +#ifdef RTLD_GLOBAL
29002 +# define LT_DLGLOBAL RTLD_GLOBAL
29003 +#else
29004 +# ifdef DL_GLOBAL
29005 +# define LT_DLGLOBAL DL_GLOBAL
29006 +# else
29007 +# define LT_DLGLOBAL 0
29008 +# endif
29009 +#endif
29010 +
29011 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
29012 + find out it does not work in some platform. */
29013 +#ifndef LT_DLLAZY_OR_NOW
29014 +# ifdef RTLD_LAZY
29015 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
29016 +# else
29017 +# ifdef DL_LAZY
29018 +# define LT_DLLAZY_OR_NOW DL_LAZY
29019 +# else
29020 +# ifdef RTLD_NOW
29021 +# define LT_DLLAZY_OR_NOW RTLD_NOW
29022 +# else
29023 +# ifdef DL_NOW
29024 +# define LT_DLLAZY_OR_NOW DL_NOW
29025 +# else
29026 +# define LT_DLLAZY_OR_NOW 0
29027 +# endif
29028 +# endif
29029 +# endif
29030 +# endif
29031 +#endif
29032 +
29033 +void fnord() { int i=42;}
29034 +int main ()
29035 +{
29036 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
29037 + int status = $lt_dlunknown;
29038 +
29039 + if (self)
29040 + {
29041 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
29042 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
29043 + /* dlclose (self); */
29044 + }
29045 + else
29046 + puts (dlerror ());
29047 +
29048 + return status;
29049 +}
29050 +_LT_EOF
29051 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29052 + (eval $ac_link) 2>&5
29053 + ac_status=$?
29054 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
29056 + (./conftest; exit; ) >&5 2>/dev/null
29057 + lt_status=$?
29058 + case x$lt_status in
29059 + x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
29060 + x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
29061 + x$lt_dlunknown|x*) ;;
29062 + esac
29063 + else :
29064 + # compilation failed
29065 +
29066 + fi
29067 +fi
29068 +rm -fr conftest*
29069 +
29070 + LIBS="$save_LIBS"
29071 +
29072 +fi
29073 +{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
29074 +$as_echo "$libltdl_cv_need_uscore" >&6; }
29075 + fi
29076 +fi
29077 +
29078 +if test x"$libltdl_cv_need_uscore" = xyes; then
29079 +
29080 +cat >>confdefs.h <<\_ACEOF
29081 +#define NEED_USCORE 1
29082 +_ACEOF
29083 +
29084 +fi
29085 +
29086 +{ $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
29087 +$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
29088 +if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
29089 + $as_echo_n "(cached) " >&6
29090 +else
29091 + # PORTME does your system automatically load deplibs for dlopen?
29092 + # or its logical equivalent (e.g. shl_load for HP-UX < 11)
29093 + # For now, we just catch OSes we know something about -- in the
29094 + # future, we'll try test this programmatically.
29095 + lt_cv_sys_dlopen_deplibs=unknown
29096 + case $host_os in
29097 + aix3*|aix4.1.*|aix4.2.*)
29098 + # Unknown whether this is true for these versions of AIX, but
29099 + # we want this `case' here to explicitly catch those versions.
29100 + lt_cv_sys_dlopen_deplibs=unknown
29101 + ;;
29102 + aix[4-9]*)
29103 + lt_cv_sys_dlopen_deplibs=yes
29104 + ;;
29105 + amigaos*)
29106 + case $host_cpu in
29107 + powerpc)
29108 + lt_cv_sys_dlopen_deplibs=no
29109 + ;;
29110 + esac
29111 + ;;
29112 + darwin*)
29113 + # Assuming the user has installed a libdl from somewhere, this is true
29114 + # If you are looking for one http://www.opendarwin.org/projects/dlcompat
29115 + lt_cv_sys_dlopen_deplibs=yes
29116 + ;;
29117 + freebsd* | dragonfly*)
29118 + lt_cv_sys_dlopen_deplibs=yes
29119 + ;;
29120 + gnu* | linux* | k*bsd*-gnu)
29121 + # GNU and its variants, using gnu ld.so (Glibc)
29122 + lt_cv_sys_dlopen_deplibs=yes
29123 + ;;
29124 + hpux10*|hpux11*)
29125 + lt_cv_sys_dlopen_deplibs=yes
29126 + ;;
29127 + interix*)
29128 + lt_cv_sys_dlopen_deplibs=yes
29129 + ;;
29130 + irix[12345]*|irix6.[01]*)
29131 + # Catch all versions of IRIX before 6.2, and indicate that we don't
29132 + # know how it worked for any of those versions.
29133 + lt_cv_sys_dlopen_deplibs=unknown
29134 + ;;
29135 + irix*)
29136 + # The case above catches anything before 6.2, and it's known that
29137 + # at 6.2 and later dlopen does load deplibs.
29138 + lt_cv_sys_dlopen_deplibs=yes
29139 + ;;
29140 + netbsd*)
29141 + lt_cv_sys_dlopen_deplibs=yes
29142 + ;;
29143 + openbsd*)
29144 + lt_cv_sys_dlopen_deplibs=yes
29145 + ;;
29146 + osf[1234]*)
29147 + # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
29148 + # it did *not* use an RPATH in a shared library to find objects the
29149 + # library depends on, so we explicitly say `no'.
29150 + lt_cv_sys_dlopen_deplibs=no
29151 + ;;
29152 + osf5.0|osf5.0a|osf5.1)
29153 + # dlopen *does* load deplibs and with the right loader patch applied
29154 + # it even uses RPATH in a shared library to search for shared objects
29155 + # that the library depends on, but there's no easy way to know if that
29156 + # patch is installed. Since this is the case, all we can really
29157 + # say is unknown -- it depends on the patch being installed. If
29158 + # it is, this changes to `yes'. Without it, it would be `no'.
29159 + lt_cv_sys_dlopen_deplibs=unknown
29160 + ;;
29161 + osf*)
29162 + # the two cases above should catch all versions of osf <= 5.1. Read
29163 + # the comments above for what we know about them.
29164 + # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
29165 + # is used to find them so we can finally say `yes'.
29166 + lt_cv_sys_dlopen_deplibs=yes
29167 + ;;
29168 + qnx*)
29169 + lt_cv_sys_dlopen_deplibs=yes
29170 + ;;
29171 + solaris*)
29172 + lt_cv_sys_dlopen_deplibs=yes
29173 + ;;
29174 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
29175 + libltdl_cv_sys_dlopen_deplibs=yes
29176 + ;;
29177 + esac
29178 +
29179 +fi
29180 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
29181 +$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
29182 +if test "$lt_cv_sys_dlopen_deplibs" != yes; then
29183 +
29184 +cat >>confdefs.h <<\_ACEOF
29185 +#define LTDL_DLOPEN_DEPLIBS 1
29186 +_ACEOF
29187 +
29188 +fi
29189 +
29190 +:
29191 +
29192 +
29193 +for ac_header in argz.h
29194 +do
29195 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29196 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29197 +$as_echo_n "checking for $ac_header... " >&6; }
29198 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29199 + $as_echo_n "(cached) " >&6
29200 +else
29201 + cat >conftest.$ac_ext <<_ACEOF
29202 +/* confdefs.h. */
29203 +_ACEOF
29204 +cat confdefs.h >>conftest.$ac_ext
29205 +cat >>conftest.$ac_ext <<_ACEOF
29206 +/* end confdefs.h. */
29207 +$ac_includes_default
29208 +
29209 +#include <$ac_header>
29210 +_ACEOF
29211 +rm -f conftest.$ac_objext
29212 +if { (ac_try="$ac_compile"
29213 +case "(($ac_try" in
29214 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29215 + *) ac_try_echo=$ac_try;;
29216 +esac
29217 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29218 +$as_echo "$ac_try_echo") >&5
29219 + (eval "$ac_compile") 2>conftest.er1
29220 + ac_status=$?
29221 + grep -v '^ *+' conftest.er1 >conftest.err
29222 + rm -f conftest.er1
29223 + cat conftest.err >&5
29224 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 + (exit $ac_status); } && {
29226 + test -z "$ac_c_werror_flag" ||
29227 + test ! -s conftest.err
29228 + } && test -s conftest.$ac_objext; then
29229 + eval "$as_ac_Header=yes"
29230 +else
29231 + $as_echo "$as_me: failed program was:" >&5
29232 +sed 's/^/| /' conftest.$ac_ext >&5
29233 +
29234 + eval "$as_ac_Header=no"
29235 +fi
29236 +
29237 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29238 +fi
29239 +ac_res=`eval 'as_val=${'$as_ac_Header'}
29240 + $as_echo "$as_val"'`
29241 + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29242 +$as_echo "$ac_res" >&6; }
29243 +as_val=`eval 'as_val=${'$as_ac_Header'}
29244 + $as_echo "$as_val"'`
29245 + if test "x$as_val" = x""yes; then
29246 + cat >>confdefs.h <<_ACEOF
29247 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29248 +_ACEOF
29249 +
29250 +fi
29251 +
29252 +done
29253 +
29254 +
29255 +{ $as_echo "$as_me:$LINENO: checking for error_t" >&5
29256 +$as_echo_n "checking for error_t... " >&6; }
29257 +if test "${ac_cv_type_error_t+set}" = set; then
29258 + $as_echo_n "(cached) " >&6
29259 +else
29260 + ac_cv_type_error_t=no
29261 +cat >conftest.$ac_ext <<_ACEOF
29262 +/* confdefs.h. */
29263 +_ACEOF
29264 +cat confdefs.h >>conftest.$ac_ext
29265 +cat >>conftest.$ac_ext <<_ACEOF
29266 +/* end confdefs.h. */
29267 +#if defined(HAVE_ARGZ_H)
29268 +# include <argz.h>
29269 +#endif
29270 +
29271 +int
29272 +main ()
29273 +{
29274 +if (sizeof (error_t))
29275 + return 0;
29276 + ;
29277 + return 0;
29278 +}
29279 +_ACEOF
29280 +rm -f conftest.$ac_objext
29281 +if { (ac_try="$ac_compile"
29282 +case "(($ac_try" in
29283 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29284 + *) ac_try_echo=$ac_try;;
29285 +esac
29286 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29287 +$as_echo "$ac_try_echo") >&5
29288 + (eval "$ac_compile") 2>conftest.er1
29289 + ac_status=$?
29290 + grep -v '^ *+' conftest.er1 >conftest.err
29291 + rm -f conftest.er1
29292 + cat conftest.err >&5
29293 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 + (exit $ac_status); } && {
29295 + test -z "$ac_c_werror_flag" ||
29296 + test ! -s conftest.err
29297 + } && test -s conftest.$ac_objext; then
29298 + cat >conftest.$ac_ext <<_ACEOF
29299 +/* confdefs.h. */
29300 +_ACEOF
29301 +cat confdefs.h >>conftest.$ac_ext
29302 +cat >>conftest.$ac_ext <<_ACEOF
29303 +/* end confdefs.h. */
29304 +#if defined(HAVE_ARGZ_H)
29305 +# include <argz.h>
29306 +#endif
29307 +
29308 +int
29309 +main ()
29310 +{
29311 +if (sizeof ((error_t)))
29312 + return 0;
29313 + ;
29314 + return 0;
29315 +}
29316 +_ACEOF
29317 +rm -f conftest.$ac_objext
29318 +if { (ac_try="$ac_compile"
29319 +case "(($ac_try" in
29320 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29321 + *) ac_try_echo=$ac_try;;
29322 +esac
29323 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29324 +$as_echo "$ac_try_echo") >&5
29325 + (eval "$ac_compile") 2>conftest.er1
29326 + ac_status=$?
29327 + grep -v '^ *+' conftest.er1 >conftest.err
29328 + rm -f conftest.er1
29329 + cat conftest.err >&5
29330 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 + (exit $ac_status); } && {
29332 + test -z "$ac_c_werror_flag" ||
29333 + test ! -s conftest.err
29334 + } && test -s conftest.$ac_objext; then
29335 + :
29336 +else
29337 + $as_echo "$as_me: failed program was:" >&5
29338 +sed 's/^/| /' conftest.$ac_ext >&5
29339 +
29340 + ac_cv_type_error_t=yes
29341 +fi
29342 +
29343 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29344 +else
29345 + $as_echo "$as_me: failed program was:" >&5
29346 +sed 's/^/| /' conftest.$ac_ext >&5
29347 +
29348 +
29349 +fi
29350 +
29351 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29352 +fi
29353 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
29354 +$as_echo "$ac_cv_type_error_t" >&6; }
29355 +if test "x$ac_cv_type_error_t" = x""yes; then
29356 +
29357 +cat >>confdefs.h <<_ACEOF
29358 +#define HAVE_ERROR_T 1
29359 +_ACEOF
29360 +
29361 +
29362 +else
29363 +
29364 +cat >>confdefs.h <<\_ACEOF
29365 +#define error_t int
29366 +_ACEOF
29367 +
29368 +
29369 +cat >>confdefs.h <<\_ACEOF
29370 +#define __error_t_defined 1
29371 +_ACEOF
29372 +
29373 +fi
29374 +
29375 +
29376 +ARGZ_H=
29377 +
29378 +
29379 +
29380 +
29381 +
29382 +
29383 +
29384 +for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
29385 + argz_next argz_stringify
29386 +do
29387 +as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29388 +{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29389 +$as_echo_n "checking for $ac_func... " >&6; }
29390 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29391 + $as_echo_n "(cached) " >&6
29392 +else
29393 + cat >conftest.$ac_ext <<_ACEOF
29394 +/* confdefs.h. */
29395 +_ACEOF
29396 +cat confdefs.h >>conftest.$ac_ext
29397 +cat >>conftest.$ac_ext <<_ACEOF
29398 +/* end confdefs.h. */
29399 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29400 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
29401 +#define $ac_func innocuous_$ac_func
29402 +
29403 +/* System header to define __stub macros and hopefully few prototypes,
29404 + which can conflict with char $ac_func (); below.
29405 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29406 + <limits.h> exists even on freestanding compilers. */
29407 +
29408 +#ifdef __STDC__
29409 +# include <limits.h>
29410 +#else
29411 +# include <assert.h>
29412 +#endif
29413 +
29414 +#undef $ac_func
29415 +
29416 +/* Override any GCC internal prototype to avoid an error.
29417 + Use char because int might match the return type of a GCC
29418 + builtin and then its argument prototype would still apply. */
29419 +#ifdef __cplusplus
29420 +extern "C"
29421 +#endif
29422 +char $ac_func ();
29423 +/* The GNU C library defines this for functions which it implements
29424 + to always fail with ENOSYS. Some functions are actually named
29425 + something starting with __ and the normal name is an alias. */
29426 +#if defined __stub_$ac_func || defined __stub___$ac_func
29427 +choke me
29428 +#endif
29429 +
29430 +int
29431 +main ()
29432 +{
29433 +return $ac_func ();
29434 + ;
29435 + return 0;
29436 +}
29437 +_ACEOF
29438 +rm -f conftest.$ac_objext conftest$ac_exeext
29439 +if { (ac_try="$ac_link"
29440 +case "(($ac_try" in
29441 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29442 + *) ac_try_echo=$ac_try;;
29443 +esac
29444 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29445 +$as_echo "$ac_try_echo") >&5
29446 + (eval "$ac_link") 2>conftest.er1
29447 + ac_status=$?
29448 + grep -v '^ *+' conftest.er1 >conftest.err
29449 + rm -f conftest.er1
29450 + cat conftest.err >&5
29451 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29452 + (exit $ac_status); } && {
29453 + test -z "$ac_c_werror_flag" ||
29454 + test ! -s conftest.err
29455 + } && test -s conftest$ac_exeext && {
29456 + test "$cross_compiling" = yes ||
29457 + $as_test_x conftest$ac_exeext
29458 + }; then
29459 + eval "$as_ac_var=yes"
29460 +else
29461 + $as_echo "$as_me: failed program was:" >&5
29462 +sed 's/^/| /' conftest.$ac_ext >&5
29463 +
29464 + eval "$as_ac_var=no"
29465 +fi
29466 +
29467 +rm -rf conftest.dSYM
29468 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29469 + conftest$ac_exeext conftest.$ac_ext
29470 +fi
29471 +ac_res=`eval 'as_val=${'$as_ac_var'}
29472 + $as_echo "$as_val"'`
29473 + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29474 +$as_echo "$ac_res" >&6; }
29475 +as_val=`eval 'as_val=${'$as_ac_var'}
29476 + $as_echo "$as_val"'`
29477 + if test "x$as_val" = x""yes; then
29478 + cat >>confdefs.h <<_ACEOF
29479 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29480 +_ACEOF
29481 +
29482 +else
29483 + ARGZ_H=argz.h; case " $LIBOBJS " in
29484 + *" argz.$ac_objext "* ) ;;
29485 + *) LIBOBJS="$LIBOBJS argz.$ac_objext"
29486 + ;;
29487 +esac
29488 +
29489 +fi
29490 +done
29491 +
29492 +
29493 +if test -z "$ARGZ_H"; then
29494 + { $as_echo "$as_me:$LINENO: checking if argz actually works" >&5
29495 +$as_echo_n "checking if argz actually works... " >&6; }
29496 +if test "${lt_cv_sys_argz_works+set}" = set; then
29497 + $as_echo_n "(cached) " >&6
29498 +else
29499 + case $host_os in #(
29500 + *cygwin*)
29501 + lt_cv_sys_argz_works=no
29502 + if test "$cross_compiling" != no; then
29503 + lt_cv_sys_argz_works="guessing no"
29504 + else
29505 + lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
29506 + save_IFS=$IFS
29507 + IFS=-.
29508 + set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
29509 + IFS=$save_IFS
29510 + lt_os_major=${2-0}
29511 + lt_os_minor=${3-0}
29512 + lt_os_micro=${4-0}
29513 + if test "$lt_os_major" -gt 1 \
29514 + || { test "$lt_os_major" -eq 1 \
29515 + && { test "$lt_os_minor" -gt 5 \
29516 + || { test "$lt_os_minor" -eq 5 \
29517 + && test "$lt_os_micro" -gt 24; }; }; }; then
29518 + lt_cv_sys_argz_works=yes
29519 + fi
29520 + fi
29521 + ;; #(
29522 + *) lt_cv_sys_argz_works=yes ;;
29523 + esac
29524 +fi
29525 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
29526 +$as_echo "$lt_cv_sys_argz_works" >&6; }
29527 + if test $lt_cv_sys_argz_works = yes; then
29528 +
29529 +cat >>confdefs.h <<\_ACEOF
29530 +#define HAVE_WORKING_ARGZ 1
29531 +_ACEOF
29532 +
29533 +else
29534 + ARGZ_H=argz.h
29535 + case " $LIBOBJS " in
29536 + *" argz.$ac_objext "* ) ;;
29537 + *) LIBOBJS="$LIBOBJS argz.$ac_objext"
29538 + ;;
29539 +esac
29540 +
29541 +fi
29542 +
29543 +fi
29544 +
29545 +
29546 +
29547 +
29548 +{ $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
29549 +$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
29550 +if test "${libltdl_cv_preloaded_symbols+set}" = set; then
29551 + $as_echo_n "(cached) " >&6
29552 +else
29553 + if test -n "$lt_cv_sys_global_symbol_pipe"; then
29554 + libltdl_cv_preloaded_symbols=yes
29555 + else
29556 + libltdl_cv_preloaded_symbols=no
29557 + fi
29558 +
29559 +fi
29560 +{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
29561 +$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
29562 +if test x"$libltdl_cv_preloaded_symbols" = xyes; then
29563 +
29564 +cat >>confdefs.h <<\_ACEOF
29565 +#define HAVE_PRELOADED_SYMBOLS 1
29566 +_ACEOF
29567 +
29568 +fi
29569 +
29570 +
29571 +
29572 +# Check whether --enable-ltdl-install was given.
29573 +if test "${enable_ltdl_install+set}" = set; then
29574 + enableval=$enable_ltdl_install;
29575 +fi
29576 +
29577 +
29578 +case ,${enable_ltdl_install},${enable_ltdl_convenience} in
29579 + *yes*) ;;
29580 + *) enable_ltdl_convenience=yes ;;
29581 +esac
29582 +
29583 + if test x"${enable_ltdl_install-no}" != xno; then
29584 + INSTALL_LTDL_TRUE=
29585 + INSTALL_LTDL_FALSE='#'
29586 +else
29587 + INSTALL_LTDL_TRUE='#'
29588 + INSTALL_LTDL_FALSE=
29589 +fi
29590 +
29591 + if test x"${enable_ltdl_convenience-no}" != xno; then
29592 + CONVENIENCE_LTDL_TRUE=
29593 + CONVENIENCE_LTDL_FALSE='#'
29594 +else
29595 + CONVENIENCE_LTDL_TRUE='#'
29596 + CONVENIENCE_LTDL_FALSE=
29597 +fi
29598 +
29599 +
29600 +
29601 +
29602 +
29603 +
29604 +# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
29605 +# the user used. This is so that ltdl.h can pick up the parent projects
29606 +# config.h file, The first file in AC_CONFIG_HEADERS must contain the
29607 +# definitions required by ltdl.c.
29608 +# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
29609 +
29610 +
29611 +
29612 +
29613 +
29614 +
29615 +
29616 +
29617 +
29618 +for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
29619 +do
29620 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29621 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29622 +$as_echo_n "checking for $ac_header... " >&6; }
29623 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29624 + $as_echo_n "(cached) " >&6
29625 +else
29626 + cat >conftest.$ac_ext <<_ACEOF
29627 +/* confdefs.h. */
29628 +_ACEOF
29629 +cat confdefs.h >>conftest.$ac_ext
29630 +cat >>conftest.$ac_ext <<_ACEOF
29631 +/* end confdefs.h. */
29632 +$ac_includes_default
29633 +
29634 +#include <$ac_header>
29635 +_ACEOF
29636 +rm -f conftest.$ac_objext
29637 +if { (ac_try="$ac_compile"
29638 +case "(($ac_try" in
29639 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29640 + *) ac_try_echo=$ac_try;;
29641 +esac
29642 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29643 +$as_echo "$ac_try_echo") >&5
29644 + (eval "$ac_compile") 2>conftest.er1
29645 + ac_status=$?
29646 + grep -v '^ *+' conftest.er1 >conftest.err
29647 + rm -f conftest.er1
29648 + cat conftest.err >&5
29649 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 + (exit $ac_status); } && {
29651 + test -z "$ac_c_werror_flag" ||
29652 + test ! -s conftest.err
29653 + } && test -s conftest.$ac_objext; then
29654 + eval "$as_ac_Header=yes"
29655 +else
29656 + $as_echo "$as_me: failed program was:" >&5
29657 +sed 's/^/| /' conftest.$ac_ext >&5
29658 +
29659 + eval "$as_ac_Header=no"
29660 +fi
29661 +
29662 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29663 +fi
29664 +ac_res=`eval 'as_val=${'$as_ac_Header'}
29665 + $as_echo "$as_val"'`
29666 + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29667 +$as_echo "$ac_res" >&6; }
29668 +as_val=`eval 'as_val=${'$as_ac_Header'}
29669 + $as_echo "$as_val"'`
29670 + if test "x$as_val" = x""yes; then
29671 + cat >>confdefs.h <<_ACEOF
29672 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29673 +_ACEOF
29674 +
29675 +fi
29676 +
29677 +done
29678 +
29679 +
29680 +
29681 +
29682 +
29683 +for ac_func in closedir opendir readdir
29684 +do
29685 +as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29686 +{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29687 +$as_echo_n "checking for $ac_func... " >&6; }
29688 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29689 + $as_echo_n "(cached) " >&6
29690 +else
29691 + cat >conftest.$ac_ext <<_ACEOF
29692 +/* confdefs.h. */
29693 +_ACEOF
29694 +cat confdefs.h >>conftest.$ac_ext
29695 +cat >>conftest.$ac_ext <<_ACEOF
29696 +/* end confdefs.h. */
29697 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29698 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
29699 +#define $ac_func innocuous_$ac_func
29700 +
29701 +/* System header to define __stub macros and hopefully few prototypes,
29702 + which can conflict with char $ac_func (); below.
29703 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29704 + <limits.h> exists even on freestanding compilers. */
29705 +
29706 +#ifdef __STDC__
29707 +# include <limits.h>
29708 +#else
29709 +# include <assert.h>
29710 +#endif
29711 +
29712 +#undef $ac_func
29713 +
29714 +/* Override any GCC internal prototype to avoid an error.
29715 + Use char because int might match the return type of a GCC
29716 + builtin and then its argument prototype would still apply. */
29717 +#ifdef __cplusplus
29718 +extern "C"
29719 +#endif
29720 +char $ac_func ();
29721 +/* The GNU C library defines this for functions which it implements
29722 + to always fail with ENOSYS. Some functions are actually named
29723 + something starting with __ and the normal name is an alias. */
29724 +#if defined __stub_$ac_func || defined __stub___$ac_func
29725 +choke me
29726 +#endif
29727 +
29728 +int
29729 +main ()
29730 +{
29731 +return $ac_func ();
29732 + ;
29733 + return 0;
29734 +}
29735 +_ACEOF
29736 +rm -f conftest.$ac_objext conftest$ac_exeext
29737 +if { (ac_try="$ac_link"
29738 +case "(($ac_try" in
29739 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29740 + *) ac_try_echo=$ac_try;;
29741 +esac
29742 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29743 +$as_echo "$ac_try_echo") >&5
29744 + (eval "$ac_link") 2>conftest.er1
29745 + ac_status=$?
29746 + grep -v '^ *+' conftest.er1 >conftest.err
29747 + rm -f conftest.er1
29748 + cat conftest.err >&5
29749 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 + (exit $ac_status); } && {
29751 + test -z "$ac_c_werror_flag" ||
29752 + test ! -s conftest.err
29753 + } && test -s conftest$ac_exeext && {
29754 + test "$cross_compiling" = yes ||
29755 + $as_test_x conftest$ac_exeext
29756 + }; then
29757 + eval "$as_ac_var=yes"
29758 +else
29759 + $as_echo "$as_me: failed program was:" >&5
29760 +sed 's/^/| /' conftest.$ac_ext >&5
29761 +
29762 + eval "$as_ac_var=no"
29763 +fi
29764 +
29765 +rm -rf conftest.dSYM
29766 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29767 + conftest$ac_exeext conftest.$ac_ext
29768 +fi
29769 +ac_res=`eval 'as_val=${'$as_ac_var'}
29770 + $as_echo "$as_val"'`
29771 + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29772 +$as_echo "$ac_res" >&6; }
29773 +as_val=`eval 'as_val=${'$as_ac_var'}
29774 + $as_echo "$as_val"'`
29775 + if test "x$as_val" = x""yes; then
29776 + cat >>confdefs.h <<_ACEOF
29777 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29778 +_ACEOF
29779 +
29780 +else
29781 + case " $LIBOBJS " in
29782 + *" lt__dirent.$ac_objext "* ) ;;
29783 + *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
29784 + ;;
29785 +esac
29786 +
29787 +fi
29788 +done
29789 +
29790 +
29791 +
29792 +for ac_func in strlcat strlcpy
29793 +do
29794 +as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29795 +{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29796 +$as_echo_n "checking for $ac_func... " >&6; }
29797 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29798 + $as_echo_n "(cached) " >&6
29799 +else
29800 + cat >conftest.$ac_ext <<_ACEOF
29801 +/* confdefs.h. */
29802 +_ACEOF
29803 +cat confdefs.h >>conftest.$ac_ext
29804 +cat >>conftest.$ac_ext <<_ACEOF
29805 +/* end confdefs.h. */
29806 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29807 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
29808 +#define $ac_func innocuous_$ac_func
29809 +
29810 +/* System header to define __stub macros and hopefully few prototypes,
29811 + which can conflict with char $ac_func (); below.
29812 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29813 + <limits.h> exists even on freestanding compilers. */
29814 +
29815 +#ifdef __STDC__
29816 +# include <limits.h>
29817 +#else
29818 +# include <assert.h>
29819 +#endif
29820 +
29821 +#undef $ac_func
29822 +
29823 +/* Override any GCC internal prototype to avoid an error.
29824 + Use char because int might match the return type of a GCC
29825 + builtin and then its argument prototype would still apply. */
29826 +#ifdef __cplusplus
29827 +extern "C"
29828 +#endif
29829 +char $ac_func ();
29830 +/* The GNU C library defines this for functions which it implements
29831 + to always fail with ENOSYS. Some functions are actually named
29832 + something starting with __ and the normal name is an alias. */
29833 +#if defined __stub_$ac_func || defined __stub___$ac_func
29834 +choke me
29835 +#endif
29836 +
29837 +int
29838 +main ()
29839 +{
29840 +return $ac_func ();
29841 + ;
29842 + return 0;
29843 +}
29844 +_ACEOF
29845 +rm -f conftest.$ac_objext conftest$ac_exeext
29846 +if { (ac_try="$ac_link"
29847 +case "(($ac_try" in
29848 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849 + *) ac_try_echo=$ac_try;;
29850 +esac
29851 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29852 +$as_echo "$ac_try_echo") >&5
29853 + (eval "$ac_link") 2>conftest.er1
29854 + ac_status=$?
29855 + grep -v '^ *+' conftest.er1 >conftest.err
29856 + rm -f conftest.er1
29857 + cat conftest.err >&5
29858 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 + (exit $ac_status); } && {
29860 + test -z "$ac_c_werror_flag" ||
29861 + test ! -s conftest.err
29862 + } && test -s conftest$ac_exeext && {
29863 + test "$cross_compiling" = yes ||
29864 + $as_test_x conftest$ac_exeext
29865 + }; then
29866 + eval "$as_ac_var=yes"
29867 +else
29868 + $as_echo "$as_me: failed program was:" >&5
29869 +sed 's/^/| /' conftest.$ac_ext >&5
29870 +
29871 + eval "$as_ac_var=no"
29872 +fi
29873 +
29874 +rm -rf conftest.dSYM
29875 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29876 + conftest$ac_exeext conftest.$ac_ext
29877 +fi
29878 +ac_res=`eval 'as_val=${'$as_ac_var'}
29879 + $as_echo "$as_val"'`
29880 + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29881 +$as_echo "$ac_res" >&6; }
29882 +as_val=`eval 'as_val=${'$as_ac_var'}
29883 + $as_echo "$as_val"'`
29884 + if test "x$as_val" = x""yes; then
29885 + cat >>confdefs.h <<_ACEOF
29886 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29887 +_ACEOF
29888 +
29889 +else
29890 + case " $LIBOBJS " in
29891 + *" lt__strl.$ac_objext "* ) ;;
29892 + *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
29893 + ;;
29894 +esac
29895 +
29896 +fi
29897 +done
29898 +
29899 +
29900 +
29901 +cat >>confdefs.h <<_ACEOF
29902 +#define LT_LIBEXT "$libext"
29903 +_ACEOF
29904 +
29905 +
29906 +name=ltdl
29907 +LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
29908 +
29909 +
29910 +
29911 +
29912 +## -------- ##
29913 +## Outputs. ##
29914 +## -------- ##
29915 +ac_config_files="$ac_config_files Makefile"
29916 +
29917 +cat >confcache <<\_ACEOF
29918 +# This file is a shell script that caches the results of configure
29919 +# tests run on this system so they can be shared between configure
29920 +# scripts and configure runs, see configure's option --config-cache.
29921 +# It is not useful on other systems. If it contains results you don't
29922 +# want to keep, you may remove or edit it.
29923 +#
29924 +# config.status only pays attention to the cache file if you give it
29925 +# the --recheck option to rerun configure.
29926 +#
29927 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
29928 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
29929 +# following values.
29930 +
29931 +_ACEOF
29932 +
29933 +# The following way of writing the cache mishandles newlines in values,
29934 +# but we know of no workaround that is simple, portable, and efficient.
29935 +# So, we kill variables containing newlines.
29936 +# Ultrix sh set writes to stderr and can't be redirected directly,
29937 +# and sets the high bit in the cache file unless we assign to the vars.
29938 +(
29939 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29940 + eval ac_val=\$$ac_var
29941 + case $ac_val in #(
29942 + *${as_nl}*)
29943 + case $ac_var in #(
29944 + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29945 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29946 + esac
29947 + case $ac_var in #(
29948 + _ | IFS | as_nl) ;; #(
29949 + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29950 + *) $as_unset $ac_var ;;
29951 + esac ;;
29952 + esac
29953 + done
29954 +
29955 + (set) 2>&1 |
29956 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
29957 + *${as_nl}ac_space=\ *)
29958 + # `set' does not quote correctly, so add quotes (double-quote
29959 + # substitution turns \\\\ into \\, and sed turns \\ into \).
29960 + sed -n \
29961 + "s/'/'\\\\''/g;
29962 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29963 + ;; #(
29964 + *)
29965 + # `set' quotes correctly as required by POSIX, so do not add quotes.
29966 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29967 + ;;
29968 + esac |
29969 + sort
29970 +) |
29971 + sed '
29972 + /^ac_cv_env_/b end
29973 + t clear
29974 + :clear
29975 + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29976 + t end
29977 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29978 + :end' >>confcache
29979 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29980 + if test -w "$cache_file"; then
29981 + test "x$cache_file" != "x/dev/null" &&
29982 + { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29983 +$as_echo "$as_me: updating cache $cache_file" >&6;}
29984 + cat confcache >$cache_file
29985 + else
29986 + { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29987 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29988 + fi
29989 +fi
29990 +rm -f confcache
29991 +
29992 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
29993 +# Let make expand exec_prefix.
29994 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29995 +
29996 +DEFS=-DHAVE_CONFIG_H
29997 +
29998 +ac_libobjs=
29999 +ac_ltlibobjs=
30000 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30001 + # 1. Remove the extension, and $U if already installed.
30002 + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30003 + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30004 + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30005 + # will be set to the directory where LIBOBJS objects are built.
30006 + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30007 + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30008 +done
30009 +LIBOBJS=$ac_libobjs
30010 +
30011 +LTLIBOBJS=$ac_ltlibobjs
30012 +
30013 +
30014 + if test -n "$EXEEXT"; then
30015 + am__EXEEXT_TRUE=
30016 + am__EXEEXT_FALSE='#'
30017 +else
30018 + am__EXEEXT_TRUE='#'
30019 + am__EXEEXT_FALSE=
30020 +fi
30021 +
30022 +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30023 + { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30024 +Usually this means the macro was only invoked conditionally." >&5
30025 +$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
30026 +Usually this means the macro was only invoked conditionally." >&2;}
30027 + { (exit 1); exit 1; }; }
30028 +fi
30029 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30030 + { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30031 +Usually this means the macro was only invoked conditionally." >&5
30032 +$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30033 +Usually this means the macro was only invoked conditionally." >&2;}
30034 + { (exit 1); exit 1; }; }
30035 +fi
30036 +if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30037 + { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30038 +Usually this means the macro was only invoked conditionally." >&5
30039 +$as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30040 +Usually this means the macro was only invoked conditionally." >&2;}
30041 + { (exit 1); exit 1; }; }
30042 +fi
30043 +if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30044 + { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30045 +Usually this means the macro was only invoked conditionally." >&5
30046 +$as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30047 +Usually this means the macro was only invoked conditionally." >&2;}
30048 + { (exit 1); exit 1; }; }
30049 +fi
30050 +LT_CONFIG_H=config.h
30051 +
30052 +: ${CONFIG_STATUS=./config.status}
30053 +ac_write_fail=0
30054 +ac_clean_files_save=$ac_clean_files
30055 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30056 +{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30057 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30058 +cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30059 +#! $SHELL
30060 +# Generated by $as_me.
30061 +# Run this file to recreate the current configuration.
30062 +# Compiler output produced by configure, useful for debugging
30063 +# configure, is in config.log if it exists.
30064 +
30065 +debug=false
30066 +ac_cs_recheck=false
30067 +ac_cs_silent=false
30068 +SHELL=\${CONFIG_SHELL-$SHELL}
30069 +_ACEOF
30070 +
30071 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30072 +## --------------------- ##
30073 +## M4sh Initialization. ##
30074 +## --------------------- ##
30075 +
30076 +# Be more Bourne compatible
30077 +DUALCASE=1; export DUALCASE # for MKS sh
30078 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30079 + emulate sh
30080 + NULLCMD=:
30081 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30082 + # is contrary to our usage. Disable this feature.
30083 + alias -g '${1+"$@"}'='"$@"'
30084 + setopt NO_GLOB_SUBST
30085 +else
30086 + case `(set -o) 2>/dev/null` in
30087 + *posix*) set -o posix ;;
30088 +esac
30089 +
30090 +fi
30091 +
30092 +
30093 +
30094 +
30095 +# PATH needs CR
30096 +# Avoid depending upon Character Ranges.
30097 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30098 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30099 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30100 +as_cr_digits='0123456789'
30101 +as_cr_alnum=$as_cr_Letters$as_cr_digits
30102 +
30103 +as_nl='
30104 +'
30105 +export as_nl
30106 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
30107 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30108 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30109 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30110 +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30111 + as_echo='printf %s\n'
30112 + as_echo_n='printf %s'
30113 +else
30114 + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30115 + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30116 + as_echo_n='/usr/ucb/echo -n'
30117 + else
30118 + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30119 + as_echo_n_body='eval
30120 + arg=$1;
30121 + case $arg in
30122 + *"$as_nl"*)
30123 + expr "X$arg" : "X\\(.*\\)$as_nl";
30124 + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30125 + esac;
30126 + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30127 + '
30128 + export as_echo_n_body
30129 + as_echo_n='sh -c $as_echo_n_body as_echo'
30130 + fi
30131 + export as_echo_body
30132 + as_echo='sh -c $as_echo_body as_echo'
30133 +fi
30134 +
30135 +# The user is always right.
30136 +if test "${PATH_SEPARATOR+set}" != set; then
30137 + PATH_SEPARATOR=:
30138 + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30139 + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30140 + PATH_SEPARATOR=';'
30141 + }
30142 +fi
30143 +
30144 +# Support unset when possible.
30145 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30146 + as_unset=unset
30147 +else
30148 + as_unset=false
30149 +fi
30150 +
30151 +
30152 +# IFS
30153 +# We need space, tab and new line, in precisely that order. Quoting is
30154 +# there to prevent editors from complaining about space-tab.
30155 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
30156 +# splitting by setting IFS to empty value.)
30157 +IFS=" "" $as_nl"
30158 +
30159 +# Find who we are. Look in the path if we contain no directory separator.
30160 +case $0 in
30161 + *[\\/]* ) as_myself=$0 ;;
30162 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30163 +for as_dir in $PATH
30164 +do
30165 + IFS=$as_save_IFS
30166 + test -z "$as_dir" && as_dir=.
30167 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30168 +done
30169 +IFS=$as_save_IFS
30170 +
30171 + ;;
30172 +esac
30173 +# We did not find ourselves, most probably we were run as `sh COMMAND'
30174 +# in which case we are not to be found in the path.
30175 +if test "x$as_myself" = x; then
30176 + as_myself=$0
30177 +fi
30178 +if test ! -f "$as_myself"; then
30179 + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30180 + { (exit 1); exit 1; }
30181 +fi
30182 +
30183 +# Work around bugs in pre-3.0 UWIN ksh.
30184 +for as_var in ENV MAIL MAILPATH
30185 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30186 +done
30187 +PS1='$ '
30188 +PS2='> '
30189 +PS4='+ '
30190 +
30191 +# NLS nuisances.
30192 +LC_ALL=C
30193 +export LC_ALL
30194 +LANGUAGE=C
30195 +export LANGUAGE
30196 +
30197 +# Required to use basename.
30198 +if expr a : '\(a\)' >/dev/null 2>&1 &&
30199 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
30200 + as_expr=expr
30201 +else
30202 + as_expr=false
30203 +fi
30204 +
30205 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30206 + as_basename=basename
30207 +else
30208 + as_basename=false
30209 +fi
30210 +
30211 +
30212 +# Name of the executable.
30213 +as_me=`$as_basename -- "$0" ||
30214 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30215 + X"$0" : 'X\(//\)$' \| \
30216 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30217 +$as_echo X/"$0" |
30218 + sed '/^.*\/\([^/][^/]*\)\/*$/{
30219 + s//\1/
30220 + q
30221 + }
30222 + /^X\/\(\/\/\)$/{
30223 + s//\1/
30224 + q
30225 + }
30226 + /^X\/\(\/\).*/{
30227 + s//\1/
30228 + q
30229 + }
30230 + s/.*/./; q'`
30231 +
30232 +# CDPATH.
30233 +$as_unset CDPATH
30234 +
30235 +
30236 +
30237 + as_lineno_1=$LINENO
30238 + as_lineno_2=$LINENO
30239 + test "x$as_lineno_1" != "x$as_lineno_2" &&
30240 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30241 +
30242 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30243 + # uniformly replaced by the line number. The first 'sed' inserts a
30244 + # line-number line after each line using $LINENO; the second 'sed'
30245 + # does the real work. The second script uses 'N' to pair each
30246 + # line-number line with the line containing $LINENO, and appends
30247 + # trailing '-' during substitution so that $LINENO is not a special
30248 + # case at line end.
30249 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30250 + # scripts with optimization help from Paolo Bonzini. Blame Lee
30251 + # E. McMahon (1931-1989) for sed's syntax. :-)
30252 + sed -n '
30253 + p
30254 + /[$]LINENO/=
30255 + ' <$as_myself |
30256 + sed '
30257 + s/[$]LINENO.*/&-/
30258 + t lineno
30259 + b
30260 + :lineno
30261 + N
30262 + :loop
30263 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30264 + t loop
30265 + s/-\n.*//
30266 + ' >$as_me.lineno &&
30267 + chmod +x "$as_me.lineno" ||
30268 + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30269 + { (exit 1); exit 1; }; }
30270 +
30271 + # Don't try to exec as it changes $[0], causing all sort of problems
30272 + # (the dirname of $[0] is not the place where we might find the
30273 + # original and so on. Autoconf is especially sensitive to this).
30274 + . "./$as_me.lineno"
30275 + # Exit status is that of the last command.
30276 + exit
30277 +}
30278 +
30279 +
30280 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30281 + as_dirname=dirname
30282 +else
30283 + as_dirname=false
30284 +fi
30285 +
30286 +ECHO_C= ECHO_N= ECHO_T=
30287 +case `echo -n x` in
30288 +-n*)
30289 + case `echo 'x\c'` in
30290 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30291 + *) ECHO_C='\c';;
30292 + esac;;
30293 +*)
30294 + ECHO_N='-n';;
30295 +esac
30296 +if expr a : '\(a\)' >/dev/null 2>&1 &&
30297 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
30298 + as_expr=expr
30299 +else
30300 + as_expr=false
30301 +fi
30302 +
30303 +rm -f conf$$ conf$$.exe conf$$.file
30304 +if test -d conf$$.dir; then
30305 + rm -f conf$$.dir/conf$$.file
30306 +else
30307 + rm -f conf$$.dir
30308 + mkdir conf$$.dir 2>/dev/null
30309 +fi
30310 +if (echo >conf$$.file) 2>/dev/null; then
30311 + if ln -s conf$$.file conf$$ 2>/dev/null; then
30312 + as_ln_s='ln -s'
30313 + # ... but there are two gotchas:
30314 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30315 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30316 + # In both cases, we have to default to `cp -p'.
30317 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30318 + as_ln_s='cp -p'
30319 + elif ln conf$$.file conf$$ 2>/dev/null; then
30320 + as_ln_s=ln
30321 + else
30322 + as_ln_s='cp -p'
30323 + fi
30324 +else
30325 + as_ln_s='cp -p'
30326 +fi
30327 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30328 +rmdir conf$$.dir 2>/dev/null
30329 +
30330 +if mkdir -p . 2>/dev/null; then
30331 + as_mkdir_p=:
30332 +else
30333 + test -d ./-p && rmdir ./-p
30334 + as_mkdir_p=false
30335 +fi
30336 +
30337 +if test -x / >/dev/null 2>&1; then
30338 + as_test_x='test -x'
30339 +else
30340 + if ls -dL / >/dev/null 2>&1; then
30341 + as_ls_L_option=L
30342 + else
30343 + as_ls_L_option=
30344 + fi
30345 + as_test_x='
30346 + eval sh -c '\''
30347 + if test -d "$1"; then
30348 + test -d "$1/.";
30349 + else
30350 + case $1 in
30351 + -*)set "./$1";;
30352 + esac;
30353 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30354 + ???[sx]*):;;*)false;;esac;fi
30355 + '\'' sh
30356 + '
30357 +fi
30358 +as_executable_p=$as_test_x
30359 +
30360 +# Sed expression to map a string onto a valid CPP name.
30361 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30362 +
30363 +# Sed expression to map a string onto a valid variable name.
30364 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30365 +
30366 +
30367 +exec 6>&1
30368 +
30369 +# Save the log message, to keep $[0] and so on meaningful, and to
30370 +# report actual input values of CONFIG_FILES etc. instead of their
30371 +# values after options handling.
30372 +ac_log="
30373 +This file was extended by libltdl $as_me 2.2.6b, which was
30374 +generated by GNU Autoconf 2.63. Invocation command line was
30375 +
30376 + CONFIG_FILES = $CONFIG_FILES
30377 + CONFIG_HEADERS = $CONFIG_HEADERS
30378 + CONFIG_LINKS = $CONFIG_LINKS
30379 + CONFIG_COMMANDS = $CONFIG_COMMANDS
30380 + $ $0 $@
30381 +
30382 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
30383 +"
30384 +
30385 +_ACEOF
30386 +
30387 +case $ac_config_files in *"
30388 +"*) set x $ac_config_files; shift; ac_config_files=$*;;
30389 +esac
30390 +
30391 +case $ac_config_headers in *"
30392 +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30393 +esac
30394 +
30395 +
30396 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30397 +# Files that config.status was made for.
30398 +config_files="$ac_config_files"
30399 +config_headers="$ac_config_headers"
30400 +config_commands="$ac_config_commands"
30401 +
30402 +_ACEOF
30403 +
30404 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30405 +ac_cs_usage="\
30406 +\`$as_me' instantiates files from templates according to the
30407 +current configuration.
30408 +
30409 +Usage: $0 [OPTION]... [FILE]...
30410 +
30411 + -h, --help print this help, then exit
30412 + -V, --version print version number and configuration settings, then exit
30413 + -q, --quiet, --silent
30414 + do not print progress messages
30415 + -d, --debug don't remove temporary files
30416 + --recheck update $as_me by reconfiguring in the same conditions
30417 + --file=FILE[:TEMPLATE]
30418 + instantiate the configuration file FILE
30419 + --header=FILE[:TEMPLATE]
30420 + instantiate the configuration header FILE
30421 +
30422 +Configuration files:
30423 +$config_files
30424 +
30425 +Configuration headers:
30426 +$config_headers
30427 +
30428 +Configuration commands:
30429 +$config_commands
30430 +
30431 +Report bugs to <[email protected]>."
30432 +
30433 +_ACEOF
30434 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30435 +ac_cs_version="\\
30436 +libltdl config.status 2.2.6b
30437 +configured by $0, generated by GNU Autoconf 2.63,
30438 + with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30439 +
30440 +Copyright (C) 2008 Free Software Foundation, Inc.
30441 +This config.status script is free software; the Free Software Foundation
30442 +gives unlimited permission to copy, distribute and modify it."
30443 +
30444 +ac_pwd='$ac_pwd'
30445 +srcdir='$srcdir'
30446 +INSTALL='$INSTALL'
30447 +MKDIR_P='$MKDIR_P'
30448 +AWK='$AWK'
30449 +test -n "\$AWK" || AWK=awk
30450 +_ACEOF
30451 +
30452 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30453 +# The default lists apply if the user does not specify any file.
30454 +ac_need_defaults=:
30455 +while test $# != 0
30456 +do
30457 + case $1 in
30458 + --*=*)
30459 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
30460 + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30461 + ac_shift=:
30462 + ;;
30463 + *)
30464 + ac_option=$1
30465 + ac_optarg=$2
30466 + ac_shift=shift
30467 + ;;
30468 + esac
30469 +
30470 + case $ac_option in
30471 + # Handling of the options.
30472 + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30473 + ac_cs_recheck=: ;;
30474 + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30475 + $as_echo "$ac_cs_version"; exit ;;
30476 + --debug | --debu | --deb | --de | --d | -d )
30477 + debug=: ;;
30478 + --file | --fil | --fi | --f )
30479 + $ac_shift
30480 + case $ac_optarg in
30481 + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30482 + esac
30483 + CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30484 + ac_need_defaults=false;;
30485 + --header | --heade | --head | --hea )
30486 + $ac_shift
30487 + case $ac_optarg in
30488 + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30489 + esac
30490 + CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30491 + ac_need_defaults=false;;
30492 + --he | --h)
30493 + # Conflict between --help and --header
30494 + { $as_echo "$as_me: error: ambiguous option: $1
30495 +Try \`$0 --help' for more information." >&2
30496 + { (exit 1); exit 1; }; };;
30497 + --help | --hel | -h )
30498 + $as_echo "$ac_cs_usage"; exit ;;
30499 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30500 + | -silent | --silent | --silen | --sile | --sil | --si | --s)
30501 + ac_cs_silent=: ;;
30502 +
30503 + # This is an error.
30504 + -*) { $as_echo "$as_me: error: unrecognized option: $1
30505 +Try \`$0 --help' for more information." >&2
30506 + { (exit 1); exit 1; }; } ;;
30507 +
30508 + *) ac_config_targets="$ac_config_targets $1"
30509 + ac_need_defaults=false ;;
30510 +
30511 + esac
30512 + shift
30513 +done
30514 +
30515 +ac_configure_extra_args=
30516 +
30517 +if $ac_cs_silent; then
30518 + exec 6>/dev/null
30519 + ac_configure_extra_args="$ac_configure_extra_args --silent"
30520 +fi
30521 +
30522 +_ACEOF
30523 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30524 +if \$ac_cs_recheck; then
30525 + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30526 + shift
30527 + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30528 + CONFIG_SHELL='$SHELL'
30529 + export CONFIG_SHELL
30530 + exec "\$@"
30531 +fi
30532 +
30533 +_ACEOF
30534 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30535 +exec 5>>config.log
30536 +{
30537 + echo
30538 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30539 +## Running $as_me. ##
30540 +_ASBOX
30541 + $as_echo "$ac_log"
30542 +} >&5
30543 +
30544 +_ACEOF
30545 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30546 +#
30547 +# INIT-COMMANDS
30548 +#
30549 +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30550 +
30551 +
30552 +# The HP-UX ksh and POSIX shell print the target directory to stdout
30553 +# if CDPATH is set.
30554 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30555 +
30556 +sed_quote_subst='$sed_quote_subst'
30557 +double_quote_subst='$double_quote_subst'
30558 +delay_variable_subst='$delay_variable_subst'
30559 +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30560 +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30561 +AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
30562 +DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30563 +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30564 +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30565 +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30566 +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30567 +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30568 +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30569 +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30570 +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30571 +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30572 +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30573 +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30574 +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30575 +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30576 +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30577 +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30578 +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30579 +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30580 +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30581 +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30582 +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30583 +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30584 +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30585 +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30586 +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30587 +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30588 +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30589 +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30590 +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30591 +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30592 +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30593 +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30594 +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30595 +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30596 +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30597 +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30598 +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30599 +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30600 +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30601 +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30602 +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30603 +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30604 +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30605 +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
30606 +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30607 +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30608 +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30609 +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30610 +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30611 +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30612 +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30613 +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30614 +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30615 +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30616 +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30617 +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30618 +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30619 +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30620 +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30621 +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30622 +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30623 +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30624 +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30625 +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30626 +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30627 +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30628 +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30629 +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30630 +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30631 +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30632 +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30633 +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30634 +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30635 +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30636 +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30637 +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30638 +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30639 +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30640 +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30641 +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30642 +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30643 +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30644 +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30645 +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30646 +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30647 +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30648 +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30649 +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30650 +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30651 +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30652 +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30653 +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30654 +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30655 +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30656 +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30657 +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30658 +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30659 +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30660 +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30661 +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30662 +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30663 +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30664 +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30665 +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30666 +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30667 +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30668 +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30669 +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30670 +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30671 +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30672 +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30673 +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30674 +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30675 +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30676 +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30677 +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30678 +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30679 +
30680 +LTCC='$LTCC'
30681 +LTCFLAGS='$LTCFLAGS'
30682 +compiler='$compiler_DEFAULT'
30683 +
30684 +# Quote evaled strings.
30685 +for var in SED \
30686 +GREP \
30687 +EGREP \
30688 +FGREP \
30689 +LD \
30690 +NM \
30691 +LN_S \
30692 +lt_SP2NL \
30693 +lt_NL2SP \
30694 +reload_flag \
30695 +deplibs_check_method \
30696 +file_magic_cmd \
30697 +AR \
30698 +AR_FLAGS \
30699 +STRIP \
30700 +RANLIB \
30701 +CC \
30702 +CFLAGS \
30703 +compiler \
30704 +lt_cv_sys_global_symbol_pipe \
30705 +lt_cv_sys_global_symbol_to_cdecl \
30706 +lt_cv_sys_global_symbol_to_c_name_address \
30707 +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30708 +SHELL \
30709 +ECHO \
30710 +lt_prog_compiler_no_builtin_flag \
30711 +lt_prog_compiler_wl \
30712 +lt_prog_compiler_pic \
30713 +lt_prog_compiler_static \
30714 +lt_cv_prog_compiler_c_o \
30715 +need_locks \
30716 +DSYMUTIL \
30717 +NMEDIT \
30718 +LIPO \
30719 +OTOOL \
30720 +OTOOL64 \
30721 +shrext_cmds \
30722 +export_dynamic_flag_spec \
30723 +whole_archive_flag_spec \
30724 +compiler_needs_object \
30725 +with_gnu_ld \
30726 +allow_undefined_flag \
30727 +no_undefined_flag \
30728 +hardcode_libdir_flag_spec \
30729 +hardcode_libdir_flag_spec_ld \
30730 +hardcode_libdir_separator \
30731 +fix_srcfile_path \
30732 +exclude_expsyms \
30733 +include_expsyms \
30734 +file_list_spec \
30735 +variables_saved_for_relink \
30736 +libname_spec \
30737 +library_names_spec \
30738 +soname_spec \
30739 +finish_eval \
30740 +old_striplib \
30741 +striplib; do
30742 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30743 + *[\\\\\\\`\\"\\\$]*)
30744 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30745 + ;;
30746 + *)
30747 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30748 + ;;
30749 + esac
30750 +done
30751 +
30752 +# Double-quote double-evaled strings.
30753 +for var in reload_cmds \
30754 +old_postinstall_cmds \
30755 +old_postuninstall_cmds \
30756 +old_archive_cmds \
30757 +extract_expsyms_cmds \
30758 +old_archive_from_new_cmds \
30759 +old_archive_from_expsyms_cmds \
30760 +archive_cmds \
30761 +archive_expsym_cmds \
30762 +module_cmds \
30763 +module_expsym_cmds \
30764 +export_symbols_cmds \
30765 +prelink_cmds \
30766 +postinstall_cmds \
30767 +postuninstall_cmds \
30768 +finish_cmds \
30769 +sys_lib_search_path_spec \
30770 +sys_lib_dlsearch_path_spec; do
30771 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30772 + *[\\\\\\\`\\"\\\$]*)
30773 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30774 + ;;
30775 + *)
30776 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30777 + ;;
30778 + esac
30779 +done
30780 +
30781 +# Fix-up fallback echo if it was mangled by the above quoting rules.
30782 +case \$lt_ECHO in
30783 +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30784 + ;;
30785 +esac
30786 +
30787 +ac_aux_dir='$ac_aux_dir'
30788 +xsi_shell='$xsi_shell'
30789 +lt_shell_append='$lt_shell_append'
30790 +
30791 +# See if we are running on zsh, and set the options which allow our
30792 +# commands through without removal of \ escapes INIT.
30793 +if test -n "\${ZSH_VERSION+set}" ; then
30794 + setopt NO_GLOB_SUBST
30795 +fi
30796 +
30797 +
30798 + PACKAGE='$PACKAGE'
30799 + VERSION='$VERSION'
30800 + TIMESTAMP='$TIMESTAMP'
30801 + RM='$RM'
30802 + ofile='$ofile'
30803 +
30804 +
30805 +
30806 +
30807 +_ACEOF
30808 +
30809 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30810 +
30811 +# Handling of arguments.
30812 +for ac_config_target in $ac_config_targets
30813 +do
30814 + case $ac_config_target in
30815 + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
30816 + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30817 + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30818 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30819 +
30820 + *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30821 +$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30822 + { (exit 1); exit 1; }; };;
30823 + esac
30824 +done
30825 +
30826 +
30827 +# If the user did not use the arguments to specify the items to instantiate,
30828 +# then the envvar interface is used. Set only those that are not.
30829 +# We use the long form for the default assignment because of an extremely
30830 +# bizarre bug on SunOS 4.1.3.
30831 +if $ac_need_defaults; then
30832 + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30833 + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30834 + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30835 +fi
30836 +
30837 +# Have a temporary directory for convenience. Make it in the build tree
30838 +# simply because there is no reason against having it here, and in addition,
30839 +# creating and moving files from /tmp can sometimes cause problems.
30840 +# Hook for its removal unless debugging.
30841 +# Note that there is a small window in which the directory will not be cleaned:
30842 +# after its creation but before its name has been assigned to `$tmp'.
30843 +$debug ||
30844 +{
30845 + tmp=
30846 + trap 'exit_status=$?
30847 + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30848 +' 0
30849 + trap '{ (exit 1); exit 1; }' 1 2 13 15
30850 +}
30851 +# Create a (secure) tmp directory for tmp files.
30852 +
30853 +{
30854 + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30855 + test -n "$tmp" && test -d "$tmp"
30856 +} ||
30857 +{
30858 + tmp=./conf$$-$RANDOM
30859 + (umask 077 && mkdir "$tmp")
30860 +} ||
30861 +{
30862 + $as_echo "$as_me: cannot create a temporary directory in ." >&2
30863 + { (exit 1); exit 1; }
30864 +}
30865 +
30866 +# Set up the scripts for CONFIG_FILES section.
30867 +# No need to generate them if there are no CONFIG_FILES.
30868 +# This happens for instance with `./config.status config.h'.
30869 +if test -n "$CONFIG_FILES"; then
30870 +
30871 +
30872 +ac_cr=' '
30873 +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30874 +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30875 + ac_cs_awk_cr='\\r'
30876 +else
30877 + ac_cs_awk_cr=$ac_cr
30878 +fi
30879 +
30880 +echo 'BEGIN {' >"$tmp/subs1.awk" &&
30881 +_ACEOF
30882 +
30883 +
30884 +{
30885 + echo "cat >conf$$subs.awk <<_ACEOF" &&
30886 + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30887 + echo "_ACEOF"
30888 +} >conf$$subs.sh ||
30889 + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30890 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30891 + { (exit 1); exit 1; }; }
30892 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30893 +ac_delim='%!_!# '
30894 +for ac_last_try in false false false false false :; do
30895 + . ./conf$$subs.sh ||
30896 + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30897 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30898 + { (exit 1); exit 1; }; }
30899 +
30900 + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30901 + if test $ac_delim_n = $ac_delim_num; then
30902 + break
30903 + elif $ac_last_try; then
30904 + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30905 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30906 + { (exit 1); exit 1; }; }
30907 + else
30908 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30909 + fi
30910 +done
30911 +rm -f conf$$subs.sh
30912 +
30913 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30914 +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30915 +_ACEOF
30916 +sed -n '
30917 +h
30918 +s/^/S["/; s/!.*/"]=/
30919 +p
30920 +g
30921 +s/^[^!]*!//
30922 +:repl
30923 +t repl
30924 +s/'"$ac_delim"'$//
30925 +t delim
30926 +:nl
30927 +h
30928 +s/\(.\{148\}\).*/\1/
30929 +t more1
30930 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30931 +p
30932 +n
30933 +b repl
30934 +:more1
30935 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30936 +p
30937 +g
30938 +s/.\{148\}//
30939 +t nl
30940 +:delim
30941 +h
30942 +s/\(.\{148\}\).*/\1/
30943 +t more2
30944 +s/["\\]/\\&/g; s/^/"/; s/$/"/
30945 +p
30946 +b
30947 +:more2
30948 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30949 +p
30950 +g
30951 +s/.\{148\}//
30952 +t delim
30953 +' <conf$$subs.awk | sed '
30954 +/^[^""]/{
30955 + N
30956 + s/\n//
30957 +}
30958 +' >>$CONFIG_STATUS || ac_write_fail=1
30959 +rm -f conf$$subs.awk
30960 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30961 +_ACAWK
30962 +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30963 + for (key in S) S_is_set[key] = 1
30964 + FS = ""
30965 +
30966 +}
30967 +{
30968 + line = $ 0
30969 + nfields = split(line, field, "@")
30970 + substed = 0
30971 + len = length(field[1])
30972 + for (i = 2; i < nfields; i++) {
30973 + key = field[i]
30974 + keylen = length(key)
30975 + if (S_is_set[key]) {
30976 + value = S[key]
30977 + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30978 + len += length(value) + length(field[++i])
30979 + substed = 1
30980 + } else
30981 + len += 1 + keylen
30982 + }
30983 +
30984 + print line
30985 +}
30986 +
30987 +_ACAWK
30988 +_ACEOF
30989 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30990 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30991 + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30992 +else
30993 + cat
30994 +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30995 + || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30996 +$as_echo "$as_me: error: could not setup config files machinery" >&2;}
30997 + { (exit 1); exit 1; }; }
30998 +_ACEOF
30999 +
31000 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
31001 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31002 +# trailing colons and then remove the whole line if VPATH becomes empty
31003 +# (actually we leave an empty line to preserve line numbers).
31004 +if test "x$srcdir" = x.; then
31005 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
31006 +s/:*\$(srcdir):*/:/
31007 +s/:*\${srcdir}:*/:/
31008 +s/:*@srcdir@:*/:/
31009 +s/^\([^=]*=[ ]*\):*/\1/
31010 +s/:*$//
31011 +s/^[^=]*=[ ]*$//
31012 +}'
31013 +fi
31014 +
31015 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31016 +fi # test -n "$CONFIG_FILES"
31017 +
31018 +# Set up the scripts for CONFIG_HEADERS section.
31019 +# No need to generate them if there are no CONFIG_HEADERS.
31020 +# This happens for instance with `./config.status Makefile'.
31021 +if test -n "$CONFIG_HEADERS"; then
31022 +cat >"$tmp/defines.awk" <<\_ACAWK ||
31023 +BEGIN {
31024 +_ACEOF
31025 +
31026 +# Transform confdefs.h into an awk script `defines.awk', embedded as
31027 +# here-document in config.status, that substitutes the proper values into
31028 +# config.h.in to produce config.h.
31029 +
31030 +# Create a delimiter string that does not exist in confdefs.h, to ease
31031 +# handling of long lines.
31032 +ac_delim='%!_!# '
31033 +for ac_last_try in false false :; do
31034 + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31035 + if test -z "$ac_t"; then
31036 + break
31037 + elif $ac_last_try; then
31038 + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
31039 +$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
31040 + { (exit 1); exit 1; }; }
31041 + else
31042 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31043 + fi
31044 +done
31045 +
31046 +# For the awk script, D is an array of macro values keyed by name,
31047 +# likewise P contains macro parameters if any. Preserve backslash
31048 +# newline sequences.
31049 +
31050 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31051 +sed -n '
31052 +s/.\{148\}/&'"$ac_delim"'/g
31053 +t rset
31054 +:rset
31055 +s/^[ ]*#[ ]*define[ ][ ]*/ /
31056 +t def
31057 +d
31058 +:def
31059 +s/\\$//
31060 +t bsnl
31061 +s/["\\]/\\&/g
31062 +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31063 +D["\1"]=" \3"/p
31064 +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31065 +d
31066 +:bsnl
31067 +s/["\\]/\\&/g
31068 +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31069 +D["\1"]=" \3\\\\\\n"\\/p
31070 +t cont
31071 +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31072 +t cont
31073 +d
31074 +:cont
31075 +n
31076 +s/.\{148\}/&'"$ac_delim"'/g
31077 +t clear
31078 +:clear
31079 +s/\\$//
31080 +t bsnlc
31081 +s/["\\]/\\&/g; s/^/"/; s/$/"/p
31082 +d
31083 +:bsnlc
31084 +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31085 +b cont
31086 +' <confdefs.h | sed '
31087 +s/'"$ac_delim"'/"\\\
31088 +"/g' >>$CONFIG_STATUS || ac_write_fail=1
31089 +
31090 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31091 + for (key in D) D_is_set[key] = 1
31092 + FS = ""
31093 +}
31094 +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31095 + line = \$ 0
31096 + split(line, arg, " ")
31097 + if (arg[1] == "#") {
31098 + defundef = arg[2]
31099 + mac1 = arg[3]
31100 + } else {
31101 + defundef = substr(arg[1], 2)
31102 + mac1 = arg[2]
31103 + }
31104 + split(mac1, mac2, "(") #)
31105 + macro = mac2[1]
31106 + prefix = substr(line, 1, index(line, defundef) - 1)
31107 + if (D_is_set[macro]) {
31108 + # Preserve the white space surrounding the "#".
31109 + print prefix "define", macro P[macro] D[macro]
31110 + next
31111 + } else {
31112 + # Replace #undef with comments. This is necessary, for example,
31113 + # in the case of _POSIX_SOURCE, which is predefined and required
31114 + # on some systems where configure will not decide to define it.
31115 + if (defundef == "undef") {
31116 + print "/*", prefix defundef, macro, "*/"
31117 + next
31118 + }
31119 + }
31120 +}
31121 +{ print }
31122 +_ACAWK
31123 +_ACEOF
31124 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31125 + { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31126 +$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31127 + { (exit 1); exit 1; }; }
31128 +fi # test -n "$CONFIG_HEADERS"
31129 +
31130 +
31131 +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31132 +shift
31133 +for ac_tag
31134 +do
31135 + case $ac_tag in
31136 + :[FHLC]) ac_mode=$ac_tag; continue;;
31137 + esac
31138 + case $ac_mode$ac_tag in
31139 + :[FHL]*:*);;
31140 + :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31141 +$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31142 + { (exit 1); exit 1; }; };;
31143 + :[FH]-) ac_tag=-:-;;
31144 + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31145 + esac
31146 + ac_save_IFS=$IFS
31147 + IFS=:
31148 + set x $ac_tag
31149 + IFS=$ac_save_IFS
31150 + shift
31151 + ac_file=$1
31152 + shift
31153 +
31154 + case $ac_mode in
31155 + :L) ac_source=$1;;
31156 + :[FH])
31157 + ac_file_inputs=
31158 + for ac_f
31159 + do
31160 + case $ac_f in
31161 + -) ac_f="$tmp/stdin";;
31162 + *) # Look for the file first in the build tree, then in the source tree
31163 + # (if the path is not absolute). The absolute path cannot be DOS-style,
31164 + # because $ac_f cannot contain `:'.
31165 + test -f "$ac_f" ||
31166 + case $ac_f in
31167 + [\\/$]*) false;;
31168 + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31169 + esac ||
31170 + { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31171 +$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31172 + { (exit 1); exit 1; }; };;
31173 + esac
31174 + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31175 + ac_file_inputs="$ac_file_inputs '$ac_f'"
31176 + done
31177 +
31178 + # Let's still pretend it is `configure' which instantiates (i.e., don't
31179 + # use $as_me), people would be surprised to read:
31180 + # /* config.h. Generated by config.status. */
31181 + configure_input='Generated from '`
31182 + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31183 + `' by configure.'
31184 + if test x"$ac_file" != x-; then
31185 + configure_input="$ac_file. $configure_input"
31186 + { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31187 +$as_echo "$as_me: creating $ac_file" >&6;}
31188 + fi
31189 + # Neutralize special characters interpreted by sed in replacement strings.
31190 + case $configure_input in #(
31191 + *\&* | *\|* | *\\* )
31192 + ac_sed_conf_input=`$as_echo "$configure_input" |
31193 + sed 's/[\\\\&|]/\\\\&/g'`;; #(
31194 + *) ac_sed_conf_input=$configure_input;;
31195 + esac
31196 +
31197 + case $ac_tag in
31198 + *:-:* | *:-) cat >"$tmp/stdin" \
31199 + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31200 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31201 + { (exit 1); exit 1; }; } ;;
31202 + esac
31203 + ;;
31204 + esac
31205 +
31206 + ac_dir=`$as_dirname -- "$ac_file" ||
31207 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31208 + X"$ac_file" : 'X\(//\)[^/]' \| \
31209 + X"$ac_file" : 'X\(//\)$' \| \
31210 + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31211 +$as_echo X"$ac_file" |
31212 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31213 + s//\1/
31214 + q
31215 + }
31216 + /^X\(\/\/\)[^/].*/{
31217 + s//\1/
31218 + q
31219 + }
31220 + /^X\(\/\/\)$/{
31221 + s//\1/
31222 + q
31223 + }
31224 + /^X\(\/\).*/{
31225 + s//\1/
31226 + q
31227 + }
31228 + s/.*/./; q'`
31229 + { as_dir="$ac_dir"
31230 + case $as_dir in #(
31231 + -*) as_dir=./$as_dir;;
31232 + esac
31233 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31234 + as_dirs=
31235 + while :; do
31236 + case $as_dir in #(
31237 + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31238 + *) as_qdir=$as_dir;;
31239 + esac
31240 + as_dirs="'$as_qdir' $as_dirs"
31241 + as_dir=`$as_dirname -- "$as_dir" ||
31242 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31243 + X"$as_dir" : 'X\(//\)[^/]' \| \
31244 + X"$as_dir" : 'X\(//\)$' \| \
31245 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31246 +$as_echo X"$as_dir" |
31247 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31248 + s//\1/
31249 + q
31250 + }
31251 + /^X\(\/\/\)[^/].*/{
31252 + s//\1/
31253 + q
31254 + }
31255 + /^X\(\/\/\)$/{
31256 + s//\1/
31257 + q
31258 + }
31259 + /^X\(\/\).*/{
31260 + s//\1/
31261 + q
31262 + }
31263 + s/.*/./; q'`
31264 + test -d "$as_dir" && break
31265 + done
31266 + test -z "$as_dirs" || eval "mkdir $as_dirs"
31267 + } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31268 +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31269 + { (exit 1); exit 1; }; }; }
31270 + ac_builddir=.
31271 +
31272 +case "$ac_dir" in
31273 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31274 +*)
31275 + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31276 + # A ".." for each directory in $ac_dir_suffix.
31277 + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31278 + case $ac_top_builddir_sub in
31279 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31280 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31281 + esac ;;
31282 +esac
31283 +ac_abs_top_builddir=$ac_pwd
31284 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
31285 +# for backward compatibility:
31286 +ac_top_builddir=$ac_top_build_prefix
31287 +
31288 +case $srcdir in
31289 + .) # We are building in place.
31290 + ac_srcdir=.
31291 + ac_top_srcdir=$ac_top_builddir_sub
31292 + ac_abs_top_srcdir=$ac_pwd ;;
31293 + [\\/]* | ?:[\\/]* ) # Absolute name.
31294 + ac_srcdir=$srcdir$ac_dir_suffix;
31295 + ac_top_srcdir=$srcdir
31296 + ac_abs_top_srcdir=$srcdir ;;
31297 + *) # Relative name.
31298 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31299 + ac_top_srcdir=$ac_top_build_prefix$srcdir
31300 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31301 +esac
31302 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31303 +
31304 +
31305 + case $ac_mode in
31306 + :F)
31307 + #
31308 + # CONFIG_FILE
31309 + #
31310 +
31311 + case $INSTALL in
31312 + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31313 + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31314 + esac
31315 + ac_MKDIR_P=$MKDIR_P
31316 + case $MKDIR_P in
31317 + [\\/$]* | ?:[\\/]* ) ;;
31318 + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31319 + esac
31320 +_ACEOF
31321 +
31322 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31323 +# If the template does not know about datarootdir, expand it.
31324 +# FIXME: This hack should be removed a few years after 2.60.
31325 +ac_datarootdir_hack=; ac_datarootdir_seen=
31326 +
31327 +ac_sed_dataroot='
31328 +/datarootdir/ {
31329 + p
31330 + q
31331 +}
31332 +/@datadir@/p
31333 +/@docdir@/p
31334 +/@infodir@/p
31335 +/@localedir@/p
31336 +/@mandir@/p
31337 +'
31338 +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31339 +*datarootdir*) ac_datarootdir_seen=yes;;
31340 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31341 + { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31342 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31343 +_ACEOF
31344 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31345 + ac_datarootdir_hack='
31346 + s&@datadir@&$datadir&g
31347 + s&@docdir@&$docdir&g
31348 + s&@infodir@&$infodir&g
31349 + s&@localedir@&$localedir&g
31350 + s&@mandir@&$mandir&g
31351 + s&\\\${datarootdir}&$datarootdir&g' ;;
31352 +esac
31353 +_ACEOF
31354 +
31355 +# Neutralize VPATH when `$srcdir' = `.'.
31356 +# Shell code in configure.ac might set extrasub.
31357 +# FIXME: do we really want to maintain this feature?
31358 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31359 +ac_sed_extra="$ac_vpsub
31360 +$extrasub
31361 +_ACEOF
31362 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31363 +:t
31364 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31365 +s|@configure_input@|$ac_sed_conf_input|;t t
31366 +s&@top_builddir@&$ac_top_builddir_sub&;t t
31367 +s&@top_build_prefix@&$ac_top_build_prefix&;t t
31368 +s&@srcdir@&$ac_srcdir&;t t
31369 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
31370 +s&@top_srcdir@&$ac_top_srcdir&;t t
31371 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31372 +s&@builddir@&$ac_builddir&;t t
31373 +s&@abs_builddir@&$ac_abs_builddir&;t t
31374 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31375 +s&@INSTALL@&$ac_INSTALL&;t t
31376 +s&@MKDIR_P@&$ac_MKDIR_P&;t t
31377 +$ac_datarootdir_hack
31378 +"
31379 +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31380 + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31381 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31382 + { (exit 1); exit 1; }; }
31383 +
31384 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31385 + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31386 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31387 + { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31388 +which seems to be undefined. Please make sure it is defined." >&5
31389 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31390 +which seems to be undefined. Please make sure it is defined." >&2;}
31391 +
31392 + rm -f "$tmp/stdin"
31393 + case $ac_file in
31394 + -) cat "$tmp/out" && rm -f "$tmp/out";;
31395 + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31396 + esac \
31397 + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31398 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31399 + { (exit 1); exit 1; }; }
31400 + ;;
31401 + :H)
31402 + #
31403 + # CONFIG_HEADER
31404 + #
31405 + if test x"$ac_file" != x-; then
31406 + {
31407 + $as_echo "/* $configure_input */" \
31408 + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31409 + } >"$tmp/config.h" \
31410 + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31411 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31412 + { (exit 1); exit 1; }; }
31413 + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31414 + { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31415 +$as_echo "$as_me: $ac_file is unchanged" >&6;}
31416 + else
31417 + rm -f "$ac_file"
31418 + mv "$tmp/config.h" "$ac_file" \
31419 + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31420 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
31421 + { (exit 1); exit 1; }; }
31422 + fi
31423 + else
31424 + $as_echo "/* $configure_input */" \
31425 + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31426 + || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31427 +$as_echo "$as_me: error: could not create -" >&2;}
31428 + { (exit 1); exit 1; }; }
31429 + fi
31430 +# Compute "$ac_file"'s index in $config_headers.
31431 +_am_arg="$ac_file"
31432 +_am_stamp_count=1
31433 +for _am_header in $config_headers :; do
31434 + case $_am_header in
31435 + $_am_arg | $_am_arg:* )
31436 + break ;;
31437 + * )
31438 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31439 + esac
31440 +done
31441 +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31442 +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31443 + X"$_am_arg" : 'X\(//\)[^/]' \| \
31444 + X"$_am_arg" : 'X\(//\)$' \| \
31445 + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31446 +$as_echo X"$_am_arg" |
31447 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31448 + s//\1/
31449 + q
31450 + }
31451 + /^X\(\/\/\)[^/].*/{
31452 + s//\1/
31453 + q
31454 + }
31455 + /^X\(\/\/\)$/{
31456 + s//\1/
31457 + q
31458 + }
31459 + /^X\(\/\).*/{
31460 + s//\1/
31461 + q
31462 + }
31463 + s/.*/./; q'`/stamp-h$_am_stamp_count
31464 + ;;
31465 +
31466 + :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31467 +$as_echo "$as_me: executing $ac_file commands" >&6;}
31468 + ;;
31469 + esac
31470 +
31471 +
31472 + case $ac_file$ac_mode in
31473 + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
31474 + # Autoconf 2.62 quotes --file arguments for eval, but not when files
31475 + # are listed without --file. Let's play safe and only enable the eval
31476 + # if we detect the quoting.
31477 + case $CONFIG_FILES in
31478 + *\'*) eval set x "$CONFIG_FILES" ;;
31479 + *) set x $CONFIG_FILES ;;
31480 + esac
31481 + shift
31482 + for mf
31483 + do
31484 + # Strip MF so we end up with the name of the file.
31485 + mf=`echo "$mf" | sed -e 's/:.*$//'`
31486 + # Check whether this is an Automake generated Makefile or not.
31487 + # We used to match only the files named `Makefile.in', but
31488 + # some people rename them; so instead we look at the file content.
31489 + # Grep'ing the first line is not enough: some people post-process
31490 + # each Makefile.in and add a new line on top of each file to say so.
31491 + # Grep'ing the whole file is not good either: AIX grep has a line
31492 + # limit of 2048, but all sed's we know have understand at least 4000.
31493 + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
31494 + dirpart=`$as_dirname -- "$mf" ||
31495 +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31496 + X"$mf" : 'X\(//\)[^/]' \| \
31497 + X"$mf" : 'X\(//\)$' \| \
31498 + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31499 +$as_echo X"$mf" |
31500 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31501 + s//\1/
31502 + q
31503 + }
31504 + /^X\(\/\/\)[^/].*/{
31505 + s//\1/
31506 + q
31507 + }
31508 + /^X\(\/\/\)$/{
31509 + s//\1/
31510 + q
31511 + }
31512 + /^X\(\/\).*/{
31513 + s//\1/
31514 + q
31515 + }
31516 + s/.*/./; q'`
31517 + else
31518 + continue
31519 + fi
31520 + # Extract the definition of DEPDIR, am__include, and am__quote
31521 + # from the Makefile without running `make'.
31522 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31523 + test -z "$DEPDIR" && continue
31524 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
31525 + test -z "am__include" && continue
31526 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31527 + # When using ansi2knr, U may be empty or an underscore; expand it
31528 + U=`sed -n 's/^U = //p' < "$mf"`
31529 + # Find all dependency output files, they are included files with
31530 + # $(DEPDIR) in their names. We invoke sed twice because it is the
31531 + # simplest approach to changing $(DEPDIR) to its actual value in the
31532 + # expansion.
31533 + for file in `sed -n "
31534 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31535 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31536 + # Make sure the directory exists.
31537 + test -f "$dirpart/$file" && continue
31538 + fdir=`$as_dirname -- "$file" ||
31539 +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31540 + X"$file" : 'X\(//\)[^/]' \| \
31541 + X"$file" : 'X\(//\)$' \| \
31542 + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31543 +$as_echo X"$file" |
31544 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31545 + s//\1/
31546 + q
31547 + }
31548 + /^X\(\/\/\)[^/].*/{
31549 + s//\1/
31550 + q
31551 + }
31552 + /^X\(\/\/\)$/{
31553 + s//\1/
31554 + q
31555 + }
31556 + /^X\(\/\).*/{
31557 + s//\1/
31558 + q
31559 + }
31560 + s/.*/./; q'`
31561 + { as_dir=$dirpart/$fdir
31562 + case $as_dir in #(
31563 + -*) as_dir=./$as_dir;;
31564 + esac
31565 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31566 + as_dirs=
31567 + while :; do
31568 + case $as_dir in #(
31569 + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31570 + *) as_qdir=$as_dir;;
31571 + esac
31572 + as_dirs="'$as_qdir' $as_dirs"
31573 + as_dir=`$as_dirname -- "$as_dir" ||
31574 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31575 + X"$as_dir" : 'X\(//\)[^/]' \| \
31576 + X"$as_dir" : 'X\(//\)$' \| \
31577 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31578 +$as_echo X"$as_dir" |
31579 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31580 + s//\1/
31581 + q
31582 + }
31583 + /^X\(\/\/\)[^/].*/{
31584 + s//\1/
31585 + q
31586 + }
31587 + /^X\(\/\/\)$/{
31588 + s//\1/
31589 + q
31590 + }
31591 + /^X\(\/\).*/{
31592 + s//\1/
31593 + q
31594 + }
31595 + s/.*/./; q'`
31596 + test -d "$as_dir" && break
31597 + done
31598 + test -z "$as_dirs" || eval "mkdir $as_dirs"
31599 + } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31600 +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31601 + { (exit 1); exit 1; }; }; }
31602 + # echo "creating $dirpart/$file"
31603 + echo '# dummy' > "$dirpart/$file"
31604 + done
31605 + done
31606 +}
31607 + ;;
31608 + "libtool":C)
31609 +
31610 + # See if we are running on zsh, and set the options which allow our
31611 + # commands through without removal of \ escapes.
31612 + if test -n "${ZSH_VERSION+set}" ; then
31613 + setopt NO_GLOB_SUBST
31614 + fi
31615 +
31616 + cfgfile="${ofile}T"
31617 + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31618 + $RM "$cfgfile"
31619 +
31620 + cat <<_LT_EOF >> "$cfgfile"
31621 +#! $SHELL
31622 +
31623 +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31624 +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31625 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31626 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
31627 +#
31628 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31629 +# 2006, 2007, 2008 Free Software Foundation, Inc.
31630 +# Written by Gordon Matzigkeit, 1996
31631 +#
31632 +# This file is part of GNU Libtool.
31633 +#
31634 +# GNU Libtool is free software; you can redistribute it and/or
31635 +# modify it under the terms of the GNU General Public License as
31636 +# published by the Free Software Foundation; either version 2 of
31637 +# the License, or (at your option) any later version.
31638 +#
31639 +# As a special exception to the GNU General Public License,
31640 +# if you distribute this file as part of a program or library that
31641 +# is built using GNU Libtool, you may include this file under the
31642 +# same distribution terms that you use for the rest of that program.
31643 +#
31644 +# GNU Libtool is distributed in the hope that it will be useful,
31645 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
31646 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31647 +# GNU General Public License for more details.
31648 +#
31649 +# You should have received a copy of the GNU General Public License
31650 +# along with GNU Libtool; see the file COPYING. If not, a copy
31651 +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31652 +# obtained by writing to the Free Software Foundation, Inc.,
31653 +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31654 +
31655 +
31656 +# The names of the tagged configurations supported by this script.
31657 +available_tags=""
31658 +
31659 +# ### BEGIN LIBTOOL CONFIG
31660 +
31661 +# Which release of libtool.m4 was used?
31662 +macro_version=$macro_version
31663 +macro_revision=$macro_revision
31664 +
31665 +# Assembler program.
31666 +AS=$AS
31667 +
31668 +# DLL creation program.
31669 +DLLTOOL=$DLLTOOL
31670 +
31671 +# Object dumper program.
31672 +OBJDUMP=$OBJDUMP
31673 +
31674 +# Whether or not to build shared libraries.
31675 +build_libtool_libs=$enable_shared
31676 +
31677 +# Whether or not to build static libraries.
31678 +build_old_libs=$enable_static
31679 +
31680 +# What type of objects to build.
31681 +pic_mode=$pic_mode
31682 +
31683 +# Whether or not to optimize for fast installation.
31684 +fast_install=$enable_fast_install
31685 +
31686 +# The host system.
31687 +host_alias=$host_alias
31688 +host=$host
31689 +host_os=$host_os
31690 +
31691 +# The build system.
31692 +build_alias=$build_alias
31693 +build=$build
31694 +build_os=$build_os
31695 +
31696 +# A sed program that does not truncate output.
31697 +SED=$lt_SED
31698 +
31699 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
31700 +Xsed="\$SED -e 1s/^X//"
31701 +
31702 +# A grep program that handles long lines.
31703 +GREP=$lt_GREP
31704 +
31705 +# An ERE matcher.
31706 +EGREP=$lt_EGREP
31707 +
31708 +# A literal string matcher.
31709 +FGREP=$lt_FGREP
31710 +
31711 +# A BSD- or MS-compatible name lister.
31712 +NM=$lt_NM
31713 +
31714 +# Whether we need soft or hard links.
31715 +LN_S=$lt_LN_S
31716 +
31717 +# What is the maximum length of a command?
31718 +max_cmd_len=$max_cmd_len
31719 +
31720 +# Object file suffix (normally "o").
31721 +objext=$ac_objext
31722 +
31723 +# Executable file suffix (normally "").
31724 +exeext=$exeext
31725 +
31726 +# whether the shell understands "unset".
31727 +lt_unset=$lt_unset
31728 +
31729 +# turn spaces into newlines.
31730 +SP2NL=$lt_lt_SP2NL
31731 +
31732 +# turn newlines into spaces.
31733 +NL2SP=$lt_lt_NL2SP
31734 +
31735 +# How to create reloadable object files.
31736 +reload_flag=$lt_reload_flag
31737 +reload_cmds=$lt_reload_cmds
31738 +
31739 +# Method to check whether dependent libraries are shared objects.
31740 +deplibs_check_method=$lt_deplibs_check_method
31741 +
31742 +# Command to use when deplibs_check_method == "file_magic".
31743 +file_magic_cmd=$lt_file_magic_cmd
31744 +
31745 +# The archiver.
31746 +AR=$lt_AR
31747 +AR_FLAGS=$lt_AR_FLAGS
31748 +
31749 +# A symbol stripping program.
31750 +STRIP=$lt_STRIP
31751 +
31752 +# Commands used to install an old-style archive.
31753 +RANLIB=$lt_RANLIB
31754 +old_postinstall_cmds=$lt_old_postinstall_cmds
31755 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
31756 +
31757 +# A C compiler.
31758 +LTCC=$lt_CC
31759 +
31760 +# LTCC compiler flags.
31761 +LTCFLAGS=$lt_CFLAGS
31762 +
31763 +# Take the output of nm and produce a listing of raw symbols and C names.
31764 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31765 +
31766 +# Transform the output of nm in a proper C declaration.
31767 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31768 +
31769 +# Transform the output of nm in a C name address pair.
31770 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31771 +
31772 +# Transform the output of nm in a C name address pair when lib prefix is needed.
31773 +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31774 +
31775 +# The name of the directory that contains temporary libtool files.
31776 +objdir=$objdir
31777 +
31778 +# Shell to use when invoking shell scripts.
31779 +SHELL=$lt_SHELL
31780 +
31781 +# An echo program that does not interpret backslashes.
31782 +ECHO=$lt_ECHO
31783 +
31784 +# Used to examine libraries when file_magic_cmd begins with "file".
31785 +MAGIC_CMD=$MAGIC_CMD
31786 +
31787 +# Must we lock files when doing compilation?
31788 +need_locks=$lt_need_locks
31789 +
31790 +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31791 +DSYMUTIL=$lt_DSYMUTIL
31792 +
31793 +# Tool to change global to local symbols on Mac OS X.
31794 +NMEDIT=$lt_NMEDIT
31795 +
31796 +# Tool to manipulate fat objects and archives on Mac OS X.
31797 +LIPO=$lt_LIPO
31798 +
31799 +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
31800 +OTOOL=$lt_OTOOL
31801 +
31802 +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31803 +OTOOL64=$lt_OTOOL64
31804 +
31805 +# Old archive suffix (normally "a").
31806 +libext=$libext
31807 +
31808 +# Shared library suffix (normally ".so").
31809 +shrext_cmds=$lt_shrext_cmds
31810 +
31811 +# The commands to extract the exported symbol list from a shared archive.
31812 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
31813 +
31814 +# Variables whose values should be saved in libtool wrapper scripts and
31815 +# restored at link time.
31816 +variables_saved_for_relink=$lt_variables_saved_for_relink
31817 +
31818 +# Do we need the "lib" prefix for modules?
31819 +need_lib_prefix=$need_lib_prefix
31820 +
31821 +# Do we need a version for libraries?
31822 +need_version=$need_version
31823 +
31824 +# Library versioning type.
31825 +version_type=$version_type
31826 +
31827 +# Shared library runtime path variable.
31828 +runpath_var=$runpath_var
31829 +
31830 +# Shared library path variable.
31831 +shlibpath_var=$shlibpath_var
31832 +
31833 +# Is shlibpath searched before the hard-coded library search path?
31834 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31835 +
31836 +# Format of library name prefix.
31837 +libname_spec=$lt_libname_spec
31838 +
31839 +# List of archive names. First name is the real one, the rest are links.
31840 +# The last name is the one that the linker finds with -lNAME
31841 +library_names_spec=$lt_library_names_spec
31842 +
31843 +# The coded name of the library, if different from the real name.
31844 +soname_spec=$lt_soname_spec
31845 +
31846 +# Command to use after installation of a shared archive.
31847 +postinstall_cmds=$lt_postinstall_cmds
31848 +
31849 +# Command to use after uninstallation of a shared archive.
31850 +postuninstall_cmds=$lt_postuninstall_cmds
31851 +
31852 +# Commands used to finish a libtool library installation in a directory.
31853 +finish_cmds=$lt_finish_cmds
31854 +
31855 +# As "finish_cmds", except a single script fragment to be evaled but
31856 +# not shown.
31857 +finish_eval=$lt_finish_eval
31858 +
31859 +# Whether we should hardcode library paths into libraries.
31860 +hardcode_into_libs=$hardcode_into_libs
31861 +
31862 +# Compile-time system search path for libraries.
31863 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31864 +
31865 +# Run-time system search path for libraries.
31866 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31867 +
31868 +# Whether dlopen is supported.
31869 +dlopen_support=$enable_dlopen
31870 +
31871 +# Whether dlopen of programs is supported.
31872 +dlopen_self=$enable_dlopen_self
31873 +
31874 +# Whether dlopen of statically linked programs is supported.
31875 +dlopen_self_static=$enable_dlopen_self_static
31876 +
31877 +# Commands to strip libraries.
31878 +old_striplib=$lt_old_striplib
31879 +striplib=$lt_striplib
31880 +
31881 +
31882 +# The linker used to build libraries.
31883 +LD=$lt_LD
31884 +
31885 +# Commands used to build an old-style archive.
31886 +old_archive_cmds=$lt_old_archive_cmds
31887 +
31888 +# A language specific compiler.
31889 +CC=$lt_compiler
31890 +
31891 +# Is the compiler the GNU compiler?
31892 +with_gcc=$GCC
31893 +
31894 +# Compiler flag to turn off builtin functions.
31895 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31896 +
31897 +# How to pass a linker flag through the compiler.
31898 +wl=$lt_lt_prog_compiler_wl
31899 +
31900 +# Additional compiler flags for building library objects.
31901 +pic_flag=$lt_lt_prog_compiler_pic
31902 +
31903 +# Compiler flag to prevent dynamic linking.
31904 +link_static_flag=$lt_lt_prog_compiler_static
31905 +
31906 +# Does compiler simultaneously support -c and -o options?
31907 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31908 +
31909 +# Whether or not to add -lc for building shared libraries.
31910 +build_libtool_need_lc=$archive_cmds_need_lc
31911 +
31912 +# Whether or not to disallow shared libs when runtime libs are static.
31913 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31914 +
31915 +# Compiler flag to allow reflexive dlopens.
31916 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31917 +
31918 +# Compiler flag to generate shared objects directly from archives.
31919 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
31920 +
31921 +# Whether the compiler copes with passing no objects directly.
31922 +compiler_needs_object=$lt_compiler_needs_object
31923 +
31924 +# Create an old-style archive from a shared archive.
31925 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31926 +
31927 +# Create a temporary old-style archive to link instead of a shared archive.
31928 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31929 +
31930 +# Commands used to build a shared archive.
31931 +archive_cmds=$lt_archive_cmds
31932 +archive_expsym_cmds=$lt_archive_expsym_cmds
31933 +
31934 +# Commands used to build a loadable module if different from building
31935 +# a shared archive.
31936 +module_cmds=$lt_module_cmds
31937 +module_expsym_cmds=$lt_module_expsym_cmds
31938 +
31939 +# Whether we are building with GNU ld or not.
31940 +with_gnu_ld=$lt_with_gnu_ld
31941 +
31942 +# Flag that allows shared libraries with undefined symbols to be built.
31943 +allow_undefined_flag=$lt_allow_undefined_flag
31944 +
31945 +# Flag that enforces no undefined symbols.
31946 +no_undefined_flag=$lt_no_undefined_flag
31947 +
31948 +# Flag to hardcode \$libdir into a binary during linking.
31949 +# This must work even if \$libdir does not exist
31950 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31951 +
31952 +# If ld is used when linking, flag to hardcode \$libdir into a binary
31953 +# during linking. This must work even if \$libdir does not exist.
31954 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31955 +
31956 +# Whether we need a single "-rpath" flag with a separated argument.
31957 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
31958 +
31959 +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31960 +# DIR into the resulting binary.
31961 +hardcode_direct=$hardcode_direct
31962 +
31963 +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31964 +# DIR into the resulting binary and the resulting library dependency is
31965 +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31966 +# library is relocated.
31967 +hardcode_direct_absolute=$hardcode_direct_absolute
31968 +
31969 +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31970 +# into the resulting binary.
31971 +hardcode_minus_L=$hardcode_minus_L
31972 +
31973 +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31974 +# into the resulting binary.
31975 +hardcode_shlibpath_var=$hardcode_shlibpath_var
31976 +
31977 +# Set to "yes" if building a shared library automatically hardcodes DIR
31978 +# into the library and all subsequent libraries and executables linked
31979 +# against it.
31980 +hardcode_automatic=$hardcode_automatic
31981 +
31982 +# Set to yes if linker adds runtime paths of dependent libraries
31983 +# to runtime path list.
31984 +inherit_rpath=$inherit_rpath
31985 +
31986 +# Whether libtool must link a program against all its dependency libraries.
31987 +link_all_deplibs=$link_all_deplibs
31988 +
31989 +# Fix the shell variable \$srcfile for the compiler.
31990 +fix_srcfile_path=$lt_fix_srcfile_path
31991 +
31992 +# Set to "yes" if exported symbols are required.
31993 +always_export_symbols=$always_export_symbols
31994 +
31995 +# The commands to list exported symbols.
31996 +export_symbols_cmds=$lt_export_symbols_cmds
31997 +
31998 +# Symbols that should not be listed in the preloaded symbols.
31999 +exclude_expsyms=$lt_exclude_expsyms
32000 +
32001 +# Symbols that must always be exported.
32002 +include_expsyms=$lt_include_expsyms
32003 +
32004 +# Commands necessary for linking programs (against libraries) with templates.
32005 +prelink_cmds=$lt_prelink_cmds
32006 +
32007 +# Specify filename containing input files.
32008 +file_list_spec=$lt_file_list_spec
32009 +
32010 +# How to hardcode a shared library path into an executable.
32011 +hardcode_action=$hardcode_action
32012 +
32013 +# ### END LIBTOOL CONFIG
32014 +
32015 +_LT_EOF
32016 +
32017 + case $host_os in
32018 + aix3*)
32019 + cat <<\_LT_EOF >> "$cfgfile"
32020 +# AIX sometimes has problems with the GCC collect2 program. For some
32021 +# reason, if we set the COLLECT_NAMES environment variable, the problems
32022 +# vanish in a puff of smoke.
32023 +if test "X${COLLECT_NAMES+set}" != Xset; then
32024 + COLLECT_NAMES=
32025 + export COLLECT_NAMES
32026 +fi
32027 +_LT_EOF
32028 + ;;
32029 + esac
32030 +
32031 +
32032 +ltmain="$ac_aux_dir/ltmain.sh"
32033 +
32034 +
32035 + # We use sed instead of cat because bash on DJGPP gets confused if
32036 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
32037 + # text mode, it properly converts lines to CR/LF. This bash problem
32038 + # is reportedly fixed, but why not run on old versions too?
32039 + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32040 + || (rm -f "$cfgfile"; exit 1)
32041 +
32042 + case $xsi_shell in
32043 + yes)
32044 + cat << \_LT_EOF >> "$cfgfile"
32045 +
32046 +# func_dirname file append nondir_replacement
32047 +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
32048 +# otherwise set result to NONDIR_REPLACEMENT.
32049 +func_dirname ()
32050 +{
32051 + case ${1} in
32052 + */*) func_dirname_result="${1%/*}${2}" ;;
32053 + * ) func_dirname_result="${3}" ;;
32054 + esac
32055 +}
32056 +
32057 +# func_basename file
32058 +func_basename ()
32059 +{
32060 + func_basename_result="${1##*/}"
32061 +}
32062 +
32063 +# func_dirname_and_basename file append nondir_replacement
32064 +# perform func_basename and func_dirname in a single function
32065 +# call:
32066 +# dirname: Compute the dirname of FILE. If nonempty,
32067 +# add APPEND to the result, otherwise set result
32068 +# to NONDIR_REPLACEMENT.
32069 +# value returned in "$func_dirname_result"
32070 +# basename: Compute filename of FILE.
32071 +# value retuned in "$func_basename_result"
32072 +# Implementation must be kept synchronized with func_dirname
32073 +# and func_basename. For efficiency, we do not delegate to
32074 +# those functions but instead duplicate the functionality here.
32075 +func_dirname_and_basename ()
32076 +{
32077 + case ${1} in
32078 + */*) func_dirname_result="${1%/*}${2}" ;;
32079 + * ) func_dirname_result="${3}" ;;
32080 + esac
32081 + func_basename_result="${1##*/}"
32082 +}
32083 +
32084 +# func_stripname prefix suffix name
32085 +# strip PREFIX and SUFFIX off of NAME.
32086 +# PREFIX and SUFFIX must not contain globbing or regex special
32087 +# characters, hashes, percent signs, but SUFFIX may contain a leading
32088 +# dot (in which case that matches only a dot).
32089 +func_stripname ()
32090 +{
32091 + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32092 + # positional parameters, so assign one to ordinary parameter first.
32093 + func_stripname_result=${3}
32094 + func_stripname_result=${func_stripname_result#"${1}"}
32095 + func_stripname_result=${func_stripname_result%"${2}"}
32096 +}
32097 +
32098 +# func_opt_split
32099 +func_opt_split ()
32100 +{
32101 + func_opt_split_opt=${1%%=*}
32102 + func_opt_split_arg=${1#*=}
32103 +}
32104 +
32105 +# func_lo2o object
32106 +func_lo2o ()
32107 +{
32108 + case ${1} in
32109 + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32110 + *) func_lo2o_result=${1} ;;
32111 + esac
32112 +}
32113 +
32114 +# func_xform libobj-or-source
32115 +func_xform ()
32116 +{
32117 + func_xform_result=${1%.*}.lo
32118 +}
32119 +
32120 +# func_arith arithmetic-term...
32121 +func_arith ()
32122 +{
32123 + func_arith_result=$(( $* ))
32124 +}
32125 +
32126 +# func_len string
32127 +# STRING may not start with a hyphen.
32128 +func_len ()
32129 +{
32130 + func_len_result=${#1}
32131 +}
32132 +
32133 +_LT_EOF
32134 + ;;
32135 + *) # Bourne compatible functions.
32136 + cat << \_LT_EOF >> "$cfgfile"
32137 +
32138 +# func_dirname file append nondir_replacement
32139 +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
32140 +# otherwise set result to NONDIR_REPLACEMENT.
32141 +func_dirname ()
32142 +{
32143 + # Extract subdirectory from the argument.
32144 + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
32145 + if test "X$func_dirname_result" = "X${1}"; then
32146 + func_dirname_result="${3}"
32147 + else
32148 + func_dirname_result="$func_dirname_result${2}"
32149 + fi
32150 +}
32151 +
32152 +# func_basename file
32153 +func_basename ()
32154 +{
32155 + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
32156 +}
32157 +
32158 +
32159 +# func_stripname prefix suffix name
32160 +# strip PREFIX and SUFFIX off of NAME.
32161 +# PREFIX and SUFFIX must not contain globbing or regex special
32162 +# characters, hashes, percent signs, but SUFFIX may contain a leading
32163 +# dot (in which case that matches only a dot).
32164 +# func_strip_suffix prefix name
32165 +func_stripname ()
32166 +{
32167 + case ${2} in
32168 + .*) func_stripname_result=`$ECHO "X${3}" \
32169 + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
32170 + *) func_stripname_result=`$ECHO "X${3}" \
32171 + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
32172 + esac
32173 +}
32174 +
32175 +# sed scripts:
32176 +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32177 +my_sed_long_arg='1s/^-[^=]*=//'
32178 +
32179 +# func_opt_split
32180 +func_opt_split ()
32181 +{
32182 + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
32183 + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32184 +}
32185 +
32186 +# func_lo2o object
32187 +func_lo2o ()
32188 +{
32189 + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32190 +}
32191 +
32192 +# func_xform libobj-or-source
32193 +func_xform ()
32194 +{
32195 + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
32196 +}
32197 +
32198 +# func_arith arithmetic-term...
32199 +func_arith ()
32200 +{
32201 + func_arith_result=`expr "$@"`
32202 +}
32203 +
32204 +# func_len string
32205 +# STRING may not start with a hyphen.
32206 +func_len ()
32207 +{
32208 + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32209 +}
32210 +
32211 +_LT_EOF
32212 +esac
32213 +
32214 +case $lt_shell_append in
32215 + yes)
32216 + cat << \_LT_EOF >> "$cfgfile"
32217 +
32218 +# func_append var value
32219 +# Append VALUE to the end of shell variable VAR.
32220 +func_append ()
32221 +{
32222 + eval "$1+=\$2"
32223 +}
32224 +_LT_EOF
32225 + ;;
32226 + *)
32227 + cat << \_LT_EOF >> "$cfgfile"
32228 +
32229 +# func_append var value
32230 +# Append VALUE to the end of shell variable VAR.
32231 +func_append ()
32232 +{
32233 + eval "$1=\$$1\$2"
32234 +}
32235 +
32236 +_LT_EOF
32237 + ;;
32238 + esac
32239 +
32240 +
32241 + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32242 + || (rm -f "$cfgfile"; exit 1)
32243 +
32244 + mv -f "$cfgfile" "$ofile" ||
32245 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32246 + chmod +x "$ofile"
32247 +
32248 + ;;
32249 +
32250 + esac
32251 +done # for ac_tag
32252 +
32253 +
32254 +{ (exit 0); exit 0; }
32255 +_ACEOF
32256 +chmod +x $CONFIG_STATUS
32257 +ac_clean_files=$ac_clean_files_save
32258 +
32259 +test $ac_write_fail = 0 ||
32260 + { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
32261 +$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
32262 + { (exit 1); exit 1; }; }
32263 +
32264 +
32265 +# configure is writing to config.log, and then calls config.status.
32266 +# config.status does its own redirection, appending to config.log.
32267 +# Unfortunately, on DOS this fails, as config.log is still kept open
32268 +# by configure, so config.status won't be able to write to it; its
32269 +# output is simply discarded. So we exec the FD to /dev/null,
32270 +# effectively closing config.log, so it can be properly (re)opened and
32271 +# appended to by config.status. When coming back to configure, we
32272 +# need to make the FD available again.
32273 +if test "$no_create" != yes; then
32274 + ac_cs_success=:
32275 + ac_config_status_args=
32276 + test "$silent" = yes &&
32277 + ac_config_status_args="$ac_config_status_args --quiet"
32278 + exec 5>/dev/null
32279 + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32280 + exec 5>>config.log
32281 + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32282 + # would make configure fail if this is the last instruction.
32283 + $ac_cs_success || { (exit 1); exit 1; }
32284 +fi
32285 +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32286 + { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32287 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32288 +fi
32289 +
32290 diff --git a/libltdl/configure.ac b/libltdl/configure.ac
32291 new file mode 100644
32292 index 0000000..6403c68
32293 --- /dev/null
32294 +++ b/libltdl/configure.ac
32295 @@ -0,0 +1,75 @@
32296 +# Process this file with autoconf to create configure. -*- autoconf -*-
32297 +#
32298 +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
32299 +# Written by Gary V. Vaughan, 2004
32300 +#
32301 +# NOTE: The canonical source of this file is maintained with the
32302 +# GNU Libtool package. Report bugs to [email protected].
32303 +#
32304 +# GNU Libltdl is free software; you can redistribute it and/or
32305 +# modify it under the terms of the GNU Lesser General Public
32306 +# License as published by the Free Software Foundation; either
32307 +# version 2 of the License, or (at your option) any later version.
32308 +#
32309 +# As a special exception to the GNU Lesser General Public License,
32310 +# if you distribute this file as part of a program or library that
32311 +# is built using GNU libtool, you may include this file under the
32312 +# same distribution terms that you use for the rest of that program.
32313 +#
32314 +# GNU Libltdl is distributed in the hope that it will be useful,
32315 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
32316 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32317 +# GNU Lesser General Public License for more details.
32318 +#
32319 +# You should have received a copy of the GNU LesserGeneral Public
32320 +# License along with GNU Libltdl; see the file COPYING.LIB. If not, a
32321 +# copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
32322 +# or obtained by writing to the Free Software Foundation, Inc.,
32323 +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32324 +####
32325 +
32326 +# This configure.ac is not used at all by the libtool bootstrap, but
32327 +# is copied to the ltdl subdirectory if you libtoolize --ltdl your own
32328 +# project. Adding LT_WITH_LTDL to your project configure.ac will then
32329 +# configure this directory if your user doesn't want to use the installed
32330 +# libltdl.
32331 +
32332 +AC_PREREQ(2.59)dnl We use AS_HELP_STRING
32333 +
32334 +
32335 +## ------------------------ ##
32336 +## Autoconf initialisation. ##
32337 +## ------------------------ ##
32338 +AC_INIT([libltdl], [2.2.6b], [[email protected]])
32339 +AC_CONFIG_HEADERS([config.h:config-h.in])
32340 +AC_CONFIG_SRCDIR([ltdl.c])
32341 +AC_CONFIG_AUX_DIR([config])
32342 +AC_CONFIG_MACRO_DIR([m4])
32343 +LT_CONFIG_LTDL_DIR([.]) # I am me!
32344 +
32345 +
32346 +## ------------------------ ##
32347 +## Automake Initialisation. ##
32348 +## ------------------------ ##
32349 +
32350 +AM_INIT_AUTOMAKE([gnu])
32351 +
32352 +
32353 +## ------------------------------- ##
32354 +## Libtool specific configuration. ##
32355 +## ------------------------------- ##
32356 +pkgdatadir='${datadir}'"/${PACKAGE}"
32357 +
32358 +
32359 +## ----------------------- ##
32360 +## Libtool initialisation. ##
32361 +## ----------------------- ##
32362 +LT_INIT([dlopen win32-dll])
32363 +_LTDL_SETUP
32364 +
32365 +
32366 +## -------- ##
32367 +## Outputs. ##
32368 +## -------- ##
32369 +AC_CONFIG_FILES([Makefile])
32370 +AC_OUTPUT
32371 diff --git a/libltdl/libltdl/lt__alloc.h b/libltdl/libltdl/lt__alloc.h
32372 new file mode 100644
32373 index 0000000..1ceddf0
32374 --- /dev/null
32375 +++ b/libltdl/libltdl/lt__alloc.h
32376 @@ -0,0 +1,58 @@
32377 +/* lt__alloc.h -- internal memory management interface
32378 +
32379 + Copyright (C) 2004 Free Software Foundation, Inc.
32380 + Written by Gary V. Vaughan, 2004
32381 +
32382 + NOTE: The canonical source of this file is maintained with the
32383 + GNU Libtool package. Report bugs to [email protected].
32384 +
32385 +GNU Libltdl is free software; you can redistribute it and/or
32386 +modify it under the terms of the GNU Lesser General Public
32387 +License as published by the Free Software Foundation; either
32388 +version 2 of the License, or (at your option) any later version.
32389 +
32390 +As a special exception to the GNU Lesser General Public License,
32391 +if you distribute this file as part of a program or library that
32392 +is built using GNU Libtool, you may include this file under the
32393 +same distribution terms that you use for the rest of that program.
32394 +
32395 +GNU Libltdl is distributed in the hope that it will be useful,
32396 +but WITHOUT ANY WARRANTY; without even the implied warranty of
32397 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32398 +GNU Lesser General Public License for more details.
32399 +
32400 +You should have received a copy of the GNU Lesser General Public
32401 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
32402 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
32403 +or obtained by writing to the Free Software Foundation, Inc.,
32404 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
32405 +*/
32406 +
32407 +#if !defined(LT__ALLOC_H)
32408 +#define LT__ALLOC_H 1
32409 +
32410 +#include "lt_system.h"
32411 +
32412 +LT_BEGIN_C_DECLS
32413 +
32414 +#define MALLOC(tp, n) (tp*) lt__malloc((n) * sizeof(tp))
32415 +#define REALLOC(tp, mem, n) (tp*) lt__realloc((mem), (n) * sizeof(tp))
32416 +#define FREE(mem) LT_STMT_START { \
32417 + if (mem) { free ((void *)mem); mem = NULL; } } LT_STMT_END
32418 +#define MEMREASSIGN(p, q) LT_STMT_START { \
32419 + if ((p) != (q)) { if (p) free (p); (p) = (q); (q) = 0; } \
32420 + } LT_STMT_END
32421 +
32422 +/* If set, this function is called when memory allocation has failed. */
32423 +LT_SCOPE void (*lt__alloc_die) (void);
32424 +
32425 +LT_SCOPE void *lt__malloc (size_t n);
32426 +LT_SCOPE void *lt__zalloc (size_t n);
32427 +LT_SCOPE void *lt__realloc (void *mem, size_t n);
32428 +LT_SCOPE void *lt__memdup (void const *mem, size_t n);
32429 +
32430 +LT_SCOPE char *lt__strdup (const char *string);
32431 +
32432 +LT_END_C_DECLS
32433 +
32434 +#endif /*!defined(LT__ALLOC_H)*/
32435 diff --git a/libltdl/libltdl/lt__dirent.h b/libltdl/libltdl/lt__dirent.h
32436 new file mode 100644
32437 index 0000000..4f24f82
32438 --- /dev/null
32439 +++ b/libltdl/libltdl/lt__dirent.h
32440 @@ -0,0 +1,87 @@
32441 +/* lt__dirent.h -- internal directory entry scanning interface
32442 +
32443 + Copyright (C) 2001, 2004, 2006 Free Software Foundation, Inc.
32444 + Written by Bob Friesenhahn, 2001
32445 +
32446 + NOTE: The canonical source of this file is maintained with the
32447 + GNU Libtool package. Report bugs to [email protected].
32448 +
32449 +GNU Libltdl is free software; you can redistribute it and/or
32450 +modify it under the terms of the GNU Lesser General Public
32451 +License as published by the Free Software Foundation; either
32452 +version 2 of the License, or (at your option) any later version.
32453 +
32454 +As a special exception to the GNU Lesser General Public License,
32455 +if you distribute this file as part of a program or library that
32456 +is built using GNU Libtool, you may include this file under the
32457 +same distribution terms that you use for the rest of that program.
32458 +
32459 +GNU Libltdl is distributed in the hope that it will be useful,
32460 +but WITHOUT ANY WARRANTY; without even the implied warranty of
32461 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32462 +GNU Lesser General Public License for more details.
32463 +
32464 +You should have received a copy of the GNU Lesser General Public
32465 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
32466 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
32467 +or obtained by writing to the Free Software Foundation, Inc.,
32468 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
32469 +*/
32470 +
32471 +#if !defined(LT__DIRENT_H)
32472 +#define LT__DIRENT_H 1
32473 +
32474 +#if defined(LT_CONFIG_H)
32475 +# include LT_CONFIG_H
32476 +#else
32477 +# include <config.h>
32478 +#endif
32479 +
32480 +#include "lt_system.h"
32481 +
32482 +#ifdef HAVE_DIRENT_H
32483 +/* We have a fully operational dirent subsystem. */
32484 +# include <dirent.h>
32485 +# define D_NAMLEN(dirent) (strlen((dirent)->d_name))
32486 +
32487 +#elif defined __WINDOWS__
32488 +/* Use some wrapper code to emulate dirent on windows.. */
32489 +# define WINDOWS_DIRENT_EMULATION 1
32490 +
32491 +# include <windows.h>
32492 +
32493 +# define D_NAMLEN(dirent) (strlen((dirent)->d_name))
32494 +# define dirent lt__dirent
32495 +# define DIR lt__DIR
32496 +# define opendir lt__opendir
32497 +# define readdir lt__readdir
32498 +# define closedir lt__closedir
32499 +
32500 +LT_BEGIN_C_DECLS
32501 +
32502 +struct dirent
32503 +{
32504 + char d_name[LT_FILENAME_MAX];
32505 + int d_namlen;
32506 +};
32507 +
32508 +typedef struct
32509 +{
32510 + HANDLE hSearch;
32511 + WIN32_FIND_DATA Win32FindData;
32512 + BOOL firsttime;
32513 + struct dirent file_info;
32514 +} DIR;
32515 +
32516 +
32517 +LT_SCOPE DIR * opendir (const char *path);
32518 +LT_SCOPE struct dirent *readdir (DIR *entry);
32519 +LT_SCOPE void closedir (DIR *entry);
32520 +
32521 +LT_END_C_DECLS
32522 +
32523 +#else /* !defined(__WINDOWS__)*/
32524 +ERROR - cannot find dirent
32525 +#endif /*!defined(__WINDOWS__)*/
32526 +
32527 +#endif /*!defined(LT__DIRENT_H)*/
32528 diff --git a/libltdl/libltdl/lt__glibc.h b/libltdl/libltdl/lt__glibc.h
32529 new file mode 100644
32530 index 0000000..f284773
32531 --- /dev/null
32532 +++ b/libltdl/libltdl/lt__glibc.h
32533 @@ -0,0 +1,83 @@
32534 +/* lt__glibc.h -- support for non glibc environments
32535 +
32536 + Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
32537 + Written by Gary V. Vaughan, 2004
32538 +
32539 + NOTE: The canonical source of this file is maintained with the
32540 + GNU Libtool package. Report bugs to [email protected].
32541 +
32542 +GNU Libltdl is free software; you can redistribute it and/or
32543 +modify it under the terms of the GNU Lesser General Public
32544 +License as published by the Free Software Foundation; either
32545 +version 2 of the License, or (at your option) any later version.
32546 +
32547 +As a special exception to the GNU Lesser General Public License,
32548 +if you distribute this file as part of a program or library that
32549 +is built using GNU Libtool, you may include this file under the
32550 +same distribution terms that you use for the rest of that program.
32551 +
32552 +GNU Libltdl is distributed in the hope that it will be useful,
32553 +but WITHOUT ANY WARRANTY; without even the implied warranty of
32554 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32555 +GNU Lesser General Public License for more details.
32556 +
32557 +You should have received a copy of the GNU Lesser General Public
32558 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
32559 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
32560 +or obtained by writing to the Free Software Foundation, Inc.,
32561 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
32562 +*/
32563 +
32564 +#if !defined(LT__GLIBC_H)
32565 +#define LT__GLIBC_H 1
32566 +
32567 +#if defined(LT_CONFIG_H)
32568 +# include LT_CONFIG_H
32569 +#else
32570 +# include <config.h>
32571 +#endif
32572 +
32573 +#if !defined(HAVE_ARGZ_H) || !defined(HAVE_WORKING_ARGZ)
32574 +/* Redefine any glibc symbols we reimplement to import the
32575 + implementations into our lt__ namespace so we don't ever
32576 + clash with the system library if our clients use argz_*
32577 + from there in addition to libltdl. */
32578 +# undef argz_append
32579 +# define argz_append lt__argz_append
32580 +# undef argz_create_sep
32581 +# define argz_create_sep lt__argz_create_sep
32582 +# undef argz_insert
32583 +# define argz_insert lt__argz_insert
32584 +# undef argz_next
32585 +# define argz_next lt__argz_next
32586 +# undef argz_stringify
32587 +# define argz_stringify lt__argz_stringify
32588 +#endif
32589 +
32590 +#ifdef __cplusplus
32591 +extern "C" {
32592 +#endif
32593 +
32594 +#include <argz.h>
32595 +
32596 +#ifdef __cplusplus
32597 +}
32598 +#endif
32599 +
32600 +# define slist_concat lt__slist_concat
32601 +# define slist_cons lt__slist_cons
32602 +# define slist_delete lt__slist_delete
32603 +# define slist_remove lt__slist_remove
32604 +# define slist_reverse lt__slist_reverse
32605 +# define slist_sort lt__slist_sort
32606 +# define slist_tail lt__slist_tail
32607 +# define slist_nth lt__slist_nth
32608 +# define slist_find lt__slist_find
32609 +# define slist_length lt__slist_length
32610 +# define slist_foreach lt__slist_foreach
32611 +# define slist_box lt__slist_box
32612 +# define slist_unbox lt__slist_unbox
32613 +
32614 +#include <slist.h>
32615 +
32616 +#endif /*!defined(LT__GLIBC_H)*/
32617 diff --git a/libltdl/libltdl/lt__private.h b/libltdl/libltdl/lt__private.h
32618 new file mode 100644
32619 index 0000000..f4c4a3d
32620 --- /dev/null
32621 +++ b/libltdl/libltdl/lt__private.h
32622 @@ -0,0 +1,149 @@
32623 +/* lt__private.h -- internal apis for libltdl
32624 +
32625 + Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
32626 + Written by Gary V. Vaughan, 2004
32627 +
32628 + NOTE: The canonical source of this file is maintained with the
32629 + GNU Libtool package. Report bugs to [email protected].
32630 +
32631 +This library is free software; you can redistribute it and/or
32632 +modify it under the terms of the GNU Lesser General Public
32633 +License as published by the Free Software Foundation; either
32634 +version 2 of the License, or (at your option) any later version.
32635 +
32636 +As a special exception to the GNU Lesser General Public License,
32637 +if you distribute this file as part of a program or library that
32638 +is built using GNU libtool, you may include this file under the
32639 +same distribution terms that you use for the rest of that program.
32640 +
32641 +GNU Libltdl is distributed in the hope that it will be useful,
32642 +but WITHOUT ANY WARRANTY; without even the implied warranty of
32643 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32644 +GNU Lesser General Public License for more details.
32645 +
32646 +You should have received a copy of the GNU Lesser General Public
32647 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
32648 +copy con be downloaded from http://www.gnu.org/licenses/lgpl.html,
32649 +or obtained by writing to the Free Software Foundation, Inc.,
32650 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
32651 +*/
32652 +
32653 +#if !defined(LT__PRIVATE_H)
32654 +#define LT__PRIVATE_H 1
32655 +
32656 +#if defined(LT_CONFIG_H)
32657 +# include LT_CONFIG_H
32658 +#else
32659 +# include <config.h>
32660 +#endif
32661 +
32662 +#include <stdio.h>
32663 +#include <ctype.h>
32664 +#include <assert.h>
32665 +#include <errno.h>
32666 +#include <string.h>
32667 +
32668 +#if defined(HAVE_UNISTD_H)
32669 +# include <unistd.h>
32670 +#endif
32671 +
32672 +/* Import internal interfaces... */
32673 +#include "lt__alloc.h"
32674 +#include "lt__dirent.h"
32675 +#include "lt__strl.h"
32676 +#include "lt__glibc.h"
32677 +
32678 +/* ...and all exported interfaces. */
32679 +#include "ltdl.h"
32680 +
32681 +#if defined(WITH_DMALLOC)
32682 +# include <dmalloc.h>
32683 +#endif
32684 +
32685 +/* DLL building support on win32 hosts; mostly to workaround their
32686 + ridiculous implementation of data symbol exporting. */
32687 +#ifndef LT_GLOBAL_DATA
32688 +# if defined(__WINDOWS__) || defined(__CYGWIN__)
32689 +# if defined(DLL_EXPORT) /* defined by libtool (if required) */
32690 +# define LT_GLOBAL_DATA __declspec(dllexport)
32691 +# endif
32692 +# endif
32693 +# ifndef LT_GLOBAL_DATA
32694 +# define LT_GLOBAL_DATA /* static linking or !__WINDOWS__ */
32695 +# endif
32696 +#endif
32697 +
32698 +#ifndef __attribute__
32699 +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
32700 +# define __attribute__(x)
32701 +# endif
32702 +#endif
32703 +
32704 +#ifndef LT__UNUSED
32705 +# define LT__UNUSED __attribute__ ((__unused__))
32706 +#endif
32707 +
32708 +
32709 +LT_BEGIN_C_DECLS
32710 +
32711 +#if !defined(errno)
32712 +extern int errno;
32713 +#endif
32714 +
32715 +LT_SCOPE void lt__alloc_die_callback (void);
32716 +
32717 +
32718 +/* For readability: */
32719 +#define strneq(s1, s2) (strcmp((s1), (s2)) != 0)
32720 +#define streq(s1, s2) (!strcmp((s1), (s2)))
32721 +
32722 +
32723 +
32724 +/* --- OPAQUE STRUCTURES DECLARED IN LTDL.H --- */
32725 +
32726 +/* This type is used for the array of interface data sets in each handler. */
32727 +typedef struct {
32728 + lt_dlinterface_id key;
32729 + void * data;
32730 +} lt_interface_data;
32731 +
32732 +struct lt__handle {
32733 + lt_dlhandle next;
32734 + const lt_dlvtable * vtable; /* dlopening interface */
32735 + lt_dlinfo info; /* user visible fields */
32736 + int depcount; /* number of dependencies */
32737 + lt_dlhandle * deplibs; /* dependencies */
32738 + lt_module module; /* system module handle */
32739 + void * system; /* system specific data */
32740 + lt_interface_data * interface_data; /* per caller associated data */
32741 + int flags; /* various boolean stats */
32742 +};
32743 +
32744 +struct lt__advise {
32745 + unsigned int try_ext:1; /* try system library extensions. */
32746 + unsigned int is_resident:1; /* module can't be unloaded. */
32747 + unsigned int is_symglobal:1; /* module symbols can satisfy
32748 + subsequently loaded modules. */
32749 + unsigned int is_symlocal:1; /* module symbols are only available
32750 + locally. */
32751 + unsigned int try_preload_only:1;/* only preloaded modules will be tried. */
32752 +};
32753 +
32754 +/* --- ERROR HANDLING --- */
32755 +
32756 +/* Extract the diagnostic strings from the error table macro in the same
32757 + order as the enumerated indices in lt_error.h. */
32758 +
32759 +#define LT__STRERROR(name) lt__error_string(LT_CONC(LT_ERROR_,name))
32760 +
32761 +#define LT__GETERROR(lvalue) (lvalue) = lt__get_last_error()
32762 +#define LT__SETERRORSTR(errormsg) lt__set_last_error(errormsg)
32763 +#define LT__SETERROR(errorcode) LT__SETERRORSTR(LT__STRERROR(errorcode))
32764 +
32765 +LT_SCOPE const char *lt__error_string (int errorcode);
32766 +LT_SCOPE const char *lt__get_last_error (void);
32767 +LT_SCOPE const char *lt__set_last_error (const char *errormsg);
32768 +
32769 +LT_END_C_DECLS
32770 +
32771 +#endif /*!defined(LT__PRIVATE_H)*/
32772 diff --git a/libltdl/libltdl/lt__strl.h b/libltdl/libltdl/lt__strl.h
32773 new file mode 100644
32774 index 0000000..5799dc8
32775 --- /dev/null
32776 +++ b/libltdl/libltdl/lt__strl.h
32777 @@ -0,0 +1,53 @@
32778 +/* lt__strl.h -- size-bounded string copying and concatenation
32779 +
32780 + Copyright (C) 2004, 2006 Free Software Foundation, Inc.
32781 + Written by Bob Friesenhahn, 2004
32782 +
32783 + NOTE: The canonical source of this file is maintained with the
32784 + GNU Libtool package. Report bugs to [email protected].
32785 +
32786 +GNU Libltdl is free software; you can redistribute it and/or
32787 +modify it under the terms of the GNU Lesser General Public
32788 +License as published by the Free Software Foundation; either
32789 +version 2 of the License, or (at your option) any later version.
32790 +
32791 +As a special exception to the GNU Lesser General Public License,
32792 +if you distribute this file as part of a program or library that
32793 +is built using GNU Libtool, you may include this file under the
32794 +same distribution terms that you use for the rest of that program.
32795 +
32796 +GNU Libltdl is distributed in the hope that it will be useful,
32797 +but WITHOUT ANY WARRANTY; without even the implied warranty of
32798 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32799 +GNU Lesser General Public License for more details.
32800 +
32801 +You should have received a copy of the GNU Lesser General Public
32802 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
32803 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
32804 +or obtained by writing to the Free Software Foundation, Inc.,
32805 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32806 +*/
32807 +
32808 +#if !defined(LT__STRL_H)
32809 +#define LT__STRL_H 1
32810 +
32811 +#if defined(LT_CONFIG_H)
32812 +# include LT_CONFIG_H
32813 +#else
32814 +# include <config.h>
32815 +#endif
32816 +
32817 +#include <string.h>
32818 +#include "lt_system.h"
32819 +
32820 +#if !defined(HAVE_STRLCAT)
32821 +# define strlcat(dst,src,dstsize) lt_strlcat(dst,src,dstsize)
32822 +LT_SCOPE size_t lt_strlcat(char *dst, const char *src, const size_t dstsize);
32823 +#endif /* !defined(HAVE_STRLCAT) */
32824 +
32825 +#if !defined(HAVE_STRLCPY)
32826 +# define strlcpy(dst,src,dstsize) lt_strlcpy(dst,src,dstsize)
32827 +LT_SCOPE size_t lt_strlcpy(char *dst, const char *src, const size_t dstsize);
32828 +#endif /* !defined(HAVE_STRLCPY) */
32829 +
32830 +#endif /*!defined(LT__STRL_H)*/
32831 diff --git a/libltdl/libltdl/lt_dlloader.h b/libltdl/libltdl/lt_dlloader.h
32832 new file mode 100644
32833 index 0000000..ae131fa
32834 --- /dev/null
32835 +++ b/libltdl/libltdl/lt_dlloader.h
32836 @@ -0,0 +1,90 @@
32837 +/* lt_dlloader.h -- dynamic library loader interface
32838 +
32839 + Copyright (C) 2004, 2007, 2008 Free Software Foundation, Inc.
32840 + Written by Gary V. Vaughan, 2004
32841 +
32842 + NOTE: The canonical source of this file is maintained with the
32843 + GNU Libtool package. Report bugs to [email protected].
32844 +
32845 +GNU Libltdl is free software; you can redistribute it and/or
32846 +modify it under the terms of the GNU Lesser General Public
32847 +License as published by the Free Software Foundation; either
32848 +version 2 of the License, or (at your option) any later version.
32849 +
32850 +As a special exception to the GNU Lesser General Public License,
32851 +if you distribute this file as part of a program or library that
32852 +is built using GNU Libtool, you may include this file under the
32853 +same distribution terms that you use for the rest of that program.
32854 +
32855 +GNU Libltdl is distributed in the hope that it will be useful,
32856 +but WITHOUT ANY WARRANTY; without even the implied warranty of
32857 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32858 +GNU Lesser General Public License for more details.
32859 +
32860 +You should have received a copy of the GNU Lesser General Public
32861 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
32862 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
32863 +or obtained by writing to the Free Software Foundation, Inc.,
32864 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32865 +*/
32866 +
32867 +#if !defined(LT_DLLOADER_H)
32868 +#define LT_DLLOADER_H 1
32869 +
32870 +#include <libltdl/lt_system.h>
32871 +
32872 +LT_BEGIN_C_DECLS
32873 +
32874 +typedef void * lt_dlloader;
32875 +typedef void * lt_module;
32876 +typedef void * lt_user_data;
32877 +typedef struct lt__advise * lt_dladvise;
32878 +
32879 +/* Function pointer types for module loader vtable entries: */
32880 +typedef lt_module lt_module_open (lt_user_data data,
32881 + const char *filename,
32882 + lt_dladvise advise);
32883 +typedef int lt_module_close (lt_user_data data,
32884 + lt_module module);
32885 +typedef void * lt_find_sym (lt_user_data data, lt_module module,
32886 + const char *symbolname);
32887 +typedef int lt_dlloader_init (lt_user_data data);
32888 +typedef int lt_dlloader_exit (lt_user_data data);
32889 +
32890 +/* Default priority is LT_DLLOADER_PREPEND if none is explicitly given. */
32891 +typedef enum {
32892 + LT_DLLOADER_PREPEND = 0, LT_DLLOADER_APPEND
32893 +} lt_dlloader_priority;
32894 +
32895 +/* This structure defines a module loader, as populated by the get_vtable
32896 + entry point of each loader. */
32897 +typedef struct {
32898 + const char * name;
32899 + const char * sym_prefix;
32900 + lt_module_open * module_open;
32901 + lt_module_close * module_close;
32902 + lt_find_sym * find_sym;
32903 + lt_dlloader_init * dlloader_init;
32904 + lt_dlloader_exit * dlloader_exit;
32905 + lt_user_data dlloader_data;
32906 + lt_dlloader_priority priority;
32907 +} lt_dlvtable;
32908 +
32909 +LT_SCOPE int lt_dlloader_add (const lt_dlvtable *vtable);
32910 +LT_SCOPE lt_dlloader lt_dlloader_next (const lt_dlloader loader);
32911 +
32912 +LT_SCOPE lt_dlvtable * lt_dlloader_remove (char *name);
32913 +LT_SCOPE const lt_dlvtable *lt_dlloader_find (char *name);
32914 +LT_SCOPE const lt_dlvtable *lt_dlloader_get (lt_dlloader loader);
32915 +
32916 +
32917 +/* Type of a function to get a loader's vtable: */
32918 +typedef const lt_dlvtable *lt_get_vtable (lt_user_data data);
32919 +
32920 +#ifdef LT_DEBUG_LOADERS
32921 +LT_SCOPE void lt_dlloader_dump (void);
32922 +#endif
32923 +
32924 +LT_END_C_DECLS
32925 +
32926 +#endif /*!defined(LT_DLLOADER_H)*/
32927 diff --git a/libltdl/libltdl/lt_error.h b/libltdl/libltdl/lt_error.h
32928 new file mode 100644
32929 index 0000000..e789b3a
32930 --- /dev/null
32931 +++ b/libltdl/libltdl/lt_error.h
32932 @@ -0,0 +1,85 @@
32933 +/* lt_error.h -- error propogation interface
32934 +
32935 + Copyright (C) 1999, 2000, 2001, 2004, 2007 Free Software Foundation, Inc.
32936 + Written by Thomas Tanner, 1999
32937 +
32938 + NOTE: The canonical source of this file is maintained with the
32939 + GNU Libtool package. Report bugs to [email protected].
32940 +
32941 +GNU Libltdl is free software; you can redistribute it and/or
32942 +modify it under the terms of the GNU Lesser General Public
32943 +License as published by the Free Software Foundation; either
32944 +version 2 of the License, or (at your option) any later version.
32945 +
32946 +As a special exception to the GNU Lesser General Public License,
32947 +if you distribute this file as part of a program or library that
32948 +is built using GNU Libtool, you may include this file under the
32949 +same distribution terms that you use for the rest of that program.
32950 +
32951 +GNU Libltdl is distributed in the hope that it will be useful,
32952 +but WITHOUT ANY WARRANTY; without even the implied warranty of
32953 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32954 +GNU Lesser General Public License for more details.
32955 +
32956 +You should have received a copy of the GNU Lesser General Public
32957 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
32958 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
32959 +or obtained by writing to the Free Software Foundation, Inc.,
32960 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32961 +*/
32962 +
32963 +/* Only include this header file once. */
32964 +#if !defined(LT_ERROR_H)
32965 +#define LT_ERROR_H 1
32966 +
32967 +#include <libltdl/lt_system.h>
32968 +
32969 +LT_BEGIN_C_DECLS
32970 +
32971 +/* Defining error strings alongside their symbolic names in a macro in
32972 + this way allows us to expand the macro in different contexts with
32973 + confidence that the enumeration of symbolic names will map correctly
32974 + onto the table of error strings. \0 is appended to the strings to
32975 + expilicitely initialize the string terminator. */
32976 +#define lt_dlerror_table \
32977 + LT_ERROR(UNKNOWN, "unknown error\0") \
32978 + LT_ERROR(DLOPEN_NOT_SUPPORTED, "dlopen support not available\0") \
32979 + LT_ERROR(INVALID_LOADER, "invalid loader\0") \
32980 + LT_ERROR(INIT_LOADER, "loader initialization failed\0") \
32981 + LT_ERROR(REMOVE_LOADER, "loader removal failed\0") \
32982 + LT_ERROR(FILE_NOT_FOUND, "file not found\0") \
32983 + LT_ERROR(DEPLIB_NOT_FOUND, "dependency library not found\0") \
32984 + LT_ERROR(NO_SYMBOLS, "no symbols defined\0") \
32985 + LT_ERROR(CANNOT_OPEN, "can't open the module\0") \
32986 + LT_ERROR(CANNOT_CLOSE, "can't close the module\0") \
32987 + LT_ERROR(SYMBOL_NOT_FOUND, "symbol not found\0") \
32988 + LT_ERROR(NO_MEMORY, "not enough memory\0") \
32989 + LT_ERROR(INVALID_HANDLE, "invalid module handle\0") \
32990 + LT_ERROR(BUFFER_OVERFLOW, "internal buffer overflow\0") \
32991 + LT_ERROR(INVALID_ERRORCODE, "invalid errorcode\0") \
32992 + LT_ERROR(SHUTDOWN, "library already shutdown\0") \
32993 + LT_ERROR(CLOSE_RESIDENT_MODULE, "can't close resident module\0") \
32994 + LT_ERROR(INVALID_MUTEX_ARGS, "internal error (code withdrawn)\0")\
32995 + LT_ERROR(INVALID_POSITION, "invalid search path insert position\0")\
32996 + LT_ERROR(CONFLICTING_FLAGS, "symbol visibility can be global or local\0")
32997 +
32998 +/* Enumerate the symbolic error names. */
32999 +enum {
33000 +#define LT_ERROR(name, diagnostic) LT_CONC(LT_ERROR_, name),
33001 + lt_dlerror_table
33002 +#undef LT_ERROR
33003 +
33004 + LT_ERROR_MAX
33005 +};
33006 +
33007 +/* Should be max of the error string lengths above (plus one for C++) */
33008 +#define LT_ERROR_LEN_MAX (41)
33009 +
33010 +/* These functions are only useful from inside custom module loaders. */
33011 +LT_SCOPE int lt_dladderror (const char *diagnostic);
33012 +LT_SCOPE int lt_dlseterror (int errorcode);
33013 +
33014 +
33015 +LT_END_C_DECLS
33016 +
33017 +#endif /*!defined(LT_ERROR_H)*/
33018 diff --git a/libltdl/libltdl/lt_system.h b/libltdl/libltdl/lt_system.h
33019 new file mode 100644
33020 index 0000000..dab2ab6
33021 --- /dev/null
33022 +++ b/libltdl/libltdl/lt_system.h
33023 @@ -0,0 +1,154 @@
33024 +/* lt_system.h -- system portability abstraction layer
33025 +
33026 + Copyright (C) 2004, 2007 Free Software Foundation, Inc.
33027 + Written by Gary V. Vaughan, 2004
33028 +
33029 + NOTE: The canonical source of this file is maintained with the
33030 + GNU Libtool package. Report bugs to [email protected].
33031 +
33032 +GNU Libltdl is free software; you can redistribute it and/or
33033 +modify it under the terms of the GNU Lesser General Public
33034 +License as published by the Free Software Foundation; either
33035 +version 2 of the License, or (at your option) any later version.
33036 +
33037 +As a special exception to the GNU Lesser General Public License,
33038 +if you distribute this file as part of a program or library that
33039 +is built using GNU Libtool, you may include this file under the
33040 +same distribution terms that you use for the rest of that program.
33041 +
33042 +GNU Libltdl is distributed in the hope that it will be useful,
33043 +but WITHOUT ANY WARRANTY; without even the implied warranty of
33044 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33045 +GNU Lesser General Public License for more details.
33046 +
33047 +You should have received a copy of the GNU Lesser General Public
33048 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
33049 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
33050 +or obtained by writing to the Free Software Foundation, Inc.,
33051 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33052 +*/
33053 +
33054 +#if !defined(LT_SYSTEM_H)
33055 +#define LT_SYSTEM_H 1
33056 +
33057 +#include <stddef.h>
33058 +#include <stdlib.h>
33059 +#include <sys/types.h>
33060 +
33061 +/* Some systems do not define EXIT_*, even with STDC_HEADERS. */
33062 +#if !defined(EXIT_SUCCESS)
33063 +# define EXIT_SUCCESS 0
33064 +#endif
33065 +#if !defined(EXIT_FAILURE)
33066 +# define EXIT_FAILURE 1
33067 +#endif
33068 +
33069 +/* Just pick a big number... */
33070 +#define LT_FILENAME_MAX 2048
33071 +
33072 +
33073 +/* Saves on those hard to debug '\0' typos.... */
33074 +#define LT_EOS_CHAR '\0'
33075 +
33076 +/* LTDL_BEGIN_C_DECLS should be used at the beginning of your declarations,
33077 + so that C++ compilers don't mangle their names. Use LTDL_END_C_DECLS at
33078 + the end of C declarations. */
33079 +#if defined(__cplusplus)
33080 +# define LT_BEGIN_C_DECLS extern "C" {
33081 +# define LT_END_C_DECLS }
33082 +#else
33083 +# define LT_BEGIN_C_DECLS /* empty */
33084 +# define LT_END_C_DECLS /* empty */
33085 +#endif
33086 +
33087 +/* LT_STMT_START/END are used to create macros which expand to a
33088 + a single compound statement in a portable way. */
33089 +#if defined (__GNUC__) && !defined (__STRICT_ANSI__) && !defined (__cplusplus)
33090 +# define LT_STMT_START (void)(
33091 +# define LT_STMT_END )
33092 +#else
33093 +# if (defined (sun) || defined (__sun__))
33094 +# define LT_STMT_START if (1)
33095 +# define LT_STMT_END else (void)0
33096 +# else
33097 +# define LT_STMT_START do
33098 +# define LT_STMT_END while (0)
33099 +# endif
33100 +#endif
33101 +
33102 +/* Canonicalise Windows and Cygwin recognition macros.
33103 + To match the values set by recent Cygwin compilers, make sure that if
33104 + __CYGWIN__ is defined (after canonicalisation), __WINDOWS__ is NOT! */
33105 +#if defined(__CYGWIN32__) && !defined(__CYGWIN__)
33106 +# define __CYGWIN__ __CYGWIN32__
33107 +#endif
33108 +#if defined(__CYGWIN__)
33109 +# if defined(__WINDOWS__)
33110 +# undef __WINDOWS__
33111 +# endif
33112 +#elif defined(_WIN32)
33113 +# define __WINDOWS__ _WIN32
33114 +#elif defined(WIN32)
33115 +# define __WINDOWS__ WIN32
33116 +#endif
33117 +#if defined(__CYGWIN__) && defined(__WINDOWS__)
33118 +# undef __WINDOWS__
33119 +#endif
33120 +
33121 +
33122 +/* DLL building support on win32 hosts; mostly to workaround their
33123 + ridiculous implementation of data symbol exporting. */
33124 +#if !defined(LT_SCOPE)
33125 +# if defined(__WINDOWS__) || defined(__CYGWIN__)
33126 +# if defined(DLL_EXPORT) /* defined by libtool (if required) */
33127 +# define LT_SCOPE extern __declspec(dllexport)
33128 +# endif
33129 +# if defined(LIBLTDL_DLL_IMPORT) /* define if linking with this dll */
33130 + /* note: cygwin/mingw compilers can rely instead on auto-import */
33131 +# define LT_SCOPE extern __declspec(dllimport)
33132 +# endif
33133 +# endif
33134 +# if !defined(LT_SCOPE) /* static linking or !__WINDOWS__ */
33135 +# define LT_SCOPE extern
33136 +# endif
33137 +#endif
33138 +
33139 +#if defined(__WINDOWS__)
33140 +/* LT_DIRSEP_CHAR is accepted *in addition* to '/' as a directory
33141 + separator when it is set. */
33142 +# define LT_DIRSEP_CHAR '\\'
33143 +# define LT_PATHSEP_CHAR ';'
33144 +#else
33145 +# define LT_PATHSEP_CHAR ':'
33146 +#endif
33147 +
33148 +#if defined(_MSC_VER) /* Visual Studio */
33149 +# define R_OK 4
33150 +#endif
33151 +
33152 +/* fopen() mode flags for reading a text file */
33153 +#undef LT_READTEXT_MODE
33154 +#if defined(__WINDOWS__) || defined(__CYGWIN__)
33155 +# define LT_READTEXT_MODE "rt"
33156 +#else
33157 +# define LT_READTEXT_MODE "r"
33158 +#endif
33159 +
33160 +/* The extra indirection to the LT__STR and LT__CONC macros is required so
33161 + that if the arguments to LT_STR() (or LT_CONC()) are themselves macros,
33162 + they will be expanded before being quoted. */
33163 +#ifndef LT_STR
33164 +# define LT__STR(arg) #arg
33165 +# define LT_STR(arg) LT__STR(arg)
33166 +#endif
33167 +
33168 +#ifndef LT_CONC
33169 +# define LT__CONC(a, b) a##b
33170 +# define LT_CONC(a, b) LT__CONC(a, b)
33171 +#endif
33172 +#ifndef LT_CONC3
33173 +# define LT__CONC3(a, b, c) a##b##c
33174 +# define LT_CONC3(a, b, c) LT__CONC3(a, b, c)
33175 +#endif
33176 +
33177 +#endif /*!defined(LT_SYSTEM_H)*/
33178 diff --git a/libltdl/libltdl/slist.h b/libltdl/libltdl/slist.h
33179 new file mode 100644
33180 index 0000000..e4b7ead
33181 --- /dev/null
33182 +++ b/libltdl/libltdl/slist.h
33183 @@ -0,0 +1,94 @@
33184 +/* slist.h -- generalised singly linked lists
33185 +
33186 + Copyright (C) 2000, 2004 Free Software Foundation, Inc.
33187 + Written by Gary V. Vaughan, 2000
33188 +
33189 + NOTE: The canonical source of this file is maintained with the
33190 + GNU Libtool package. Report bugs to [email protected].
33191 +
33192 +GNU Libltdl is free software; you can redistribute it and/or
33193 +modify it under the terms of the GNU Lesser General Public
33194 +License as published by the Free Software Foundation; either
33195 +version 2 of the License, or (at your option) any later version.
33196 +
33197 +As a special exception to the GNU Lesser General Public License,
33198 +if you distribute this file as part of a program or library that
33199 +is built using GNU Libtool, you may include this file under the
33200 +same distribution terms that you use for the rest of that program.
33201 +
33202 +GNU Libltdl is distributed in the hope that it will be useful,
33203 +but WITHOUT ANY WARRANTY; without even the implied warranty of
33204 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33205 +GNU Lesser General Public License for more details.
33206 +
33207 +You should have received a copy of the GNU Lesser General Public
33208 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
33209 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
33210 +or obtained by writing to the Free Software Foundation, Inc.,
33211 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33212 +*/
33213 +
33214 +/* A generalised list. This is deliberately transparent so that you
33215 + can make the NEXT field of all your chained data structures first,
33216 + and then cast them to `(SList *)' so that they can be manipulated
33217 + by this API.
33218 +
33219 + Alternatively, you can generate raw SList elements using slist_new(),
33220 + and put the element data in the USERDATA field. Either way you
33221 + get to manage the memory involved by yourself.
33222 +*/
33223 +
33224 +#if !defined(SLIST_H)
33225 +#define SLIST_H 1
33226 +
33227 +#if defined(LTDL)
33228 +# include <libltdl/lt__glibc.h>
33229 +# include <libltdl/lt_system.h>
33230 +#else
33231 +# define LT_SCOPE
33232 +#endif
33233 +
33234 +#if defined(__cplusplus)
33235 +extern "C" {
33236 +#endif
33237 +
33238 +typedef struct slist {
33239 + struct slist *next; /* chain forward pointer*/
33240 + const void *userdata; /* for boxed `SList' item */
33241 +} SList;
33242 +
33243 +typedef void * SListCallback (SList *item, void *userdata);
33244 +typedef int SListCompare (const SList *item1, const SList *item2,
33245 + void *userdata);
33246 +
33247 +LT_SCOPE SList *slist_concat (SList *head, SList *tail);
33248 +LT_SCOPE SList *slist_cons (SList *item, SList *slist);
33249 +
33250 +LT_SCOPE SList *slist_delete (SList *slist, void (*delete_fct) (void *item));
33251 +LT_SCOPE void * slist_remove (SList **phead, SListCallback *find,
33252 + void *matchdata);
33253 +LT_SCOPE SList *slist_reverse (SList *slist);
33254 +LT_SCOPE SList *slist_sort (SList *slist, SListCompare *compare,
33255 + void *userdata);
33256 +
33257 +LT_SCOPE SList *slist_tail (SList *slist);
33258 +LT_SCOPE SList *slist_nth (SList *slist, size_t n);
33259 +LT_SCOPE void * slist_find (SList *slist, SListCallback *find,
33260 + void *matchdata);
33261 +LT_SCOPE size_t slist_length (SList *slist);
33262 +
33263 +LT_SCOPE void * slist_foreach (SList *slist, SListCallback *foreach,
33264 + void *userdata);
33265 +
33266 +LT_SCOPE SList *slist_box (const void *userdata);
33267 +LT_SCOPE void * slist_unbox (SList *item);
33268 +
33269 +#if defined(__cplusplus)
33270 +}
33271 +#endif
33272 +
33273 +#if !defined(LTDL)
33274 +# undef LT_SCOPE
33275 +#endif
33276 +
33277 +#endif /*!defined(SLIST_H)*/
33278 diff --git a/libltdl/loaders/dld_link.c b/libltdl/loaders/dld_link.c
33279 new file mode 100644
33280 index 0000000..7e882c9
33281 --- /dev/null
33282 +++ b/libltdl/loaders/dld_link.c
33283 @@ -0,0 +1,158 @@
33284 +/* loader-dld_link.c -- dynamic linking with dld
33285 +
33286 + Copyright (C) 1998, 1999, 2000, 2004, 2006,
33287 + 2007, 2008 Free Software Foundation, Inc.
33288 + Written by Thomas Tanner, 1998
33289 +
33290 + NOTE: The canonical source of this file is maintained with the
33291 + GNU Libtool package. Report bugs to [email protected].
33292 +
33293 +GNU Libltdl is free software; you can redistribute it and/or
33294 +modify it under the terms of the GNU Lesser General Public
33295 +License as published by the Free Software Foundation; either
33296 +version 2 of the License, or (at your option) any later version.
33297 +
33298 +As a special exception to the GNU Lesser General Public License,
33299 +if you distribute this file as part of a program or library that
33300 +is built using GNU Libtool, you may include this file under the
33301 +same distribution terms that you use for the rest of that program.
33302 +
33303 +GNU Libltdl is distributed in the hope that it will be useful,
33304 +but WITHOUT ANY WARRANTY; without even the implied warranty of
33305 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33306 +GNU Lesser General Public License for more details.
33307 +
33308 +You should have received a copy of the GNU Lesser General Public
33309 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
33310 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
33311 +or obtained by writing to the Free Software Foundation, Inc.,
33312 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33313 +*/
33314 +
33315 +#include "lt__private.h"
33316 +#include "lt_dlloader.h"
33317 +
33318 +/* Use the preprocessor to rename non-static symbols to avoid namespace
33319 + collisions when the loader code is statically linked into libltdl.
33320 + Use the "<module_name>_LTX_" prefix so that the symbol addresses can
33321 + be fetched from the preloaded symbol list by lt_dlsym(): */
33322 +#define get_vtable dld_link_LTX_get_vtable
33323 +
33324 +LT_BEGIN_C_DECLS
33325 +LT_SCOPE lt_dlvtable *get_vtable (lt_user_data loader_data);
33326 +LT_END_C_DECLS
33327 +
33328 +
33329 +/* Boilerplate code to set up the vtable for hooking this loader into
33330 + libltdl's loader list: */
33331 +static int vl_exit (lt_user_data loader_data);
33332 +static lt_module vm_open (lt_user_data loader_data, const char *filename,
33333 + lt_dladvise advise);
33334 +static int vm_close (lt_user_data loader_data, lt_module module);
33335 +static void * vm_sym (lt_user_data loader_data, lt_module module,
33336 + const char *symbolname);
33337 +
33338 +static lt_dlvtable *vtable = 0;
33339 +
33340 +/* Return the vtable for this loader, only the name and sym_prefix
33341 + attributes (plus the virtual function implementations, obviously)
33342 + change between loaders. */
33343 +lt_dlvtable *
33344 +get_vtable (lt_user_data loader_data)
33345 +{
33346 + if (!vtable)
33347 + {
33348 + vtable = lt__zalloc (sizeof *vtable);
33349 + }
33350 +
33351 + if (vtable && !vtable->name)
33352 + {
33353 + vtable->name = "lt_dld_link";
33354 + vtable->module_open = vm_open;
33355 + vtable->module_close = vm_close;
33356 + vtable->find_sym = vm_sym;
33357 + vtable->dlloader_exit = vl_exit;
33358 + vtable->dlloader_data = loader_data;
33359 + vtable->priority = LT_DLLOADER_APPEND;
33360 + }
33361 +
33362 + if (vtable && (vtable->dlloader_data != loader_data))
33363 + {
33364 + LT__SETERROR (INIT_LOADER);
33365 + return 0;
33366 + }
33367 +
33368 + return vtable;
33369 +}
33370 +
33371 +
33372 +
33373 +/* --- IMPLEMENTATION --- */
33374 +
33375 +
33376 +#if defined(HAVE_DLD_H)
33377 +# include <dld.h>
33378 +#endif
33379 +
33380 +/* A function called through the vtable when this loader is no
33381 + longer needed by the application. */
33382 +static int
33383 +vl_exit (lt_user_data LT__UNUSED loader_data)
33384 +{
33385 + vtable = NULL;
33386 + return 0;
33387 +}
33388 +
33389 +/* A function called through the vtable to open a module with this
33390 + loader. Returns an opaque representation of the newly opened
33391 + module for processing with this loader's other vtable functions. */
33392 +static lt_module
33393 +vm_open (lt_user_data LT__UNUSED loader_data, const char *filename,
33394 + lt_dladvise LT__UNUSED advise)
33395 +{
33396 + lt_module module = lt__strdup (filename);
33397 +
33398 + if (dld_link (filename) != 0)
33399 + {
33400 + LT__SETERROR (CANNOT_OPEN);
33401 + FREE (module);
33402 + }
33403 +
33404 + return module;
33405 +}
33406 +
33407 +/* A function called through the vtable when a particular module
33408 + should be unloaded. */
33409 +static int
33410 +vm_close (lt_user_data LT__UNUSED loader_data, lt_module module)
33411 +{
33412 + int errors = 0;
33413 +
33414 + if (dld_unlink_by_file ((char*)(module), 1) != 0)
33415 + {
33416 + LT__SETERROR (CANNOT_CLOSE);
33417 + ++errors;
33418 + }
33419 + else
33420 + {
33421 + FREE (module);
33422 + }
33423 +
33424 + return errors;
33425 +}
33426 +
33427 +/* A function called through the vtable to get the address of
33428 + a symbol loaded from a particular module. */
33429 +static void *
33430 +vm_sym (lt_user_data LT__UNUSED loader_data, lt_module LT__UNUSED module,
33431 + const char *name)
33432 +{
33433 + void *address = dld_get_func (name);
33434 +
33435 + if (!address)
33436 + {
33437 + LT__SETERROR (SYMBOL_NOT_FOUND);
33438 + }
33439 +
33440 + return address;
33441 +}
33442 diff --git a/libltdl/loaders/dlopen.c b/libltdl/loaders/dlopen.c
33443 new file mode 100644
33444 index 0000000..1d052b4
33445 --- /dev/null
33446 +++ b/libltdl/loaders/dlopen.c
33447 @@ -0,0 +1,235 @@
33448 +/* loader-dlopen.c -- dynamic linking with dlopen/dlsym
33449 +
33450 + Copyright (C) 1998, 1999, 2000, 2004, 2006,
33451 + 2007, 2008 Free Software Foundation, Inc.
33452 + Written by Thomas Tanner, 1998
33453 +
33454 + NOTE: The canonical source of this file is maintained with the
33455 + GNU Libtool package. Report bugs to [email protected].
33456 +
33457 +GNU Libltdl is free software; you can redistribute it and/or
33458 +modify it under the terms of the GNU Lesser General Public
33459 +License as published by the Free Software Foundation; either
33460 +version 2 of the License, or (at your option) any later version.
33461 +
33462 +As a special exception to the GNU Lesser General Public License,
33463 +if you distribute this file as part of a program or library that
33464 +is built using GNU Libtool, you may include this file under the
33465 +same distribution terms that you use for the rest of that program.
33466 +
33467 +GNU Libltdl is distributed in the hope that it will be useful,
33468 +but WITHOUT ANY WARRANTY; without even the implied warranty of
33469 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33470 +GNU Lesser General Public License for more details.
33471 +
33472 +You should have received a copy of the GNU Lesser General Public
33473 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
33474 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
33475 +or obtained by writing to the Free Software Foundation, Inc.,
33476 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33477 +*/
33478 +
33479 +#include "lt__private.h"
33480 +#include "lt_dlloader.h"
33481 +
33482 +/* Use the preprocessor to rename non-static symbols to avoid namespace
33483 + collisions when the loader code is statically linked into libltdl.
33484 + Use the "<module_name>_LTX_" prefix so that the symbol addresses can
33485 + be fetched from the preloaded symbol list by lt_dlsym(): */
33486 +#define get_vtable dlopen_LTX_get_vtable
33487 +
33488 +LT_BEGIN_C_DECLS
33489 +LT_SCOPE lt_dlvtable *get_vtable (lt_user_data loader_data);
33490 +LT_END_C_DECLS
33491 +
33492 +
33493 +/* Boilerplate code to set up the vtable for hooking this loader into
33494 + libltdl's loader list: */
33495 +static int vl_exit (lt_user_data loader_data);
33496 +static lt_module vm_open (lt_user_data loader_data, const char *filename,
33497 + lt_dladvise advise);
33498 +static int vm_close (lt_user_data loader_data, lt_module module);
33499 +static void * vm_sym (lt_user_data loader_data, lt_module module,
33500 + const char *symbolname);
33501 +
33502 +static lt_dlvtable *vtable = 0;
33503 +
33504 +/* Return the vtable for this loader, only the name and sym_prefix
33505 + attributes (plus the virtual function implementations, obviously)
33506 + change between loaders. */
33507 +lt_dlvtable *
33508 +get_vtable (lt_user_data loader_data)
33509 +{
33510 + if (!vtable)
33511 + {
33512 + vtable = (lt_dlvtable *) lt__zalloc (sizeof *vtable);
33513 + }
33514 +
33515 + if (vtable && !vtable->name)
33516 + {
33517 + vtable->name = "lt_dlopen";
33518 +#if defined(DLSYM_USCORE)
33519 + vtable->sym_prefix = "_";
33520 +#endif
33521 + vtable->module_open = vm_open;
33522 + vtable->module_close = vm_close;
33523 + vtable->find_sym = vm_sym;
33524 + vtable->dlloader_exit = vl_exit;
33525 + vtable->dlloader_data = loader_data;
33526 + vtable->priority = LT_DLLOADER_PREPEND;
33527 + }
33528 +
33529 + if (vtable && (vtable->dlloader_data != loader_data))
33530 + {
33531 + LT__SETERROR (INIT_LOADER);
33532 + return 0;
33533 + }
33534 +
33535 + return vtable;
33536 +}
33537 +
33538 +
33539 +
33540 +/* --- IMPLEMENTATION --- */
33541 +
33542 +
33543 +#if defined(HAVE_DLFCN_H)
33544 +# include <dlfcn.h>
33545 +#endif
33546 +
33547 +#if defined(HAVE_SYS_DL_H)
33548 +# include <sys/dl.h>
33549 +#endif
33550 +
33551 +
33552 +/* We may have to define LT_LAZY_OR_NOW in the command line if we
33553 + find out it does not work in some platform. */
33554 +#if !defined(LT_LAZY_OR_NOW)
33555 +# if defined(RTLD_LAZY)
33556 +# define LT_LAZY_OR_NOW RTLD_LAZY
33557 +# else
33558 +# if defined(DL_LAZY)
33559 +# define LT_LAZY_OR_NOW DL_LAZY
33560 +# endif
33561 +# endif /* !RTLD_LAZY */
33562 +#endif
33563 +#if !defined(LT_LAZY_OR_NOW)
33564 +# if defined(RTLD_NOW)
33565 +# define LT_LAZY_OR_NOW RTLD_NOW
33566 +# else
33567 +# if defined(DL_NOW)
33568 +# define LT_LAZY_OR_NOW DL_NOW
33569 +# endif
33570 +# endif /* !RTLD_NOW */
33571 +#endif
33572 +#if !defined(LT_LAZY_OR_NOW)
33573 +# define LT_LAZY_OR_NOW 0
33574 +#endif /* !LT_LAZY_OR_NOW */
33575 +
33576 +/* We only support local and global symbols from modules for loaders
33577 + that provide such a thing, otherwise the system default is used. */
33578 +#if !defined(RTLD_GLOBAL)
33579 +# if defined(DL_GLOBAL)
33580 +# define RTLD_GLOBAL DL_GLOBAL
33581 +# endif
33582 +#endif /* !RTLD_GLOBAL */
33583 +#if !defined(RTLD_LOCAL)
33584 +# if defined(DL_LOCAL)
33585 +# define RTLD_LOCAL DL_LOCAL
33586 +# endif
33587 +#endif /* !RTLD_LOCAL */
33588 +
33589 +#if defined(HAVE_DLERROR)
33590 +# define DLERROR(arg) dlerror ()
33591 +#else
33592 +# define DLERROR(arg) LT__STRERROR (arg)
33593 +#endif
33594 +
33595 +#define DL__SETERROR(errorcode) \
33596 + LT__SETERRORSTR (DLERROR (errorcode))
33597 +
33598 +
33599 +/* A function called through the vtable when this loader is no
33600 + longer needed by the application. */
33601 +static int
33602 +vl_exit (lt_user_data LT__UNUSED loader_data)
33603 +{
33604 + vtable = NULL;
33605 + return 0;
33606 +}
33607 +
33608 +
33609 +/* A function called through the vtable to open a module with this
33610 + loader. Returns an opaque representation of the newly opened
33611 + module for processing with this loader's other vtable functions. */
33612 +static lt_module
33613 +vm_open (lt_user_data LT__UNUSED loader_data, const char *filename,
33614 + lt_dladvise advise)
33615 +{
33616 + int module_flags = LT_LAZY_OR_NOW;
33617 + lt_module module;
33618 +
33619 + if (advise)
33620 + {
33621 +#ifdef RTLD_GLOBAL
33622 + /* If there is some means of asking for global symbol resolution,
33623 + do so. */
33624 + if (advise->is_symglobal)
33625 + module_flags |= RTLD_GLOBAL;
33626 +#else
33627 + /* Otherwise, reset that bit so the caller can tell it wasn't
33628 + acted on. */
33629 + advise->is_symglobal = 0;
33630 +#endif
33631 +
33632 +/* And similarly for local only symbol resolution. */
33633 +#ifdef RTLD_LOCAL
33634 + if (advise->is_symlocal)
33635 + module_flags |= RTLD_LOCAL;
33636 +#else
33637 + advise->is_symlocal = 0;
33638 +#endif
33639 + }
33640 +
33641 + module = dlopen (filename, module_flags);
33642 +
33643 + if (!module)
33644 + {
33645 + DL__SETERROR (CANNOT_OPEN);
33646 + }
33647 +
33648 + return module;
33649 +}
33650 +
33651 +
33652 +/* A function called through the vtable when a particular module
33653 + should be unloaded. */
33654 +static int
33655 +vm_close (lt_user_data LT__UNUSED loader_data, lt_module module)
33656 +{
33657 + int errors = 0;
33658 +
33659 + if (dlclose (module) != 0)
33660 + {
33661 + DL__SETERROR (CANNOT_CLOSE);
33662 + ++errors;
33663 + }
33664 +
33665 + return errors;
33666 +}
33667 +
33668 +
33669 +/* A function called through the vtable to get the address of
33670 + a symbol loaded from a particular module. */
33671 +static void *
33672 +vm_sym (lt_user_data LT__UNUSED loader_data, lt_module module, const char *name)
33673 +{
33674 + void *address = dlsym (module, name);
33675 +
33676 + if (!address)
33677 + {
33678 + DL__SETERROR (SYMBOL_NOT_FOUND);
33679 + }
33680 +
33681 + return address;
33682 +}
33683 diff --git a/libltdl/loaders/dyld.c b/libltdl/loaders/dyld.c
33684 new file mode 100644
33685 index 0000000..b139d6c
33686 --- /dev/null
33687 +++ b/libltdl/loaders/dyld.c
33688 @@ -0,0 +1,511 @@
33689 +/* loader-dyld.c -- dynamic linking on darwin and OS X
33690 +
33691 + Copyright (C) 1998, 1999, 2000, 2004, 2006,
33692 + 2007, 2008 Free Software Foundation, Inc.
33693 + Written by Peter O'Gorman, 1998
33694 +
33695 + NOTE: The canonical source of this file is maintained with the
33696 + GNU Libtool package. Report bugs to [email protected].
33697 +
33698 +GNU Libltdl is free software; you can redistribute it and/or
33699 +modify it under the terms of the GNU Lesser General Public
33700 +License as published by the Free Software Foundation; either
33701 +version 2 of the License, or (at your option) any later version.
33702 +
33703 +As a special exception to the GNU Lesser General Public License,
33704 +if you distribute this file as part of a program or library that
33705 +is built using GNU Libtool, you may include this file under the
33706 +same distribution terms that you use for the rest of that program.
33707 +
33708 +GNU Libltdl is distributed in the hope that it will be useful,
33709 +but WITHOUT ANY WARRANTY; without even the implied warranty of
33710 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33711 +GNU Lesser General Public License for more details.
33712 +
33713 +You should have received a copy of the GNU Lesser General Public
33714 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
33715 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
33716 +or obtained by writing to the Free Software Foundation, Inc.,
33717 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33718 +*/
33719 +
33720 +#include "lt__private.h"
33721 +#include "lt_dlloader.h"
33722 +
33723 +/* Use the preprocessor to rename non-static symbols to avoid namespace
33724 + collisions when the loader code is statically linked into libltdl.
33725 + Use the "<module_name>_LTX_" prefix so that the symbol addresses can
33726 + be fetched from the preloaded symbol list by lt_dlsym(): */
33727 +#define get_vtable dyld_LTX_get_vtable
33728 +
33729 +LT_BEGIN_C_DECLS
33730 +LT_SCOPE lt_dlvtable *get_vtable (lt_user_data loader_data);
33731 +LT_END_C_DECLS
33732 +
33733 +
33734 +/* Boilerplate code to set up the vtable for hooking this loader into
33735 + libltdl's loader list: */
33736 +static int vl_init (lt_user_data loader_data);
33737 +static int vl_exit (lt_user_data loader_data);
33738 +static lt_module vm_open (lt_user_data loader_data, const char *filename,
33739 + lt_dladvise advise);
33740 +static int vm_close (lt_user_data loader_data, lt_module module);
33741 +static void * vm_sym (lt_user_data loader_data, lt_module module,
33742 + const char *symbolname);
33743 +
33744 +static lt_dlvtable *vtable = 0;
33745 +
33746 +/* Return the vtable for this loader, only the name and sym_prefix
33747 + attributes (plus the virtual function implementations, obviously)
33748 + change between loaders. */
33749 +lt_dlvtable *
33750 +get_vtable (lt_user_data loader_data)
33751 +{
33752 + if (!vtable)
33753 + {
33754 + vtable = lt__zalloc (sizeof *vtable);
33755 + }
33756 +
33757 + if (vtable && !vtable->name)
33758 + {
33759 + vtable->name = "lt_dyld";
33760 + vtable->sym_prefix = "_";
33761 + vtable->dlloader_init = vl_init;
33762 + vtable->module_open = vm_open;
33763 + vtable->module_close = vm_close;
33764 + vtable->find_sym = vm_sym;
33765 + vtable->dlloader_exit = vl_exit;
33766 + vtable->dlloader_data = loader_data;
33767 + vtable->priority = LT_DLLOADER_APPEND;
33768 + }
33769 +
33770 + if (vtable && (vtable->dlloader_data != loader_data))
33771 + {
33772 + LT__SETERROR (INIT_LOADER);
33773 + return 0;
33774 + }
33775 +
33776 + return vtable;
33777 +}
33778 +
33779 +
33780 +
33781 +/* --- IMPLEMENTATION --- */
33782 +
33783 +
33784 +#if defined(HAVE_MACH_O_DYLD_H)
33785 +# if !defined(__APPLE_CC__) && !defined(__MWERKS__) && !defined(__private_extern__)
33786 + /* Is this correct? Does it still function properly? */
33787 +# define __private_extern__ extern
33788 +# endif
33789 +# include <mach-o/dyld.h>
33790 +#endif
33791 +
33792 +#include <mach-o/getsect.h>
33793 +
33794 +/* We have to put some stuff here that isn't in older dyld.h files */
33795 +#if !defined(ENUM_DYLD_BOOL)
33796 +# define ENUM_DYLD_BOOL
33797 +# undef FALSE
33798 +# undef TRUE
33799 + enum DYLD_BOOL {
33800 + FALSE,
33801 + TRUE
33802 + };
33803 +#endif
33804 +#if !defined(LC_REQ_DYLD)
33805 +# define LC_REQ_DYLD 0x80000000
33806 +#endif
33807 +#if !defined(LC_LOAD_WEAK_DYLIB)
33808 +# define LC_LOAD_WEAK_DYLIB (0x18 | LC_REQ_DYLD)
33809 +#endif
33810 +
33811 +#if !defined(NSADDIMAGE_OPTION_NONE)
33812 +# define NSADDIMAGE_OPTION_NONE 0x0
33813 +#endif
33814 +#if !defined(NSADDIMAGE_OPTION_RETURN_ON_ERROR)
33815 +# define NSADDIMAGE_OPTION_RETURN_ON_ERROR 0x1
33816 +#endif
33817 +#if !defined(NSADDIMAGE_OPTION_WITH_SEARCHING)
33818 +# define NSADDIMAGE_OPTION_WITH_SEARCHING 0x2
33819 +#endif
33820 +#if !defined(NSADDIMAGE_OPTION_RETURN_ONLY_IF_LOADED)
33821 +# define NSADDIMAGE_OPTION_RETURN_ONLY_IF_LOADED 0x4
33822 +#endif
33823 +#if !defined(NSADDIMAGE_OPTION_MATCH_FILENAME_BY_INSTALLNAME)
33824 +# define NSADDIMAGE_OPTION_MATCH_FILENAME_BY_INSTALLNAME 0x8
33825 +#endif
33826 +
33827 +#if !defined(NSLOOKUPSYMBOLINIMAGE_OPTION_BIND)
33828 +# define NSLOOKUPSYMBOLINIMAGE_OPTION_BIND 0x0
33829 +#endif
33830 +#if !defined(NSLOOKUPSYMBOLINIMAGE_OPTION_BIND_NOW)
33831 +# define NSLOOKUPSYMBOLINIMAGE_OPTION_BIND_NOW 0x1
33832 +#endif
33833 +#if !defined(NSLOOKUPSYMBOLINIMAGE_OPTION_BIND_FULLY)
33834 +# define NSLOOKUPSYMBOLINIMAGE_OPTION_BIND_FULLY 0x2
33835 +#endif
33836 +#if !defined(NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR)
33837 +# define NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR 0x4
33838 +#endif
33839 +
33840 +#define LT__SYMLOOKUP_OPTS (NSLOOKUPSYMBOLINIMAGE_OPTION_BIND_NOW \
33841 + | NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR)
33842 +
33843 +#if defined(__BIG_ENDIAN__)
33844 +# define LT__MAGIC MH_MAGIC
33845 +#else
33846 +# define LT__MAGIC MH_CIGAM
33847 +#endif
33848 +
33849 +#define DYLD__SETMYERROR(errmsg) LT__SETERRORSTR (dylderror (errmsg))
33850 +#define DYLD__SETERROR(errcode) DYLD__SETMYERROR (LT__STRERROR (errcode))
33851 +
33852 +typedef struct mach_header mach_header;
33853 +typedef struct dylib_command dylib_command;
33854 +
33855 +static const char *dylderror (const char *errmsg);
33856 +static const mach_header *lt__nsmodule_get_header (NSModule module);
33857 +static const char *lt__header_get_instnam (const mach_header *mh);
33858 +static const mach_header *lt__match_loadedlib (const char *name);
33859 +static NSSymbol lt__linkedlib_symbol (const char *symname, const mach_header *mh);
33860 +
33861 +static const mach_header *(*lt__addimage) (const char *image_name,
33862 + unsigned long options) = 0;
33863 +static NSSymbol (*lt__image_symbol) (const mach_header *image,
33864 + const char *symbolName,
33865 + unsigned long options) = 0;
33866 +static enum DYLD_BOOL (*lt__image_symbol_p) (const mach_header *image,
33867 + const char *symbolName) = 0;
33868 +static enum DYLD_BOOL (*lt__module_export) (NSModule module) = 0;
33869 +
33870 +static int dyld_cannot_close = 0;
33871 +
33872 +
33873 +/* A function called through the vtable when this loader is no
33874 + longer needed by the application. */
33875 +static int
33876 +vl_exit (lt_user_data LT__UNUSED loader_data)
33877 +{
33878 + vtable = NULL;
33879 + return 0;
33880 +}
33881 +
33882 +/* A function called through the vtable to initialise this loader. */
33883 +static int
33884 +vl_init (lt_user_data loader_data)
33885 +{
33886 + int errors = 0;
33887 +
33888 + if (! dyld_cannot_close)
33889 + {
33890 + if (!_dyld_present ())
33891 + {
33892 + ++errors;
33893 + }
33894 + else
33895 + {
33896 + (void) _dyld_func_lookup ("__dyld_NSAddImage",
33897 + (unsigned long*) &lt__addimage);
33898 + (void) _dyld_func_lookup ("__dyld_NSLookupSymbolInImage",
33899 + (unsigned long*)&lt__image_symbol);
33900 + (void) _dyld_func_lookup ("__dyld_NSIsSymbolNameDefinedInImage",
33901 + (unsigned long*) &lt__image_symbol_p);
33902 + (void) _dyld_func_lookup ("__dyld_NSMakePrivateModulePublic",
33903 + (unsigned long*) &lt__module_export);
33904 + dyld_cannot_close = lt_dladderror ("can't close a dylib");
33905 + }
33906 + }
33907 +
33908 + return errors;
33909 +}
33910 +
33911 +
33912 +/* A function called through the vtable to open a module with this
33913 + loader. Returns an opaque representation of the newly opened
33914 + module for processing with this loader's other vtable functions. */
33915 +static lt_module
33916 +vm_open (lt_user_data loader_data, const char *filename,
33917 + lt_dladvise LT__UNUSED advise)
33918 +{
33919 + lt_module module = 0;
33920 + NSObjectFileImage ofi = 0;
33921 +
33922 + if (!filename)
33923 + {
33924 + return (lt_module) -1;
33925 + }
33926 +
33927 + switch (NSCreateObjectFileImageFromFile (filename, &ofi))
33928 + {
33929 + case NSObjectFileImageSuccess:
33930 + module = NSLinkModule (ofi, filename, NSLINKMODULE_OPTION_RETURN_ON_ERROR
33931 + | NSLINKMODULE_OPTION_PRIVATE
33932 + | NSLINKMODULE_OPTION_BINDNOW);
33933 + NSDestroyObjectFileImage (ofi);
33934 +
33935 + if (module)
33936 + {
33937 + lt__module_export (module);
33938 + }
33939 + break;
33940 +
33941 + case NSObjectFileImageInappropriateFile:
33942 + if (lt__image_symbol_p && lt__image_symbol)
33943 + {
33944 + module = (lt_module) lt__addimage(filename,
33945 + NSADDIMAGE_OPTION_RETURN_ON_ERROR);
33946 + }
33947 + break;
33948 +
33949 + case NSObjectFileImageFailure:
33950 + case NSObjectFileImageArch:
33951 + case NSObjectFileImageFormat:
33952 + case NSObjectFileImageAccess:
33953 + /*NOWORK*/
33954 + break;
33955 + }
33956 +
33957 + if (!module)
33958 + {
33959 + DYLD__SETERROR (CANNOT_OPEN);
33960 + }
33961 +
33962 + return module;
33963 +}
33964 +
33965 +
33966 +/* A function called through the vtable when a particular module
33967 + should be unloaded. */
33968 +static int
33969 +vm_close (lt_user_data loader_data, lt_module module)
33970 +{
33971 + int errors = 0;
33972 +
33973 + if (module != (lt_module) -1)
33974 + {
33975 + const mach_header *mh = (const mach_header *) module;
33976 + int flags = 0;
33977 + if (mh->magic == LT__MAGIC)
33978 + {
33979 + lt_dlseterror (dyld_cannot_close);
33980 + ++errors;
33981 + }
33982 + else
33983 + {
33984 + /* Currently, if a module contains c++ static destructors and it
33985 + is unloaded, we get a segfault in atexit(), due to compiler and
33986 + dynamic loader differences of opinion, this works around that. */
33987 + if ((const struct section *) NULL !=
33988 + getsectbynamefromheader (lt__nsmodule_get_header (module),
33989 + "__DATA", "__mod_term_func"))
33990 + {
33991 + flags |= NSUNLINKMODULE_OPTION_KEEP_MEMORY_MAPPED;
33992 + }
33993 +#if defined(__ppc__)
33994 + flags |= NSUNLINKMODULE_OPTION_RESET_LAZY_REFERENCES;
33995 +#endif
33996 + if (!NSUnLinkModule (module, flags))
33997 + {
33998 + DYLD__SETERROR (CANNOT_CLOSE);
33999 + ++errors;
34000 + }
34001 + }
34002 + }
34003 +
34004 + return errors;
34005 +}
34006 +
34007 +/* A function called through the vtable to get the address of
34008 + a symbol loaded from a particular module. */
34009 +static void *
34010 +vm_sym (lt_user_data loader_data, lt_module module, const char *name)
34011 +{
34012 + NSSymbol *nssym = 0;
34013 + const mach_header *mh = (const mach_header *) module;
34014 + char saveError[256] = "Symbol not found";
34015 +
34016 + if (module == (lt_module) -1)
34017 + {
34018 + void *address, *unused;
34019 + _dyld_lookup_and_bind (name, (unsigned long*) &address, &unused);
34020 + return address;
34021 + }
34022 +
34023 + if (mh->magic == LT__MAGIC)
34024 + {
34025 + if (lt__image_symbol_p && lt__image_symbol)
34026 + {
34027 + if (lt__image_symbol_p (mh, name))
34028 + {
34029 + nssym = lt__image_symbol (mh, name, LT__SYMLOOKUP_OPTS);
34030 + }
34031 + }
34032 +
34033 + }
34034 + else
34035 + {
34036 + nssym = NSLookupSymbolInModule (module, name);
34037 + }
34038 +
34039 + if (!nssym)
34040 + {
34041 + strncpy (saveError, dylderror (LT__STRERROR (SYMBOL_NOT_FOUND)), 255);
34042 + saveError[255] = 0;
34043 + if (!mh)
34044 + {
34045 + mh = (mach_header *)lt__nsmodule_get_header (module);
34046 + }
34047 + nssym = lt__linkedlib_symbol (name, mh);
34048 + }
34049 +
34050 + if (!nssym)
34051 + {
34052 + LT__SETERRORSTR (saveError);
34053 + }
34054 +
34055 + return nssym ? NSAddressOfSymbol (nssym) : 0;
34056 +}
34057 +
34058 +
34059 +
34060 +
34061 +/* --- HELPER FUNCTIONS --- */
34062 +
34063 +
34064 +/* Return the dyld error string, or the passed in error string if none. */
34065 +static const char *
34066 +dylderror (const char *errmsg)
34067 +{
34068 + NSLinkEditErrors ler;
34069 + int lerno;
34070 + const char *file;
34071 + const char *errstr;
34072 +
34073 + NSLinkEditError (&ler, &lerno, &file, &errstr);
34074 +
34075 + if (! (errstr && *errstr))
34076 + {
34077 + errstr = errmsg;
34078 + }
34079 +
34080 + return errstr;
34081 +}
34082 +
34083 +/* There should probably be an apple dyld api for this. */
34084 +static const mach_header *
34085 +lt__nsmodule_get_header (NSModule module)
34086 +{
34087 + int i = _dyld_image_count();
34088 + const char *modname = NSNameOfModule (module);
34089 + const mach_header *mh = 0;
34090 +
34091 + if (!modname)
34092 + return NULL;
34093 +
34094 + while (i > 0)
34095 + {
34096 + --i;
34097 + if (strneq (_dyld_get_image_name (i), modname))
34098 + {
34099 + mh = _dyld_get_image_header (i);
34100 + break;
34101 + }
34102 + }
34103 +
34104 + return mh;
34105 +}
34106 +
34107 +/* NSAddImage is also used to get the loaded image, but it only works if
34108 + the lib is installed, for uninstalled libs we need to check the
34109 + install_names against each other. Note that this is still broken if
34110 + DYLD_IMAGE_SUFFIX is set and a different lib was loaded as a result. */
34111 +static const char *
34112 +lt__header_get_instnam (const mach_header *mh)
34113 +{
34114 + unsigned long offset = sizeof(mach_header);
34115 + const char* result = 0;
34116 + int j;
34117 +
34118 + for (j = 0; j < mh->ncmds; j++)
34119 + {
34120 + struct load_command *lc;
34121 +
34122 + lc = (struct load_command*) (((unsigned long) mh) + offset);
34123 + if (LC_ID_DYLIB == lc->cmd)
34124 + {
34125 + result=(char*)(((dylib_command*) lc)->dylib.name.offset +
34126 + (unsigned long) lc);
34127 + }
34128 + offset += lc->cmdsize;
34129 + }
34130 +
34131 + return result;
34132 +}
34133 +
34134 +static const mach_header *
34135 +lt__match_loadedlib (const char *name)
34136 +{
34137 + const mach_header *mh = 0;
34138 + int i = _dyld_image_count();
34139 +
34140 + while (i > 0)
34141 + {
34142 + const char *id;
34143 +
34144 + --i;
34145 + id = lt__header_get_instnam (_dyld_get_image_header (i));
34146 + if (id && strneq (id, name))
34147 + {
34148 + mh = _dyld_get_image_header (i);
34149 + break;
34150 + }
34151 + }
34152 +
34153 + return mh;
34154 +}
34155 +
34156 +/* Safe to assume our mh is good. */
34157 +static NSSymbol
34158 +lt__linkedlib_symbol (const char *symname, const mach_header *mh)
34159 +{
34160 + NSSymbol symbol = 0;
34161 +
34162 + if (lt__image_symbol && NSIsSymbolNameDefined (symname))
34163 + {
34164 + unsigned long offset = sizeof(mach_header);
34165 + struct load_command *lc;
34166 + int j;
34167 +
34168 + for (j = 0; j < mh->ncmds; j++)
34169 + {
34170 + lc = (struct load_command*) (((unsigned long) mh) + offset);
34171 + if ((LC_LOAD_DYLIB == lc->cmd) || (LC_LOAD_WEAK_DYLIB == lc->cmd))
34172 + {
34173 + unsigned long base = ((dylib_command *) lc)->dylib.name.offset;
34174 + char *name = (char *) (base + (unsigned long) lc);
34175 + const mach_header *mh1 = lt__match_loadedlib (name);
34176 +
34177 + if (!mh1)
34178 + {
34179 + /* Maybe NSAddImage can find it */
34180 + mh1 = lt__addimage (name,
34181 + NSADDIMAGE_OPTION_RETURN_ONLY_IF_LOADED
34182 + | NSADDIMAGE_OPTION_WITH_SEARCHING
34183 + | NSADDIMAGE_OPTION_RETURN_ON_ERROR);
34184 + }
34185 +
34186 + if (mh1)
34187 + {
34188 + symbol = lt__image_symbol (mh1, symname, LT__SYMLOOKUP_OPTS);
34189 + if (symbol)
34190 + break;
34191 + }
34192 + }
34193 +
34194 + offset += lc->cmdsize;
34195 + }
34196 + }
34197 +
34198 + return symbol;
34199 +}
34200 diff --git a/libltdl/loaders/load_add_on.c b/libltdl/loaders/load_add_on.c
34201 new file mode 100644
34202 index 0000000..379f9ba
34203 --- /dev/null
34204 +++ b/libltdl/loaders/load_add_on.c
34205 @@ -0,0 +1,167 @@
34206 +/* loader-load_add_on.c -- dynamic linking for BeOS
34207 +
34208 + Copyright (C) 1998, 1999, 2000, 2004, 2006,
34209 + 2007, 2008 Free Software Foundation, Inc.
34210 + Written by Thomas Tanner, 1998
34211 +
34212 + NOTE: The canonical source of this file is maintained with the
34213 + GNU Libtool package. Report bugs to [email protected].
34214 +
34215 +GNU Libltdl is free software; you can redistribute it and/or
34216 +modify it under the terms of the GNU Lesser General Public
34217 +License as published by the Free Software Foundation; either
34218 +version 2 of the License, or (at your option) any later version.
34219 +
34220 +As a special exception to the GNU Lesser General Public License,
34221 +if you distribute this file as part of a program or library that
34222 +is built using GNU Libtool, you may include this file under the
34223 +same distribution terms that you use for the rest of that program.
34224 +
34225 +GNU Libltdl is distributed in the hope that it will be useful,
34226 +but WITHOUT ANY WARRANTY; without even the implied warranty of
34227 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34228 +GNU Lesser General Public License for more details.
34229 +
34230 +You should have received a copy of the GNU Lesser General Public
34231 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
34232 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
34233 +or obtained by writing to the Free Software Foundation, Inc.,
34234 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34235 +*/
34236 +
34237 +#include "lt__private.h"
34238 +#include "lt_dlloader.h"
34239 +
34240 +/* Use the preprocessor to rename non-static symbols to avoid namespace
34241 + collisions when the loader code is statically linked into libltdl.
34242 + Use the "<module_name>_LTX_" prefix so that the symbol addresses can
34243 + be fetched from the preloaded symbol list by lt_dlsym(): */
34244 +#define get_vtable load_add_on_LTX_get_vtable
34245 +
34246 +LT_BEGIN_C_DECLS
34247 +LT_SCOPE lt_dlvtable *get_vtable (lt_user_data loader_data);
34248 +LT_END_C_DECLS
34249 +
34250 +
34251 +/* Boilerplate code to set up the vtable for hooking this loader into
34252 + libltdl's loader list: */
34253 +static int vl_exit (lt_user_data loader_data);
34254 +static lt_module vm_open (lt_user_data loader_data, const char *filename,
34255 + lt_dladvise advise);
34256 +static int vm_close (lt_user_data loader_data, lt_module module);
34257 +static void * vm_sym (lt_user_data loader_data, lt_module module,
34258 + const char *symbolname);
34259 +
34260 +static lt_dlvtable *vtable = 0;
34261 +
34262 +/* Return the vtable for this loader, only the name and sym_prefix
34263 + attributes (plus the virtual function implementations, obviously)
34264 + change between loaders. */
34265 +lt_dlvtable *
34266 +get_vtable (lt_user_data loader_data)
34267 +{
34268 + if (!vtable)
34269 + {
34270 + vtable = lt__zalloc (sizeof *vtable);
34271 + }
34272 +
34273 + if (vtable && !vtable->name)
34274 + {
34275 + vtable->name = "lt_load_add_on";
34276 + vtable->module_open = vm_open;
34277 + vtable->module_close = vm_close;
34278 + vtable->find_sym = vm_sym;
34279 + vtable->dlloader_exit = vl_exit;
34280 + vtable->dlloader_data = loader_data;
34281 + vtable->priority = LT_DLLOADER_APPEND;
34282 + }
34283 +
34284 + if (vtable && (vtable->dlloader_data != loader_data))
34285 + {
34286 + LT__SETERROR (INIT_LOADER);
34287 + return 0;
34288 + }
34289 +
34290 + return vtable;
34291 +}
34292 +
34293 +
34294 +
34295 +/* --- IMPLEMENTATION --- */
34296 +
34297 +
34298 +#include <kernel/image.h>
34299 +
34300 +/* A function called through the vtable when this loader is no
34301 + longer needed by the application. */
34302 +static int
34303 +vl_exit (lt_user_data LT__UNUSED loader_data)
34304 +{
34305 + vtable = NULL;
34306 + return 0;
34307 +}
34308 +
34309 +/* A function called through the vtable to open a module with this
34310 + loader. Returns an opaque representation of the newly opened
34311 + module for processing with this loader's other vtable functions. */
34312 +static lt_module
34313 +vm_open (lt_user_data LT__UNUSED loader_data, const char *filename,
34314 + lt_dladvise LT__UNUSED advise)
34315 +{
34316 + image_id image = 0;
34317 +
34318 + if (filename)
34319 + {
34320 + image = load_add_on (filename);
34321 + }
34322 + else
34323 + {
34324 + image_info info;
34325 + int32 cookie = 0;
34326 + if (get_next_image_info (0, &cookie, &info) == B_OK)
34327 + image = load_add_on (info.name);
34328 + }
34329 +
34330 + if (image <= 0)
34331 + {
34332 + LT__SETERROR (CANNOT_OPEN);
34333 + image = 0;
34334 + }
34335 +
34336 + return (lt_module) image;
34337 +}
34338 +
34339 +
34340 +/* A function called through the vtable when a particular module
34341 + should be unloaded. */
34342 +static int
34343 +vm_close (lt_user_data LT__UNUSED loader_data, lt_module module)
34344 +{
34345 + int errors = 0;
34346 +
34347 + if (unload_add_on ((image_id) module) != B_OK)
34348 + {
34349 + LT__SETERROR (CANNOT_CLOSE);
34350 + ++errors;
34351 + }
34352 +
34353 + return errors;
34354 +}
34355 +
34356 +
34357 +/* A function called through the vtable to get the address of
34358 + a symbol loaded from a particular module. */
34359 +static void *
34360 +vm_sym (lt_user_data LT__UNUSED loader_data, lt_module module, const char *name)
34361 +{
34362 + void *address = 0;
34363 + image_id image = (image_id) module;
34364 +
34365 + if (get_image_symbol (image, name, B_SYMBOL_TYPE_ANY, address) != B_OK)
34366 + {
34367 + LT__SETERROR (SYMBOL_NOT_FOUND);
34368 + address = 0;
34369 + }
34370 +
34371 + return address;
34372 +}
34373 diff --git a/libltdl/loaders/loadlibrary.c b/libltdl/loaders/loadlibrary.c
34374 new file mode 100644
34375 index 0000000..5644676
34376 --- /dev/null
34377 +++ b/libltdl/loaders/loadlibrary.c
34378 @@ -0,0 +1,251 @@
34379 +/* loader-loadlibrary.c -- dynamic linking for Win32
34380 +
34381 + Copyright (C) 1998, 1999, 2000, 2004, 2005, 2006,
34382 + 2007, 2008 Free Software Foundation, Inc.
34383 + Written by Thomas Tanner, 1998
34384 +
34385 + NOTE: The canonical source of this file is maintained with the
34386 + GNU Libtool package. Report bugs to [email protected].
34387 +
34388 +GNU Libltdl is free software; you can redistribute it and/or
34389 +modify it under the terms of the GNU Lesser General Public
34390 +License as published by the Free Software Foundation; either
34391 +version 2 of the License, or (at your option) any later version.
34392 +
34393 +As a special exception to the GNU Lesser General Public License,
34394 +if you distribute this file as part of a program or library that
34395 +is built using GNU Libtool, you may include this file under the
34396 +same distribution terms that you use for the rest of that program.
34397 +
34398 +GNU Libltdl is distributed in the hope that it will be useful,
34399 +but WITHOUT ANY WARRANTY; without even the implied warranty of
34400 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34401 +GNU Lesser General Public License for more details.
34402 +
34403 +You should have received a copy of the GNU Lesser General Public
34404 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
34405 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
34406 +or obtained by writing to the Free Software Foundation, Inc.,
34407 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34408 +*/
34409 +
34410 +#include "lt__private.h"
34411 +#include "lt_dlloader.h"
34412 +
34413 +#if defined(__CYGWIN__)
34414 +# include <sys/cygwin.h>
34415 +#endif
34416 +
34417 +/* Use the preprocessor to rename non-static symbols to avoid namespace
34418 + collisions when the loader code is statically linked into libltdl.
34419 + Use the "<module_name>_LTX_" prefix so that the symbol addresses can
34420 + be fetched from the preloaded symbol list by lt_dlsym(): */
34421 +#define get_vtable loadlibrary_LTX_get_vtable
34422 +
34423 +LT_BEGIN_C_DECLS
34424 +LT_SCOPE lt_dlvtable *get_vtable (lt_user_data loader_data);
34425 +LT_END_C_DECLS
34426 +
34427 +
34428 +/* Boilerplate code to set up the vtable for hooking this loader into
34429 + libltdl's loader list: */
34430 +static int vl_exit (lt_user_data loader_data);
34431 +static lt_module vm_open (lt_user_data loader_data, const char *filename,
34432 + lt_dladvise advise);
34433 +static int vm_close (lt_user_data loader_data, lt_module module);
34434 +static void * vm_sym (lt_user_data loader_data, lt_module module,
34435 + const char *symbolname);
34436 +
34437 +static lt_dlinterface_id iface_id = 0;
34438 +static lt_dlvtable *vtable = 0;
34439 +
34440 +/* Return the vtable for this loader, only the name and sym_prefix
34441 + attributes (plus the virtual function implementations, obviously)
34442 + change between loaders. */
34443 +lt_dlvtable *
34444 +get_vtable (lt_user_data loader_data)
34445 +{
34446 + if (!vtable)
34447 + {
34448 + vtable = (lt_dlvtable *) lt__zalloc (sizeof *vtable);
34449 + iface_id = lt_dlinterface_register ("ltdl loadlibrary", NULL);
34450 + }
34451 +
34452 + if (vtable && !vtable->name)
34453 + {
34454 + vtable->name = "lt_loadlibrary";
34455 + vtable->module_open = vm_open;
34456 + vtable->module_close = vm_close;
34457 + vtable->find_sym = vm_sym;
34458 + vtable->dlloader_exit = vl_exit;
34459 + vtable->dlloader_data = loader_data;
34460 + vtable->priority = LT_DLLOADER_APPEND;
34461 + }
34462 +
34463 + if (vtable && (vtable->dlloader_data != loader_data))
34464 + {
34465 + LT__SETERROR (INIT_LOADER);
34466 + return 0;
34467 + }
34468 +
34469 + return vtable;
34470 +}
34471 +
34472 +
34473 +
34474 +/* --- IMPLEMENTATION --- */
34475 +
34476 +
34477 +#include <windows.h>
34478 +
34479 +/* A function called through the vtable when this loader is no
34480 + longer needed by the application. */
34481 +static int
34482 +vl_exit (lt_user_data LT__UNUSED loader_data)
34483 +{
34484 + vtable = NULL;
34485 + return 0;
34486 +}
34487 +
34488 +/* A function called through the vtable to open a module with this
34489 + loader. Returns an opaque representation of the newly opened
34490 + module for processing with this loader's other vtable functions. */
34491 +static lt_module
34492 +vm_open (lt_user_data LT__UNUSED loader_data, const char *filename,
34493 + lt_dladvise LT__UNUSED advise)
34494 +{
34495 + lt_module module = 0;
34496 + char *ext;
34497 + char wpath[MAX_PATH];
34498 + size_t len;
34499 +
34500 + if (!filename)
34501 + {
34502 + /* Get the name of main module */
34503 + *wpath = 0;
34504 + GetModuleFileName (NULL, wpath, sizeof (wpath));
34505 + filename = wpath;
34506 + }
34507 + else
34508 + {
34509 + len = LT_STRLEN (filename);
34510 +
34511 + if (len >= MAX_PATH)
34512 + {
34513 + LT__SETERROR (CANNOT_OPEN);
34514 + return 0;
34515 + }
34516 +
34517 +#if HAVE_DECL_CYGWIN_CONV_PATH
34518 + if (cygwin_conv_path (CCP_POSIX_TO_WIN_A, filename, wpath, MAX_PATH))
34519 + {
34520 + LT__SETERROR (CANNOT_OPEN);
34521 + return 0;
34522 + }
34523 + len = 0;
34524 +#elif defined(__CYGWIN__)
34525 + cygwin_conv_to_full_win32_path (filename, wpath);
34526 + len = 0;
34527 +#else
34528 + strcpy(wpath, filename);
34529 +#endif
34530 +
34531 + ext = strrchr (wpath, '.');
34532 + if (!ext)
34533 + {
34534 + /* Append a `.' to stop Windows from adding an
34535 + implicit `.dll' extension. */
34536 + if (!len)
34537 + len = LT_STRLEN (wpath);
34538 +
34539 + if (len + 1 >= MAX_PATH)
34540 + {
34541 + LT__SETERROR (CANNOT_OPEN);
34542 + return 0;
34543 + }
34544 +
34545 + wpath[len] = '.';
34546 + wpath[len+1] = '\0';
34547 + }
34548 + }
34549 +
34550 + {
34551 + /* Silence dialog from LoadLibrary on some failures.
34552 + No way to get the error mode, but to set it,
34553 + so set it twice to preserve any previous flags. */
34554 + UINT errormode = SetErrorMode(SEM_FAILCRITICALERRORS);
34555 + SetErrorMode(errormode | SEM_FAILCRITICALERRORS);
34556 +
34557 + module = LoadLibrary (wpath);
34558 +
34559 + /* Restore the error mode. */
34560 + SetErrorMode(errormode);
34561 + }
34562 +
34563 + /* libltdl expects this function to fail if it is unable
34564 + to physically load the library. Sadly, LoadLibrary
34565 + will search the loaded libraries for a match and return
34566 + one of them if the path search load fails.
34567 +
34568 + We check whether LoadLibrary is returning a handle to
34569 + an already loaded module, and simulate failure if we
34570 + find one. */
34571 + {
34572 + lt_dlhandle cur = 0;
34573 +
34574 + while ((cur = lt_dlhandle_iterate (iface_id, cur)))
34575 + {
34576 + if (!cur->module)
34577 + {
34578 + cur = 0;
34579 + break;
34580 + }
34581 +
34582 + if (cur->module == module)
34583 + {
34584 + break;
34585 + }
34586 + }
34587 +
34588 + if (cur || !module)
34589 + {
34590 + LT__SETERROR (CANNOT_OPEN);
34591 + module = 0;
34592 + }
34593 + }
34594 +
34595 + return module;
34596 +}
34597 +
34598 +
34599 +/* A function called through the vtable when a particular module
34600 + should be unloaded. */
34601 +static int
34602 +vm_close (lt_user_data LT__UNUSED loader_data, lt_module module)
34603 +{
34604 + int errors = 0;
34605 +
34606 + if (FreeLibrary((HMODULE) module) == 0)
34607 + {
34608 + LT__SETERROR (CANNOT_CLOSE);
34609 + ++errors;
34610 + }
34611 +
34612 + return errors;
34613 +}
34614 +
34615 +
34616 +/* A function called through the vtable to get the address of
34617 + a symbol loaded from a particular module. */
34618 +static void *
34619 +vm_sym (lt_user_data LT__UNUSED loader_data, lt_module module, const char *name)
34620 +{
34621 + void *address = (void *) GetProcAddress ((HMODULE) module, name);
34622 +
34623 + if (!address)
34624 + {
34625 + LT__SETERROR (SYMBOL_NOT_FOUND);
34626 + }
34627 +
34628 + return address;
34629 +}
34630 diff --git a/libltdl/loaders/preopen.c b/libltdl/loaders/preopen.c
34631 new file mode 100644
34632 index 0000000..7149287
34633 --- /dev/null
34634 +++ b/libltdl/loaders/preopen.c
34635 @@ -0,0 +1,375 @@
34636 +/* loader-preopen.c -- emulate dynamic linking using preloaded_symbols
34637 +
34638 + Copyright (C) 1998, 1999, 2000, 2004, 2006,
34639 + 2007, 2008 Free Software Foundation, Inc.
34640 + Written by Thomas Tanner, 1998
34641 +
34642 + NOTE: The canonical source of this file is maintained with the
34643 + GNU Libtool package. Report bugs to [email protected].
34644 +
34645 +GNU Libltdl is free software; you can redistribute it and/or
34646 +modify it under the terms of the GNU Lesser General Public
34647 +License as published by the Free Software Foundation; either
34648 +version 2 of the License, or (at your option) any later version.
34649 +
34650 +As a special exception to the GNU Lesser General Public License,
34651 +if you distribute this file as part of a program or library that
34652 +is built using GNU Libtool, you may include this file under the
34653 +same distribution terms that you use for the rest of that program.
34654 +
34655 +GNU Libltdl is distributed in the hope that it will be useful,
34656 +but WITHOUT ANY WARRANTY; without even the implied warranty of
34657 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34658 +GNU Lesser General Public License for more details.
34659 +
34660 +You should have received a copy of the GNU Lesser General Public
34661 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
34662 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
34663 +or obtained by writing to the Free Software Foundation, Inc.,
34664 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34665 +*/
34666 +
34667 +#include "lt__private.h"
34668 +#include "lt_dlloader.h"
34669 +
34670 +/* Use the preprocessor to rename non-static symbols to avoid namespace
34671 + collisions when the loader code is statically linked into libltdl.
34672 + Use the "<module_name>_LTX_" prefix so that the symbol addresses can
34673 + be fetched from the preloaded symbol list by lt_dlsym(): */
34674 +#define get_vtable preopen_LTX_get_vtable
34675 +
34676 +LT_BEGIN_C_DECLS
34677 +LT_SCOPE lt_dlvtable *get_vtable (lt_user_data loader_data);
34678 +LT_END_C_DECLS
34679 +
34680 +
34681 +/* Boilerplate code to set up the vtable for hooking this loader into
34682 + libltdl's loader list: */
34683 +static int vl_init (lt_user_data loader_data);
34684 +static int vl_exit (lt_user_data loader_data);
34685 +static lt_module vm_open (lt_user_data loader_data, const char *filename,
34686 + lt_dladvise advise);
34687 +static int vm_close (lt_user_data loader_data, lt_module module);
34688 +static void * vm_sym (lt_user_data loader_data, lt_module module,
34689 + const char *symbolname);
34690 +
34691 +static lt_dlvtable *vtable = 0;
34692 +
34693 +/* Return the vtable for this loader, only the name and sym_prefix
34694 + attributes (plus the virtual function implementations, obviously)
34695 + change between loaders. */
34696 +lt_dlvtable *
34697 +get_vtable (lt_user_data loader_data)
34698 +{
34699 + if (!vtable)
34700 + {
34701 + vtable = (lt_dlvtable *) lt__zalloc (sizeof *vtable);
34702 + }
34703 +
34704 + if (vtable && !vtable->name)
34705 + {
34706 + vtable->name = "lt_preopen";
34707 + vtable->sym_prefix = 0;
34708 + vtable->module_open = vm_open;
34709 + vtable->module_close = vm_close;
34710 + vtable->find_sym = vm_sym;
34711 + vtable->dlloader_init = vl_init;
34712 + vtable->dlloader_exit = vl_exit;
34713 + vtable->dlloader_data = loader_data;
34714 + vtable->priority = LT_DLLOADER_PREPEND;
34715 + }
34716 +
34717 + if (vtable && (vtable->dlloader_data != loader_data))
34718 + {
34719 + LT__SETERROR (INIT_LOADER);
34720 + return 0;
34721 + }
34722 +
34723 + return vtable;
34724 +}
34725 +
34726 +
34727 +
34728 +/* --- IMPLEMENTATION --- */
34729 +
34730 +
34731 +/* Wrapper type to chain together symbol lists of various origins. */
34732 +typedef struct symlist_chain
34733 +{
34734 + struct symlist_chain *next;
34735 + const lt_dlsymlist *symlist;
34736 +} symlist_chain;
34737 +
34738 +
34739 +static int add_symlist (const lt_dlsymlist *symlist);
34740 +static int free_symlists (void);
34741 +
34742 +/* The start of the symbol lists chain. */
34743 +static symlist_chain *preloaded_symlists = 0;
34744 +
34745 +/* A symbol list preloaded before lt_init() was called. */
34746 +static const lt_dlsymlist *default_preloaded_symbols = 0;
34747 +
34748 +
34749 +/* A function called through the vtable to initialise this loader. */
34750 +static int
34751 +vl_init (lt_user_data LT__UNUSED loader_data)
34752 +{
34753 + int errors = 0;
34754 +
34755 + preloaded_symlists = 0;
34756 + if (default_preloaded_symbols)
34757 + {
34758 + errors = lt_dlpreload (default_preloaded_symbols);
34759 + }
34760 +
34761 + return errors;
34762 +}
34763 +
34764 +
34765 +/* A function called through the vtable when this loader is no
34766 + longer needed by the application. */
34767 +static int
34768 +vl_exit (lt_user_data LT__UNUSED loader_data)
34769 +{
34770 + vtable = NULL;
34771 + free_symlists ();
34772 + return 0;
34773 +}
34774 +
34775 +
34776 +/* A function called through the vtable to open a module with this
34777 + loader. Returns an opaque representation of the newly opened
34778 + module for processing with this loader's other vtable functions. */
34779 +static lt_module
34780 +vm_open (lt_user_data LT__UNUSED loader_data, const char *filename,
34781 + lt_dladvise LT__UNUSED advise)
34782 +{
34783 + symlist_chain *lists;
34784 + lt_module module = 0;
34785 +
34786 + if (!preloaded_symlists)
34787 + {
34788 + LT__SETERROR (NO_SYMBOLS);
34789 + goto done;
34790 + }
34791 +
34792 + /* Can't use NULL as the reflective symbol header, as NULL is
34793 + used to mark the end of the entire symbol list. Self-dlpreopened
34794 + symbols follow this magic number, chosen to be an unlikely
34795 + clash with a real module name. */
34796 + if (!filename)
34797 + {
34798 + filename = "@PROGRAM@";
34799 + }
34800 +
34801 + for (lists = preloaded_symlists; lists; lists = lists->next)
34802 + {
34803 + const lt_dlsymlist *symbol;
34804 + for (symbol= lists->symlist; symbol->name; ++symbol)
34805 + {
34806 + if (!symbol->address && streq (symbol->name, filename))
34807 + {
34808 + /* If the next symbol's name and address is 0, it means
34809 + the module just contains the originator and no symbols.
34810 + In this case we pretend that we never saw the module and
34811 + hope that some other loader will be able to load the module
34812 + and have access to its symbols */
34813 + const lt_dlsymlist *next_symbol = symbol +1;
34814 + if (next_symbol->address && next_symbol->name)
34815 + {
34816 + module = (lt_module) lists->symlist;
34817 + goto done;
34818 + }
34819 + }
34820 + }
34821 + }
34822 +
34823 + LT__SETERROR (FILE_NOT_FOUND);
34824 +
34825 + done:
34826 + return module;
34827 +}
34828 +
34829 +
34830 +/* A function called through the vtable when a particular module
34831 + should be unloaded. */
34832 +static int
34833 +vm_close (lt_user_data LT__UNUSED loader_data, lt_module LT__UNUSED module)
34834 +{
34835 + /* Just to silence gcc -Wall */
34836 + module = 0;
34837 + return 0;
34838 +}
34839 +
34840 +
34841 +/* A function called through the vtable to get the address of
34842 + a symbol loaded from a particular module. */
34843 +static void *
34844 +vm_sym (lt_user_data LT__UNUSED loader_data, lt_module module, const char *name)
34845 +{
34846 + lt_dlsymlist *symbol = (lt_dlsymlist*) module;
34847 +
34848 + symbol +=2; /* Skip header (originator then libname). */
34849 +
34850 + while (symbol->name)
34851 + {
34852 + if (streq (symbol->name, name))
34853 + {
34854 + return symbol->address;
34855 + }
34856 +
34857 + ++symbol;
34858 + }
34859 +
34860 + LT__SETERROR (SYMBOL_NOT_FOUND);
34861 +
34862 + return 0;
34863 +}
34864 +
34865 +
34866 +
34867 +/* --- HELPER FUNCTIONS --- */
34868 +
34869 +
34870 +/* The symbol lists themselves are not allocated from the heap, but
34871 + we can unhook them and free up the chain of links between them. */
34872 +static int
34873 +free_symlists (void)
34874 +{
34875 + symlist_chain *lists;
34876 +
34877 + lists = preloaded_symlists;
34878 + while (lists)
34879 + {
34880 + symlist_chain *next = lists->next;
34881 + FREE (lists);
34882 + lists = next;
34883 + }
34884 + preloaded_symlists = 0;
34885 +
34886 + return 0;
34887 +}
34888 +
34889 +/* Add a new symbol list to the global chain. */
34890 +static int
34891 +add_symlist (const lt_dlsymlist *symlist)
34892 +{
34893 + symlist_chain *lists;
34894 + int errors = 0;
34895 +
34896 + /* Search for duplicate entries: */
34897 + for (lists = preloaded_symlists;
34898 + lists && lists->symlist != symlist; lists = lists->next)
34899 + /*NOWORK*/;
34900 +
34901 + /* Don't add the same list twice: */
34902 + if (!lists)
34903 + {
34904 + symlist_chain *tmp = (symlist_chain *) lt__zalloc (sizeof *tmp);
34905 +
34906 + if (tmp)
34907 + {
34908 + tmp->symlist = symlist;
34909 + tmp->next = preloaded_symlists;
34910 + preloaded_symlists = tmp;
34911 + }
34912 + else
34913 + {
34914 + ++errors;
34915 + }
34916 + }
34917 +
34918 + return errors;
34919 +}
34920 +
34921 +
34922 +
34923 +/* --- PRELOADING API CALL IMPLEMENTATIONS --- */
34924 +
34925 +
34926 +/* Save a default symbol list for later. */
34927 +int
34928 +lt_dlpreload_default (const lt_dlsymlist *preloaded)
34929 +{
34930 + default_preloaded_symbols = preloaded;
34931 + return 0;
34932 +}
34933 +
34934 +
34935 +/* Add a symbol list to the global chain, or with a NULL argument,
34936 + revert to just the default list. */
34937 +int
34938 +lt_dlpreload (const lt_dlsymlist *preloaded)
34939 +{
34940 + int errors = 0;
34941 +
34942 + if (preloaded)
34943 + {
34944 + errors = add_symlist (preloaded);
34945 + }
34946 + else
34947 + {
34948 + free_symlists();
34949 +
34950 + if (default_preloaded_symbols)
34951 + {
34952 + errors = lt_dlpreload (default_preloaded_symbols);
34953 + }
34954 + }
34955 +
34956 + return errors;
34957 +}
34958 +
34959 +
34960 +/* Open all the preloaded modules from the named originator, executing
34961 + a callback for each one. If ORIGINATOR is NULL, then call FUNC for
34962 + each preloaded module from the program itself. */
34963 +int
34964 +lt_dlpreload_open (const char *originator, lt_dlpreload_callback_func *func)
34965 +{
34966 + symlist_chain *list;
34967 + int errors = 0;
34968 + int found = 0;
34969 +
34970 + /* For each symlist in the chain... */
34971 + for (list = preloaded_symlists; list; list = list->next)
34972 + {
34973 + /* ...that was preloaded by the requesting ORIGINATOR... */
34974 + if ((originator && streq (list->symlist->name, originator))
34975 + || (!originator && streq (list->symlist->name, "@PROGRAM@")))
34976 + {
34977 + const lt_dlsymlist *symbol;
34978 + unsigned int idx = 0;
34979 +
34980 + ++found;
34981 +
34982 + /* ...load the symbols per source compilation unit:
34983 + (we preincrement the index to skip over the originator entry) */
34984 + while ((symbol = &list->symlist[++idx])->name != 0)
34985 + {
34986 + if ((symbol->address == 0)
34987 + && (strneq (symbol->name, "@PROGRAM@")))
34988 + {
34989 + lt_dlhandle handle = lt_dlopen (symbol->name);
34990 + if (handle == 0)
34991 + {
34992 + ++errors;
34993 + }
34994 + else
34995 + {
34996 + errors += (*func) (handle);
34997 + }
34998 + }
34999 + }
35000 + }
35001 + }
35002 +
35003 + if (!found)
35004 + {
35005 + LT__SETERROR(CANNOT_OPEN);
35006 + ++errors;
35007 + }
35008 +
35009 + return errors;
35010 +}
35011 diff --git a/libltdl/loaders/shl_load.c b/libltdl/loaders/shl_load.c
35012 new file mode 100644
35013 index 0000000..5a09d87
35014 --- /dev/null
35015 +++ b/libltdl/loaders/shl_load.c
35016 @@ -0,0 +1,222 @@
35017 +/* loader-shl_load.c -- dynamic linking with shl_load (HP-UX)
35018 +
35019 + Copyright (C) 1998, 1999, 2000, 2004, 2006,
35020 + 2007, 2008 Free Software Foundation, Inc.
35021 + Written by Thomas Tanner, 1998
35022 +
35023 + NOTE: The canonical source of this file is maintained with the
35024 + GNU Libtool package. Report bugs to [email protected].
35025 +
35026 +GNU Libltdl is free software; you can redistribute it and/or
35027 +modify it under the terms of the GNU Lesser General Public
35028 +License as published by the Free Software Foundation; either
35029 +version 2 of the License, or (at your option) any later version.
35030 +
35031 +As a special exception to the GNU Lesser General Public License,
35032 +if you distribute this file as part of a program or library that
35033 +is built using GNU Libtool, you may include this file under the
35034 +same distribution terms that you use for the rest of that program.
35035 +
35036 +GNU Libltdl is distributed in the hope that it will be useful,
35037 +but WITHOUT ANY WARRANTY; without even the implied warranty of
35038 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35039 +GNU Lesser General Public License for more details.
35040 +
35041 +You should have received a copy of the GNU Lesser General Public
35042 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
35043 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
35044 +or obtained by writing to the Free Software Foundation, Inc.,
35045 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35046 +*/
35047 +
35048 +#include "lt__private.h"
35049 +#include "lt_dlloader.h"
35050 +
35051 +/* Use the preprocessor to rename non-static symbols to avoid namespace
35052 + collisions when the loader code is statically linked into libltdl.
35053 + Use the "<module_name>_LTX_" prefix so that the symbol addresses can
35054 + be fetched from the preloaded symbol list by lt_dlsym(): */
35055 +#define get_vtable shl_load_LTX_get_vtable
35056 +
35057 +LT_BEGIN_C_DECLS
35058 +LT_SCOPE lt_dlvtable *get_vtable (lt_user_data loader_data);
35059 +LT_END_C_DECLS
35060 +
35061 +
35062 +/* Boilerplate code to set up the vtable for hooking this loader into
35063 + libltdl's loader list: */
35064 +static int vl_exit (lt_user_data loader_data);
35065 +static lt_module vm_open (lt_user_data loader_data, const char *filename,
35066 + lt_dladvise advise);
35067 +static int vm_close (lt_user_data loader_data, lt_module module);
35068 +static void * vm_sym (lt_user_data loader_data, lt_module module,
35069 + const char *symbolname);
35070 +
35071 +static lt_dlvtable *vtable = 0;
35072 +
35073 +/* Return the vtable for this loader, only the name and sym_prefix
35074 + attributes (plus the virtual function implementations, obviously)
35075 + change between loaders. */
35076 +lt_dlvtable *
35077 +get_vtable (lt_user_data loader_data)
35078 +{
35079 + if (!vtable)
35080 + {
35081 + vtable = lt__zalloc (sizeof *vtable);
35082 + }
35083 +
35084 + if (vtable && !vtable->name)
35085 + {
35086 + vtable->name = "lt_shl_load";
35087 + vtable->module_open = vm_open;
35088 + vtable->module_close = vm_close;
35089 + vtable->find_sym = vm_sym;
35090 + vtable->dlloader_exit = vl_exit;
35091 + vtable->dlloader_data = loader_data;
35092 + vtable->priority = LT_DLLOADER_APPEND;
35093 + }
35094 +
35095 + if (vtable && (vtable->dlloader_data != loader_data))
35096 + {
35097 + LT__SETERROR (INIT_LOADER);
35098 + return 0;
35099 + }
35100 +
35101 + return vtable;
35102 +}
35103 +
35104 +
35105 +
35106 +/* --- IMPLEMENTATION --- */
35107 +
35108 +
35109 +#if defined(HAVE_DL_H)
35110 +# include <dl.h>
35111 +#endif
35112 +
35113 +/* some flags are missing on some systems, so we provide
35114 + * harmless defaults.
35115 + *
35116 + * Mandatory:
35117 + * BIND_IMMEDIATE - Resolve symbol references when the library is loaded.
35118 + * BIND_DEFERRED - Delay code symbol resolution until actual reference.
35119 + *
35120 + * Optionally:
35121 + * BIND_FIRST - Place the library at the head of the symbol search
35122 + * order.
35123 + * BIND_NONFATAL - The default BIND_IMMEDIATE behavior is to treat all
35124 + * unsatisfied symbols as fatal. This flag allows
35125 + * binding of unsatisfied code symbols to be deferred
35126 + * until use.
35127 + * [Perl: For certain libraries, like DCE, deferred
35128 + * binding often causes run time problems. Adding
35129 + * BIND_NONFATAL to BIND_IMMEDIATE still allows
35130 + * unresolved references in situations like this.]
35131 + * BIND_NOSTART - Do not call the initializer for the shared library
35132 + * when the library is loaded, nor on a future call to
35133 + * shl_unload().
35134 + * BIND_VERBOSE - Print verbose messages concerning possible
35135 + * unsatisfied symbols.
35136 + *
35137 + * hp9000s700/hp9000s800:
35138 + * BIND_RESTRICTED - Restrict symbols visible by the library to those
35139 + * present at library load time.
35140 + * DYNAMIC_PATH - Allow the loader to dynamically search for the
35141 + * library specified by the path argument.
35142 + */
35143 +
35144 +#if !defined(DYNAMIC_PATH)
35145 +# define DYNAMIC_PATH 0
35146 +#endif
35147 +#if !defined(BIND_RESTRICTED)
35148 +# define BIND_RESTRICTED 0
35149 +#endif
35150 +
35151 +#define LT_BIND_FLAGS (BIND_IMMEDIATE | BIND_NONFATAL | DYNAMIC_PATH)
35152 +
35153 +
35154 +/* A function called through the vtable when this loader is no
35155 + longer needed by the application. */
35156 +static int
35157 +vl_exit (lt_user_data LT__UNUSED loader_data)
35158 +{
35159 + vtable = NULL;
35160 + return 0;
35161 +}
35162 +
35163 +/* A function called through the vtable to open a module with this
35164 + loader. Returns an opaque representation of the newly opened
35165 + module for processing with this loader's other vtable functions. */
35166 +static lt_module
35167 +vm_open (lt_user_data LT__UNUSED loader_data, const char *filename,
35168 + lt_dladvise LT__UNUSED advise)
35169 +{
35170 + static shl_t self = (shl_t) 0;
35171 + lt_module module = shl_load (filename, LT_BIND_FLAGS, 0L);
35172 +
35173 + /* Since searching for a symbol against a NULL module handle will also
35174 + look in everything else that was already loaded and exported with
35175 + the -E compiler flag, we always cache a handle saved before any
35176 + modules are loaded. */
35177 + if (!self)
35178 + {
35179 + void *address;
35180 + shl_findsym (&self, "main", TYPE_UNDEFINED, &address);
35181 + }
35182 +
35183 + if (!filename)
35184 + {
35185 + module = self;
35186 + }
35187 + else
35188 + {
35189 + module = shl_load (filename, LT_BIND_FLAGS, 0L);
35190 +
35191 + if (!module)
35192 + {
35193 + LT__SETERROR (CANNOT_OPEN);
35194 + }
35195 + }
35196 +
35197 + return module;
35198 +}
35199 +
35200 +/* A function called through the vtable when a particular module
35201 + should be unloaded. */
35202 +static int
35203 +vm_close (lt_user_data LT__UNUSED loader_data, lt_module module)
35204 +{
35205 + int errors = 0;
35206 +
35207 + if (module && (shl_unload ((shl_t) (module)) != 0))
35208 + {
35209 + LT__SETERROR (CANNOT_CLOSE);
35210 + ++errors;
35211 + }
35212 +
35213 + return errors;
35214 +}
35215 +
35216 +
35217 +/* A function called through the vtable to get the address of
35218 + a symbol loaded from a particular module. */
35219 +static void *
35220 +vm_sym (lt_user_data LT__UNUSED loader_data, lt_module module, const char *name)
35221 +{
35222 + void *address = 0;
35223 +
35224 + /* sys_shl_open should never return a NULL module handle */
35225 + if (module == (lt_module) 0)
35226 + {
35227 + LT__SETERROR (INVALID_HANDLE);
35228 + }
35229 + else if (!shl_findsym((shl_t*) &module, name, TYPE_UNDEFINED, &address))
35230 + {
35231 + if (!address)
35232 + {
35233 + LT__SETERROR (SYMBOL_NOT_FOUND);
35234 + }
35235 + }
35236 +
35237 + return address;
35238 +}
35239 diff --git a/libltdl/lt__alloc.c b/libltdl/lt__alloc.c
35240 new file mode 100644
35241 index 0000000..d39e17e
35242 --- /dev/null
35243 +++ b/libltdl/lt__alloc.c
35244 @@ -0,0 +1,95 @@
35245 +/* lt__alloc.c -- internal memory management interface
35246 +
35247 + Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
35248 + Written by Gary V. Vaughan, 2004
35249 +
35250 + NOTE: The canonical source of this file is maintained with the
35251 + GNU Libtool package. Report bugs to [email protected].
35252 +
35253 +GNU Libltdl is free software; you can redistribute it and/or
35254 +modify it under the terms of the GNU Lesser General Public
35255 +License as published by the Free Software Foundation; either
35256 +version 2 of the License, or (at your option) any later version.
35257 +
35258 +As a special exception to the GNU Lesser General Public License,
35259 +if you distribute this file as part of a program or library that
35260 +is built using GNU Libtool, you may include this file under the
35261 +same distribution terms that you use for the rest of that program.
35262 +
35263 +GNU Libltdl is distributed in the hope that it will be useful,
35264 +but WITHOUT ANY WARRANTY; without even the implied warranty of
35265 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35266 +GNU Lesser General Public License for more details.
35267 +
35268 +You should have received a copy of the GNU Lesser General Public
35269 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
35270 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
35271 +or obtained by writing to the Free Software Foundation, Inc.,
35272 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35273 +*/
35274 +
35275 +#include "lt__private.h"
35276 +
35277 +#include <stdio.h>
35278 +
35279 +#include "lt__alloc.h"
35280 +
35281 +static void alloc_die_default (void);
35282 +
35283 +void (*lt__alloc_die) (void) = alloc_die_default;
35284 +
35285 +/* Unless overridden, exit on memory failure. */
35286 +static void
35287 +alloc_die_default (void)
35288 +{
35289 + fprintf (stderr, "Out of memory.\n");
35290 + exit (EXIT_FAILURE);
35291 +}
35292 +
35293 +void *
35294 +lt__malloc (size_t n)
35295 +{
35296 + void *mem;
35297 +
35298 + if (! (mem = malloc (n)))
35299 + (*lt__alloc_die) ();
35300 +
35301 + return mem;
35302 +}
35303 +
35304 +void *
35305 +lt__zalloc (size_t n)
35306 +{
35307 + void *mem;
35308 +
35309 + if ((mem = lt__malloc (n)))
35310 + memset (mem, 0, n);
35311 +
35312 + return mem;
35313 +}
35314 +
35315 +void *
35316 +lt__realloc (void *mem, size_t n)
35317 +{
35318 + if (! (mem = realloc (mem, n)))
35319 + (*lt__alloc_die) ();
35320 +
35321 + return mem;
35322 +}
35323 +
35324 +void *
35325 +lt__memdup (void const *mem, size_t n)
35326 +{
35327 + void *newmem;
35328 +
35329 + if ((newmem = lt__malloc (n)))
35330 + return memcpy (newmem, mem, n);
35331 +
35332 + return 0;
35333 +}
35334 +
35335 +char *
35336 +lt__strdup (const char *string)
35337 +{
35338 + return (char *) lt__memdup (string, strlen (string) +1);
35339 +}
35340 diff --git a/libltdl/lt__dirent.c b/libltdl/lt__dirent.c
35341 new file mode 100644
35342 index 0000000..30dc072
35343 --- /dev/null
35344 +++ b/libltdl/lt__dirent.c
35345 @@ -0,0 +1,107 @@
35346 +/* lt__dirent.c -- internal directory entry scanning interface
35347 +
35348 + Copyright (C) 2001, 2004 Free Software Foundation, Inc.
35349 + Written by Bob Friesenhahn, 2001
35350 +
35351 + NOTE: The canonical source of this file is maintained with the
35352 + GNU Libtool package. Report bugs to [email protected].
35353 +
35354 +GNU Libltdl is free software; you can redistribute it and/or
35355 +modify it under the terms of the GNU Lesser General Public
35356 +License as published by the Free Software Foundation; either
35357 +version 2 of the License, or (at your option) any later version.
35358 +
35359 +As a special exception to the GNU Lesser General Public License,
35360 +if you distribute this file as part of a program or library that
35361 +is built using GNU Libtool, you may include this file under the
35362 +same distribution terms that you use for the rest of that program.
35363 +
35364 +GNU Libltdl is distributed in the hope that it will be useful,
35365 +but WITHOUT ANY WARRANTY; without even the implied warranty of
35366 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35367 +GNU Lesser General Public License for more details.
35368 +
35369 +You should have received a copy of the GNU Lesser General Public
35370 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
35371 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
35372 +or obtained by writing to the Free Software Foundation, Inc.,
35373 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35374 +*/
35375 +
35376 +#include "lt__private.h"
35377 +
35378 +#include <assert.h>
35379 +#include <stddef.h>
35380 +
35381 +#include "lt__dirent.h"
35382 +
35383 +#if defined(__WINDOWS__)
35384 +
35385 +void
35386 +closedir (DIR *entry)
35387 +{
35388 + assert (entry != (DIR *) NULL);
35389 + FindClose (entry->hSearch);
35390 + free ((void *) entry);
35391 +}
35392 +
35393 +
35394 +DIR *
35395 +opendir (const char *path)
35396 +{
35397 + char file_spec[LT_FILENAME_MAX];
35398 + DIR *entry;
35399 +
35400 + assert (path != (char *) 0);
35401 + if (lt_strlcpy (file_spec, path, sizeof file_spec) >= sizeof file_spec
35402 + || lt_strlcat (file_spec, "\\", sizeof file_spec) >= sizeof file_spec)
35403 + return (DIR *) 0;
35404 + entry = (DIR *) malloc (sizeof(DIR));
35405 + if (entry != (DIR *) 0)
35406 + {
35407 + entry->firsttime = TRUE;
35408 + entry->hSearch = FindFirstFile (file_spec, &entry->Win32FindData);
35409 +
35410 + if (entry->hSearch == INVALID_HANDLE_VALUE)
35411 + {
35412 + if (lt_strlcat (file_spec, "\\*.*", sizeof file_spec) < sizeof file_spec)
35413 + {
35414 + entry->hSearch = FindFirstFile (file_spec, &entry->Win32FindData);
35415 + }
35416 +
35417 + if (entry->hSearch == INVALID_HANDLE_VALUE)
35418 + {
35419 + entry = (free (entry), (DIR *) 0);
35420 + }
35421 + }
35422 + }
35423 +
35424 + return entry;
35425 +}
35426 +
35427 +
35428 +struct dirent *
35429 +readdir (DIR *entry)
35430 +{
35431 + int status;
35432 +
35433 + if (entry == (DIR *) 0)
35434 + return (struct dirent *) 0;
35435 +
35436 + if (!entry->firsttime)
35437 + {
35438 + status = FindNextFile (entry->hSearch, &entry->Win32FindData);
35439 + if (status == 0)
35440 + return (struct dirent *) 0;
35441 + }
35442 +
35443 + entry->firsttime = FALSE;
35444 + if (lt_strlcpy (entry->file_info.d_name, entry->Win32FindData.cFileName,
35445 + sizeof entry->file_info.d_name) >= sizeof entry->file_info.d_name)
35446 + return (struct dirent *) 0;
35447 + entry->file_info.d_namlen = strlen (entry->file_info.d_name);
35448 +
35449 + return &entry->file_info;
35450 +}
35451 +
35452 +#endif /*defined(__WINDOWS__)*/
35453 diff --git a/libltdl/lt__strl.c b/libltdl/lt__strl.c
35454 new file mode 100644
35455 index 0000000..c2cee58
35456 --- /dev/null
35457 +++ b/libltdl/lt__strl.c
35458 @@ -0,0 +1,127 @@
35459 +/* lt__strl.c -- size-bounded string copying and concatenation
35460 +
35461 + Copyright (C) 2004 Free Software Foundation, Inc.
35462 + Written by Bob Friesenhahn, 2004
35463 +
35464 + NOTE: The canonical source of this file is maintained with the
35465 + GNU Libtool package. Report bugs to [email protected].
35466 +
35467 +GNU Libltdl is free software; you can redistribute it and/or
35468 +modify it under the terms of the GNU Lesser General Public
35469 +License as published by the Free Software Foundation; either
35470 +version 2 of the License, or (at your option) any later version.
35471 +
35472 +As a special exception to the GNU Lesser General Public License,
35473 +if you distribute this file as part of a program or library that
35474 +is built using GNU Libtool, you may include this file under the
35475 +same distribution terms that you use for the rest of that program.
35476 +
35477 +GNU Libltdl is distributed in the hope that it will be useful,
35478 +but WITHOUT ANY WARRANTY; without even the implied warranty of
35479 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35480 +GNU Lesser General Public License for more details.
35481 +
35482 +You should have received a copy of the GNU Lesser General Public
35483 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
35484 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
35485 +or obtained by writing to the Free Software Foundation, Inc.,
35486 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35487 +*/
35488 +
35489 +#include <assert.h>
35490 +#include <string.h>
35491 +
35492 +#include "lt__strl.h"
35493 +
35494 +/*
35495 + lt_strlcat appends the NULL-terminated string src to the end of dst.
35496 + It will append at most dstsize - strlen(dst) - 1 bytes,
35497 + NULL-terminating the result. The total length of the string which
35498 + would have been created given sufficient buffer size (may be longer
35499 + than dstsize) is returned. This function substitutes for strlcat()
35500 + which is available under NetBSD, FreeBSD and Solaris 9.
35501 +
35502 + Buffer overflow can be checked as follows:
35503 +
35504 + if (lt_strlcat(dst, src, dstsize) >= dstsize)
35505 + return -1;
35506 +*/
35507 +#if !defined(HAVE_STRLCAT)
35508 +size_t
35509 +lt_strlcat(char *dst, const char *src, const size_t dstsize)
35510 +{
35511 + size_t length;
35512 + char *p;
35513 + const char *q;
35514 +
35515 + assert(dst != NULL);
35516 + assert(src != (const char *) NULL);
35517 + assert(dstsize >= 1);
35518 +
35519 + length=strlen(dst);
35520 +
35521 + /*
35522 + Copy remaining characters from src while constraining length to
35523 + size - 1.
35524 + */
35525 + for ( p = dst + length, q = src;
35526 + (*q != 0) && (length < dstsize - 1) ;
35527 + length++, p++, q++ )
35528 + *p = *q;
35529 +
35530 + dst[length]='\0';
35531 +
35532 + /*
35533 + Add remaining length of src to length.
35534 + */
35535 + while (*q++)
35536 + length++;
35537 +
35538 + return length;
35539 +}
35540 +#endif /* !defined(HAVE_STRLCAT) */
35541 +
35542 +/*
35543 + lt_strlcpy copies up to dstsize - 1 characters from the NULL-terminated
35544 + string src to dst, NULL-terminating the result. The total length of
35545 + the string which would have been created given sufficient buffer
35546 + size (may be longer than dstsize) is returned. This function
35547 + substitutes for strlcpy() which is available under OpenBSD, FreeBSD
35548 + and Solaris 9.
35549 +
35550 + Buffer overflow can be checked as follows:
35551 +
35552 + if (lt_strlcpy(dst, src, dstsize) >= dstsize)
35553 + return -1;
35554 +*/
35555 +#if !defined(HAVE_STRLCPY)
35556 +size_t
35557 +lt_strlcpy(char *dst, const char *src, const size_t dstsize)
35558 +{
35559 + size_t length=0;
35560 + char *p;
35561 + const char *q;
35562 +
35563 + assert(dst != NULL);
35564 + assert(src != (const char *) NULL);
35565 + assert(dstsize >= 1);
35566 +
35567 + /*
35568 + Copy src to dst within bounds of size-1.
35569 + */
35570 + for ( p=dst, q=src, length=0 ;
35571 + (*q != 0) && (length < dstsize-1) ;
35572 + length++, p++, q++ )
35573 + *p = *q;
35574 +
35575 + dst[length]='\0';
35576 +
35577 + /*
35578 + Add remaining length of src to length.
35579 + */
35580 + while (*q++)
35581 + length++;
35582 +
35583 + return length;
35584 +}
35585 +#endif /* !defined(HAVE_STRLCPY) */
35586 diff --git a/libltdl/lt_dlloader.c b/libltdl/lt_dlloader.c
35587 new file mode 100644
35588 index 0000000..4e66a6c
35589 --- /dev/null
35590 +++ b/libltdl/lt_dlloader.c
35591 @@ -0,0 +1,210 @@
35592 +/* lt_dlloader.c -- dynamic library loader interface
35593 +
35594 + Copyright (C) 2004, 2007, 2008 Free Software Foundation, Inc.
35595 + Written by Gary V. Vaughan, 2004
35596 +
35597 + NOTE: The canonical source of this file is maintained with the
35598 + GNU Libtool package. Report bugs to [email protected].
35599 +
35600 +GNU Libltdl is free software; you can redistribute it and/or
35601 +modify it under the terms of the GNU Lesser General Public
35602 +License as published by the Free Software Foundation; either
35603 +version 2 of the License, or (at your option) any later version.
35604 +
35605 +As a special exception to the GNU Lesser General Public License,
35606 +if you distribute this file as part of a program or library that
35607 +is built using GNU Libtool, you may include this file under the
35608 +same distribution terms that you use for the rest of that program.
35609 +
35610 +GNU Libltdl is distributed in the hope that it will be useful,
35611 +but WITHOUT ANY WARRANTY; without even the implied warranty of
35612 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35613 +GNU Lesser General Public License for more details.
35614 +
35615 +You should have received a copy of the GNU Lesser General Public
35616 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
35617 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
35618 +or obtained by writing to the Free Software Foundation, Inc.,
35619 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35620 +*/
35621 +
35622 +#include "lt__private.h"
35623 +#include "lt_dlloader.h"
35624 +
35625 +#define RETURN_SUCCESS 0
35626 +#define RETURN_FAILURE 1
35627 +
35628 +static void * loader_callback (SList *item, void *userdata);
35629 +
35630 +/* A list of all the dlloaders we know about, each stored as a boxed
35631 + SList item: */
35632 +static SList *loaders = 0;
35633 +
35634 +
35635 +/* Return NULL, unless the loader in this ITEM has a matching name,
35636 + in which case we return the matching item so that its address is
35637 + passed back out (for possible freeing) by slist_remove. */
35638 +static void *
35639 +loader_callback (SList *item, void *userdata)
35640 +{
35641 + const lt_dlvtable *vtable = (const lt_dlvtable *) item->userdata;
35642 + const char * name = (const char *) userdata;
35643 +
35644 + assert (vtable);
35645 +
35646 + return streq (vtable->name, name) ? (void *) item : NULL;
35647 +}
35648 +
35649 +
35650 +/* Hook VTABLE into our global LOADERS list according to its own
35651 + PRIORITY field value. */
35652 +int
35653 +lt_dlloader_add (const lt_dlvtable *vtable)
35654 +{
35655 + SList *item;
35656 +
35657 + if ((vtable == 0) /* diagnose invalid vtable fields */
35658 + || (vtable->module_open == 0)
35659 + || (vtable->module_close == 0)
35660 + || (vtable->find_sym == 0)
35661 + || ((vtable->priority != LT_DLLOADER_PREPEND) &&
35662 + (vtable->priority != LT_DLLOADER_APPEND)))
35663 + {
35664 + LT__SETERROR (INVALID_LOADER);
35665 + return RETURN_FAILURE;
35666 + }
35667 +
35668 + item = slist_box (vtable);
35669 + if (!item)
35670 + {
35671 + (*lt__alloc_die) ();
35672 +
35673 + /* Let the caller know something went wrong if lt__alloc_die
35674 + doesn't abort. */
35675 + return RETURN_FAILURE;
35676 + }
35677 +
35678 + if (vtable->priority == LT_DLLOADER_PREPEND)
35679 + {
35680 + loaders = slist_cons (item, loaders);
35681 + }
35682 + else
35683 + {
35684 + assert (vtable->priority == LT_DLLOADER_APPEND);
35685 + loaders = slist_concat (loaders, item);
35686 + }
35687 +
35688 + return RETURN_SUCCESS;
35689 +}
35690 +
35691 +#ifdef LT_DEBUG_LOADERS
35692 +static void *
35693 +loader_dump_callback (SList *item, void *userdata)
35694 +{
35695 + const lt_dlvtable *vtable = (const lt_dlvtable *) item->userdata;
35696 + fprintf (stderr, ", %s", (vtable && vtable->name) ? vtable->name : "(null)");
35697 + return 0;
35698 +}
35699 +
35700 +void
35701 +lt_dlloader_dump (void)
35702 +{
35703 + fprintf (stderr, "loaders: ");
35704 + if (!loaders)
35705 + {
35706 + fprintf (stderr, "(empty)");
35707 + }
35708 + else
35709 + {
35710 + const lt_dlvtable *head = (const lt_dlvtable *) loaders->userdata;
35711 + fprintf (stderr, "%s", (head && head->name) ? head->name : "(null)");
35712 + if (slist_tail (loaders))
35713 + slist_foreach (slist_tail (loaders), loader_dump_callback, NULL);
35714 + }
35715 + fprintf (stderr, "\n");
35716 +}
35717 +#endif
35718 +
35719 +/* An iterator for the global loader list: if LOADER is NULL, then
35720 + return the first element, otherwise the following element. */
35721 +lt_dlloader
35722 +lt_dlloader_next (lt_dlloader loader)
35723 +{
35724 + SList *item = (SList *) loader;
35725 + return (lt_dlloader) (item ? item->next : loaders);
35726 +}
35727 +
35728 +
35729 +/* Non-destructive unboxing of a loader. */
35730 +const lt_dlvtable *
35731 +lt_dlloader_get (lt_dlloader loader)
35732 +{
35733 + return (const lt_dlvtable *) (loader ? ((SList *) loader)->userdata : NULL);
35734 +}
35735 +
35736 +
35737 +/* Return the contents of the first item in the global loader list
35738 + with a matching NAME after removing it from that list. If there
35739 + was no match, return NULL; if there is an error, return NULL and
35740 + set an error for lt_dlerror; do not set an error if only resident
35741 + modules need this loader; in either case, the loader list is not
35742 + changed if NULL is returned. */
35743 +lt_dlvtable *
35744 +lt_dlloader_remove (char *name)
35745 +{
35746 + const lt_dlvtable * vtable = lt_dlloader_find (name);
35747 + static const char id_string[] = "lt_dlloader_remove";
35748 + lt_dlinterface_id iface;
35749 + lt_dlhandle handle = 0;
35750 + int in_use = 0;
35751 + int in_use_by_resident = 0;
35752 +
35753 + if (!vtable)
35754 + {
35755 + LT__SETERROR (INVALID_LOADER);
35756 + return 0;
35757 + }
35758 +
35759 + /* Fail if there are any open modules which use this loader. */
35760 + iface = lt_dlinterface_register (id_string, NULL);
35761 + while ((handle = lt_dlhandle_iterate (iface, handle)))
35762 + {
35763 + lt_dlhandle cur = handle;
35764 + if (cur->vtable == vtable)
35765 + {
35766 + in_use = 1;
35767 + if (lt_dlisresident (handle))
35768 + in_use_by_resident = 1;
35769 + }
35770 + }
35771 + lt_dlinterface_free (iface);
35772 + if (in_use)
35773 + {
35774 + if (!in_use_by_resident)
35775 + LT__SETERROR (REMOVE_LOADER);
35776 + return 0;
35777 + }
35778 +
35779 + /* Call the loader finalisation function. */
35780 + if (vtable && vtable->dlloader_exit)
35781 + {
35782 + if ((*vtable->dlloader_exit) (vtable->dlloader_data) != 0)
35783 + {
35784 + /* If there is an exit function, and it returns non-zero
35785 + then it must set an error, and we will not remove it
35786 + from the list. */
35787 + return 0;
35788 + }
35789 + }
35790 +
35791 + /* If we got this far, remove the loader from our global list. */
35792 + return (lt_dlvtable *)
35793 + slist_unbox ((SList *) slist_remove (&loaders, loader_callback, name));
35794 +}
35795 +
35796 +
35797 +const lt_dlvtable *
35798 +lt_dlloader_find (char *name)
35799 +{
35800 + return lt_dlloader_get (slist_find (loaders, loader_callback, name));
35801 +}
35802 diff --git a/libltdl/lt_error.c b/libltdl/lt_error.c
35803 new file mode 100644
35804 index 0000000..d7af36d
35805 --- /dev/null
35806 +++ b/libltdl/lt_error.c
35807 @@ -0,0 +1,110 @@
35808 +/* lt_error.c -- error propogation interface
35809 +
35810 + Copyright (C) 1999, 2000, 2001, 2004, 2005, 2007 Free Software Foundation, Inc.
35811 + Written by Thomas Tanner, 1999
35812 +
35813 + NOTE: The canonical source of this file is maintained with the
35814 + GNU Libtool package. Report bugs to [email protected].
35815 +
35816 +GNU Libltdl is free software; you can redistribute it and/or
35817 +modify it under the terms of the GNU Lesser General Public
35818 +License as published by the Free Software Foundation; either
35819 +version 2 of the License, or (at your option) any later version.
35820 +
35821 +As a special exception to the GNU Lesser General Public License,
35822 +if you distribute this file as part of a program or library that
35823 +is built using GNU Libtool, you may include this file under the
35824 +same distribution terms that you use for the rest of that program.
35825 +
35826 +GNU Libltdl is distributed in the hope that it will be useful,
35827 +but WITHOUT ANY WARRANTY; without even the implied warranty of
35828 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35829 +GNU Lesser General Public License for more details.
35830 +
35831 +You should have received a copy of the GNU Lesser General Public
35832 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
35833 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
35834 +or obtained by writing to the Free Software Foundation, Inc.,
35835 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35836 +*/
35837 +
35838 +#include "lt__private.h"
35839 +#include "lt_error.h"
35840 +
35841 +static const char *last_error = 0;
35842 +static const char error_strings[LT_ERROR_MAX][LT_ERROR_LEN_MAX + 1] =
35843 + {
35844 +#define LT_ERROR(name, diagnostic) diagnostic,
35845 + lt_dlerror_table
35846 +#undef LT_ERROR
35847 + };
35848 +
35849 +static const char **user_error_strings = 0;
35850 +static int errorcount = LT_ERROR_MAX;
35851 +
35852 +int
35853 +lt_dladderror (const char *diagnostic)
35854 +{
35855 + int errindex = 0;
35856 + int result = -1;
35857 + const char **temp = (const char **) 0;
35858 +
35859 + assert (diagnostic);
35860 +
35861 + errindex = errorcount - LT_ERROR_MAX;
35862 + temp = REALLOC (const char *, user_error_strings, 1 + errindex);
35863 + if (temp)
35864 + {
35865 + user_error_strings = temp;
35866 + user_error_strings[errindex] = diagnostic;
35867 + result = errorcount++;
35868 + }
35869 +
35870 + return result;
35871 +}
35872 +
35873 +int
35874 +lt_dlseterror (int errindex)
35875 +{
35876 + int errors = 0;
35877 +
35878 + if (errindex >= errorcount || errindex < 0)
35879 + {
35880 + /* Ack! Error setting the error message! */
35881 + LT__SETERROR (INVALID_ERRORCODE);
35882 + ++errors;
35883 + }
35884 + else if (errindex < LT_ERROR_MAX)
35885 + {
35886 + /* No error setting the error message! */
35887 + LT__SETERRORSTR (error_strings[errindex]);
35888 + }
35889 + else
35890 + {
35891 + /* No error setting the error message! */
35892 + LT__SETERRORSTR (user_error_strings[errindex - LT_ERROR_MAX]);
35893 + }
35894 +
35895 + return errors;
35896 +}
35897 +
35898 +const char *
35899 +lt__error_string (int errorcode)
35900 +{
35901 + assert (errorcode >= 0);
35902 + assert (errorcode < LT_ERROR_MAX);
35903 +
35904 + return error_strings[errorcode];
35905 +}
35906 +
35907 +const char *
35908 +lt__get_last_error (void)
35909 +{
35910 + return last_error;
35911 +}
35912 +
35913 +const char *
35914 +lt__set_last_error (const char *errormsg)
35915 +{
35916 + return last_error = errormsg;
35917 +}
35918 diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c
35919 new file mode 100644
35920 index 0000000..7c42635
35921 --- /dev/null
35922 +++ b/libltdl/ltdl.c
35923 @@ -0,0 +1,2421 @@
35924 +/* ltdl.c -- system independent dlopen wrapper
35925 +
35926 + Copyright (C) 1998, 1999, 2000, 2004, 2005, 2006,
35927 + 2007, 2008 Free Software Foundation, Inc.
35928 + Written by Thomas Tanner, 1998
35929 +
35930 + NOTE: The canonical source of this file is maintained with the
35931 + GNU Libtool package. Report bugs to [email protected].
35932 +
35933 +GNU Libltdl is free software; you can redistribute it and/or
35934 +modify it under the terms of the GNU Lesser General Public
35935 +License as published by the Free Software Foundation; either
35936 +version 2 of the License, or (at your option) any later version.
35937 +
35938 +As a special exception to the GNU Lesser General Public License,
35939 +if you distribute this file as part of a program or library that
35940 +is built using GNU Libtool, you may include this file under the
35941 +same distribution terms that you use for the rest of that program.
35942 +
35943 +GNU Libltdl is distributed in the hope that it will be useful,
35944 +but WITHOUT ANY WARRANTY; without even the implied warranty of
35945 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35946 +GNU Lesser General Public License for more details.
35947 +
35948 +You should have received a copy of the GNU Lesser General Public
35949 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
35950 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
35951 +or obtained by writing to the Free Software Foundation, Inc.,
35952 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35953 +*/
35954 +
35955 +#include "lt__private.h"
35956 +#include "lt_system.h"
35957 +#include "lt_dlloader.h"
35958 +
35959 +
35960 +/* --- MANIFEST CONSTANTS --- */
35961 +
35962 +
35963 +/* Standard libltdl search path environment variable name */
35964 +#undef LTDL_SEARCHPATH_VAR
35965 +#define LTDL_SEARCHPATH_VAR "LTDL_LIBRARY_PATH"
35966 +
35967 +/* Standard libtool archive file extension. */
35968 +#undef LT_ARCHIVE_EXT
35969 +#define LT_ARCHIVE_EXT ".la"
35970 +
35971 +/* max. filename length */
35972 +#if !defined(LT_FILENAME_MAX)
35973 +# define LT_FILENAME_MAX 1024
35974 +#endif
35975 +
35976 +#if !defined(LT_LIBEXT)
35977 +# define LT_LIBEXT "a"
35978 +#endif
35979 +
35980 +/* This is the maximum symbol size that won't require malloc/free */
35981 +#undef LT_SYMBOL_LENGTH
35982 +#define LT_SYMBOL_LENGTH 128
35983 +
35984 +/* This accounts for the _LTX_ separator */
35985 +#undef LT_SYMBOL_OVERHEAD
35986 +#define LT_SYMBOL_OVERHEAD 5
35987 +
35988 +/* Various boolean flags can be stored in the flags field of an
35989 + lt_dlhandle... */
35990 +#define LT_DLIS_RESIDENT(handle) ((handle)->info.is_resident)
35991 +#define LT_DLIS_SYMGLOBAL(handle) ((handle)->info.is_symglobal)
35992 +#define LT_DLIS_SYMLOCAL(handle) ((handle)->info.is_symlocal)
35993 +
35994 +
35995 +static const char objdir[] = LT_OBJDIR;
35996 +static const char archive_ext[] = LT_ARCHIVE_EXT;
35997 +static const char libext[] = LT_LIBEXT;
35998 +#if defined(LT_MODULE_EXT)
35999 +static const char shlib_ext[] = LT_MODULE_EXT;
36000 +#endif
36001 +#if defined(LT_DLSEARCH_PATH)
36002 +static const char sys_dlsearch_path[] = LT_DLSEARCH_PATH;
36003 +#endif
36004 +
36005 +
36006 +
36007 +
36008 +/* --- DYNAMIC MODULE LOADING --- */
36009 +
36010 +
36011 +/* The type of a function used at each iteration of foreach_dirinpath(). */
36012 +typedef int foreach_callback_func (char *filename, void *data1,
36013 + void *data2);
36014 +/* foreachfile_callback itself calls a function of this type: */
36015 +typedef int file_worker_func (const char *filename, void *data);
36016 +
36017 +
36018 +static int foreach_dirinpath (const char *search_path,
36019 + const char *base_name,
36020 + foreach_callback_func *func,
36021 + void *data1, void *data2);
36022 +static int find_file_callback (char *filename, void *data1,
36023 + void *data2);
36024 +static int find_handle_callback (char *filename, void *data,
36025 + void *ignored);
36026 +static int foreachfile_callback (char *filename, void *data1,
36027 + void *data2);
36028 +
36029 +
36030 +static int canonicalize_path (const char *path, char **pcanonical);
36031 +static int argzize_path (const char *path,
36032 + char **pargz, size_t *pargz_len);
36033 +static FILE *find_file (const char *search_path,
36034 + const char *base_name, char **pdir);
36035 +static lt_dlhandle *find_handle (const char *search_path,
36036 + const char *base_name,
36037 + lt_dlhandle *handle,
36038 + lt_dladvise advise);
36039 +static int find_module (lt_dlhandle *handle, const char *dir,
36040 + const char *libdir, const char *dlname,
36041 + const char *old_name, int installed,
36042 + lt_dladvise advise);
36043 +static int has_library_ext (const char *filename);
36044 +static int load_deplibs (lt_dlhandle handle, char *deplibs);
36045 +static int trim (char **dest, const char *str);
36046 +static int try_dlopen (lt_dlhandle *handle,
36047 + const char *filename, const char *ext,
36048 + lt_dladvise advise);
36049 +static int tryall_dlopen (lt_dlhandle *handle,
36050 + const char *filename,
36051 + lt_dladvise padvise,
36052 + const lt_dlvtable *vtable);
36053 +static int unload_deplibs (lt_dlhandle handle);
36054 +static int lt_argz_insert (char **pargz, size_t *pargz_len,
36055 + char *before, const char *entry);
36056 +static int lt_argz_insertinorder (char **pargz, size_t *pargz_len,
36057 + const char *entry);
36058 +static int lt_argz_insertdir (char **pargz, size_t *pargz_len,
36059 + const char *dirnam, struct dirent *dp);
36060 +static int lt_dlpath_insertdir (char **ppath, char *before,
36061 + const char *dir);
36062 +static int list_files_by_dir (const char *dirnam,
36063 + char **pargz, size_t *pargz_len);
36064 +static int file_not_found (void);
36065 +
36066 +#ifdef HAVE_LIBDLLOADER
36067 +static int loader_init_callback (lt_dlhandle handle);
36068 +#endif /* HAVE_LIBDLLOADER */
36069 +
36070 +static int loader_init (lt_get_vtable *vtable_func,
36071 + lt_user_data data);
36072 +
36073 +static char *user_search_path= 0;
36074 +static lt_dlhandle handles = 0;
36075 +static int initialized = 0;
36076 +
36077 +/* Our memory failure callback sets the error message to be passed back
36078 + up to the client, so we must be careful to return from mallocation
36079 + callers if allocation fails (as this callback returns!!). */
36080 +void
36081 +lt__alloc_die_callback (void)
36082 +{
36083 + LT__SETERROR (NO_MEMORY);
36084 +}
36085 +
36086 +#ifdef HAVE_LIBDLLOADER
36087 +/* This function is called to initialise each preloaded module loader,
36088 + and hook it into the list of loaders to be used when attempting to
36089 + dlopen an application module. */
36090 +static int
36091 +loader_init_callback (lt_dlhandle handle)
36092 +{
36093 + lt_get_vtable *vtable_func = (lt_get_vtable *) lt_dlsym (handle, "get_vtable");
36094 + return loader_init (vtable_func, 0);
36095 +}
36096 +#endif /* HAVE_LIBDLLOADER */
36097 +
36098 +static int
36099 +loader_init (lt_get_vtable *vtable_func, lt_user_data data)
36100 +{
36101 + const lt_dlvtable *vtable = 0;
36102 + int errors = 0;
36103 +
36104 + if (vtable_func)
36105 + {
36106 + vtable = (*vtable_func) (data);
36107 + }
36108 +
36109 + /* lt_dlloader_add will LT__SETERROR if it fails. */
36110 + errors += lt_dlloader_add (vtable);
36111 +
36112 + assert (errors || vtable);
36113 +
36114 + if ((!errors) && vtable->dlloader_init)
36115 + {
36116 + if ((*vtable->dlloader_init) (vtable->dlloader_data))
36117 + {
36118 + LT__SETERROR (INIT_LOADER);
36119 + ++errors;
36120 + }
36121 + }
36122 +
36123 + return errors;
36124 +}
36125 +
36126 +/* Bootstrap the loader loading with the preopening loader. */
36127 +#define get_vtable preopen_LTX_get_vtable
36128 +#define preloaded_symbols LT_CONC3(lt_, LTDLOPEN, _LTX_preloaded_symbols)
36129 +
36130 +LT_BEGIN_C_DECLS
36131 +LT_SCOPE const lt_dlvtable * get_vtable (lt_user_data data);
36132 +LT_END_C_DECLS
36133 +#ifdef HAVE_LIBDLLOADER
36134 +extern lt_dlsymlist preloaded_symbols;
36135 +#endif
36136 +
36137 +/* Initialize libltdl. */
36138 +int
36139 +lt_dlinit (void)
36140 +{
36141 + int errors = 0;
36142 +
36143 + /* Initialize only at first call. */
36144 + if (++initialized == 1)
36145 + {
36146 + lt__alloc_die = lt__alloc_die_callback;
36147 + handles = 0;
36148 + user_search_path = 0; /* empty search path */
36149 +
36150 + /* First set up the statically loaded preload module loader, so
36151 + we can use it to preopen the other loaders we linked in at
36152 + compile time. */
36153 + errors += loader_init (get_vtable, 0);
36154 +
36155 + /* Now open all the preloaded module loaders, so the application
36156 + can use _them_ to lt_dlopen its own modules. */
36157 +#ifdef HAVE_LIBDLLOADER
36158 + if (!errors)
36159 + {
36160 + errors += lt_dlpreload (&preloaded_symbols);
36161 + }
36162 +
36163 + if (!errors)
36164 + {
36165 + errors += lt_dlpreload_open (LT_STR(LTDLOPEN), loader_init_callback);
36166 + }
36167 +#endif /* HAVE_LIBDLLOADER */
36168 + }
36169 +
36170 +#ifdef LT_DEBUG_LOADERS
36171 + lt_dlloader_dump();
36172 +#endif
36173 +
36174 + return errors;
36175 +}
36176 +
36177 +int
36178 +lt_dlexit (void)
36179 +{
36180 + /* shut down libltdl */
36181 + lt_dlloader *loader = 0;
36182 + lt_dlhandle handle = handles;
36183 + int errors = 0;
36184 +
36185 + if (!initialized)
36186 + {
36187 + LT__SETERROR (SHUTDOWN);
36188 + ++errors;
36189 + goto done;
36190 + }
36191 +
36192 + /* shut down only at last call. */
36193 + if (--initialized == 0)
36194 + {
36195 + int level;
36196 +
36197 + while (handles && LT_DLIS_RESIDENT (handles))
36198 + {
36199 + handles = handles->next;
36200 + }
36201 +
36202 + /* close all modules */
36203 + for (level = 1; handle; ++level)
36204 + {
36205 + lt_dlhandle cur = handles;
36206 + int saw_nonresident = 0;
36207 +
36208 + while (cur)
36209 + {
36210 + lt_dlhandle tmp = cur;
36211 + cur = cur->next;
36212 + if (!LT_DLIS_RESIDENT (tmp))
36213 + {
36214 + saw_nonresident = 1;
36215 + if (tmp->info.ref_count <= level)
36216 + {
36217 + if (lt_dlclose (tmp))
36218 + {
36219 + ++errors;
36220 + }
36221 + /* Make sure that the handle pointed to by 'cur' still exists.
36222 + lt_dlclose recursively closes dependent libraries which removes
36223 + them from the linked list. One of these might be the one
36224 + pointed to by 'cur'. */
36225 + if (cur)
36226 + {
36227 + for (tmp = handles; tmp; tmp = tmp->next)
36228 + if (tmp == cur)
36229 + break;
36230 + if (! tmp)
36231 + cur = handles;
36232 + }
36233 + }
36234 + }
36235 + }
36236 + /* done if only resident modules are left */
36237 + if (!saw_nonresident)
36238 + break;
36239 + }
36240 +
36241 + /* When removing loaders, we can only find out failure by testing
36242 + the error string, so avoid a spurious one from an earlier
36243 + failed command. */
36244 + if (!errors)
36245 + LT__SETERRORSTR (0);
36246 +
36247 + /* close all loaders */
36248 + for (loader = (lt_dlloader *) lt_dlloader_next (NULL); loader;)
36249 + {
36250 + lt_dlloader *next = (lt_dlloader *) lt_dlloader_next (loader);
36251 + lt_dlvtable *vtable = (lt_dlvtable *) lt_dlloader_get (loader);
36252 +
36253 + if ((vtable = lt_dlloader_remove ((char *) vtable->name)))
36254 + {
36255 + FREE (vtable);
36256 + }
36257 + else
36258 + {
36259 + /* ignore errors due to resident modules */
36260 + const char *err;
36261 + LT__GETERROR (err);
36262 + if (err)
36263 + ++errors;
36264 + }
36265 +
36266 + loader = next;
36267 + }
36268 +
36269 + FREE(user_search_path);
36270 + }
36271 +
36272 + done:
36273 + return errors;
36274 +}
36275 +
36276 +
36277 +/* Try VTABLE or, if VTABLE is NULL, all available loaders for FILENAME.
36278 + If the library is not successfully loaded, return non-zero. Otherwise,
36279 + the dlhandle is stored at the address given in PHANDLE. */
36280 +static int
36281 +tryall_dlopen (lt_dlhandle *phandle, const char *filename,
36282 + lt_dladvise advise, const lt_dlvtable *vtable)
36283 +{
36284 + lt_dlhandle handle = handles;
36285 + const char * saved_error = 0;
36286 + int errors = 0;
36287 +
36288 +#ifdef LT_DEBUG_LOADERS
36289 + fprintf (stderr, "tryall_dlopen (%s, %s)\n",
36290 + filename ? filename : "(null)",
36291 + vtable ? vtable->name : "(ALL)");
36292 +#endif
36293 +
36294 + LT__GETERROR (saved_error);
36295 +
36296 + /* check whether the module was already opened */
36297 + for (;handle; handle = handle->next)
36298 + {
36299 + if ((handle->info.filename == filename) /* dlopen self: 0 == 0 */
36300 + || (handle->info.filename && filename
36301 + && streq (handle->info.filename, filename)))
36302 + {
36303 + break;
36304 + }
36305 + }
36306 +
36307 + if (handle)
36308 + {
36309 + ++handle->info.ref_count;
36310 + *phandle = handle;
36311 + goto done;
36312 + }
36313 +
36314 + handle = *phandle;
36315 + if (filename)
36316 + {
36317 + /* Comment out the check of file permissions using access.
36318 + This call seems to always return -1 with error EACCES.
36319 + */
36320 + /* We need to catch missing file errors early so that
36321 + file_not_found() can detect what happened.
36322 + if (access (filename, R_OK) != 0)
36323 + {
36324 + LT__SETERROR (FILE_NOT_FOUND);
36325 + ++errors;
36326 + goto done;
36327 + } */
36328 +
36329 + handle->info.filename = lt__strdup (filename);
36330 + if (!handle->info.filename)
36331 + {
36332 + ++errors;
36333 + goto done;
36334 + }
36335 + }
36336 + else
36337 + {
36338 + handle->info.filename = 0;
36339 + }
36340 +
36341 + {
36342 + lt_dlloader loader = lt_dlloader_next (0);
36343 + const lt_dlvtable *loader_vtable;
36344 +
36345 + do
36346 + {
36347 + if (vtable)
36348 + loader_vtable = vtable;
36349 + else
36350 + loader_vtable = lt_dlloader_get (loader);
36351 +
36352 +#ifdef LT_DEBUG_LOADERS
36353 + fprintf (stderr, "Calling %s->module_open (%s)\n",
36354 + (loader_vtable && loader_vtable->name) ? loader_vtable->name : "(null)",
36355 + filename ? filename : "(null)");
36356 +#endif
36357 + handle->module = (*loader_vtable->module_open) (loader_vtable->dlloader_data,
36358 + filename, advise);
36359 +#ifdef LT_DEBUG_LOADERS
36360 + fprintf (stderr, " Result: %s\n",
36361 + handle->module ? "Success" : "Failed");
36362 +#endif
36363 +
36364 + if (handle->module != 0)
36365 + {
36366 + if (advise)
36367 + {
36368 + handle->info.is_resident = advise->is_resident;
36369 + handle->info.is_symglobal = advise->is_symglobal;
36370 + handle->info.is_symlocal = advise->is_symlocal;
36371 + }
36372 + break;
36373 + }
36374 + }
36375 + while (!vtable && (loader = lt_dlloader_next (loader)));
36376 +
36377 + /* If VTABLE was given but couldn't open the module, or VTABLE wasn't
36378 + given but we exhausted all loaders without opening the module, bail
36379 + out! */
36380 + if ((vtable && !handle->module)
36381 + || (!vtable && !loader))
36382 + {
36383 + FREE (handle->info.filename);
36384 + ++errors;
36385 + goto done;
36386 + }
36387 +
36388 + handle->vtable = loader_vtable;
36389 + }
36390 +
36391 + LT__SETERRORSTR (saved_error);
36392 +
36393 + done:
36394 + return errors;
36395 +}
36396 +
36397 +
36398 +static int
36399 +tryall_dlopen_module (lt_dlhandle *handle, const char *prefix,
36400 + const char *dirname, const char *dlname,
36401 + lt_dladvise advise)
36402 +{
36403 + int error = 0;
36404 + char *filename = 0;
36405 + size_t filename_len = 0;
36406 + size_t dirname_len = LT_STRLEN (dirname);
36407 +
36408 + assert (handle);
36409 + assert (dirname);
36410 + assert (dlname);
36411 +#if defined(LT_DIRSEP_CHAR)
36412 + /* Only canonicalized names (i.e. with DIRSEP chars already converted)
36413 + should make it into this function: */
36414 + assert (strchr (dirname, LT_DIRSEP_CHAR) == 0);
36415 +#endif
36416 +
36417 + if (dirname_len > 0)
36418 + if (dirname[dirname_len -1] == '/')
36419 + --dirname_len;
36420 + filename_len = dirname_len + 1 + LT_STRLEN (dlname);
36421 +
36422 + /* Allocate memory, and combine DIRNAME and MODULENAME into it.
36423 + The PREFIX (if any) is handled below. */
36424 + filename = MALLOC (char, filename_len + 1);
36425 + if (!filename)
36426 + return 1;
36427 +
36428 + sprintf (filename, "%.*s/%s", (int) dirname_len, dirname, dlname);
36429 +
36430 + /* Now that we have combined DIRNAME and MODULENAME, if there is
36431 + also a PREFIX to contend with, simply recurse with the arguments
36432 + shuffled. Otherwise, attempt to open FILENAME as a module. */
36433 + if (prefix)
36434 + {
36435 + error += tryall_dlopen_module (handle, (const char *) 0,
36436 + prefix, filename, advise);
36437 + }
36438 + else if (tryall_dlopen (handle, filename, advise, 0) != 0)
36439 + {
36440 + ++error;
36441 + }
36442 +
36443 + FREE (filename);
36444 + return error;
36445 +}
36446 +
36447 +static int
36448 +find_module (lt_dlhandle *handle, const char *dir, const char *libdir,
36449 + const char *dlname, const char *old_name, int installed,
36450 + lt_dladvise advise)
36451 +{
36452 + /* Try to open the old library first; if it was dlpreopened,
36453 + we want the preopened version of it, even if a dlopenable
36454 + module is available. */
36455 + if (old_name && tryall_dlopen (handle, old_name,
36456 + advise, lt_dlloader_find ("lt_preopen") ) == 0)
36457 + {
36458 + return 0;
36459 + }
36460 +
36461 + /* Try to open the dynamic library. */
36462 + if (dlname)
36463 + {
36464 + /* try to open the installed module */
36465 + if (installed && libdir)
36466 + {
36467 + if (tryall_dlopen_module (handle, (const char *) 0,
36468 + libdir, dlname, advise) == 0)
36469 + return 0;
36470 + }
36471 +
36472 + /* try to open the not-installed module */
36473 + if (!installed)
36474 + {
36475 + if (tryall_dlopen_module (handle, dir, objdir,
36476 + dlname, advise) == 0)
36477 + return 0;
36478 + }
36479 +
36480 + /* maybe it was moved to another directory */
36481 + {
36482 + if (dir && (tryall_dlopen_module (handle, (const char *) 0,
36483 + dir, dlname, advise) == 0))
36484 + return 0;
36485 + }
36486 + }
36487 +
36488 + return 1;
36489 +}
36490 +
36491 +
36492 +static int
36493 +canonicalize_path (const char *path, char **pcanonical)
36494 +{
36495 + char *canonical = 0;
36496 +
36497 + assert (path && *path);
36498 + assert (pcanonical);
36499 +
36500 + canonical = MALLOC (char, 1+ LT_STRLEN (path));
36501 + if (!canonical)
36502 + return 1;
36503 +
36504 + {
36505 + size_t dest = 0;
36506 + size_t src;
36507 + for (src = 0; path[src] != LT_EOS_CHAR; ++src)
36508 + {
36509 + /* Path separators are not copied to the beginning or end of
36510 + the destination, or if another separator would follow
36511 + immediately. */
36512 + if (path[src] == LT_PATHSEP_CHAR)
36513 + {
36514 + if ((dest == 0)
36515 + || (path[1+ src] == LT_PATHSEP_CHAR)
36516 + || (path[1+ src] == LT_EOS_CHAR))
36517 + continue;
36518 + }
36519 +
36520 + /* Anything other than a directory separator is copied verbatim. */
36521 + if ((path[src] != '/')
36522 +#if defined(LT_DIRSEP_CHAR)
36523 + && (path[src] != LT_DIRSEP_CHAR)
36524 +#endif
36525 + )
36526 + {
36527 + canonical[dest++] = path[src];
36528 + }
36529 + /* Directory separators are converted and copied only if they are
36530 + not at the end of a path -- i.e. before a path separator or
36531 + NULL terminator. */
36532 + else if ((path[1+ src] != LT_PATHSEP_CHAR)
36533 + && (path[1+ src] != LT_EOS_CHAR)
36534 +#if defined(LT_DIRSEP_CHAR)
36535 + && (path[1+ src] != LT_DIRSEP_CHAR)
36536 +#endif
36537 + && (path[1+ src] != '/'))
36538 + {
36539 + canonical[dest++] = '/';
36540 + }
36541 + }
36542 +
36543 + /* Add an end-of-string marker at the end. */
36544 + canonical[dest] = LT_EOS_CHAR;
36545 + }
36546 +
36547 + /* Assign new value. */
36548 + *pcanonical = canonical;
36549 +
36550 + return 0;
36551 +}
36552 +
36553 +static int
36554 +argzize_path (const char *path, char **pargz, size_t *pargz_len)
36555 +{
36556 + error_t error;
36557 +
36558 + assert (path);
36559 + assert (pargz);
36560 + assert (pargz_len);
36561 +
36562 + if ((error = argz_create_sep (path, LT_PATHSEP_CHAR, pargz, pargz_len)))
36563 + {
36564 + switch (error)
36565 + {
36566 + case ENOMEM:
36567 + LT__SETERROR (NO_MEMORY);
36568 + break;
36569 + default:
36570 + LT__SETERROR (UNKNOWN);
36571 + break;
36572 + }
36573 +
36574 + return 1;
36575 + }
36576 +
36577 + return 0;
36578 +}
36579 +
36580 +/* Repeatedly call FUNC with each LT_PATHSEP_CHAR delimited element
36581 + of SEARCH_PATH and references to DATA1 and DATA2, until FUNC returns
36582 + non-zero or all elements are exhausted. If BASE_NAME is non-NULL,
36583 + it is appended to each SEARCH_PATH element before FUNC is called. */
36584 +static int
36585 +foreach_dirinpath (const char *search_path, const char *base_name,
36586 + foreach_callback_func *func, void *data1, void *data2)
36587 +{
36588 + int result = 0;
36589 + size_t filenamesize = 0;
36590 + size_t lenbase = LT_STRLEN (base_name);
36591 + size_t argz_len = 0;
36592 + char *argz = 0;
36593 + char *filename = 0;
36594 + char *canonical = 0;
36595 +
36596 + if (!search_path || !*search_path)
36597 + {
36598 + LT__SETERROR (FILE_NOT_FOUND);
36599 + goto cleanup;
36600 + }
36601 +
36602 + if (canonicalize_path (search_path, &canonical) != 0)
36603 + goto cleanup;
36604 +
36605 + if (argzize_path (canonical, &argz, &argz_len) != 0)
36606 + goto cleanup;
36607 +
36608 + {
36609 + char *dir_name = 0;
36610 + while ((dir_name = argz_next (argz, argz_len, dir_name)))
36611 + {
36612 + size_t lendir = LT_STRLEN (dir_name);
36613 +
36614 + if (1+ lendir + lenbase >= filenamesize)
36615 + {
36616 + FREE (filename);
36617 + filenamesize = 1+ lendir + 1+ lenbase; /* "/d" + '/' + "f" + '\0' */
36618 + filename = MALLOC (char, filenamesize);
36619 + if (!filename)
36620 + goto cleanup;
36621 + }
36622 +
36623 + assert (filenamesize > lendir);
36624 + strcpy (filename, dir_name);
36625 +
36626 + if (base_name && *base_name)
36627 + {
36628 + if (filename[lendir -1] != '/')
36629 + filename[lendir++] = '/';
36630 + strcpy (filename +lendir, base_name);
36631 + }
36632 +
36633 + if ((result = (*func) (filename, data1, data2)))
36634 + {
36635 + break;
36636 + }
36637 + }
36638 + }
36639 +
36640 + cleanup:
36641 + FREE (argz);
36642 + FREE (canonical);
36643 + FREE (filename);
36644 +
36645 + return result;
36646 +}
36647 +
36648 +/* If FILEPATH can be opened, store the name of the directory component
36649 + in DATA1, and the opened FILE* structure address in DATA2. Otherwise
36650 + DATA1 is unchanged, but DATA2 is set to a pointer to NULL. */
36651 +static int
36652 +find_file_callback (char *filename, void *data1, void *data2)
36653 +{
36654 + char **pdir = (char **) data1;
36655 + FILE **pfile = (FILE **) data2;
36656 + int is_done = 0;
36657 +
36658 + assert (filename && *filename);
36659 + assert (pdir);
36660 + assert (pfile);
36661 +
36662 + if ((*pfile = fopen (filename, LT_READTEXT_MODE)))
36663 + {
36664 + char *dirend = strrchr (filename, '/');
36665 +
36666 + if (dirend > filename)
36667 + *dirend = LT_EOS_CHAR;
36668 +
36669 + FREE (*pdir);
36670 + *pdir = lt__strdup (filename);
36671 + is_done = (*pdir == 0) ? -1 : 1;
36672 + }
36673 +
36674 + return is_done;
36675 +}
36676 +
36677 +static FILE *
36678 +find_file (const char *search_path, const char *base_name, char **pdir)
36679 +{
36680 + FILE *file = 0;
36681 +
36682 + foreach_dirinpath (search_path, base_name, find_file_callback, pdir, &file);
36683 +
36684 + return file;
36685 +}
36686 +
36687 +static int
36688 +find_handle_callback (char *filename, void *data, void *data2)
36689 +{
36690 + lt_dlhandle *phandle = (lt_dlhandle *) data;
36691 + int notfound = access (filename, R_OK);
36692 + lt_dladvise advise = (lt_dladvise) data2;
36693 +
36694 + /* Bail out if file cannot be read... */
36695 + if (notfound)
36696 + return 0;
36697 +
36698 + /* Try to dlopen the file, but do not continue searching in any
36699 + case. */
36700 + if (tryall_dlopen (phandle, filename, advise, 0) != 0)
36701 + *phandle = 0;
36702 +
36703 + return 1;
36704 +}
36705 +
36706 +/* If HANDLE was found return it, otherwise return 0. If HANDLE was
36707 + found but could not be opened, *HANDLE will be set to 0. */
36708 +static lt_dlhandle *
36709 +find_handle (const char *search_path, const char *base_name,
36710 + lt_dlhandle *phandle, lt_dladvise advise)
36711 +{
36712 + if (!search_path)
36713 + return 0;
36714 +
36715 + if (!foreach_dirinpath (search_path, base_name, find_handle_callback,
36716 + phandle, advise))
36717 + return 0;
36718 +
36719 + return phandle;
36720 +}
36721 +
36722 +#if !defined(LTDL_DLOPEN_DEPLIBS)
36723 +static int
36724 +load_deplibs (lt_dlhandle handle, char * LT__UNUSED deplibs)
36725 +{
36726 + handle->depcount = 0;
36727 + return 0;
36728 +}
36729 +
36730 +#else /* defined(LTDL_DLOPEN_DEPLIBS) */
36731 +static int
36732 +load_deplibs (lt_dlhandle handle, char *deplibs)
36733 +{
36734 + char *p, *save_search_path = 0;
36735 + int depcount = 0;
36736 + int i;
36737 + char **names = 0;
36738 + int errors = 0;
36739 +
36740 + handle->depcount = 0;
36741 +
36742 + if (!deplibs)
36743 + {
36744 + return errors;
36745 + }
36746 + ++errors;
36747 +
36748 + if (user_search_path)
36749 + {
36750 + save_search_path = lt__strdup (user_search_path);
36751 + if (!save_search_path)
36752 + goto cleanup;
36753 + }
36754 +
36755 + /* extract search paths and count deplibs */
36756 + p = deplibs;
36757 + while (*p)
36758 + {
36759 + if (!isspace ((unsigned char) *p))
36760 + {
36761 + char *end = p+1;
36762 + while (*end && !isspace((unsigned char) *end))
36763 + {
36764 + ++end;
36765 + }
36766 +
36767 + if (strncmp(p, "-L", 2) == 0 || strncmp(p, "-R", 2) == 0)
36768 + {
36769 + char save = *end;
36770 + *end = 0; /* set a temporary string terminator */
36771 + if (lt_dladdsearchdir(p+2))
36772 + {
36773 + goto cleanup;
36774 + }
36775 + *end = save;
36776 + }
36777 + else
36778 + {
36779 + ++depcount;
36780 + }
36781 +
36782 + p = end;
36783 + }
36784 + else
36785 + {
36786 + ++p;
36787 + }
36788 + }
36789 +
36790 +
36791 + if (!depcount)
36792 + {
36793 + errors = 0;
36794 + goto cleanup;
36795 + }
36796 +
36797 + names = MALLOC (char *, depcount);
36798 + if (!names)
36799 + goto cleanup;
36800 +
36801 + /* now only extract the actual deplibs */
36802 + depcount = 0;
36803 + p = deplibs;
36804 + while (*p)
36805 + {
36806 + if (isspace ((unsigned char) *p))
36807 + {
36808 + ++p;
36809 + }
36810 + else
36811 + {
36812 + char *end = p+1;
36813 + while (*end && !isspace ((unsigned char) *end))
36814 + {
36815 + ++end;
36816 + }
36817 +
36818 + if (strncmp(p, "-L", 2) != 0 && strncmp(p, "-R", 2) != 0)
36819 + {
36820 + char *name;
36821 + char save = *end;
36822 + *end = 0; /* set a temporary string terminator */
36823 + if (strncmp(p, "-l", 2) == 0)
36824 + {
36825 + size_t name_len = 3+ /* "lib" */ LT_STRLEN (p + 2);
36826 + name = MALLOC (char, 1+ name_len);
36827 + if (name)
36828 + sprintf (name, "lib%s", p+2);
36829 + }
36830 + else
36831 + name = lt__strdup(p);
36832 +
36833 + if (!name)
36834 + goto cleanup_names;
36835 +
36836 + names[depcount++] = name;
36837 + *end = save;
36838 + }
36839 + p = end;
36840 + }
36841 + }
36842 +
36843 + /* load the deplibs (in reverse order)
36844 + At this stage, don't worry if the deplibs do not load correctly,
36845 + they may already be statically linked into the loading application
36846 + for instance. There will be a more enlightening error message
36847 + later on if the loaded module cannot resolve all of its symbols. */
36848 + if (depcount)
36849 + {
36850 + lt_dlhandle cur = handle;
36851 + int j = 0;
36852 +
36853 + cur->deplibs = MALLOC (lt_dlhandle, depcount);
36854 + if (!cur->deplibs)
36855 + goto cleanup_names;
36856 +
36857 + for (i = 0; i < depcount; ++i)
36858 + {
36859 + cur->deplibs[j] = lt_dlopenext(names[depcount-1-i]);
36860 + if (cur->deplibs[j])
36861 + {
36862 + ++j;
36863 + }
36864 + }
36865 +
36866 + cur->depcount = j; /* Number of successfully loaded deplibs */
36867 + errors = 0;
36868 + }
36869 +
36870 + cleanup_names:
36871 + for (i = 0; i < depcount; ++i)
36872 + {
36873 + FREE (names[i]);
36874 + }
36875 +
36876 + cleanup:
36877 + FREE (names);
36878 + /* restore the old search path */
36879 + if (save_search_path) {
36880 + MEMREASSIGN (user_search_path, save_search_path);
36881 + }
36882 +
36883 + return errors;
36884 +}
36885 +#endif /* defined(LTDL_DLOPEN_DEPLIBS) */
36886 +
36887 +static int
36888 +unload_deplibs (lt_dlhandle handle)
36889 +{
36890 + int i;
36891 + int errors = 0;
36892 + lt_dlhandle cur = handle;
36893 +
36894 + if (cur->depcount)
36895 + {
36896 + for (i = 0; i < cur->depcount; ++i)
36897 + {
36898 + if (!LT_DLIS_RESIDENT (cur->deplibs[i]))
36899 + {
36900 + errors += lt_dlclose (cur->deplibs[i]);
36901 + }
36902 + }
36903 + FREE (cur->deplibs);
36904 + }
36905 +
36906 + return errors;
36907 +}
36908 +
36909 +static int
36910 +trim (char **dest, const char *str)
36911 +{
36912 + /* remove the leading and trailing "'" from str
36913 + and store the result in dest */
36914 + const char *end = strrchr (str, '\'');
36915 + size_t len = LT_STRLEN (str);
36916 + char *tmp;
36917 +
36918 + FREE (*dest);
36919 +
36920 + if (!end)
36921 + return 1;
36922 +
36923 + if (len > 3 && str[0] == '\'')
36924 + {
36925 + tmp = MALLOC (char, end - str);
36926 + if (!tmp)
36927 + return 1;
36928 +
36929 + memcpy(tmp, &str[1], (end - str) - 1);
36930 + tmp[(end - str) - 1] = LT_EOS_CHAR;
36931 + *dest = tmp;
36932 + }
36933 + else
36934 + {
36935 + *dest = 0;
36936 + }
36937 +
36938 + return 0;
36939 +}
36940 +
36941 +/* Read the .la file FILE. */
36942 +static int
36943 +parse_dotla_file(FILE *file, char **dlname, char **libdir, char **deplibs,
36944 + char **old_name, int *installed)
36945 +{
36946 + int errors = 0;
36947 + size_t line_len = LT_FILENAME_MAX;
36948 + char * line = MALLOC (char, line_len);
36949 +
36950 + if (!line)
36951 + {
36952 + LT__SETERROR (FILE_NOT_FOUND);
36953 + return 1;
36954 + }
36955 +
36956 + while (!feof (file))
36957 + {
36958 + line[line_len-2] = '\0';
36959 + if (!fgets (line, (int) line_len, file))
36960 + {
36961 + break;
36962 + }
36963 +
36964 + /* Handle the case where we occasionally need to read a line
36965 + that is longer than the initial buffer size.
36966 + Behave even if the file contains NUL bytes due to corruption. */
36967 + while (line[line_len-2] != '\0' && line[line_len-2] != '\n' && !feof (file))
36968 + {
36969 + line = REALLOC (char, line, line_len *2);
36970 + if (!line)
36971 + {
36972 + ++errors;
36973 + goto cleanup;
36974 + }
36975 + line[line_len * 2 - 2] = '\0';
36976 + if (!fgets (&line[line_len -1], (int) line_len +1, file))
36977 + {
36978 + break;
36979 + }
36980 + line_len *= 2;
36981 + }
36982 +
36983 + if (line[0] == '\n' || line[0] == '#')
36984 + {
36985 + continue;
36986 + }
36987 +
36988 +#undef STR_DLNAME
36989 +#define STR_DLNAME "dlname="
36990 + if (strncmp (line, STR_DLNAME, sizeof (STR_DLNAME) - 1) == 0)
36991 + {
36992 + errors += trim (dlname, &line[sizeof (STR_DLNAME) - 1]);
36993 + }
36994 +
36995 +#undef STR_OLD_LIBRARY
36996 +#define STR_OLD_LIBRARY "old_library="
36997 + else if (strncmp (line, STR_OLD_LIBRARY,
36998 + sizeof (STR_OLD_LIBRARY) - 1) == 0)
36999 + {
37000 + errors += trim (old_name, &line[sizeof (STR_OLD_LIBRARY) - 1]);
37001 + }
37002 +#undef STR_LIBDIR
37003 +#define STR_LIBDIR "libdir="
37004 + else if (strncmp (line, STR_LIBDIR, sizeof (STR_LIBDIR) - 1) == 0)
37005 + {
37006 + errors += trim (libdir, &line[sizeof(STR_LIBDIR) - 1]);
37007 + }
37008 +
37009 +#undef STR_DL_DEPLIBS
37010 +#define STR_DL_DEPLIBS "dependency_libs="
37011 + else if (strncmp (line, STR_DL_DEPLIBS,
37012 + sizeof (STR_DL_DEPLIBS) - 1) == 0)
37013 + {
37014 + errors += trim (deplibs, &line[sizeof (STR_DL_DEPLIBS) - 1]);
37015 + }
37016 + else if (streq (line, "installed=yes\n"))
37017 + {
37018 + *installed = 1;
37019 + }
37020 + else if (streq (line, "installed=no\n"))
37021 + {
37022 + *installed = 0;
37023 + }
37024 +
37025 +#undef STR_LIBRARY_NAMES
37026 +#define STR_LIBRARY_NAMES "library_names="
37027 + else if (!*dlname && strncmp (line, STR_LIBRARY_NAMES,
37028 + sizeof (STR_LIBRARY_NAMES) - 1) == 0)
37029 + {
37030 + char *last_libname;
37031 + errors += trim (dlname, &line[sizeof (STR_LIBRARY_NAMES) - 1]);
37032 + if (!errors
37033 + && *dlname
37034 + && (last_libname = strrchr (*dlname, ' ')) != 0)
37035 + {
37036 + last_libname = lt__strdup (last_libname + 1);
37037 + if (!last_libname)
37038 + {
37039 + ++errors;
37040 + goto cleanup;
37041 + }
37042 + MEMREASSIGN (*dlname, last_libname);
37043 + }
37044 + }
37045 +
37046 + if (errors)
37047 + break;
37048 + }
37049 +cleanup:
37050 + FREE (line);
37051 + return errors;
37052 +}
37053 +
37054 +
37055 +/* Try to open FILENAME as a module. */
37056 +static int
37057 +try_dlopen (lt_dlhandle *phandle, const char *filename, const char *ext,
37058 + lt_dladvise advise)
37059 +{
37060 + const char * saved_error = 0;
37061 + char * archive_name = 0;
37062 + char * canonical = 0;
37063 + char * base_name = 0;
37064 + char * dir = 0;
37065 + char * name = 0;
37066 + char * attempt = 0;
37067 + int errors = 0;
37068 + lt_dlhandle newhandle;
37069 +
37070 + assert (phandle);
37071 + assert (*phandle == 0);
37072 +
37073 +#ifdef LT_DEBUG_LOADERS
37074 + fprintf (stderr, "try_dlopen (%s, %s)\n",
37075 + filename ? filename : "(null)",
37076 + ext ? ext : "(null)");
37077 +#endif
37078 +
37079 + LT__GETERROR (saved_error);
37080 +
37081 + /* dlopen self? */
37082 + if (!filename)
37083 + {
37084 + *phandle = (lt_dlhandle) lt__zalloc (sizeof (struct lt__handle));
37085 + if (*phandle == 0)
37086 + return 1;
37087 +
37088 + newhandle = *phandle;
37089 +
37090 + /* lt_dlclose()ing yourself is very bad! Disallow it. */
37091 + newhandle->info.is_resident = 1;
37092 +
37093 + if (tryall_dlopen (&newhandle, 0, advise, 0) != 0)
37094 + {
37095 + FREE (*phandle);
37096 + return 1;
37097 + }
37098 +
37099 + goto register_handle;
37100 + }
37101 +
37102 + assert (filename && *filename);
37103 +
37104 + if (ext)
37105 + {
37106 + attempt = MALLOC (char, LT_STRLEN (filename) + LT_STRLEN (ext) + 1);
37107 + if (!attempt)
37108 + return 1;
37109 +
37110 + sprintf(attempt, "%s%s", filename, ext);
37111 + }
37112 + else
37113 + {
37114 + attempt = lt__strdup (filename);
37115 + if (!attempt)
37116 + return 1;
37117 + }
37118 +
37119 + /* Doing this immediately allows internal functions to safely
37120 + assume only canonicalized paths are passed. */
37121 + if (canonicalize_path (attempt, &canonical) != 0)
37122 + {
37123 + ++errors;
37124 + goto cleanup;
37125 + }
37126 +
37127 + /* If the canonical module name is a path (relative or absolute)
37128 + then split it into a directory part and a name part. */
37129 + base_name = strrchr (canonical, '/');
37130 + if (base_name)
37131 + {
37132 + size_t dirlen = (1+ base_name) - canonical;
37133 +
37134 + dir = MALLOC (char, 1+ dirlen);
37135 + if (!dir)
37136 + {
37137 + ++errors;
37138 + goto cleanup;
37139 + }
37140 +
37141 + strncpy (dir, canonical, dirlen);
37142 + dir[dirlen] = LT_EOS_CHAR;
37143 +
37144 + ++base_name;
37145 + }
37146 + else
37147 + MEMREASSIGN (base_name, canonical);
37148 +
37149 + assert (base_name && *base_name);
37150 +
37151 + ext = strrchr (base_name, '.');
37152 + if (!ext)
37153 + {
37154 + ext = base_name + LT_STRLEN (base_name);
37155 + }
37156 +
37157 + /* extract the module name from the file name */
37158 + name = MALLOC (char, ext - base_name + 1);
37159 + if (!name)
37160 + {
37161 + ++errors;
37162 + goto cleanup;
37163 + }
37164 +
37165 + /* canonicalize the module name */
37166 + {
37167 + int i;
37168 + for (i = 0; i < ext - base_name; ++i)
37169 + {
37170 + if (isalnum ((unsigned char)(base_name[i])))
37171 + {
37172 + name[i] = base_name[i];
37173 + }
37174 + else
37175 + {
37176 + name[i] = '_';
37177 + }
37178 + }
37179 + name[ext - base_name] = LT_EOS_CHAR;
37180 + }
37181 +
37182 + /* Before trawling through the filesystem in search of a module,
37183 + check whether we are opening a preloaded module. */
37184 + if (!dir)
37185 + {
37186 + const lt_dlvtable *vtable = lt_dlloader_find ("lt_preopen");
37187 +
37188 + if (vtable)
37189 + {
37190 + /* name + "." + libext + NULL */
37191 + archive_name = MALLOC (char, LT_STRLEN (name) + LT_STRLEN (libext) + 2);
37192 + *phandle = (lt_dlhandle) lt__zalloc (sizeof (struct lt__handle));
37193 +
37194 + if ((*phandle == NULL) || (archive_name == NULL))
37195 + {
37196 + ++errors;
37197 + goto cleanup;
37198 + }
37199 + newhandle = *phandle;
37200 +
37201 + /* Preloaded modules are always named according to their old
37202 + archive name. */
37203 + sprintf (archive_name, "%s.%s", name, libext);
37204 +
37205 + if (tryall_dlopen (&newhandle, archive_name, advise, vtable) == 0)
37206 + {
37207 + goto register_handle;
37208 + }
37209 +
37210 + /* If we're still here, there was no matching preloaded module,
37211 + so put things back as we found them, and continue searching. */
37212 + FREE (*phandle);
37213 + newhandle = NULL;
37214 + }
37215 + }
37216 +
37217 + /* If we are allowing only preloaded modules, and we didn't find
37218 + anything yet, give up on the search here. */
37219 + if (advise && advise->try_preload_only)
37220 + {
37221 + goto cleanup;
37222 + }
37223 +
37224 + /* Check whether we are opening a libtool module (.la extension). */
37225 + if (ext && streq (ext, archive_ext))
37226 + {
37227 + /* this seems to be a libtool module */
37228 + FILE * file = 0;
37229 + char * dlname = 0;
37230 + char * old_name = 0;
37231 + char * libdir = 0;
37232 + char * deplibs = 0;
37233 +
37234 + /* if we can't find the installed flag, it is probably an
37235 + installed libtool archive, produced with an old version
37236 + of libtool */
37237 + int installed = 1;
37238 +
37239 + /* Now try to open the .la file. If there is no directory name
37240 + component, try to find it first in user_search_path and then other
37241 + prescribed paths. Otherwise (or in any case if the module was not
37242 + yet found) try opening just the module name as passed. */
37243 + if (!dir)
37244 + {
37245 + const char *search_path = user_search_path;
37246 +
37247 + if (search_path)
37248 + file = find_file (user_search_path, base_name, &dir);
37249 +
37250 + if (!file)
37251 + {
37252 + search_path = getenv (LTDL_SEARCHPATH_VAR);
37253 + if (search_path)
37254 + file = find_file (search_path, base_name, &dir);
37255 + }
37256 +
37257 +#if defined(LT_MODULE_PATH_VAR)
37258 + if (!file)
37259 + {
37260 + search_path = getenv (LT_MODULE_PATH_VAR);
37261 + if (search_path)
37262 + file = find_file (search_path, base_name, &dir);
37263 + }
37264 +#endif
37265 +#if defined(LT_DLSEARCH_PATH)
37266 + if (!file && *sys_dlsearch_path)
37267 + {
37268 + file = find_file (sys_dlsearch_path, base_name, &dir);
37269 + }
37270 +#endif
37271 + }
37272 + else
37273 + {
37274 + file = fopen (attempt, LT_READTEXT_MODE);
37275 + }
37276 +
37277 + /* If we didn't find the file by now, it really isn't there. Set
37278 + the status flag, and bail out. */
37279 + if (!file)
37280 + {
37281 + LT__SETERROR (FILE_NOT_FOUND);
37282 + ++errors;
37283 + goto cleanup;
37284 + }
37285 +
37286 + /* read the .la file */
37287 + if (parse_dotla_file(file, &dlname, &libdir, &deplibs,
37288 + &old_name, &installed) != 0)
37289 + ++errors;
37290 +
37291 + fclose (file);
37292 +
37293 + /* allocate the handle */
37294 + *phandle = (lt_dlhandle) lt__zalloc (sizeof (struct lt__handle));
37295 + if (*phandle == 0)
37296 + ++errors;
37297 +
37298 + if (errors)
37299 + {
37300 + FREE (dlname);
37301 + FREE (old_name);
37302 + FREE (libdir);
37303 + FREE (deplibs);
37304 + FREE (*phandle);
37305 + goto cleanup;
37306 + }
37307 +
37308 + assert (*phandle);
37309 +
37310 + if (load_deplibs (*phandle, deplibs) == 0)
37311 + {
37312 + newhandle = *phandle;
37313 + /* find_module may replace newhandle */
37314 + if (find_module (&newhandle, dir, libdir, dlname, old_name,
37315 + installed, advise))
37316 + {
37317 + unload_deplibs (*phandle);
37318 + ++errors;
37319 + }
37320 + }
37321 + else
37322 + {
37323 + ++errors;
37324 + }
37325 +
37326 + FREE (dlname);
37327 + FREE (old_name);
37328 + FREE (libdir);
37329 + FREE (deplibs);
37330 +
37331 + if (errors)
37332 + {
37333 + FREE (*phandle);
37334 + goto cleanup;
37335 + }
37336 +
37337 + if (*phandle != newhandle)
37338 + {
37339 + unload_deplibs (*phandle);
37340 + }
37341 + }
37342 + else
37343 + {
37344 + /* not a libtool module */
37345 + *phandle = (lt_dlhandle) lt__zalloc (sizeof (struct lt__handle));
37346 + if (*phandle == 0)
37347 + {
37348 + ++errors;
37349 + goto cleanup;
37350 + }
37351 +
37352 + newhandle = *phandle;
37353 +
37354 + /* If the module has no directory name component, try to find it
37355 + first in user_search_path and then other prescribed paths.
37356 + Otherwise (or in any case if the module was not yet found) try
37357 + opening just the module name as passed. */
37358 + if ((dir || (!find_handle (user_search_path, base_name,
37359 + &newhandle, advise)
37360 + && !find_handle (getenv (LTDL_SEARCHPATH_VAR), base_name,
37361 + &newhandle, advise)
37362 +#if defined(LT_MODULE_PATH_VAR)
37363 + && !find_handle (getenv (LT_MODULE_PATH_VAR), base_name,
37364 + &newhandle, advise)
37365 +#endif
37366 +#if defined(LT_DLSEARCH_PATH)
37367 + && !find_handle (sys_dlsearch_path, base_name,
37368 + &newhandle, advise)
37369 +#endif
37370 + )))
37371 + {
37372 + if (tryall_dlopen (&newhandle, attempt, advise, 0) != 0)
37373 + {
37374 + newhandle = NULL;
37375 + }
37376 + }
37377 +
37378 + if (!newhandle)
37379 + {
37380 + FREE (*phandle);
37381 + ++errors;
37382 + goto cleanup;
37383 + }
37384 + }
37385 +
37386 + register_handle:
37387 + MEMREASSIGN (*phandle, newhandle);
37388 +
37389 + if ((*phandle)->info.ref_count == 0)
37390 + {
37391 + (*phandle)->info.ref_count = 1;
37392 + MEMREASSIGN ((*phandle)->info.name, name);
37393 +
37394 + (*phandle)->next = handles;
37395 + handles = *phandle;
37396 + }
37397 +
37398 + LT__SETERRORSTR (saved_error);
37399 +
37400 + cleanup:
37401 + FREE (dir);
37402 + FREE (attempt);
37403 + FREE (name);
37404 + if (!canonical) /* was MEMREASSIGNed */
37405 + FREE (base_name);
37406 + FREE (canonical);
37407 + FREE (archive_name);
37408 +
37409 + return errors;
37410 +}
37411 +
37412 +
37413 +/* If the last error messge store was `FILE_NOT_FOUND', then return
37414 + non-zero. */
37415 +static int
37416 +file_not_found (void)
37417 +{
37418 + const char *error = 0;
37419 +
37420 + LT__GETERROR (error);
37421 + if (error == LT__STRERROR (FILE_NOT_FOUND))
37422 + return 1;
37423 +
37424 + return 0;
37425 +}
37426 +
37427 +
37428 +/* Unless FILENAME already bears a suitable library extension, then
37429 + return 0. */
37430 +static int
37431 +has_library_ext (const char *filename)
37432 +{
37433 + char * ext = 0;
37434 +
37435 + assert (filename);
37436 +
37437 + ext = strrchr (filename, '.');
37438 +
37439 + if (ext && ((streq (ext, archive_ext))
37440 +#if defined(LT_MODULE_EXT)
37441 + || (streq (ext, shlib_ext))
37442 +#endif
37443 + ))
37444 + {
37445 + return 1;
37446 + }
37447 +
37448 + return 0;
37449 +}
37450 +
37451 +
37452 +/* Initialise and configure a user lt_dladvise opaque object. */
37453 +
37454 +int
37455 +lt_dladvise_init (lt_dladvise *padvise)
37456 +{
37457 + lt_dladvise advise = (lt_dladvise) lt__zalloc (sizeof (struct lt__advise));
37458 + *padvise = advise;
37459 + return (advise ? 0 : 1);
37460 +}
37461 +
37462 +int
37463 +lt_dladvise_destroy (lt_dladvise *padvise)
37464 +{
37465 + if (padvise)
37466 + FREE(*padvise);
37467 + return 0;
37468 +}
37469 +
37470 +int
37471 +lt_dladvise_ext (lt_dladvise *padvise)
37472 +{
37473 + assert (padvise && *padvise);
37474 + (*padvise)->try_ext = 1;
37475 + return 0;
37476 +}
37477 +
37478 +int
37479 +lt_dladvise_resident (lt_dladvise *padvise)
37480 +{
37481 + assert (padvise && *padvise);
37482 + (*padvise)->is_resident = 1;
37483 + return 0;
37484 +}
37485 +
37486 +int
37487 +lt_dladvise_local (lt_dladvise *padvise)
37488 +{
37489 + assert (padvise && *padvise);
37490 + (*padvise)->is_symlocal = 1;
37491 + return 0;
37492 +}
37493 +
37494 +int
37495 +lt_dladvise_global (lt_dladvise *padvise)
37496 +{
37497 + assert (padvise && *padvise);
37498 + (*padvise)->is_symglobal = 1;
37499 + return 0;
37500 +}
37501 +
37502 +int
37503 +lt_dladvise_preload (lt_dladvise *padvise)
37504 +{
37505 + assert (padvise && *padvise);
37506 + (*padvise)->try_preload_only = 1;
37507 + return 0;
37508 +}
37509 +
37510 +/* Libtool-1.5.x interface for loading a new module named FILENAME. */
37511 +lt_dlhandle
37512 +lt_dlopen (const char *filename)
37513 +{
37514 + return lt_dlopenadvise (filename, NULL);
37515 +}
37516 +
37517 +
37518 +/* If FILENAME has an ARCHIVE_EXT or MODULE_EXT extension, try to
37519 + open the FILENAME as passed. Otherwise try appending ARCHIVE_EXT,
37520 + and if a file is still not found try again with MODULE_EXT appended
37521 + instead. */
37522 +lt_dlhandle
37523 +lt_dlopenext (const char *filename)
37524 +{
37525 + lt_dlhandle handle = 0;
37526 + lt_dladvise advise;
37527 +
37528 + if (!lt_dladvise_init (&advise) && !lt_dladvise_ext (&advise))
37529 + handle = lt_dlopenadvise (filename, advise);
37530 +
37531 + lt_dladvise_destroy (&advise);
37532 + return handle;
37533 +}
37534 +
37535 +
37536 +lt_dlhandle
37537 +lt_dlopenadvise (const char *filename, lt_dladvise advise)
37538 +{
37539 + lt_dlhandle handle = 0;
37540 + int errors = 0;
37541 +
37542 + /* Can't have symbols hidden and visible at the same time! */
37543 + if (advise && advise->is_symlocal && advise->is_symglobal)
37544 + {
37545 + LT__SETERROR (CONFLICTING_FLAGS);
37546 + return 0;
37547 + }
37548 +
37549 + if (!filename
37550 + || !advise
37551 + || !advise->try_ext
37552 + || has_library_ext (filename))
37553 + {
37554 + /* Just incase we missed a code path in try_dlopen() that reports
37555 + an error, but forgot to reset handle... */
37556 + if (try_dlopen (&handle, filename, NULL, advise) != 0)
37557 + return 0;
37558 +
37559 + return handle;
37560 + }
37561 + else if (filename && *filename)
37562 + {
37563 +
37564 + /* First try appending ARCHIVE_EXT. */
37565 + errors += try_dlopen (&handle, filename, archive_ext, advise);
37566 +
37567 + /* If we found FILENAME, stop searching -- whether we were able to
37568 + load the file as a module or not. If the file exists but loading
37569 + failed, it is better to return an error message here than to
37570 + report FILE_NOT_FOUND when the alternatives (foo.so etc) are not
37571 + in the module search path. */
37572 + if (handle || ((errors > 0) && !file_not_found ()))
37573 + return handle;
37574 +
37575 +#if defined(LT_MODULE_EXT)
37576 + /* Try appending SHLIB_EXT. */
37577 + errors = try_dlopen (&handle, filename, shlib_ext, advise);
37578 +
37579 + /* As before, if the file was found but loading failed, return now
37580 + with the current error message. */
37581 + if (handle || ((errors > 0) && !file_not_found ()))
37582 + return handle;
37583 +#endif
37584 + }
37585 +
37586 + /* Still here? Then we really did fail to locate any of the file
37587 + names we tried. */
37588 + LT__SETERROR (FILE_NOT_FOUND);
37589 + return 0;
37590 +}
37591 +
37592 +
37593 +static int
37594 +lt_argz_insert (char **pargz, size_t *pargz_len, char *before,
37595 + const char *entry)
37596 +{
37597 + error_t error;
37598 +
37599 + /* Prior to Sep 8, 2005, newlib had a bug where argz_insert(pargz,
37600 + pargz_len, NULL, entry) failed with EINVAL. */
37601 + if (before)
37602 + error = argz_insert (pargz, pargz_len, before, entry);
37603 + else
37604 + error = argz_append (pargz, pargz_len, entry, 1 + strlen (entry));
37605 +
37606 + if (error)
37607 + {
37608 + switch (error)
37609 + {
37610 + case ENOMEM:
37611 + LT__SETERROR (NO_MEMORY);
37612 + break;
37613 + default:
37614 + LT__SETERROR (UNKNOWN);
37615 + break;
37616 + }
37617 + return 1;
37618 + }
37619 +
37620 + return 0;
37621 +}
37622 +
37623 +static int
37624 +lt_argz_insertinorder (char **pargz, size_t *pargz_len, const char *entry)
37625 +{
37626 + char *before = 0;
37627 +
37628 + assert (pargz);
37629 + assert (pargz_len);
37630 + assert (entry && *entry);
37631 +
37632 + if (*pargz)
37633 + while ((before = argz_next (*pargz, *pargz_len, before)))
37634 + {
37635 + int cmp = strcmp (entry, before);
37636 +
37637 + if (cmp < 0) break;
37638 + if (cmp == 0) return 0; /* No duplicates! */
37639 + }
37640 +
37641 + return lt_argz_insert (pargz, pargz_len, before, entry);
37642 +}
37643 +
37644 +static int
37645 +lt_argz_insertdir (char **pargz, size_t *pargz_len, const char *dirnam,
37646 + struct dirent *dp)
37647 +{
37648 + char *buf = 0;
37649 + size_t buf_len = 0;
37650 + char *end = 0;
37651 + size_t end_offset = 0;
37652 + size_t dir_len = 0;
37653 + int errors = 0;
37654 +
37655 + assert (pargz);
37656 + assert (pargz_len);
37657 + assert (dp);
37658 +
37659 + dir_len = LT_STRLEN (dirnam);
37660 + end = dp->d_name + D_NAMLEN(dp);
37661 +
37662 + /* Ignore version numbers. */
37663 + {
37664 + char *p;
37665 + for (p = end; p -1 > dp->d_name; --p)
37666 + if (strchr (".0123456789", p[-1]) == 0)
37667 + break;
37668 +
37669 + if (*p == '.')
37670 + end = p;
37671 + }
37672 +
37673 + /* Ignore filename extension. */
37674 + {
37675 + char *p;
37676 + for (p = end -1; p > dp->d_name; --p)
37677 + if (*p == '.')
37678 + {
37679 + end = p;
37680 + break;
37681 + }
37682 + }
37683 +
37684 + /* Prepend the directory name. */
37685 + end_offset = end - dp->d_name;
37686 + buf_len = dir_len + 1+ end_offset;
37687 + buf = MALLOC (char, 1+ buf_len);
37688 + if (!buf)
37689 + return ++errors;
37690 +
37691 + assert (buf);
37692 +
37693 + strcpy (buf, dirnam);
37694 + strcat (buf, "/");
37695 + strncat (buf, dp->d_name, end_offset);
37696 + buf[buf_len] = LT_EOS_CHAR;
37697 +
37698 + /* Try to insert (in order) into ARGZ/ARGZ_LEN. */
37699 + if (lt_argz_insertinorder (pargz, pargz_len, buf) != 0)
37700 + ++errors;
37701 +
37702 + FREE (buf);
37703 +
37704 + return errors;
37705 +}
37706 +
37707 +static int
37708 +list_files_by_dir (const char *dirnam, char **pargz, size_t *pargz_len)
37709 +{
37710 + DIR *dirp = 0;
37711 + int errors = 0;
37712 +
37713 + assert (dirnam && *dirnam);
37714 + assert (pargz);
37715 + assert (pargz_len);
37716 + assert (dirnam[LT_STRLEN(dirnam) -1] != '/');
37717 +
37718 + dirp = opendir (dirnam);
37719 + if (dirp)
37720 + {
37721 + struct dirent *dp = 0;
37722 +
37723 + while ((dp = readdir (dirp)))
37724 + if (dp->d_name[0] != '.')
37725 + if (lt_argz_insertdir (pargz, pargz_len, dirnam, dp))
37726 + {
37727 + ++errors;
37728 + break;
37729 + }
37730 +
37731 + closedir (dirp);
37732 + }
37733 + else
37734 + ++errors;
37735 +
37736 + return errors;
37737 +}
37738 +
37739 +
37740 +/* If there are any files in DIRNAME, call the function passed in
37741 + DATA1 (with the name of each file and DATA2 as arguments). */
37742 +static int
37743 +foreachfile_callback (char *dirname, void *data1, void *data2)
37744 +{
37745 + file_worker_func *func = *(file_worker_func **) data1;
37746 +
37747 + int is_done = 0;
37748 + char *argz = 0;
37749 + size_t argz_len = 0;
37750 +
37751 + if (list_files_by_dir (dirname, &argz, &argz_len) != 0)
37752 + goto cleanup;
37753 + if (!argz)
37754 + goto cleanup;
37755 +
37756 + {
37757 + char *filename = 0;
37758 + while ((filename = argz_next (argz, argz_len, filename)))
37759 + if ((is_done = (*func) (filename, data2)))
37760 + break;
37761 + }
37762 +
37763 + cleanup:
37764 + FREE (argz);
37765 +
37766 + return is_done;
37767 +}
37768 +
37769 +
37770 +/* Call FUNC for each unique extensionless file in SEARCH_PATH, along
37771 + with DATA. The filenames passed to FUNC would be suitable for
37772 + passing to lt_dlopenext. The extensions are stripped so that
37773 + individual modules do not generate several entries (e.g. libfoo.la,
37774 + libfoo.so, libfoo.so.1, libfoo.so.1.0.0). If SEARCH_PATH is NULL,
37775 + then the same directories that lt_dlopen would search are examined. */
37776 +int
37777 +lt_dlforeachfile (const char *search_path,
37778 + int (*func) (const char *filename, void *data),
37779 + void *data)
37780 +{
37781 + int is_done = 0;
37782 + file_worker_func **fpptr = &func;
37783 +
37784 + if (search_path)
37785 + {
37786 + /* If a specific path was passed, search only the directories
37787 + listed in it. */
37788 + is_done = foreach_dirinpath (search_path, 0,
37789 + foreachfile_callback, fpptr, data);
37790 + }
37791 + else
37792 + {
37793 + /* Otherwise search the default paths. */
37794 + is_done = foreach_dirinpath (user_search_path, 0,
37795 + foreachfile_callback, fpptr, data);
37796 + if (!is_done)
37797 + {
37798 + is_done = foreach_dirinpath (getenv(LTDL_SEARCHPATH_VAR), 0,
37799 + foreachfile_callback, fpptr, data);
37800 + }
37801 +
37802 +#if defined(LT_MODULE_PATH_VAR)
37803 + if (!is_done)
37804 + {
37805 + is_done = foreach_dirinpath (getenv(LT_MODULE_PATH_VAR), 0,
37806 + foreachfile_callback, fpptr, data);
37807 + }
37808 +#endif
37809 +#if defined(LT_DLSEARCH_PATH)
37810 + if (!is_done && *sys_dlsearch_path)
37811 + {
37812 + is_done = foreach_dirinpath (sys_dlsearch_path, 0,
37813 + foreachfile_callback, fpptr, data);
37814 + }
37815 +#endif
37816 + }
37817 +
37818 + return is_done;
37819 +}
37820 +
37821 +int
37822 +lt_dlclose (lt_dlhandle handle)
37823 +{
37824 + lt_dlhandle cur, last;
37825 + int errors = 0;
37826 +
37827 + /* check whether the handle is valid */
37828 + last = cur = handles;
37829 + while (cur && handle != cur)
37830 + {
37831 + last = cur;
37832 + cur = cur->next;
37833 + }
37834 +
37835 + if (!cur)
37836 + {
37837 + LT__SETERROR (INVALID_HANDLE);
37838 + ++errors;
37839 + goto done;
37840 + }
37841 +
37842 + cur = handle;
37843 + cur->info.ref_count--;
37844 +
37845 + /* Note that even with resident modules, we must track the ref_count
37846 + correctly incase the user decides to reset the residency flag
37847 + later (even though the API makes no provision for that at the
37848 + moment). */
37849 + if (cur->info.ref_count <= 0 && !LT_DLIS_RESIDENT (cur))
37850 + {
37851 + lt_user_data data = cur->vtable->dlloader_data;
37852 +
37853 + if (cur != handles)
37854 + {
37855 + last->next = cur->next;
37856 + }
37857 + else
37858 + {
37859 + handles = cur->next;
37860 + }
37861 +
37862 + errors += cur->vtable->module_close (data, cur->module);
37863 + errors += unload_deplibs (handle);
37864 +
37865 + /* It is up to the callers to free the data itself. */
37866 + FREE (cur->interface_data);
37867 +
37868 + FREE (cur->info.filename);
37869 + FREE (cur->info.name);
37870 + FREE (cur);
37871 +
37872 + goto done;
37873 + }
37874 +
37875 + if (LT_DLIS_RESIDENT (handle))
37876 + {
37877 + LT__SETERROR (CLOSE_RESIDENT_MODULE);
37878 + ++errors;
37879 + }
37880 +
37881 + done:
37882 + return errors;
37883 +}
37884 +
37885 +void *
37886 +lt_dlsym (lt_dlhandle place, const char *symbol)
37887 +{
37888 + size_t lensym;
37889 + char lsym[LT_SYMBOL_LENGTH];
37890 + char *sym;
37891 + void *address;
37892 + lt_user_data data;
37893 + lt_dlhandle handle;
37894 +
37895 + if (!place)
37896 + {
37897 + LT__SETERROR (INVALID_HANDLE);
37898 + return 0;
37899 + }
37900 +
37901 + handle = place;
37902 +
37903 + if (!symbol)
37904 + {
37905 + LT__SETERROR (SYMBOL_NOT_FOUND);
37906 + return 0;
37907 + }
37908 +
37909 + lensym = LT_STRLEN (symbol) + LT_STRLEN (handle->vtable->sym_prefix)
37910 + + LT_STRLEN (handle->info.name);
37911 +
37912 + if (lensym + LT_SYMBOL_OVERHEAD < LT_SYMBOL_LENGTH)
37913 + {
37914 + sym = lsym;
37915 + }
37916 + else
37917 + {
37918 + sym = MALLOC (char, lensym + LT_SYMBOL_OVERHEAD + 1);
37919 + if (!sym)
37920 + {
37921 + LT__SETERROR (BUFFER_OVERFLOW);
37922 + return 0;
37923 + }
37924 + }
37925 +
37926 + data = handle->vtable->dlloader_data;
37927 + if (handle->info.name)
37928 + {
37929 + const char *saved_error;
37930 +
37931 + LT__GETERROR (saved_error);
37932 +
37933 + /* this is a libtool module */
37934 + if (handle->vtable->sym_prefix)
37935 + {
37936 + strcpy(sym, handle->vtable->sym_prefix);
37937 + strcat(sym, handle->info.name);
37938 + }
37939 + else
37940 + {
37941 + strcpy(sym, handle->info.name);
37942 + }
37943 +
37944 + strcat(sym, "_LTX_");
37945 + strcat(sym, symbol);
37946 +
37947 + /* try "modulename_LTX_symbol" */
37948 + address = handle->vtable->find_sym (data, handle->module, sym);
37949 + if (address)
37950 + {
37951 + if (sym != lsym)
37952 + {
37953 + FREE (sym);
37954 + }
37955 + return address;
37956 + }
37957 + LT__SETERRORSTR (saved_error);
37958 + }
37959 +
37960 + /* otherwise try "symbol" */
37961 + if (handle->vtable->sym_prefix)
37962 + {
37963 + strcpy(sym, handle->vtable->sym_prefix);
37964 + strcat(sym, symbol);
37965 + }
37966 + else
37967 + {
37968 + strcpy(sym, symbol);
37969 + }
37970 +
37971 + address = handle->vtable->find_sym (data, handle->module, sym);
37972 + if (sym != lsym)
37973 + {
37974 + FREE (sym);
37975 + }
37976 +
37977 + return address;
37978 +}
37979 +
37980 +const char *
37981 +lt_dlerror (void)
37982 +{
37983 + const char *error;
37984 +
37985 + LT__GETERROR (error);
37986 + LT__SETERRORSTR (0);
37987 +
37988 + return error ? error : NULL;
37989 +}
37990 +
37991 +static int
37992 +lt_dlpath_insertdir (char **ppath, char *before, const char *dir)
37993 +{
37994 + int errors = 0;
37995 + char *canonical = 0;
37996 + char *argz = 0;
37997 + size_t argz_len = 0;
37998 +
37999 + assert (ppath);
38000 + assert (dir && *dir);
38001 +
38002 + if (canonicalize_path (dir, &canonical) != 0)
38003 + {
38004 + ++errors;
38005 + goto cleanup;
38006 + }
38007 +
38008 + assert (canonical && *canonical);
38009 +
38010 + /* If *PPATH is empty, set it to DIR. */
38011 + if (*ppath == 0)
38012 + {
38013 + assert (!before); /* BEFORE cannot be set without PPATH. */
38014 + assert (dir); /* Without DIR, don't call this function! */
38015 +
38016 + *ppath = lt__strdup (dir);
38017 + if (*ppath == 0)
38018 + ++errors;
38019 +
38020 + goto cleanup;
38021 + }
38022 +
38023 + assert (ppath && *ppath);
38024 +
38025 + if (argzize_path (*ppath, &argz, &argz_len) != 0)
38026 + {
38027 + ++errors;
38028 + goto cleanup;
38029 + }
38030 +
38031 + /* Convert BEFORE into an equivalent offset into ARGZ. This only works
38032 + if *PPATH is already canonicalized, and hence does not change length
38033 + with respect to ARGZ. We canonicalize each entry as it is added to
38034 + the search path, and don't call this function with (uncanonicalized)
38035 + user paths, so this is a fair assumption. */
38036 + if (before)
38037 + {
38038 + assert (*ppath <= before);
38039 + assert ((int) (before - *ppath) <= (int) strlen (*ppath));
38040 +
38041 + before = before - *ppath + argz;
38042 + }
38043 +
38044 + if (lt_argz_insert (&argz, &argz_len, before, dir) != 0)
38045 + {
38046 + ++errors;
38047 + goto cleanup;
38048 + }
38049 +
38050 + argz_stringify (argz, argz_len, LT_PATHSEP_CHAR);
38051 + MEMREASSIGN(*ppath, argz);
38052 +
38053 + cleanup:
38054 + FREE (argz);
38055 + FREE (canonical);
38056 +
38057 + return errors;
38058 +}
38059 +
38060 +int
38061 +lt_dladdsearchdir (const char *search_dir)
38062 +{
38063 + int errors = 0;
38064 +
38065 + if (search_dir && *search_dir)
38066 + {
38067 + if (lt_dlpath_insertdir (&user_search_path, 0, search_dir) != 0)
38068 + ++errors;
38069 + }
38070 +
38071 + return errors;
38072 +}
38073 +
38074 +int
38075 +lt_dlinsertsearchdir (const char *before, const char *search_dir)
38076 +{
38077 + int errors = 0;
38078 +
38079 + if (before)
38080 + {
38081 + if ((before < user_search_path)
38082 + || (before >= user_search_path + LT_STRLEN (user_search_path)))
38083 + {
38084 + LT__SETERROR (INVALID_POSITION);
38085 + return 1;
38086 + }
38087 + }
38088 +
38089 + if (search_dir && *search_dir)
38090 + {
38091 + if (lt_dlpath_insertdir (&user_search_path,
38092 + (char *) before, search_dir) != 0)
38093 + {
38094 + ++errors;
38095 + }
38096 + }
38097 +
38098 + return errors;
38099 +}
38100 +
38101 +int
38102 +lt_dlsetsearchpath (const char *search_path)
38103 +{
38104 + int errors = 0;
38105 +
38106 + FREE (user_search_path);
38107 +
38108 + if (!search_path || !LT_STRLEN (search_path))
38109 + {
38110 + return errors;
38111 + }
38112 +
38113 + if (canonicalize_path (search_path, &user_search_path) != 0)
38114 + ++errors;
38115 +
38116 + return errors;
38117 +}
38118 +
38119 +const char *
38120 +lt_dlgetsearchpath (void)
38121 +{
38122 + const char *saved_path;
38123 +
38124 + saved_path = user_search_path;
38125 +
38126 + return saved_path;
38127 +}
38128 +
38129 +int
38130 +lt_dlmakeresident (lt_dlhandle handle)
38131 +{
38132 + int errors = 0;
38133 +
38134 + if (!handle)
38135 + {
38136 + LT__SETERROR (INVALID_HANDLE);
38137 + ++errors;
38138 + }
38139 + else
38140 + {
38141 + handle->info.is_resident = 1;
38142 + }
38143 +
38144 + return errors;
38145 +}
38146 +
38147 +int
38148 +lt_dlisresident (lt_dlhandle handle)
38149 +{
38150 + if (!handle)
38151 + {
38152 + LT__SETERROR (INVALID_HANDLE);
38153 + return -1;
38154 + }
38155 +
38156 + return LT_DLIS_RESIDENT (handle);
38157 +}
38158 +
38159 +
38160 +
38161 +/* --- MODULE INFORMATION --- */
38162 +
38163 +typedef struct {
38164 + const char *id_string;
38165 + lt_dlhandle_interface *iface;
38166 +} lt__interface_id;
38167 +
38168 +lt_dlinterface_id
38169 +lt_dlinterface_register (const char *id_string, lt_dlhandle_interface *iface)
38170 +{
38171 + lt__interface_id *interface_id = (lt__interface_id *) lt__malloc (sizeof *interface_id);
38172 +
38173 + /* If lt__malloc fails, it will LT__SETERROR (NO_MEMORY), which
38174 + can then be detected with lt_dlerror() if we return 0. */
38175 + if (interface_id)
38176 + {
38177 + interface_id->id_string = lt__strdup (id_string);
38178 + if (!interface_id->id_string)
38179 + FREE (interface_id);
38180 + else
38181 + interface_id->iface = iface;
38182 + }
38183 +
38184 + return (lt_dlinterface_id) interface_id;
38185 +}
38186 +
38187 +void lt_dlinterface_free (lt_dlinterface_id key)
38188 +{
38189 + lt__interface_id *interface_id = (lt__interface_id *)key;
38190 + FREE (interface_id->id_string);
38191 + FREE (interface_id);
38192 +}
38193 +
38194 +void *
38195 +lt_dlcaller_set_data (lt_dlinterface_id key, lt_dlhandle handle, void *data)
38196 +{
38197 + int n_elements = 0;
38198 + void *stale = (void *) 0;
38199 + lt_dlhandle cur = handle;
38200 + int i;
38201 +
38202 + if (cur->interface_data)
38203 + while (cur->interface_data[n_elements].key)
38204 + ++n_elements;
38205 +
38206 + for (i = 0; i < n_elements; ++i)
38207 + {
38208 + if (cur->interface_data[i].key == key)
38209 + {
38210 + stale = cur->interface_data[i].data;
38211 + break;
38212 + }
38213 + }
38214 +
38215 + /* Ensure that there is enough room in this handle's interface_data
38216 + array to accept a new element (and an empty end marker). */
38217 + if (i == n_elements)
38218 + {
38219 + lt_interface_data *temp
38220 + = REALLOC (lt_interface_data, cur->interface_data, 2+ n_elements);
38221 +
38222 + if (!temp)
38223 + {
38224 + stale = 0;
38225 + goto done;
38226 + }
38227 +
38228 + cur->interface_data = temp;
38229 +
38230 + /* We only need this if we needed to allocate a new interface_data. */
38231 + cur->interface_data[i].key = key;
38232 + cur->interface_data[1+ i].key = 0;
38233 + }
38234 +
38235 + cur->interface_data[i].data = data;
38236 +
38237 + done:
38238 + return stale;
38239 +}
38240 +
38241 +void *
38242 +lt_dlcaller_get_data (lt_dlinterface_id key, lt_dlhandle handle)
38243 +{
38244 + void *result = (void *) 0;
38245 + lt_dlhandle cur = handle;
38246 +
38247 + /* Locate the index of the element with a matching KEY. */
38248 + if (cur->interface_data)
38249 + {
38250 + int i;
38251 + for (i = 0; cur->interface_data[i].key; ++i)
38252 + {
38253 + if (cur->interface_data[i].key == key)
38254 + {
38255 + result = cur->interface_data[i].data;
38256 + break;
38257 + }
38258 + }
38259 + }
38260 +
38261 + return result;
38262 +}
38263 +
38264 +const lt_dlinfo *
38265 +lt_dlgetinfo (lt_dlhandle handle)
38266 +{
38267 + if (!handle)
38268 + {
38269 + LT__SETERROR (INVALID_HANDLE);
38270 + return 0;
38271 + }
38272 +
38273 + return &(handle->info);
38274 +}
38275 +
38276 +
38277 +lt_dlhandle
38278 +lt_dlhandle_iterate (lt_dlinterface_id iface, lt_dlhandle place)
38279 +{
38280 + lt_dlhandle handle = place;
38281 + lt__interface_id *iterator = (lt__interface_id *) iface;
38282 +
38283 + assert (iface); /* iface is a required argument */
38284 +
38285 + if (!handle)
38286 + handle = handles;
38287 + else
38288 + handle = handle->next;
38289 +
38290 + /* advance while the interface check fails */
38291 + while (handle && iterator->iface
38292 + && ((*iterator->iface) (handle, iterator->id_string) != 0))
38293 + {
38294 + handle = handle->next;
38295 + }
38296 +
38297 + return handle;
38298 +}
38299 +
38300 +
38301 +lt_dlhandle
38302 +lt_dlhandle_fetch (lt_dlinterface_id iface, const char *module_name)
38303 +{
38304 + lt_dlhandle handle = 0;
38305 +
38306 + assert (iface); /* iface is a required argument */
38307 +
38308 + while ((handle = lt_dlhandle_iterate (iface, handle)))
38309 + {
38310 + lt_dlhandle cur = handle;
38311 + if (cur && cur->info.name && streq (cur->info.name, module_name))
38312 + break;
38313 + }
38314 +
38315 + return handle;
38316 +}
38317 +
38318 +
38319 +int
38320 +lt_dlhandle_map (lt_dlinterface_id iface,
38321 + int (*func) (lt_dlhandle handle, void *data), void *data)
38322 +{
38323 + lt__interface_id *iterator = (lt__interface_id *) iface;
38324 + lt_dlhandle cur = handles;
38325 +
38326 + assert (iface); /* iface is a required argument */
38327 +
38328 + while (cur)
38329 + {
38330 + int errorcode = 0;
38331 +
38332 + /* advance while the interface check fails */
38333 + while (cur && iterator->iface
38334 + && ((*iterator->iface) (cur, iterator->id_string) != 0))
38335 + {
38336 + cur = cur->next;
38337 + }
38338 +
38339 + if ((errorcode = (*func) (cur, data)) != 0)
38340 + return errorcode;
38341 + }
38342 +
38343 + return 0;
38344 +}
38345 diff --git a/libltdl/ltdl.h b/libltdl/ltdl.h
38346 new file mode 100644
38347 index 0000000..8b516ad
38348 --- /dev/null
38349 +++ b/libltdl/ltdl.h
38350 @@ -0,0 +1,162 @@
38351 +/* ltdl.h -- generic dlopen functions
38352 +
38353 + Copyright (C) 1998-2000, 2004, 2005,
38354 + 2007, 2008 Free Software Foundation, Inc.
38355 + Written by Thomas Tanner, 1998
38356 +
38357 + NOTE: The canonical source of this file is maintained with the
38358 + GNU Libtool package. Report bugs to [email protected].
38359 +
38360 +GNU Libltdl is free software; you can redistribute it and/or
38361 +modify it under the terms of the GNU Lesser General Public
38362 +License as published by the Free Software Foundation; either
38363 +version 2 of the License, or (at your option) any later version.
38364 +
38365 +As a special exception to the GNU Lesser General Public License,
38366 +if you distribute this file as part of a program or library that
38367 +is built using GNU Libtool, you may include this file under the
38368 +same distribution terms that you use for the rest of that program.
38369 +
38370 +GNU Libltdl is distributed in the hope that it will be useful,
38371 +but WITHOUT ANY WARRANTY; without even the implied warranty of
38372 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38373 +GNU Lesser General Public License for more details.
38374 +
38375 +You should have received a copy of the GNU Lesser General Public
38376 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
38377 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
38378 +or obtained by writing to the Free Software Foundation, Inc.,
38379 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38380 +*/
38381 +
38382 +/* Only include this header file once. */
38383 +#if !defined(LTDL_H)
38384 +#define LTDL_H 1
38385 +
38386 +#include <libltdl/lt_system.h>
38387 +#include <libltdl/lt_error.h>
38388 +#include <libltdl/lt_dlloader.h>
38389 +
38390 +LT_BEGIN_C_DECLS
38391 +
38392 +
38393 +/* LT_STRLEN can be used safely on NULL pointers. */
38394 +#define LT_STRLEN(s) (((s) && (s)[0]) ? strlen (s) : 0)
38395 +
38396 +
38397 +/* --- DYNAMIC MODULE LOADING API --- */
38398 +
38399 +
38400 +typedef struct lt__handle *lt_dlhandle; /* A loaded module. */
38401 +
38402 +/* Initialisation and finalisation functions for libltdl. */
38403 +LT_SCOPE int lt_dlinit (void);
38404 +LT_SCOPE int lt_dlexit (void);
38405 +
38406 +/* Module search path manipulation. */
38407 +LT_SCOPE int lt_dladdsearchdir (const char *search_dir);
38408 +LT_SCOPE int lt_dlinsertsearchdir (const char *before,
38409 + const char *search_dir);
38410 +LT_SCOPE int lt_dlsetsearchpath (const char *search_path);
38411 +LT_SCOPE const char *lt_dlgetsearchpath (void);
38412 +LT_SCOPE int lt_dlforeachfile (
38413 + const char *search_path,
38414 + int (*func) (const char *filename, void *data),
38415 + void *data);
38416 +
38417 +/* User module loading advisors. */
38418 +LT_SCOPE int lt_dladvise_init (lt_dladvise *advise);
38419 +LT_SCOPE int lt_dladvise_destroy (lt_dladvise *advise);
38420 +LT_SCOPE int lt_dladvise_ext (lt_dladvise *advise);
38421 +LT_SCOPE int lt_dladvise_resident (lt_dladvise *advise);
38422 +LT_SCOPE int lt_dladvise_local (lt_dladvise *advise);
38423 +LT_SCOPE int lt_dladvise_global (lt_dladvise *advise);
38424 +LT_SCOPE int lt_dladvise_preload (lt_dladvise *advise);
38425 +
38426 +/* Portable libltdl versions of the system dlopen() API. */
38427 +LT_SCOPE lt_dlhandle lt_dlopen (const char *filename);
38428 +LT_SCOPE lt_dlhandle lt_dlopenext (const char *filename);
38429 +LT_SCOPE lt_dlhandle lt_dlopenadvise (const char *filename,
38430 + lt_dladvise advise);
38431 +LT_SCOPE void * lt_dlsym (lt_dlhandle handle, const char *name);
38432 +LT_SCOPE const char *lt_dlerror (void);
38433 +LT_SCOPE int lt_dlclose (lt_dlhandle handle);
38434 +
38435 +
38436 +
38437 +/* --- PRELOADED MODULE SUPPORT --- */
38438 +
38439 +
38440 +/* A preopened symbol. Arrays of this type comprise the exported
38441 + symbols for a dlpreopened module. */
38442 +typedef struct {
38443 + const char *name;
38444 + void *address;
38445 +} lt_dlsymlist;
38446 +
38447 +typedef int lt_dlpreload_callback_func (lt_dlhandle handle);
38448 +
38449 +LT_SCOPE int lt_dlpreload (const lt_dlsymlist *preloaded);
38450 +LT_SCOPE int lt_dlpreload_default (const lt_dlsymlist *preloaded);
38451 +LT_SCOPE int lt_dlpreload_open (const char *originator,
38452 + lt_dlpreload_callback_func *func);
38453 +
38454 +#define lt_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols
38455 +#define LTDL_SET_PRELOADED_SYMBOLS() LT_STMT_START{ \
38456 + extern const lt_dlsymlist lt_preloaded_symbols[]; \
38457 + lt_dlpreload_default(lt_preloaded_symbols); \
38458 + }LT_STMT_END
38459 +
38460 +
38461 +
38462 +
38463 +/* --- MODULE INFORMATION --- */
38464 +
38465 +
38466 +/* Associating user data with loaded modules. */
38467 +typedef void * lt_dlinterface_id;
38468 +typedef int lt_dlhandle_interface (lt_dlhandle handle, const char *id_string);
38469 +
38470 +LT_SCOPE lt_dlinterface_id lt_dlinterface_register (const char *id_string,
38471 + lt_dlhandle_interface *iface);
38472 +LT_SCOPE void lt_dlinterface_free (lt_dlinterface_id key);
38473 +LT_SCOPE void * lt_dlcaller_set_data (lt_dlinterface_id key,
38474 + lt_dlhandle handle, void *data);
38475 +LT_SCOPE void * lt_dlcaller_get_data (lt_dlinterface_id key,
38476 + lt_dlhandle handle);
38477 +
38478 +
38479 +/* Read only information pertaining to a loaded module. */
38480 +typedef struct {
38481 + char * filename; /* file name */
38482 + char * name; /* module name */
38483 + int ref_count; /* number of times lt_dlopened minus
38484 + number of times lt_dlclosed. */
38485 + unsigned int is_resident:1; /* module can't be unloaded. */
38486 + unsigned int is_symglobal:1; /* module symbols can satisfy
38487 + subsequently loaded modules. */
38488 + unsigned int is_symlocal:1; /* module symbols are only available
38489 + locally. */
38490 +} lt_dlinfo;
38491 +
38492 +LT_SCOPE const lt_dlinfo *lt_dlgetinfo (lt_dlhandle handle);
38493 +
38494 +LT_SCOPE lt_dlhandle lt_dlhandle_iterate (lt_dlinterface_id iface,
38495 + lt_dlhandle place);
38496 +LT_SCOPE lt_dlhandle lt_dlhandle_fetch (lt_dlinterface_id iface,
38497 + const char *module_name);
38498 +LT_SCOPE int lt_dlhandle_map (lt_dlinterface_id iface,
38499 + int (*func) (lt_dlhandle handle, void *data),
38500 + void *data);
38501 +
38502 +
38503 +
38504 +/* Deprecated module residency management API. */
38505 +LT_SCOPE int lt_dlmakeresident (lt_dlhandle handle);
38506 +LT_SCOPE int lt_dlisresident (lt_dlhandle handle);
38507 +
38508 +#define lt_ptr void *
38509 +
38510 +LT_END_C_DECLS
38511 +
38512 +#endif /*!defined(LTDL_H)*/
38513 diff --git a/libltdl/m4/argz.m4 b/libltdl/m4/argz.m4
38514 new file mode 100644
38515 index 0000000..37c1b11
38516 --- /dev/null
38517 +++ b/libltdl/m4/argz.m4
38518 @@ -0,0 +1,79 @@
38519 +# Portability macros for glibc argz. -*- Autoconf -*-
38520 +#
38521 +# Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
38522 +# Written by Gary V. Vaughan <[email protected]>
38523 +#
38524 +# This file is free software; the Free Software Foundation gives
38525 +# unlimited permission to copy and/or distribute it, with or without
38526 +# modifications, as long as this notice is preserved.
38527 +
38528 +# serial 5 argz.m4
38529 +
38530 +AC_DEFUN([gl_FUNC_ARGZ],
38531 +[gl_PREREQ_ARGZ
38532 +
38533 +AC_CHECK_HEADERS([argz.h], [], [], [AC_INCLUDES_DEFAULT])
38534 +
38535 +AC_CHECK_TYPES([error_t],
38536 + [],
38537 + [AC_DEFINE([error_t], [int],
38538 + [Define to a type to use for `error_t' if it is not otherwise available.])
38539 + AC_DEFINE([__error_t_defined], [1], [Define so that glibc/gnulib argp.h
38540 + does not typedef error_t.])],
38541 + [#if defined(HAVE_ARGZ_H)
38542 +# include <argz.h>
38543 +#endif])
38544 +
38545 +ARGZ_H=
38546 +AC_CHECK_FUNCS([argz_add argz_append argz_count argz_create_sep argz_insert \
38547 + argz_next argz_stringify], [], [ARGZ_H=argz.h; AC_LIBOBJ([argz])])
38548 +
38549 +dnl if have system argz functions, allow forced use of
38550 +dnl libltdl-supplied implementation (and default to do so
38551 +dnl on "known bad" systems). Could use a runtime check, but
38552 +dnl (a) detecting malloc issues is notoriously unreliable
38553 +dnl (b) only known system that declares argz functions,
38554 +dnl provides them, yet they are broken, is cygwin
38555 +dnl releases prior to 16-Mar-2007 (1.5.24 and earlier)
38556 +dnl So, it's more straightforward simply to special case
38557 +dnl this for known bad systems.
38558 +AS_IF([test -z "$ARGZ_H"],
38559 + [AC_CACHE_CHECK(
38560 + [if argz actually works],
38561 + [lt_cv_sys_argz_works],
38562 + [[case $host_os in #(
38563 + *cygwin*)
38564 + lt_cv_sys_argz_works=no
38565 + if test "$cross_compiling" != no; then
38566 + lt_cv_sys_argz_works="guessing no"
38567 + else
38568 + lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
38569 + save_IFS=$IFS
38570 + IFS=-.
38571 + set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
38572 + IFS=$save_IFS
38573 + lt_os_major=${2-0}
38574 + lt_os_minor=${3-0}
38575 + lt_os_micro=${4-0}
38576 + if test "$lt_os_major" -gt 1 \
38577 + || { test "$lt_os_major" -eq 1 \
38578 + && { test "$lt_os_minor" -gt 5 \
38579 + || { test "$lt_os_minor" -eq 5 \
38580 + && test "$lt_os_micro" -gt 24; }; }; }; then
38581 + lt_cv_sys_argz_works=yes
38582 + fi
38583 + fi
38584 + ;; #(
38585 + *) lt_cv_sys_argz_works=yes ;;
38586 + esac]])
38587 + AS_IF([test $lt_cv_sys_argz_works = yes],
38588 + [AC_DEFINE([HAVE_WORKING_ARGZ], 1,
38589 + [This value is set to 1 to indicate that the system argz facility works])],
38590 + [ARGZ_H=argz.h
38591 + AC_LIBOBJ([argz])])])
38592 +
38593 +AC_SUBST([ARGZ_H])
38594 +])
38595 +
38596 +# Prerequisites of lib/argz.c.
38597 +AC_DEFUN([gl_PREREQ_ARGZ], [:])
38598 diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
38599 new file mode 100644
38600 index 0000000..671cde1
38601 --- /dev/null
38602 +++ b/libltdl/m4/libtool.m4
38603 @@ -0,0 +1,7360 @@
38604 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
38605 +#
38606 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
38607 +# 2006, 2007, 2008 Free Software Foundation, Inc.
38608 +# Written by Gordon Matzigkeit, 1996
38609 +#
38610 +# This file is free software; the Free Software Foundation gives
38611 +# unlimited permission to copy and/or distribute it, with or without
38612 +# modifications, as long as this notice is preserved.
38613 +
38614 +m4_define([_LT_COPYING], [dnl
38615 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
38616 +# 2006, 2007, 2008 Free Software Foundation, Inc.
38617 +# Written by Gordon Matzigkeit, 1996
38618 +#
38619 +# This file is part of GNU Libtool.
38620 +#
38621 +# GNU Libtool is free software; you can redistribute it and/or
38622 +# modify it under the terms of the GNU General Public License as
38623 +# published by the Free Software Foundation; either version 2 of
38624 +# the License, or (at your option) any later version.
38625 +#
38626 +# As a special exception to the GNU General Public License,
38627 +# if you distribute this file as part of a program or library that
38628 +# is built using GNU Libtool, you may include this file under the
38629 +# same distribution terms that you use for the rest of that program.
38630 +#
38631 +# GNU Libtool is distributed in the hope that it will be useful,
38632 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
38633 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38634 +# GNU General Public License for more details.
38635 +#
38636 +# You should have received a copy of the GNU General Public License
38637 +# along with GNU Libtool; see the file COPYING. If not, a copy
38638 +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38639 +# obtained by writing to the Free Software Foundation, Inc.,
38640 +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38641 +])
38642 +
38643 +# serial 56 LT_INIT
38644 +
38645 +
38646 +# LT_PREREQ(VERSION)
38647 +# ------------------
38648 +# Complain and exit if this libtool version is less that VERSION.
38649 +m4_defun([LT_PREREQ],
38650 +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
38651 + [m4_default([$3],
38652 + [m4_fatal([Libtool version $1 or higher is required],
38653 + 63)])],
38654 + [$2])])
38655 +
38656 +
38657 +# _LT_CHECK_BUILDDIR
38658 +# ------------------
38659 +# Complain if the absolute build directory name contains unusual characters
38660 +m4_defun([_LT_CHECK_BUILDDIR],
38661 +[case `pwd` in
38662 + *\ * | *\ *)
38663 + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
38664 +esac
38665 +])
38666 +
38667 +
38668 +# LT_INIT([OPTIONS])
38669 +# ------------------
38670 +AC_DEFUN([LT_INIT],
38671 +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
38672 +AC_BEFORE([$0], [LT_LANG])dnl
38673 +AC_BEFORE([$0], [LT_OUTPUT])dnl
38674 +AC_BEFORE([$0], [LTDL_INIT])dnl
38675 +m4_require([_LT_CHECK_BUILDDIR])dnl
38676 +
38677 +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
38678 +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
38679 +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
38680 +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
38681 +dnl unless we require an AC_DEFUNed macro:
38682 +AC_REQUIRE([LTOPTIONS_VERSION])dnl
38683 +AC_REQUIRE([LTSUGAR_VERSION])dnl
38684 +AC_REQUIRE([LTVERSION_VERSION])dnl
38685 +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
38686 +m4_require([_LT_PROG_LTMAIN])dnl
38687 +
38688 +dnl Parse OPTIONS
38689 +_LT_SET_OPTIONS([$0], [$1])
38690 +
38691 +# This can be used to rebuild libtool when needed
38692 +LIBTOOL_DEPS="$ltmain"
38693 +
38694 +# Always use our own libtool.
38695 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
38696 +AC_SUBST(LIBTOOL)dnl
38697 +
38698 +_LT_SETUP
38699 +
38700 +# Only expand once:
38701 +m4_define([LT_INIT])
38702 +])# LT_INIT
38703 +
38704 +# Old names:
38705 +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
38706 +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
38707 +dnl aclocal-1.4 backwards compatibility:
38708 +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
38709 +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
38710 +
38711 +
38712 +# _LT_CC_BASENAME(CC)
38713 +# -------------------
38714 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
38715 +m4_defun([_LT_CC_BASENAME],
38716 +[for cc_temp in $1""; do
38717 + case $cc_temp in
38718 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
38719 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
38720 + \-*) ;;
38721 + *) break;;
38722 + esac
38723 +done
38724 +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
38725 +])
38726 +
38727 +
38728 +# _LT_FILEUTILS_DEFAULTS
38729 +# ----------------------
38730 +# It is okay to use these file commands and assume they have been set
38731 +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
38732 +m4_defun([_LT_FILEUTILS_DEFAULTS],
38733 +[: ${CP="cp -f"}
38734 +: ${MV="mv -f"}
38735 +: ${RM="rm -f"}
38736 +])# _LT_FILEUTILS_DEFAULTS
38737 +
38738 +
38739 +# _LT_SETUP
38740 +# ---------
38741 +m4_defun([_LT_SETUP],
38742 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
38743 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
38744 +_LT_DECL([], [host_alias], [0], [The host system])dnl
38745 +_LT_DECL([], [host], [0])dnl
38746 +_LT_DECL([], [host_os], [0])dnl
38747 +dnl
38748 +_LT_DECL([], [build_alias], [0], [The build system])dnl
38749 +_LT_DECL([], [build], [0])dnl
38750 +_LT_DECL([], [build_os], [0])dnl
38751 +dnl
38752 +AC_REQUIRE([AC_PROG_CC])dnl
38753 +AC_REQUIRE([LT_PATH_LD])dnl
38754 +AC_REQUIRE([LT_PATH_NM])dnl
38755 +dnl
38756 +AC_REQUIRE([AC_PROG_LN_S])dnl
38757 +test -z "$LN_S" && LN_S="ln -s"
38758 +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
38759 +dnl
38760 +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
38761 +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
38762 +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
38763 +dnl
38764 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
38765 +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
38766 +m4_require([_LT_CMD_RELOAD])dnl
38767 +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
38768 +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
38769 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
38770 +
38771 +_LT_CONFIG_LIBTOOL_INIT([
38772 +# See if we are running on zsh, and set the options which allow our
38773 +# commands through without removal of \ escapes INIT.
38774 +if test -n "\${ZSH_VERSION+set}" ; then
38775 + setopt NO_GLOB_SUBST
38776 +fi
38777 +])
38778 +if test -n "${ZSH_VERSION+set}" ; then
38779 + setopt NO_GLOB_SUBST
38780 +fi
38781 +
38782 +_LT_CHECK_OBJDIR
38783 +
38784 +m4_require([_LT_TAG_COMPILER])dnl
38785 +_LT_PROG_ECHO_BACKSLASH
38786 +
38787 +case $host_os in
38788 +aix3*)
38789 + # AIX sometimes has problems with the GCC collect2 program. For some
38790 + # reason, if we set the COLLECT_NAMES environment variable, the problems
38791 + # vanish in a puff of smoke.
38792 + if test "X${COLLECT_NAMES+set}" != Xset; then
38793 + COLLECT_NAMES=
38794 + export COLLECT_NAMES
38795 + fi
38796 + ;;
38797 +esac
38798 +
38799 +# Sed substitution that helps us do robust quoting. It backslashifies
38800 +# metacharacters that are still active within double-quoted strings.
38801 +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
38802 +
38803 +# Same as above, but do not quote variable references.
38804 +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
38805 +
38806 +# Sed substitution to delay expansion of an escaped shell variable in a
38807 +# double_quote_subst'ed string.
38808 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
38809 +
38810 +# Sed substitution to delay expansion of an escaped single quote.
38811 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
38812 +
38813 +# Sed substitution to avoid accidental globbing in evaled expressions
38814 +no_glob_subst='s/\*/\\\*/g'
38815 +
38816 +# Global variables:
38817 +ofile=libtool
38818 +can_build_shared=yes
38819 +
38820 +# All known linkers require a `.a' archive for static linking (except MSVC,
38821 +# which needs '.lib').
38822 +libext=a
38823 +
38824 +with_gnu_ld="$lt_cv_prog_gnu_ld"
38825 +
38826 +old_CC="$CC"
38827 +old_CFLAGS="$CFLAGS"
38828 +
38829 +# Set sane defaults for various variables
38830 +test -z "$CC" && CC=cc
38831 +test -z "$LTCC" && LTCC=$CC
38832 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
38833 +test -z "$LD" && LD=ld
38834 +test -z "$ac_objext" && ac_objext=o
38835 +
38836 +_LT_CC_BASENAME([$compiler])
38837 +
38838 +# Only perform the check for file, if the check method requires it
38839 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
38840 +case $deplibs_check_method in
38841 +file_magic*)
38842 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
38843 + _LT_PATH_MAGIC
38844 + fi
38845 + ;;
38846 +esac
38847 +
38848 +# Use C for the default configuration in the libtool script
38849 +LT_SUPPORTED_TAG([CC])
38850 +_LT_LANG_C_CONFIG
38851 +_LT_LANG_DEFAULT_CONFIG
38852 +_LT_CONFIG_COMMANDS
38853 +])# _LT_SETUP
38854 +
38855 +
38856 +# _LT_PROG_LTMAIN
38857 +# ---------------
38858 +# Note that this code is called both from `configure', and `config.status'
38859 +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
38860 +# `config.status' has no value for ac_aux_dir unless we are using Automake,
38861 +# so we pass a copy along to make sure it has a sensible value anyway.
38862 +m4_defun([_LT_PROG_LTMAIN],
38863 +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
38864 +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
38865 +ltmain="$ac_aux_dir/ltmain.sh"
38866 +])# _LT_PROG_LTMAIN
38867 +
38868 +
38869 +## ------------------------------------- ##
38870 +## Accumulate code for creating libtool. ##
38871 +## ------------------------------------- ##
38872 +
38873 +# So that we can recreate a full libtool script including additional
38874 +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
38875 +# in macros and then make a single call at the end using the `libtool'
38876 +# label.
38877 +
38878 +
38879 +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
38880 +# ----------------------------------------
38881 +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
38882 +m4_define([_LT_CONFIG_LIBTOOL_INIT],
38883 +[m4_ifval([$1],
38884 + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
38885 + [$1
38886 +])])])
38887 +
38888 +# Initialize.
38889 +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
38890 +
38891 +
38892 +# _LT_CONFIG_LIBTOOL([COMMANDS])
38893 +# ------------------------------
38894 +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
38895 +m4_define([_LT_CONFIG_LIBTOOL],
38896 +[m4_ifval([$1],
38897 + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
38898 + [$1
38899 +])])])
38900 +
38901 +# Initialize.
38902 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
38903 +
38904 +
38905 +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
38906 +# -----------------------------------------------------
38907 +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
38908 +[_LT_CONFIG_LIBTOOL([$1])
38909 +_LT_CONFIG_LIBTOOL_INIT([$2])
38910 +])
38911 +
38912 +
38913 +# _LT_FORMAT_COMMENT([COMMENT])
38914 +# -----------------------------
38915 +# Add leading comment marks to the start of each line, and a trailing
38916 +# full-stop to the whole comment if one is not present already.
38917 +m4_define([_LT_FORMAT_COMMENT],
38918 +[m4_ifval([$1], [
38919 +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
38920 + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
38921 +)])
38922 +
38923 +
38924 +
38925 +## ------------------------ ##
38926 +## FIXME: Eliminate VARNAME ##
38927 +## ------------------------ ##
38928 +
38929 +
38930 +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
38931 +# -------------------------------------------------------------------
38932 +# CONFIGNAME is the name given to the value in the libtool script.
38933 +# VARNAME is the (base) name used in the configure script.
38934 +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
38935 +# VARNAME. Any other value will be used directly.
38936 +m4_define([_LT_DECL],
38937 +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
38938 + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
38939 + [m4_ifval([$1], [$1], [$2])])
38940 + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
38941 + m4_ifval([$4],
38942 + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
38943 + lt_dict_add_subkey([lt_decl_dict], [$2],
38944 + [tagged?], [m4_ifval([$5], [yes], [no])])])
38945 +])
38946 +
38947 +
38948 +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
38949 +# --------------------------------------------------------
38950 +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
38951 +
38952 +
38953 +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
38954 +# ------------------------------------------------
38955 +m4_define([lt_decl_tag_varnames],
38956 +[_lt_decl_filter([tagged?], [yes], $@)])
38957 +
38958 +
38959 +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
38960 +# ---------------------------------------------------------
38961 +m4_define([_lt_decl_filter],
38962 +[m4_case([$#],
38963 + [0], [m4_fatal([$0: too few arguments: $#])],
38964 + [1], [m4_fatal([$0: too few arguments: $#: $1])],
38965 + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
38966 + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
38967 + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
38968 +])
38969 +
38970 +
38971 +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
38972 +# --------------------------------------------------
38973 +m4_define([lt_decl_quote_varnames],
38974 +[_lt_decl_filter([value], [1], $@)])
38975 +
38976 +
38977 +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
38978 +# ---------------------------------------------------
38979 +m4_define([lt_decl_dquote_varnames],
38980 +[_lt_decl_filter([value], [2], $@)])
38981 +
38982 +
38983 +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
38984 +# ---------------------------------------------------
38985 +m4_define([lt_decl_varnames_tagged],
38986 +[m4_assert([$# <= 2])dnl
38987 +_$0(m4_quote(m4_default([$1], [[, ]])),
38988 + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
38989 + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
38990 +m4_define([_lt_decl_varnames_tagged],
38991 +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
38992 +
38993 +
38994 +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
38995 +# ------------------------------------------------
38996 +m4_define([lt_decl_all_varnames],
38997 +[_$0(m4_quote(m4_default([$1], [[, ]])),
38998 + m4_if([$2], [],
38999 + m4_quote(lt_decl_varnames),
39000 + m4_quote(m4_shift($@))))[]dnl
39001 +])
39002 +m4_define([_lt_decl_all_varnames],
39003 +[lt_join($@, lt_decl_varnames_tagged([$1],
39004 + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
39005 +])
39006 +
39007 +
39008 +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
39009 +# ------------------------------------
39010 +# Quote a variable value, and forward it to `config.status' so that its
39011 +# declaration there will have the same value as in `configure'. VARNAME
39012 +# must have a single quote delimited value for this to work.
39013 +m4_define([_LT_CONFIG_STATUS_DECLARE],
39014 +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
39015 +
39016 +
39017 +# _LT_CONFIG_STATUS_DECLARATIONS
39018 +# ------------------------------
39019 +# We delimit libtool config variables with single quotes, so when
39020 +# we write them to config.status, we have to be sure to quote all
39021 +# embedded single quotes properly. In configure, this macro expands
39022 +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
39023 +#
39024 +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
39025 +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
39026 +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
39027 + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
39028 +
39029 +
39030 +# _LT_LIBTOOL_TAGS
39031 +# ----------------
39032 +# Output comment and list of tags supported by the script
39033 +m4_defun([_LT_LIBTOOL_TAGS],
39034 +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
39035 +available_tags="_LT_TAGS"dnl
39036 +])
39037 +
39038 +
39039 +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
39040 +# -----------------------------------
39041 +# Extract the dictionary values for VARNAME (optionally with TAG) and
39042 +# expand to a commented shell variable setting:
39043 +#
39044 +# # Some comment about what VAR is for.
39045 +# visible_name=$lt_internal_name
39046 +m4_define([_LT_LIBTOOL_DECLARE],
39047 +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
39048 + [description])))[]dnl
39049 +m4_pushdef([_libtool_name],
39050 + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
39051 +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
39052 + [0], [_libtool_name=[$]$1],
39053 + [1], [_libtool_name=$lt_[]$1],
39054 + [2], [_libtool_name=$lt_[]$1],
39055 + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
39056 +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
39057 +])
39058 +
39059 +
39060 +# _LT_LIBTOOL_CONFIG_VARS
39061 +# -----------------------
39062 +# Produce commented declarations of non-tagged libtool config variables
39063 +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
39064 +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
39065 +# section) are produced by _LT_LIBTOOL_TAG_VARS.
39066 +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
39067 +[m4_foreach([_lt_var],
39068 + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
39069 + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
39070 +
39071 +
39072 +# _LT_LIBTOOL_TAG_VARS(TAG)
39073 +# -------------------------
39074 +m4_define([_LT_LIBTOOL_TAG_VARS],
39075 +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
39076 + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
39077 +
39078 +
39079 +# _LT_TAGVAR(VARNAME, [TAGNAME])
39080 +# ------------------------------
39081 +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
39082 +
39083 +
39084 +# _LT_CONFIG_COMMANDS
39085 +# -------------------
39086 +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
39087 +# variables for single and double quote escaping we saved from calls
39088 +# to _LT_DECL, we can put quote escaped variables declarations
39089 +# into `config.status', and then the shell code to quote escape them in
39090 +# for loops in `config.status'. Finally, any additional code accumulated
39091 +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
39092 +m4_defun([_LT_CONFIG_COMMANDS],
39093 +[AC_PROVIDE_IFELSE([LT_OUTPUT],
39094 + dnl If the libtool generation code has been placed in $CONFIG_LT,
39095 + dnl instead of duplicating it all over again into config.status,
39096 + dnl then we will have config.status run $CONFIG_LT later, so it
39097 + dnl needs to know what name is stored there:
39098 + [AC_CONFIG_COMMANDS([libtool],
39099 + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
39100 + dnl If the libtool generation code is destined for config.status,
39101 + dnl expand the accumulated commands and init code now:
39102 + [AC_CONFIG_COMMANDS([libtool],
39103 + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
39104 +])#_LT_CONFIG_COMMANDS
39105 +
39106 +
39107 +# Initialize.
39108 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
39109 +[
39110 +
39111 +# The HP-UX ksh and POSIX shell print the target directory to stdout
39112 +# if CDPATH is set.
39113 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
39114 +
39115 +sed_quote_subst='$sed_quote_subst'
39116 +double_quote_subst='$double_quote_subst'
39117 +delay_variable_subst='$delay_variable_subst'
39118 +_LT_CONFIG_STATUS_DECLARATIONS
39119 +LTCC='$LTCC'
39120 +LTCFLAGS='$LTCFLAGS'
39121 +compiler='$compiler_DEFAULT'
39122 +
39123 +# Quote evaled strings.
39124 +for var in lt_decl_all_varnames([[ \
39125 +]], lt_decl_quote_varnames); do
39126 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
39127 + *[[\\\\\\\`\\"\\\$]]*)
39128 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
39129 + ;;
39130 + *)
39131 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
39132 + ;;
39133 + esac
39134 +done
39135 +
39136 +# Double-quote double-evaled strings.
39137 +for var in lt_decl_all_varnames([[ \
39138 +]], lt_decl_dquote_varnames); do
39139 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
39140 + *[[\\\\\\\`\\"\\\$]]*)
39141 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
39142 + ;;
39143 + *)
39144 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
39145 + ;;
39146 + esac
39147 +done
39148 +
39149 +# Fix-up fallback echo if it was mangled by the above quoting rules.
39150 +case \$lt_ECHO in
39151 +*'\\\[$]0 --fallback-echo"')dnl "
39152 + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
39153 + ;;
39154 +esac
39155 +
39156 +_LT_OUTPUT_LIBTOOL_INIT
39157 +])
39158 +
39159 +
39160 +# LT_OUTPUT
39161 +# ---------
39162 +# This macro allows early generation of the libtool script (before
39163 +# AC_OUTPUT is called), incase it is used in configure for compilation
39164 +# tests.
39165 +AC_DEFUN([LT_OUTPUT],
39166 +[: ${CONFIG_LT=./config.lt}
39167 +AC_MSG_NOTICE([creating $CONFIG_LT])
39168 +cat >"$CONFIG_LT" <<_LTEOF
39169 +#! $SHELL
39170 +# Generated by $as_me.
39171 +# Run this file to recreate a libtool stub with the current configuration.
39172 +
39173 +lt_cl_silent=false
39174 +SHELL=\${CONFIG_SHELL-$SHELL}
39175 +_LTEOF
39176 +
39177 +cat >>"$CONFIG_LT" <<\_LTEOF
39178 +AS_SHELL_SANITIZE
39179 +_AS_PREPARE
39180 +
39181 +exec AS_MESSAGE_FD>&1
39182 +exec AS_MESSAGE_LOG_FD>>config.log
39183 +{
39184 + echo
39185 + AS_BOX([Running $as_me.])
39186 +} >&AS_MESSAGE_LOG_FD
39187 +
39188 +lt_cl_help="\
39189 +\`$as_me' creates a local libtool stub from the current configuration,
39190 +for use in further configure time tests before the real libtool is
39191 +generated.
39192 +
39193 +Usage: $[0] [[OPTIONS]]
39194 +
39195 + -h, --help print this help, then exit
39196 + -V, --version print version number, then exit
39197 + -q, --quiet do not print progress messages
39198 + -d, --debug don't remove temporary files
39199 +
39200 +Report bugs to <[email protected]>."
39201 +
39202 +lt_cl_version="\
39203 +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
39204 +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
39205 +configured by $[0], generated by m4_PACKAGE_STRING.
39206 +
39207 +Copyright (C) 2008 Free Software Foundation, Inc.
39208 +This config.lt script is free software; the Free Software Foundation
39209 +gives unlimited permision to copy, distribute and modify it."
39210 +
39211 +while test $[#] != 0
39212 +do
39213 + case $[1] in
39214 + --version | --v* | -V )
39215 + echo "$lt_cl_version"; exit 0 ;;
39216 + --help | --h* | -h )
39217 + echo "$lt_cl_help"; exit 0 ;;
39218 + --debug | --d* | -d )
39219 + debug=: ;;
39220 + --quiet | --q* | --silent | --s* | -q )
39221 + lt_cl_silent=: ;;
39222 +
39223 + -*) AC_MSG_ERROR([unrecognized option: $[1]
39224 +Try \`$[0] --help' for more information.]) ;;
39225 +
39226 + *) AC_MSG_ERROR([unrecognized argument: $[1]
39227 +Try \`$[0] --help' for more information.]) ;;
39228 + esac
39229 + shift
39230 +done
39231 +
39232 +if $lt_cl_silent; then
39233 + exec AS_MESSAGE_FD>/dev/null
39234 +fi
39235 +_LTEOF
39236 +
39237 +cat >>"$CONFIG_LT" <<_LTEOF
39238 +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
39239 +_LTEOF
39240 +
39241 +cat >>"$CONFIG_LT" <<\_LTEOF
39242 +AC_MSG_NOTICE([creating $ofile])
39243 +_LT_OUTPUT_LIBTOOL_COMMANDS
39244 +AS_EXIT(0)
39245 +_LTEOF
39246 +chmod +x "$CONFIG_LT"
39247 +
39248 +# configure is writing to config.log, but config.lt does its own redirection,
39249 +# appending to config.log, which fails on DOS, as config.log is still kept
39250 +# open by configure. Here we exec the FD to /dev/null, effectively closing
39251 +# config.log, so it can be properly (re)opened and appended to by config.lt.
39252 +if test "$no_create" != yes; then
39253 + lt_cl_success=:
39254 + test "$silent" = yes &&
39255 + lt_config_lt_args="$lt_config_lt_args --quiet"
39256 + exec AS_MESSAGE_LOG_FD>/dev/null
39257 + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
39258 + exec AS_MESSAGE_LOG_FD>>config.log
39259 + $lt_cl_success || AS_EXIT(1)
39260 +fi
39261 +])# LT_OUTPUT
39262 +
39263 +
39264 +# _LT_CONFIG(TAG)
39265 +# ---------------
39266 +# If TAG is the built-in tag, create an initial libtool script with a
39267 +# default configuration from the untagged config vars. Otherwise add code
39268 +# to config.status for appending the configuration named by TAG from the
39269 +# matching tagged config vars.
39270 +m4_defun([_LT_CONFIG],
39271 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
39272 +_LT_CONFIG_SAVE_COMMANDS([
39273 + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
39274 + m4_if(_LT_TAG, [C], [
39275 + # See if we are running on zsh, and set the options which allow our
39276 + # commands through without removal of \ escapes.
39277 + if test -n "${ZSH_VERSION+set}" ; then
39278 + setopt NO_GLOB_SUBST
39279 + fi
39280 +
39281 + cfgfile="${ofile}T"
39282 + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
39283 + $RM "$cfgfile"
39284 +
39285 + cat <<_LT_EOF >> "$cfgfile"
39286 +#! $SHELL
39287 +
39288 +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
39289 +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
39290 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
39291 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
39292 +#
39293 +_LT_COPYING
39294 +_LT_LIBTOOL_TAGS
39295 +
39296 +# ### BEGIN LIBTOOL CONFIG
39297 +_LT_LIBTOOL_CONFIG_VARS
39298 +_LT_LIBTOOL_TAG_VARS
39299 +# ### END LIBTOOL CONFIG
39300 +
39301 +_LT_EOF
39302 +
39303 + case $host_os in
39304 + aix3*)
39305 + cat <<\_LT_EOF >> "$cfgfile"
39306 +# AIX sometimes has problems with the GCC collect2 program. For some
39307 +# reason, if we set the COLLECT_NAMES environment variable, the problems
39308 +# vanish in a puff of smoke.
39309 +if test "X${COLLECT_NAMES+set}" != Xset; then
39310 + COLLECT_NAMES=
39311 + export COLLECT_NAMES
39312 +fi
39313 +_LT_EOF
39314 + ;;
39315 + esac
39316 +
39317 + _LT_PROG_LTMAIN
39318 +
39319 + # We use sed instead of cat because bash on DJGPP gets confused if
39320 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
39321 + # text mode, it properly converts lines to CR/LF. This bash problem
39322 + # is reportedly fixed, but why not run on old versions too?
39323 + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
39324 + || (rm -f "$cfgfile"; exit 1)
39325 +
39326 + _LT_PROG_XSI_SHELLFNS
39327 +
39328 + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
39329 + || (rm -f "$cfgfile"; exit 1)
39330 +
39331 + mv -f "$cfgfile" "$ofile" ||
39332 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39333 + chmod +x "$ofile"
39334 +],
39335 +[cat <<_LT_EOF >> "$ofile"
39336 +
39337 +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
39338 +dnl in a comment (ie after a #).
39339 +# ### BEGIN LIBTOOL TAG CONFIG: $1
39340 +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
39341 +# ### END LIBTOOL TAG CONFIG: $1
39342 +_LT_EOF
39343 +])dnl /m4_if
39344 +],
39345 +[m4_if([$1], [], [
39346 + PACKAGE='$PACKAGE'
39347 + VERSION='$VERSION'
39348 + TIMESTAMP='$TIMESTAMP'
39349 + RM='$RM'
39350 + ofile='$ofile'], [])
39351 +])dnl /_LT_CONFIG_SAVE_COMMANDS
39352 +])# _LT_CONFIG
39353 +
39354 +
39355 +# LT_SUPPORTED_TAG(TAG)
39356 +# ---------------------
39357 +# Trace this macro to discover what tags are supported by the libtool
39358 +# --tag option, using:
39359 +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
39360 +AC_DEFUN([LT_SUPPORTED_TAG], [])
39361 +
39362 +
39363 +# C support is built-in for now
39364 +m4_define([_LT_LANG_C_enabled], [])
39365 +m4_define([_LT_TAGS], [])
39366 +
39367 +
39368 +# LT_LANG(LANG)
39369 +# -------------
39370 +# Enable libtool support for the given language if not already enabled.
39371 +AC_DEFUN([LT_LANG],
39372 +[AC_BEFORE([$0], [LT_OUTPUT])dnl
39373 +m4_case([$1],
39374 + [C], [_LT_LANG(C)],
39375 + [C++], [_LT_LANG(CXX)],
39376 + [Java], [_LT_LANG(GCJ)],
39377 + [Fortran 77], [_LT_LANG(F77)],
39378 + [Fortran], [_LT_LANG(FC)],
39379 + [Windows Resource], [_LT_LANG(RC)],
39380 + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
39381 + [_LT_LANG($1)],
39382 + [m4_fatal([$0: unsupported language: "$1"])])])dnl
39383 +])# LT_LANG
39384 +
39385 +
39386 +# _LT_LANG(LANGNAME)
39387 +# ------------------
39388 +m4_defun([_LT_LANG],
39389 +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
39390 + [LT_SUPPORTED_TAG([$1])dnl
39391 + m4_append([_LT_TAGS], [$1 ])dnl
39392 + m4_define([_LT_LANG_]$1[_enabled], [])dnl
39393 + _LT_LANG_$1_CONFIG($1)])dnl
39394 +])# _LT_LANG
39395 +
39396 +
39397 +# _LT_LANG_DEFAULT_CONFIG
39398 +# -----------------------
39399 +m4_defun([_LT_LANG_DEFAULT_CONFIG],
39400 +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
39401 + [LT_LANG(CXX)],
39402 + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
39403 +
39404 +AC_PROVIDE_IFELSE([AC_PROG_F77],
39405 + [LT_LANG(F77)],
39406 + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
39407 +
39408 +AC_PROVIDE_IFELSE([AC_PROG_FC],
39409 + [LT_LANG(FC)],
39410 + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
39411 +
39412 +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
39413 +dnl pulling things in needlessly.
39414 +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
39415 + [LT_LANG(GCJ)],
39416 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
39417 + [LT_LANG(GCJ)],
39418 + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
39419 + [LT_LANG(GCJ)],
39420 + [m4_ifdef([AC_PROG_GCJ],
39421 + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
39422 + m4_ifdef([A][M_PROG_GCJ],
39423 + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
39424 + m4_ifdef([LT_PROG_GCJ],
39425 + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
39426 +
39427 +AC_PROVIDE_IFELSE([LT_PROG_RC],
39428 + [LT_LANG(RC)],
39429 + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
39430 +])# _LT_LANG_DEFAULT_CONFIG
39431 +
39432 +# Obsolete macros:
39433 +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
39434 +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
39435 +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
39436 +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
39437 +dnl aclocal-1.4 backwards compatibility:
39438 +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
39439 +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
39440 +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
39441 +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
39442 +
39443 +
39444 +# _LT_TAG_COMPILER
39445 +# ----------------
39446 +m4_defun([_LT_TAG_COMPILER],
39447 +[AC_REQUIRE([AC_PROG_CC])dnl
39448 +
39449 +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
39450 +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
39451 +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
39452 +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
39453 +
39454 +# If no C compiler was specified, use CC.
39455 +LTCC=${LTCC-"$CC"}
39456 +
39457 +# If no C compiler flags were specified, use CFLAGS.
39458 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
39459 +
39460 +# Allow CC to be a program name with arguments.
39461 +compiler=$CC
39462 +])# _LT_TAG_COMPILER
39463 +
39464 +
39465 +# _LT_COMPILER_BOILERPLATE
39466 +# ------------------------
39467 +# Check for compiler boilerplate output or warnings with
39468 +# the simple compiler test code.
39469 +m4_defun([_LT_COMPILER_BOILERPLATE],
39470 +[m4_require([_LT_DECL_SED])dnl
39471 +ac_outfile=conftest.$ac_objext
39472 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
39473 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
39474 +_lt_compiler_boilerplate=`cat conftest.err`
39475 +$RM conftest*
39476 +])# _LT_COMPILER_BOILERPLATE
39477 +
39478 +
39479 +# _LT_LINKER_BOILERPLATE
39480 +# ----------------------
39481 +# Check for linker boilerplate output or warnings with
39482 +# the simple link test code.
39483 +m4_defun([_LT_LINKER_BOILERPLATE],
39484 +[m4_require([_LT_DECL_SED])dnl
39485 +ac_outfile=conftest.$ac_objext
39486 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
39487 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
39488 +_lt_linker_boilerplate=`cat conftest.err`
39489 +$RM -r conftest*
39490 +])# _LT_LINKER_BOILERPLATE
39491 +
39492 +# _LT_REQUIRED_DARWIN_CHECKS
39493 +# -------------------------
39494 +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
39495 + case $host_os in
39496 + rhapsody* | darwin*)
39497 + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
39498 + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
39499 + AC_CHECK_TOOL([LIPO], [lipo], [:])
39500 + AC_CHECK_TOOL([OTOOL], [otool], [:])
39501 + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
39502 + _LT_DECL([], [DSYMUTIL], [1],
39503 + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
39504 + _LT_DECL([], [NMEDIT], [1],
39505 + [Tool to change global to local symbols on Mac OS X])
39506 + _LT_DECL([], [LIPO], [1],
39507 + [Tool to manipulate fat objects and archives on Mac OS X])
39508 + _LT_DECL([], [OTOOL], [1],
39509 + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
39510 + _LT_DECL([], [OTOOL64], [1],
39511 + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
39512 +
39513 + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
39514 + [lt_cv_apple_cc_single_mod=no
39515 + if test -z "${LT_MULTI_MODULE}"; then
39516 + # By default we will add the -single_module flag. You can override
39517 + # by either setting the environment variable LT_MULTI_MODULE
39518 + # non-empty at configure time, or by adding -multi_module to the
39519 + # link flags.
39520 + rm -rf libconftest.dylib*
39521 + echo "int foo(void){return 1;}" > conftest.c
39522 + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
39523 +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
39524 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
39525 + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
39526 + _lt_result=$?
39527 + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
39528 + lt_cv_apple_cc_single_mod=yes
39529 + else
39530 + cat conftest.err >&AS_MESSAGE_LOG_FD
39531 + fi
39532 + rm -rf libconftest.dylib*
39533 + rm -f conftest.*
39534 + fi])
39535 + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
39536 + [lt_cv_ld_exported_symbols_list],
39537 + [lt_cv_ld_exported_symbols_list=no
39538 + save_LDFLAGS=$LDFLAGS
39539 + echo "_main" > conftest.sym
39540 + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
39541 + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
39542 + [lt_cv_ld_exported_symbols_list=yes],
39543 + [lt_cv_ld_exported_symbols_list=no])
39544 + LDFLAGS="$save_LDFLAGS"
39545 + ])
39546 + case $host_os in
39547 + rhapsody* | darwin1.[[012]])
39548 + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
39549 + darwin1.*)
39550 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
39551 + darwin*) # darwin 5.x on
39552 + # if running on 10.5 or later, the deployment target defaults
39553 + # to the OS version, if on x86, and 10.4, the deployment
39554 + # target defaults to 10.4. Don't you love it?
39555 + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
39556 + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
39557 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
39558 + 10.[[012]]*)
39559 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
39560 + 10.*)
39561 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
39562 + esac
39563 + ;;
39564 + esac
39565 + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
39566 + _lt_dar_single_mod='$single_module'
39567 + fi
39568 + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
39569 + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
39570 + else
39571 + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
39572 + fi
39573 + if test "$DSYMUTIL" != ":"; then
39574 + _lt_dsymutil='~$DSYMUTIL $lib || :'
39575 + else
39576 + _lt_dsymutil=
39577 + fi
39578 + ;;
39579 + esac
39580 +])
39581 +
39582 +
39583 +# _LT_DARWIN_LINKER_FEATURES
39584 +# --------------------------
39585 +# Checks for linker and compiler features on darwin
39586 +m4_defun([_LT_DARWIN_LINKER_FEATURES],
39587 +[
39588 + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
39589 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
39590 + _LT_TAGVAR(hardcode_direct, $1)=no
39591 + _LT_TAGVAR(hardcode_automatic, $1)=yes
39592 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
39593 + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
39594 + _LT_TAGVAR(link_all_deplibs, $1)=yes
39595 + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
39596 + case $cc_basename in
39597 + ifort*) _lt_dar_can_shared=yes ;;
39598 + *) _lt_dar_can_shared=$GCC ;;
39599 + esac
39600 + if test "$_lt_dar_can_shared" = "yes"; then
39601 + output_verbose_link_cmd=echo
39602 + _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}"
39603 + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
39604 + _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}"
39605 + _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}"
39606 + m4_if([$1], [CXX],
39607 +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
39608 + _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}"
39609 + _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}"
39610 + fi
39611 +],[])
39612 + else
39613 + _LT_TAGVAR(ld_shlibs, $1)=no
39614 + fi
39615 +])
39616 +
39617 +# _LT_SYS_MODULE_PATH_AIX
39618 +# -----------------------
39619 +# Links a minimal program and checks the executable
39620 +# for the system default hardcoded library path. In most cases,
39621 +# this is /usr/lib:/lib, but when the MPI compilers are used
39622 +# the location of the communication and MPI libs are included too.
39623 +# If we don't find anything, use the default library path according
39624 +# to the aix ld manual.
39625 +m4_defun([_LT_SYS_MODULE_PATH_AIX],
39626 +[m4_require([_LT_DECL_SED])dnl
39627 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
39628 +lt_aix_libpath_sed='
39629 + /Import File Strings/,/^$/ {
39630 + /^0/ {
39631 + s/^0 *\(.*\)$/\1/
39632 + p
39633 + }
39634 + }'
39635 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
39636 +# Check for a 64-bit object if we didn't find anything.
39637 +if test -z "$aix_libpath"; then
39638 + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
39639 +fi],[])
39640 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
39641 +])# _LT_SYS_MODULE_PATH_AIX
39642 +
39643 +
39644 +# _LT_SHELL_INIT(ARG)
39645 +# -------------------
39646 +m4_define([_LT_SHELL_INIT],
39647 +[ifdef([AC_DIVERSION_NOTICE],
39648 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
39649 + [AC_DIVERT_PUSH(NOTICE)])
39650 +$1
39651 +AC_DIVERT_POP
39652 +])# _LT_SHELL_INIT
39653 +
39654 +
39655 +# _LT_PROG_ECHO_BACKSLASH
39656 +# -----------------------
39657 +# Add some code to the start of the generated configure script which
39658 +# will find an echo command which doesn't interpret backslashes.
39659 +m4_defun([_LT_PROG_ECHO_BACKSLASH],
39660 +[_LT_SHELL_INIT([
39661 +# Check that we are running under the correct shell.
39662 +SHELL=${CONFIG_SHELL-/bin/sh}
39663 +
39664 +case X$lt_ECHO in
39665 +X*--fallback-echo)
39666 + # Remove one level of quotation (which was required for Make).
39667 + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
39668 + ;;
39669 +esac
39670 +
39671 +ECHO=${lt_ECHO-echo}
39672 +if test "X[$]1" = X--no-reexec; then
39673 + # Discard the --no-reexec flag, and continue.
39674 + shift
39675 +elif test "X[$]1" = X--fallback-echo; then
39676 + # Avoid inline document here, it may be left over
39677 + :
39678 +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
39679 + # Yippee, $ECHO works!
39680 + :
39681 +else
39682 + # Restart under the correct shell.
39683 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
39684 +fi
39685 +
39686 +if test "X[$]1" = X--fallback-echo; then
39687 + # used as fallback echo
39688 + shift
39689 + cat <<_LT_EOF
39690 +[$]*
39691 +_LT_EOF
39692 + exit 0
39693 +fi
39694 +
39695 +# The HP-UX ksh and POSIX shell print the target directory to stdout
39696 +# if CDPATH is set.
39697 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
39698 +
39699 +if test -z "$lt_ECHO"; then
39700 + if test "X${echo_test_string+set}" != Xset; then
39701 + # find a string as large as possible, as long as the shell can cope with it
39702 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
39703 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
39704 + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
39705 + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
39706 + then
39707 + break
39708 + fi
39709 + done
39710 + fi
39711 +
39712 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
39713 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
39714 + test "X$echo_testing_string" = "X$echo_test_string"; then
39715 + :
39716 + else
39717 + # The Solaris, AIX, and Digital Unix default echo programs unquote
39718 + # backslashes. This makes it impossible to quote backslashes using
39719 + # echo "$something" | sed 's/\\/\\\\/g'
39720 + #
39721 + # So, first we look for a working echo in the user's PATH.
39722 +
39723 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
39724 + for dir in $PATH /usr/ucb; do
39725 + IFS="$lt_save_ifs"
39726 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
39727 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
39728 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
39729 + test "X$echo_testing_string" = "X$echo_test_string"; then
39730 + ECHO="$dir/echo"
39731 + break
39732 + fi
39733 + done
39734 + IFS="$lt_save_ifs"
39735 +
39736 + if test "X$ECHO" = Xecho; then
39737 + # We didn't find a better echo, so look for alternatives.
39738 + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
39739 + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
39740 + test "X$echo_testing_string" = "X$echo_test_string"; then
39741 + # This shell has a builtin print -r that does the trick.
39742 + ECHO='print -r'
39743 + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
39744 + test "X$CONFIG_SHELL" != X/bin/ksh; then
39745 + # If we have ksh, try running configure again with it.
39746 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
39747 + export ORIGINAL_CONFIG_SHELL
39748 + CONFIG_SHELL=/bin/ksh
39749 + export CONFIG_SHELL
39750 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
39751 + else
39752 + # Try using printf.
39753 + ECHO='printf %s\n'
39754 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
39755 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
39756 + test "X$echo_testing_string" = "X$echo_test_string"; then
39757 + # Cool, printf works
39758 + :
39759 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
39760 + test "X$echo_testing_string" = 'X\t' &&
39761 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
39762 + test "X$echo_testing_string" = "X$echo_test_string"; then
39763 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
39764 + export CONFIG_SHELL
39765 + SHELL="$CONFIG_SHELL"
39766 + export SHELL
39767 + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
39768 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
39769 + test "X$echo_testing_string" = 'X\t' &&
39770 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
39771 + test "X$echo_testing_string" = "X$echo_test_string"; then
39772 + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
39773 + else
39774 + # maybe with a smaller string...
39775 + prev=:
39776 +
39777 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
39778 + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
39779 + then
39780 + break
39781 + fi
39782 + prev="$cmd"
39783 + done
39784 +
39785 + if test "$prev" != 'sed 50q "[$]0"'; then
39786 + echo_test_string=`eval $prev`
39787 + export echo_test_string
39788 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
39789 + else
39790 + # Oops. We lost completely, so just stick with echo.
39791 + ECHO=echo
39792 + fi
39793 + fi
39794 + fi
39795 + fi
39796 + fi
39797 +fi
39798 +
39799 +# Copy echo and quote the copy suitably for passing to libtool from
39800 +# the Makefile, instead of quoting the original, which is used later.
39801 +lt_ECHO=$ECHO
39802 +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
39803 + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
39804 +fi
39805 +
39806 +AC_SUBST(lt_ECHO)
39807 +])
39808 +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
39809 +_LT_DECL([], [ECHO], [1],
39810 + [An echo program that does not interpret backslashes])
39811 +])# _LT_PROG_ECHO_BACKSLASH
39812 +
39813 +
39814 +# _LT_ENABLE_LOCK
39815 +# ---------------
39816 +m4_defun([_LT_ENABLE_LOCK],
39817 +[AC_ARG_ENABLE([libtool-lock],
39818 + [AS_HELP_STRING([--disable-libtool-lock],
39819 + [avoid locking (might break parallel builds)])])
39820 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
39821 +
39822 +# Some flags need to be propagated to the compiler or linker for good
39823 +# libtool support.
39824 +case $host in
39825 +ia64-*-hpux*)
39826 + # Find out which ABI we are using.
39827 + echo 'int i;' > conftest.$ac_ext
39828 + if AC_TRY_EVAL(ac_compile); then
39829 + case `/usr/bin/file conftest.$ac_objext` in
39830 + *ELF-32*)
39831 + HPUX_IA64_MODE="32"
39832 + ;;
39833 + *ELF-64*)
39834 + HPUX_IA64_MODE="64"
39835 + ;;
39836 + esac
39837 + fi
39838 + rm -rf conftest*
39839 + ;;
39840 +*-*-irix6*)
39841 + # Find out which ABI we are using.
39842 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
39843 + if AC_TRY_EVAL(ac_compile); then
39844 + if test "$lt_cv_prog_gnu_ld" = yes; then
39845 + case `/usr/bin/file conftest.$ac_objext` in
39846 + *32-bit*)
39847 + LD="${LD-ld} -melf32bsmip"
39848 + ;;
39849 + *N32*)
39850 + LD="${LD-ld} -melf32bmipn32"
39851 + ;;
39852 + *64-bit*)
39853 + LD="${LD-ld} -melf64bmip"
39854 + ;;
39855 + esac
39856 + else
39857 + case `/usr/bin/file conftest.$ac_objext` in
39858 + *32-bit*)
39859 + LD="${LD-ld} -32"
39860 + ;;
39861 + *N32*)
39862 + LD="${LD-ld} -n32"
39863 + ;;
39864 + *64-bit*)
39865 + LD="${LD-ld} -64"
39866 + ;;
39867 + esac
39868 + fi
39869 + fi
39870 + rm -rf conftest*
39871 + ;;
39872 +
39873 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
39874 +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
39875 + # Find out which ABI we are using.
39876 + echo 'int i;' > conftest.$ac_ext
39877 + if AC_TRY_EVAL(ac_compile); then
39878 + case `/usr/bin/file conftest.o` in
39879 + *32-bit*)
39880 + case $host in
39881 + x86_64-*kfreebsd*-gnu)
39882 + LD="${LD-ld} -m elf_i386_fbsd"
39883 + ;;
39884 + x86_64-*linux*)
39885 + LD="${LD-ld} -m elf_i386"
39886 + ;;
39887 + ppc64-*linux*|powerpc64-*linux*)
39888 + LD="${LD-ld} -m elf32ppclinux"
39889 + ;;
39890 + s390x-*linux*)
39891 + LD="${LD-ld} -m elf_s390"
39892 + ;;
39893 + sparc64-*linux*)
39894 + LD="${LD-ld} -m elf32_sparc"
39895 + ;;
39896 + esac
39897 + ;;
39898 + *64-bit*)
39899 + case $host in
39900 + x86_64-*kfreebsd*-gnu)
39901 + LD="${LD-ld} -m elf_x86_64_fbsd"
39902 + ;;
39903 + x86_64-*linux*)
39904 + LD="${LD-ld} -m elf_x86_64"
39905 + ;;
39906 + ppc*-*linux*|powerpc*-*linux*)
39907 + LD="${LD-ld} -m elf64ppc"
39908 + ;;
39909 + s390*-*linux*|s390*-*tpf*)
39910 + LD="${LD-ld} -m elf64_s390"
39911 + ;;
39912 + sparc*-*linux*)
39913 + LD="${LD-ld} -m elf64_sparc"
39914 + ;;
39915 + esac
39916 + ;;
39917 + esac
39918 + fi
39919 + rm -rf conftest*
39920 + ;;
39921 +
39922 +*-*-sco3.2v5*)
39923 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
39924 + SAVE_CFLAGS="$CFLAGS"
39925 + CFLAGS="$CFLAGS -belf"
39926 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
39927 + [AC_LANG_PUSH(C)
39928 + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
39929 + AC_LANG_POP])
39930 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
39931 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
39932 + CFLAGS="$SAVE_CFLAGS"
39933 + fi
39934 + ;;
39935 +sparc*-*solaris*)
39936 + # Find out which ABI we are using.
39937 + echo 'int i;' > conftest.$ac_ext
39938 + if AC_TRY_EVAL(ac_compile); then
39939 + case `/usr/bin/file conftest.o` in
39940 + *64-bit*)
39941 + case $lt_cv_prog_gnu_ld in
39942 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
39943 + *)
39944 + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
39945 + LD="${LD-ld} -64"
39946 + fi
39947 + ;;
39948 + esac
39949 + ;;
39950 + esac
39951 + fi
39952 + rm -rf conftest*
39953 + ;;
39954 +esac
39955 +
39956 +need_locks="$enable_libtool_lock"
39957 +])# _LT_ENABLE_LOCK
39958 +
39959 +
39960 +# _LT_CMD_OLD_ARCHIVE
39961 +# -------------------
39962 +m4_defun([_LT_CMD_OLD_ARCHIVE],
39963 +[AC_CHECK_TOOL(AR, ar, false)
39964 +test -z "$AR" && AR=ar
39965 +test -z "$AR_FLAGS" && AR_FLAGS=cru
39966 +_LT_DECL([], [AR], [1], [The archiver])
39967 +_LT_DECL([], [AR_FLAGS], [1])
39968 +
39969 +AC_CHECK_TOOL(STRIP, strip, :)
39970 +test -z "$STRIP" && STRIP=:
39971 +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
39972 +
39973 +AC_CHECK_TOOL(RANLIB, ranlib, :)
39974 +test -z "$RANLIB" && RANLIB=:
39975 +_LT_DECL([], [RANLIB], [1],
39976 + [Commands used to install an old-style archive])
39977 +
39978 +# Determine commands to create old-style static archives.
39979 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
39980 +old_postinstall_cmds='chmod 644 $oldlib'
39981 +old_postuninstall_cmds=
39982 +
39983 +if test -n "$RANLIB"; then
39984 + case $host_os in
39985 + openbsd*)
39986 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
39987 + ;;
39988 + *)
39989 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
39990 + ;;
39991 + esac
39992 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
39993 +fi
39994 +_LT_DECL([], [old_postinstall_cmds], [2])
39995 +_LT_DECL([], [old_postuninstall_cmds], [2])
39996 +_LT_TAGDECL([], [old_archive_cmds], [2],
39997 + [Commands used to build an old-style archive])
39998 +])# _LT_CMD_OLD_ARCHIVE
39999 +
40000 +
40001 +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
40002 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
40003 +# ----------------------------------------------------------------
40004 +# Check whether the given compiler option works
40005 +AC_DEFUN([_LT_COMPILER_OPTION],
40006 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
40007 +m4_require([_LT_DECL_SED])dnl
40008 +AC_CACHE_CHECK([$1], [$2],
40009 + [$2=no
40010 + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
40011 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
40012 + lt_compiler_flag="$3"
40013 + # Insert the option either (1) after the last *FLAGS variable, or
40014 + # (2) before a word containing "conftest.", or (3) at the end.
40015 + # Note that $ac_compile itself does not contain backslashes and begins
40016 + # with a dollar sign (not a hyphen), so the echo should work correctly.
40017 + # The option is referenced via a variable to avoid confusing sed.
40018 + lt_compile=`echo "$ac_compile" | $SED \
40019 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
40020 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
40021 + -e 's:$: $lt_compiler_flag:'`
40022 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
40023 + (eval "$lt_compile" 2>conftest.err)
40024 + ac_status=$?
40025 + cat conftest.err >&AS_MESSAGE_LOG_FD
40026 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
40027 + if (exit $ac_status) && test -s "$ac_outfile"; then
40028 + # The compiler can only warn and ignore the option if not recognized
40029 + # So say no if there are warnings other than the usual output.
40030 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
40031 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
40032 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
40033 + $2=yes
40034 + fi
40035 + fi
40036 + $RM conftest*
40037 +])
40038 +
40039 +if test x"[$]$2" = xyes; then
40040 + m4_if([$5], , :, [$5])
40041 +else
40042 + m4_if([$6], , :, [$6])
40043 +fi
40044 +])# _LT_COMPILER_OPTION
40045 +
40046 +# Old name:
40047 +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
40048 +dnl aclocal-1.4 backwards compatibility:
40049 +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
40050 +
40051 +
40052 +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
40053 +# [ACTION-SUCCESS], [ACTION-FAILURE])
40054 +# ----------------------------------------------------
40055 +# Check whether the given linker option works
40056 +AC_DEFUN([_LT_LINKER_OPTION],
40057 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
40058 +m4_require([_LT_DECL_SED])dnl
40059 +AC_CACHE_CHECK([$1], [$2],
40060 + [$2=no
40061 + save_LDFLAGS="$LDFLAGS"
40062 + LDFLAGS="$LDFLAGS $3"
40063 + echo "$lt_simple_link_test_code" > conftest.$ac_ext
40064 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
40065 + # The linker can only warn and ignore the option if not recognized
40066 + # So say no if there are warnings
40067 + if test -s conftest.err; then
40068 + # Append any errors to the config.log.
40069 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
40070 + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
40071 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
40072 + if diff conftest.exp conftest.er2 >/dev/null; then
40073 + $2=yes
40074 + fi
40075 + else
40076 + $2=yes
40077 + fi
40078 + fi
40079 + $RM -r conftest*
40080 + LDFLAGS="$save_LDFLAGS"
40081 +])
40082 +
40083 +if test x"[$]$2" = xyes; then
40084 + m4_if([$4], , :, [$4])
40085 +else
40086 + m4_if([$5], , :, [$5])
40087 +fi
40088 +])# _LT_LINKER_OPTION
40089 +
40090 +# Old name:
40091 +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
40092 +dnl aclocal-1.4 backwards compatibility:
40093 +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
40094 +
40095 +
40096 +# LT_CMD_MAX_LEN
40097 +#---------------
40098 +AC_DEFUN([LT_CMD_MAX_LEN],
40099 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
40100 +# find the maximum length of command line arguments
40101 +AC_MSG_CHECKING([the maximum length of command line arguments])
40102 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
40103 + i=0
40104 + teststring="ABCD"
40105 +
40106 + case $build_os in
40107 + msdosdjgpp*)
40108 + # On DJGPP, this test can blow up pretty badly due to problems in libc
40109 + # (any single argument exceeding 2000 bytes causes a buffer overrun
40110 + # during glob expansion). Even if it were fixed, the result of this
40111 + # check would be larger than it should be.
40112 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
40113 + ;;
40114 +
40115 + gnu*)
40116 + # Under GNU Hurd, this test is not required because there is
40117 + # no limit to the length of command line arguments.
40118 + # Libtool will interpret -1 as no limit whatsoever
40119 + lt_cv_sys_max_cmd_len=-1;
40120 + ;;
40121 +
40122 + cygwin* | mingw* | cegcc*)
40123 + # On Win9x/ME, this test blows up -- it succeeds, but takes
40124 + # about 5 minutes as the teststring grows exponentially.
40125 + # Worse, since 9x/ME are not pre-emptively multitasking,
40126 + # you end up with a "frozen" computer, even though with patience
40127 + # the test eventually succeeds (with a max line length of 256k).
40128 + # Instead, let's just punt: use the minimum linelength reported by
40129 + # all of the supported platforms: 8192 (on NT/2K/XP).
40130 + lt_cv_sys_max_cmd_len=8192;
40131 + ;;
40132 +
40133 + amigaos*)
40134 + # On AmigaOS with pdksh, this test takes hours, literally.
40135 + # So we just punt and use a minimum line length of 8192.
40136 + lt_cv_sys_max_cmd_len=8192;
40137 + ;;
40138 +
40139 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
40140 + # This has been around since 386BSD, at least. Likely further.
40141 + if test -x /sbin/sysctl; then
40142 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
40143 + elif test -x /usr/sbin/sysctl; then
40144 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
40145 + else
40146 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
40147 + fi
40148 + # And add a safety zone
40149 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
40150 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
40151 + ;;
40152 +
40153 + interix*)
40154 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
40155 + lt_cv_sys_max_cmd_len=196608
40156 + ;;
40157 +
40158 + osf*)
40159 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
40160 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
40161 + # nice to cause kernel panics so lets avoid the loop below.
40162 + # First set a reasonable default.
40163 + lt_cv_sys_max_cmd_len=16384
40164 + #
40165 + if test -x /sbin/sysconfig; then
40166 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
40167 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
40168 + esac
40169 + fi
40170 + ;;
40171 + sco3.2v5*)
40172 + lt_cv_sys_max_cmd_len=102400
40173 + ;;
40174 + sysv5* | sco5v6* | sysv4.2uw2*)
40175 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
40176 + if test -n "$kargmax"; then
40177 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
40178 + else
40179 + lt_cv_sys_max_cmd_len=32768
40180 + fi
40181 + ;;
40182 + *)
40183 + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
40184 + if test -n "$lt_cv_sys_max_cmd_len"; then
40185 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
40186 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
40187 + else
40188 + # Make teststring a little bigger before we do anything with it.
40189 + # a 1K string should be a reasonable start.
40190 + for i in 1 2 3 4 5 6 7 8 ; do
40191 + teststring=$teststring$teststring
40192 + done
40193 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
40194 + # If test is not a shell built-in, we'll probably end up computing a
40195 + # maximum length that is only half of the actual maximum length, but
40196 + # we can't tell.
40197 + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
40198 + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
40199 + test $i != 17 # 1/2 MB should be enough
40200 + do
40201 + i=`expr $i + 1`
40202 + teststring=$teststring$teststring
40203 + done
40204 + # Only check the string length outside the loop.
40205 + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
40206 + teststring=
40207 + # Add a significant safety factor because C++ compilers can tack on
40208 + # massive amounts of additional arguments before passing them to the
40209 + # linker. It appears as though 1/2 is a usable value.
40210 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
40211 + fi
40212 + ;;
40213 + esac
40214 +])
40215 +if test -n $lt_cv_sys_max_cmd_len ; then
40216 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
40217 +else
40218 + AC_MSG_RESULT(none)
40219 +fi
40220 +max_cmd_len=$lt_cv_sys_max_cmd_len
40221 +_LT_DECL([], [max_cmd_len], [0],
40222 + [What is the maximum length of a command?])
40223 +])# LT_CMD_MAX_LEN
40224 +
40225 +# Old name:
40226 +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
40227 +dnl aclocal-1.4 backwards compatibility:
40228 +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
40229 +
40230 +
40231 +# _LT_HEADER_DLFCN
40232 +# ----------------
40233 +m4_defun([_LT_HEADER_DLFCN],
40234 +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
40235 +])# _LT_HEADER_DLFCN
40236 +
40237 +
40238 +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
40239 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
40240 +# ----------------------------------------------------------------
40241 +m4_defun([_LT_TRY_DLOPEN_SELF],
40242 +[m4_require([_LT_HEADER_DLFCN])dnl
40243 +if test "$cross_compiling" = yes; then :
40244 + [$4]
40245 +else
40246 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
40247 + lt_status=$lt_dlunknown
40248 + cat > conftest.$ac_ext <<_LT_EOF
40249 +[#line __oline__ "configure"
40250 +#include "confdefs.h"
40251 +
40252 +#if HAVE_DLFCN_H
40253 +#include <dlfcn.h>
40254 +#endif
40255 +
40256 +#include <stdio.h>
40257 +
40258 +#ifdef RTLD_GLOBAL
40259 +# define LT_DLGLOBAL RTLD_GLOBAL
40260 +#else
40261 +# ifdef DL_GLOBAL
40262 +# define LT_DLGLOBAL DL_GLOBAL
40263 +# else
40264 +# define LT_DLGLOBAL 0
40265 +# endif
40266 +#endif
40267 +
40268 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
40269 + find out it does not work in some platform. */
40270 +#ifndef LT_DLLAZY_OR_NOW
40271 +# ifdef RTLD_LAZY
40272 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
40273 +# else
40274 +# ifdef DL_LAZY
40275 +# define LT_DLLAZY_OR_NOW DL_LAZY
40276 +# else
40277 +# ifdef RTLD_NOW
40278 +# define LT_DLLAZY_OR_NOW RTLD_NOW
40279 +# else
40280 +# ifdef DL_NOW
40281 +# define LT_DLLAZY_OR_NOW DL_NOW
40282 +# else
40283 +# define LT_DLLAZY_OR_NOW 0
40284 +# endif
40285 +# endif
40286 +# endif
40287 +# endif
40288 +#endif
40289 +
40290 +void fnord() { int i=42;}
40291 +int main ()
40292 +{
40293 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
40294 + int status = $lt_dlunknown;
40295 +
40296 + if (self)
40297 + {
40298 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
40299 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
40300 + /* dlclose (self); */
40301 + }
40302 + else
40303 + puts (dlerror ());
40304 +
40305 + return status;
40306 +}]
40307 +_LT_EOF
40308 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
40309 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
40310 + lt_status=$?
40311 + case x$lt_status in
40312 + x$lt_dlno_uscore) $1 ;;
40313 + x$lt_dlneed_uscore) $2 ;;
40314 + x$lt_dlunknown|x*) $3 ;;
40315 + esac
40316 + else :
40317 + # compilation failed
40318 + $3
40319 + fi
40320 +fi
40321 +rm -fr conftest*
40322 +])# _LT_TRY_DLOPEN_SELF
40323 +
40324 +
40325 +# LT_SYS_DLOPEN_SELF
40326 +# ------------------
40327 +AC_DEFUN([LT_SYS_DLOPEN_SELF],
40328 +[m4_require([_LT_HEADER_DLFCN])dnl
40329 +if test "x$enable_dlopen" != xyes; then
40330 + enable_dlopen=unknown
40331 + enable_dlopen_self=unknown
40332 + enable_dlopen_self_static=unknown
40333 +else
40334 + lt_cv_dlopen=no
40335 + lt_cv_dlopen_libs=
40336 +
40337 + case $host_os in
40338 + beos*)
40339 + lt_cv_dlopen="load_add_on"
40340 + lt_cv_dlopen_libs=
40341 + lt_cv_dlopen_self=yes
40342 + ;;
40343 +
40344 + mingw* | pw32* | cegcc*)
40345 + lt_cv_dlopen="LoadLibrary"
40346 + lt_cv_dlopen_libs=
40347 + ;;
40348 +
40349 + cygwin*)
40350 + lt_cv_dlopen="dlopen"
40351 + lt_cv_dlopen_libs=
40352 + ;;
40353 +
40354 + darwin*)
40355 + # if libdl is installed we need to link against it
40356 + AC_CHECK_LIB([dl], [dlopen],
40357 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
40358 + lt_cv_dlopen="dyld"
40359 + lt_cv_dlopen_libs=
40360 + lt_cv_dlopen_self=yes
40361 + ])
40362 + ;;
40363 +
40364 + *)
40365 + AC_CHECK_FUNC([shl_load],
40366 + [lt_cv_dlopen="shl_load"],
40367 + [AC_CHECK_LIB([dld], [shl_load],
40368 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
40369 + [AC_CHECK_FUNC([dlopen],
40370 + [lt_cv_dlopen="dlopen"],
40371 + [AC_CHECK_LIB([dl], [dlopen],
40372 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
40373 + [AC_CHECK_LIB([svld], [dlopen],
40374 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
40375 + [AC_CHECK_LIB([dld], [dld_link],
40376 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
40377 + ])
40378 + ])
40379 + ])
40380 + ])
40381 + ])
40382 + ;;
40383 + esac
40384 +
40385 + if test "x$lt_cv_dlopen" != xno; then
40386 + enable_dlopen=yes
40387 + else
40388 + enable_dlopen=no
40389 + fi
40390 +
40391 + case $lt_cv_dlopen in
40392 + dlopen)
40393 + save_CPPFLAGS="$CPPFLAGS"
40394 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
40395 +
40396 + save_LDFLAGS="$LDFLAGS"
40397 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
40398 +
40399 + save_LIBS="$LIBS"
40400 + LIBS="$lt_cv_dlopen_libs $LIBS"
40401 +
40402 + AC_CACHE_CHECK([whether a program can dlopen itself],
40403 + lt_cv_dlopen_self, [dnl
40404 + _LT_TRY_DLOPEN_SELF(
40405 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
40406 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
40407 + ])
40408 +
40409 + if test "x$lt_cv_dlopen_self" = xyes; then
40410 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
40411 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
40412 + lt_cv_dlopen_self_static, [dnl
40413 + _LT_TRY_DLOPEN_SELF(
40414 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
40415 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
40416 + ])
40417 + fi
40418 +
40419 + CPPFLAGS="$save_CPPFLAGS"
40420 + LDFLAGS="$save_LDFLAGS"
40421 + LIBS="$save_LIBS"
40422 + ;;
40423 + esac
40424 +
40425 + case $lt_cv_dlopen_self in
40426 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
40427 + *) enable_dlopen_self=unknown ;;
40428 + esac
40429 +
40430 + case $lt_cv_dlopen_self_static in
40431 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
40432 + *) enable_dlopen_self_static=unknown ;;
40433 + esac
40434 +fi
40435 +_LT_DECL([dlopen_support], [enable_dlopen], [0],
40436 + [Whether dlopen is supported])
40437 +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
40438 + [Whether dlopen of programs is supported])
40439 +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
40440 + [Whether dlopen of statically linked programs is supported])
40441 +])# LT_SYS_DLOPEN_SELF
40442 +
40443 +# Old name:
40444 +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
40445 +dnl aclocal-1.4 backwards compatibility:
40446 +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
40447 +
40448 +
40449 +# _LT_COMPILER_C_O([TAGNAME])
40450 +# ---------------------------
40451 +# Check to see if options -c and -o are simultaneously supported by compiler.
40452 +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
40453 +m4_defun([_LT_COMPILER_C_O],
40454 +[m4_require([_LT_DECL_SED])dnl
40455 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
40456 +m4_require([_LT_TAG_COMPILER])dnl
40457 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
40458 + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
40459 + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
40460 + $RM -r conftest 2>/dev/null
40461 + mkdir conftest
40462 + cd conftest
40463 + mkdir out
40464 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
40465 +
40466 + lt_compiler_flag="-o out/conftest2.$ac_objext"
40467 + # Insert the option either (1) after the last *FLAGS variable, or
40468 + # (2) before a word containing "conftest.", or (3) at the end.
40469 + # Note that $ac_compile itself does not contain backslashes and begins
40470 + # with a dollar sign (not a hyphen), so the echo should work correctly.
40471 + lt_compile=`echo "$ac_compile" | $SED \
40472 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
40473 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
40474 + -e 's:$: $lt_compiler_flag:'`
40475 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
40476 + (eval "$lt_compile" 2>out/conftest.err)
40477 + ac_status=$?
40478 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
40479 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
40480 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
40481 + then
40482 + # The compiler can only warn and ignore the option if not recognized
40483 + # So say no if there are warnings
40484 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
40485 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
40486 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
40487 + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
40488 + fi
40489 + fi
40490 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
40491 + $RM conftest*
40492 + # SGI C++ compiler will create directory out/ii_files/ for
40493 + # template instantiation
40494 + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
40495 + $RM out/* && rmdir out
40496 + cd ..
40497 + $RM -r conftest
40498 + $RM conftest*
40499 +])
40500 +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
40501 + [Does compiler simultaneously support -c and -o options?])
40502 +])# _LT_COMPILER_C_O
40503 +
40504 +
40505 +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
40506 +# ----------------------------------
40507 +# Check to see if we can do hard links to lock some files if needed
40508 +m4_defun([_LT_COMPILER_FILE_LOCKS],
40509 +[m4_require([_LT_ENABLE_LOCK])dnl
40510 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
40511 +_LT_COMPILER_C_O([$1])
40512 +
40513 +hard_links="nottested"
40514 +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
40515 + # do not overwrite the value of need_locks provided by the user
40516 + AC_MSG_CHECKING([if we can lock with hard links])
40517 + hard_links=yes
40518 + $RM conftest*
40519 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
40520 + touch conftest.a
40521 + ln conftest.a conftest.b 2>&5 || hard_links=no
40522 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
40523 + AC_MSG_RESULT([$hard_links])
40524 + if test "$hard_links" = no; then
40525 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
40526 + need_locks=warn
40527 + fi
40528 +else
40529 + need_locks=no
40530 +fi
40531 +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
40532 +])# _LT_COMPILER_FILE_LOCKS
40533 +
40534 +
40535 +# _LT_CHECK_OBJDIR
40536 +# ----------------
40537 +m4_defun([_LT_CHECK_OBJDIR],
40538 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
40539 +[rm -f .libs 2>/dev/null
40540 +mkdir .libs 2>/dev/null
40541 +if test -d .libs; then
40542 + lt_cv_objdir=.libs
40543 +else
40544 + # MS-DOS does not allow filenames that begin with a dot.
40545 + lt_cv_objdir=_libs
40546 +fi
40547 +rmdir .libs 2>/dev/null])
40548 +objdir=$lt_cv_objdir
40549 +_LT_DECL([], [objdir], [0],
40550 + [The name of the directory that contains temporary libtool files])dnl
40551 +m4_pattern_allow([LT_OBJDIR])dnl
40552 +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
40553 + [Define to the sub-directory in which libtool stores uninstalled libraries.])
40554 +])# _LT_CHECK_OBJDIR
40555 +
40556 +
40557 +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
40558 +# --------------------------------------
40559 +# Check hardcoding attributes.
40560 +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
40561 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
40562 +_LT_TAGVAR(hardcode_action, $1)=
40563 +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
40564 + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
40565 + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
40566 +
40567 + # We can hardcode non-existent directories.
40568 + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
40569 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
40570 + # have to relink, otherwise we might link with an installed library
40571 + # when we should be linking with a yet-to-be-installed one
40572 + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
40573 + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
40574 + # Linking always hardcodes the temporary library directory.
40575 + _LT_TAGVAR(hardcode_action, $1)=relink
40576 + else
40577 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
40578 + _LT_TAGVAR(hardcode_action, $1)=immediate
40579 + fi
40580 +else
40581 + # We cannot hardcode anything, or else we can only hardcode existing
40582 + # directories.
40583 + _LT_TAGVAR(hardcode_action, $1)=unsupported
40584 +fi
40585 +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
40586 +
40587 +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
40588 + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
40589 + # Fast installation is not supported
40590 + enable_fast_install=no
40591 +elif test "$shlibpath_overrides_runpath" = yes ||
40592 + test "$enable_shared" = no; then
40593 + # Fast installation is not necessary
40594 + enable_fast_install=needless
40595 +fi
40596 +_LT_TAGDECL([], [hardcode_action], [0],
40597 + [How to hardcode a shared library path into an executable])
40598 +])# _LT_LINKER_HARDCODE_LIBPATH
40599 +
40600 +
40601 +# _LT_CMD_STRIPLIB
40602 +# ----------------
40603 +m4_defun([_LT_CMD_STRIPLIB],
40604 +[m4_require([_LT_DECL_EGREP])
40605 +striplib=
40606 +old_striplib=
40607 +AC_MSG_CHECKING([whether stripping libraries is possible])
40608 +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
40609 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
40610 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
40611 + AC_MSG_RESULT([yes])
40612 +else
40613 +# FIXME - insert some real tests, host_os isn't really good enough
40614 + case $host_os in
40615 + darwin*)
40616 + if test -n "$STRIP" ; then
40617 + striplib="$STRIP -x"
40618 + old_striplib="$STRIP -S"
40619 + AC_MSG_RESULT([yes])
40620 + else
40621 + AC_MSG_RESULT([no])
40622 + fi
40623 + ;;
40624 + *)
40625 + AC_MSG_RESULT([no])
40626 + ;;
40627 + esac
40628 +fi
40629 +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
40630 +_LT_DECL([], [striplib], [1])
40631 +])# _LT_CMD_STRIPLIB
40632 +
40633 +
40634 +# _LT_SYS_DYNAMIC_LINKER([TAG])
40635 +# -----------------------------
40636 +# PORTME Fill in your ld.so characteristics
40637 +m4_defun([_LT_SYS_DYNAMIC_LINKER],
40638 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
40639 +m4_require([_LT_DECL_EGREP])dnl
40640 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
40641 +m4_require([_LT_DECL_OBJDUMP])dnl
40642 +m4_require([_LT_DECL_SED])dnl
40643 +AC_MSG_CHECKING([dynamic linker characteristics])
40644 +m4_if([$1],
40645 + [], [
40646 +if test "$GCC" = yes; then
40647 + case $host_os in
40648 + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
40649 + *) lt_awk_arg="/^libraries:/" ;;
40650 + esac
40651 + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
40652 + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
40653 + # if the path contains ";" then we assume it to be the separator
40654 + # otherwise default to the standard path separator (i.e. ":") - it is
40655 + # assumed that no part of a normal pathname contains ";" but that should
40656 + # okay in the real world where ";" in dirpaths is itself problematic.
40657 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
40658 + else
40659 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
40660 + fi
40661 + # Ok, now we have the path, separated by spaces, we can step through it
40662 + # and add multilib dir if necessary.
40663 + lt_tmp_lt_search_path_spec=
40664 + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
40665 + for lt_sys_path in $lt_search_path_spec; do
40666 + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
40667 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
40668 + else
40669 + test -d "$lt_sys_path" && \
40670 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
40671 + fi
40672 + done
40673 + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
40674 +BEGIN {RS=" "; FS="/|\n";} {
40675 + lt_foo="";
40676 + lt_count=0;
40677 + for (lt_i = NF; lt_i > 0; lt_i--) {
40678 + if ($lt_i != "" && $lt_i != ".") {
40679 + if ($lt_i == "..") {
40680 + lt_count++;
40681 + } else {
40682 + if (lt_count == 0) {
40683 + lt_foo="/" $lt_i lt_foo;
40684 + } else {
40685 + lt_count--;
40686 + }
40687 + }
40688 + }
40689 + }
40690 + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
40691 + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
40692 +}'`
40693 + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
40694 +else
40695 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
40696 +fi])
40697 +library_names_spec=
40698 +libname_spec='lib$name'
40699 +soname_spec=
40700 +shrext_cmds=".so"
40701 +postinstall_cmds=
40702 +postuninstall_cmds=
40703 +finish_cmds=
40704 +finish_eval=
40705 +shlibpath_var=
40706 +shlibpath_overrides_runpath=unknown
40707 +version_type=none
40708 +dynamic_linker="$host_os ld.so"
40709 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
40710 +need_lib_prefix=unknown
40711 +hardcode_into_libs=no
40712 +
40713 +# when you set need_version to no, make sure it does not cause -set_version
40714 +# flags to be left without arguments
40715 +need_version=unknown
40716 +
40717 +case $host_os in
40718 +aix3*)
40719 + version_type=linux
40720 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
40721 + shlibpath_var=LIBPATH
40722 +
40723 + # AIX 3 has no versioning support, so we append a major version to the name.
40724 + soname_spec='${libname}${release}${shared_ext}$major'
40725 + ;;
40726 +
40727 +aix[[4-9]]*)
40728 + version_type=linux
40729 + need_lib_prefix=no
40730 + need_version=no
40731 + hardcode_into_libs=yes
40732 + if test "$host_cpu" = ia64; then
40733 + # AIX 5 supports IA64
40734 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
40735 + shlibpath_var=LD_LIBRARY_PATH
40736 + else
40737 + # With GCC up to 2.95.x, collect2 would create an import file
40738 + # for dependence libraries. The import file would start with
40739 + # the line `#! .'. This would cause the generated library to
40740 + # depend on `.', always an invalid library. This was fixed in
40741 + # development snapshots of GCC prior to 3.0.
40742 + case $host_os in
40743 + aix4 | aix4.[[01]] | aix4.[[01]].*)
40744 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
40745 + echo ' yes '
40746 + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
40747 + :
40748 + else
40749 + can_build_shared=no
40750 + fi
40751 + ;;
40752 + esac
40753 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
40754 + # soname into executable. Probably we can add versioning support to
40755 + # collect2, so additional links can be useful in future.
40756 + if test "$aix_use_runtimelinking" = yes; then
40757 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
40758 + # instead of lib<name>.a to let people know that these are not
40759 + # typical AIX shared libraries.
40760 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40761 + else
40762 + # We preserve .a as extension for shared libraries through AIX4.2
40763 + # and later when we are not doing run time linking.
40764 + library_names_spec='${libname}${release}.a $libname.a'
40765 + soname_spec='${libname}${release}${shared_ext}$major'
40766 + fi
40767 + shlibpath_var=LIBPATH
40768 + fi
40769 + ;;
40770 +
40771 +amigaos*)
40772 + case $host_cpu in
40773 + powerpc)
40774 + # Since July 2007 AmigaOS4 officially supports .so libraries.
40775 + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
40776 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40777 + ;;
40778 + m68k)
40779 + library_names_spec='$libname.ixlibrary $libname.a'
40780 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
40781 + 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'
40782 + ;;
40783 + esac
40784 + ;;
40785 +
40786 +beos*)
40787 + library_names_spec='${libname}${shared_ext}'
40788 + dynamic_linker="$host_os ld.so"
40789 + shlibpath_var=LIBRARY_PATH
40790 + ;;
40791 +
40792 +bsdi[[45]]*)
40793 + version_type=linux
40794 + need_version=no
40795 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40796 + soname_spec='${libname}${release}${shared_ext}$major'
40797 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
40798 + shlibpath_var=LD_LIBRARY_PATH
40799 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
40800 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
40801 + # the default ld.so.conf also contains /usr/contrib/lib and
40802 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
40803 + # libtool to hard-code these into programs
40804 + ;;
40805 +
40806 +cygwin* | mingw* | pw32* | cegcc*)
40807 + version_type=windows
40808 + shrext_cmds=".dll"
40809 + need_version=no
40810 + need_lib_prefix=no
40811 +
40812 + case $GCC,$host_os in
40813 + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
40814 + library_names_spec='$libname.dll.a'
40815 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
40816 + postinstall_cmds='base_file=`basename \${file}`~
40817 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
40818 + dldir=$destdir/`dirname \$dlpath`~
40819 + test -d \$dldir || mkdir -p \$dldir~
40820 + $install_prog $dir/$dlname \$dldir/$dlname~
40821 + chmod a+x \$dldir/$dlname~
40822 + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
40823 + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
40824 + fi'
40825 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
40826 + dlpath=$dir/\$dldll~
40827 + $RM \$dlpath'
40828 + shlibpath_overrides_runpath=yes
40829 +
40830 + case $host_os in
40831 + cygwin*)
40832 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
40833 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
40834 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
40835 + ;;
40836 + mingw* | cegcc*)
40837 + # MinGW DLLs use traditional 'lib' prefix
40838 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
40839 + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
40840 + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
40841 + # It is most probably a Windows format PATH printed by
40842 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
40843 + # path with ; separators, and with drive letters. We can handle the
40844 + # drive letters (cygwin fileutils understands them), so leave them,
40845 + # especially as we might pass files found there to a mingw objdump,
40846 + # which wouldn't understand a cygwinified path. Ahh.
40847 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
40848 + else
40849 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
40850 + fi
40851 + ;;
40852 + pw32*)
40853 + # pw32 DLLs use 'pw' prefix rather than 'lib'
40854 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
40855 + ;;
40856 + esac
40857 + ;;
40858 +
40859 + *)
40860 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
40861 + ;;
40862 + esac
40863 + dynamic_linker='Win32 ld.exe'
40864 + # FIXME: first we should search . and the directory the executable is in
40865 + shlibpath_var=PATH
40866 + ;;
40867 +
40868 +darwin* | rhapsody*)
40869 + dynamic_linker="$host_os dyld"
40870 + version_type=darwin
40871 + need_lib_prefix=no
40872 + need_version=no
40873 + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
40874 + soname_spec='${libname}${release}${major}$shared_ext'
40875 + shlibpath_overrides_runpath=yes
40876 + shlibpath_var=DYLD_LIBRARY_PATH
40877 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
40878 +m4_if([$1], [],[
40879 + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
40880 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
40881 + ;;
40882 +
40883 +dgux*)
40884 + version_type=linux
40885 + need_lib_prefix=no
40886 + need_version=no
40887 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
40888 + soname_spec='${libname}${release}${shared_ext}$major'
40889 + shlibpath_var=LD_LIBRARY_PATH
40890 + ;;
40891 +
40892 +freebsd1*)
40893 + dynamic_linker=no
40894 + ;;
40895 +
40896 +freebsd* | dragonfly*)
40897 + # DragonFly does not have aout. When/if they implement a new
40898 + # versioning mechanism, adjust this.
40899 + if test -x /usr/bin/objformat; then
40900 + objformat=`/usr/bin/objformat`
40901 + else
40902 + case $host_os in
40903 + freebsd[[123]]*) objformat=aout ;;
40904 + *) objformat=elf ;;
40905 + esac
40906 + fi
40907 + version_type=freebsd-$objformat
40908 + case $version_type in
40909 + freebsd-elf*)
40910 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
40911 + need_version=no
40912 + need_lib_prefix=no
40913 + ;;
40914 + freebsd-*)
40915 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
40916 + need_version=yes
40917 + ;;
40918 + esac
40919 + shlibpath_var=LD_LIBRARY_PATH
40920 + case $host_os in
40921 + freebsd2*)
40922 + shlibpath_overrides_runpath=yes
40923 + ;;
40924 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
40925 + shlibpath_overrides_runpath=yes
40926 + hardcode_into_libs=yes
40927 + ;;
40928 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
40929 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
40930 + shlibpath_overrides_runpath=no
40931 + hardcode_into_libs=yes
40932 + ;;
40933 + *) # from 4.6 on, and DragonFly
40934 + shlibpath_overrides_runpath=yes
40935 + hardcode_into_libs=yes
40936 + ;;
40937 + esac
40938 + ;;
40939 +
40940 +gnu*)
40941 + version_type=linux
40942 + need_lib_prefix=no
40943 + need_version=no
40944 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
40945 + soname_spec='${libname}${release}${shared_ext}$major'
40946 + shlibpath_var=LD_LIBRARY_PATH
40947 + hardcode_into_libs=yes
40948 + ;;
40949 +
40950 +hpux9* | hpux10* | hpux11*)
40951 + # Give a soname corresponding to the major version so that dld.sl refuses to
40952 + # link against other versions.
40953 + version_type=sunos
40954 + need_lib_prefix=no
40955 + need_version=no
40956 + case $host_cpu in
40957 + ia64*)
40958 + shrext_cmds='.so'
40959 + hardcode_into_libs=yes
40960 + dynamic_linker="$host_os dld.so"
40961 + shlibpath_var=LD_LIBRARY_PATH
40962 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
40963 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40964 + soname_spec='${libname}${release}${shared_ext}$major'
40965 + if test "X$HPUX_IA64_MODE" = X32; then
40966 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
40967 + else
40968 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
40969 + fi
40970 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
40971 + ;;
40972 + hppa*64*)
40973 + shrext_cmds='.sl'
40974 + hardcode_into_libs=yes
40975 + dynamic_linker="$host_os dld.sl"
40976 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
40977 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
40978 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40979 + soname_spec='${libname}${release}${shared_ext}$major'
40980 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
40981 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
40982 + ;;
40983 + *)
40984 + shrext_cmds='.sl'
40985 + dynamic_linker="$host_os dld.sl"
40986 + shlibpath_var=SHLIB_PATH
40987 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
40988 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40989 + soname_spec='${libname}${release}${shared_ext}$major'
40990 + ;;
40991 + esac
40992 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
40993 + postinstall_cmds='chmod 555 $lib'
40994 + ;;
40995 +
40996 +interix[[3-9]]*)
40997 + version_type=linux
40998 + need_lib_prefix=no
40999 + need_version=no
41000 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
41001 + soname_spec='${libname}${release}${shared_ext}$major'
41002 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
41003 + shlibpath_var=LD_LIBRARY_PATH
41004 + shlibpath_overrides_runpath=no
41005 + hardcode_into_libs=yes
41006 + ;;
41007 +
41008 +irix5* | irix6* | nonstopux*)
41009 + case $host_os in
41010 + nonstopux*) version_type=nonstopux ;;
41011 + *)
41012 + if test "$lt_cv_prog_gnu_ld" = yes; then
41013 + version_type=linux
41014 + else
41015 + version_type=irix
41016 + fi ;;
41017 + esac
41018 + need_lib_prefix=no
41019 + need_version=no
41020 + soname_spec='${libname}${release}${shared_ext}$major'
41021 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
41022 + case $host_os in
41023 + irix5* | nonstopux*)
41024 + libsuff= shlibsuff=
41025 + ;;
41026 + *)
41027 + case $LD in # libtool.m4 will add one of these switches to LD
41028 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
41029 + libsuff= shlibsuff= libmagic=32-bit;;
41030 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
41031 + libsuff=32 shlibsuff=N32 libmagic=N32;;
41032 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
41033 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
41034 + *) libsuff= shlibsuff= libmagic=never-match;;
41035 + esac
41036 + ;;
41037 + esac
41038 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
41039 + shlibpath_overrides_runpath=no
41040 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
41041 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
41042 + hardcode_into_libs=yes
41043 + ;;
41044 +
41045 +# No shared lib support for Linux oldld, aout, or coff.
41046 +linux*oldld* | linux*aout* | linux*coff*)
41047 + dynamic_linker=no
41048 + ;;
41049 +
41050 +# This must be Linux ELF.
41051 +linux* | k*bsd*-gnu)
41052 + version_type=linux
41053 + need_lib_prefix=no
41054 + need_version=no
41055 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41056 + soname_spec='${libname}${release}${shared_ext}$major'
41057 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
41058 + shlibpath_var=LD_LIBRARY_PATH
41059 + shlibpath_overrides_runpath=no
41060 + # Some binutils ld are patched to set DT_RUNPATH
41061 + save_LDFLAGS=$LDFLAGS
41062 + save_libdir=$libdir
41063 + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
41064 + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
41065 + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
41066 + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
41067 + [shlibpath_overrides_runpath=yes])])
41068 + LDFLAGS=$save_LDFLAGS
41069 + libdir=$save_libdir
41070 +
41071 + # This implies no fast_install, which is unacceptable.
41072 + # Some rework will be needed to allow for fast_install
41073 + # before this can be enabled.
41074 + hardcode_into_libs=yes
41075 +
41076 + # Add ABI-specific directories to the system library path.
41077 + sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
41078 +
41079 + # Append ld.so.conf contents to the search path
41080 + if test -f /etc/ld.so.conf; then
41081 + 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' ' '`
41082 + sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
41083 + fi
41084 +
41085 + # We used to test for /lib/ld.so.1 and disable shared libraries on
41086 + # powerpc, because MkLinux only supported shared libraries with the
41087 + # GNU dynamic linker. Since this was broken with cross compilers,
41088 + # most powerpc-linux boxes support dynamic linking these days and
41089 + # people can always --disable-shared, the test was removed, and we
41090 + # assume the GNU/Linux dynamic linker is in use.
41091 + dynamic_linker='GNU/Linux ld.so'
41092 + ;;
41093 +
41094 +netbsd*)
41095 + version_type=sunos
41096 + need_lib_prefix=no
41097 + need_version=no
41098 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
41099 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
41100 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
41101 + dynamic_linker='NetBSD (a.out) ld.so'
41102 + else
41103 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
41104 + soname_spec='${libname}${release}${shared_ext}$major'
41105 + dynamic_linker='NetBSD ld.elf_so'
41106 + fi
41107 + shlibpath_var=LD_LIBRARY_PATH
41108 + shlibpath_overrides_runpath=yes
41109 + hardcode_into_libs=yes
41110 + ;;
41111 +
41112 +newsos6)
41113 + version_type=linux
41114 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41115 + shlibpath_var=LD_LIBRARY_PATH
41116 + shlibpath_overrides_runpath=yes
41117 + ;;
41118 +
41119 +*nto* | *qnx*)
41120 + version_type=qnx
41121 + need_lib_prefix=no
41122 + need_version=no
41123 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41124 + soname_spec='${libname}${release}${shared_ext}$major'
41125 + shlibpath_var=LD_LIBRARY_PATH
41126 + shlibpath_overrides_runpath=no
41127 + hardcode_into_libs=yes
41128 + dynamic_linker='ldqnx.so'
41129 + ;;
41130 +
41131 +openbsd*)
41132 + version_type=sunos
41133 + sys_lib_dlsearch_path_spec="/usr/lib"
41134 + need_lib_prefix=no
41135 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
41136 + case $host_os in
41137 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
41138 + *) need_version=no ;;
41139 + esac
41140 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
41141 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
41142 + shlibpath_var=LD_LIBRARY_PATH
41143 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
41144 + case $host_os in
41145 + openbsd2.[[89]] | openbsd2.[[89]].*)
41146 + shlibpath_overrides_runpath=no
41147 + ;;
41148 + *)
41149 + shlibpath_overrides_runpath=yes
41150 + ;;
41151 + esac
41152 + else
41153 + shlibpath_overrides_runpath=yes
41154 + fi
41155 + ;;
41156 +
41157 +os2*)
41158 + libname_spec='$name'
41159 + shrext_cmds=".dll"
41160 + need_lib_prefix=no
41161 + library_names_spec='$libname${shared_ext} $libname.a'
41162 + dynamic_linker='OS/2 ld.exe'
41163 + shlibpath_var=LIBPATH
41164 + ;;
41165 +
41166 +osf3* | osf4* | osf5*)
41167 + version_type=osf
41168 + need_lib_prefix=no
41169 + need_version=no
41170 + soname_spec='${libname}${release}${shared_ext}$major'
41171 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41172 + shlibpath_var=LD_LIBRARY_PATH
41173 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
41174 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
41175 + ;;
41176 +
41177 +rdos*)
41178 + dynamic_linker=no
41179 + ;;
41180 +
41181 +solaris*)
41182 + version_type=linux
41183 + need_lib_prefix=no
41184 + need_version=no
41185 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41186 + soname_spec='${libname}${release}${shared_ext}$major'
41187 + shlibpath_var=LD_LIBRARY_PATH
41188 + shlibpath_overrides_runpath=yes
41189 + hardcode_into_libs=yes
41190 + # ldd complains unless libraries are executable
41191 + postinstall_cmds='chmod +x $lib'
41192 + ;;
41193 +
41194 +sunos4*)
41195 + version_type=sunos
41196 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
41197 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
41198 + shlibpath_var=LD_LIBRARY_PATH
41199 + shlibpath_overrides_runpath=yes
41200 + if test "$with_gnu_ld" = yes; then
41201 + need_lib_prefix=no
41202 + fi
41203 + need_version=yes
41204 + ;;
41205 +
41206 +sysv4 | sysv4.3*)
41207 + version_type=linux
41208 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41209 + soname_spec='${libname}${release}${shared_ext}$major'
41210 + shlibpath_var=LD_LIBRARY_PATH
41211 + case $host_vendor in
41212 + sni)
41213 + shlibpath_overrides_runpath=no
41214 + need_lib_prefix=no
41215 + runpath_var=LD_RUN_PATH
41216 + ;;
41217 + siemens)
41218 + need_lib_prefix=no
41219 + ;;
41220 + motorola)
41221 + need_lib_prefix=no
41222 + need_version=no
41223 + shlibpath_overrides_runpath=no
41224 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
41225 + ;;
41226 + esac
41227 + ;;
41228 +
41229 +sysv4*MP*)
41230 + if test -d /usr/nec ;then
41231 + version_type=linux
41232 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
41233 + soname_spec='$libname${shared_ext}.$major'
41234 + shlibpath_var=LD_LIBRARY_PATH
41235 + fi
41236 + ;;
41237 +
41238 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
41239 + version_type=freebsd-elf
41240 + need_lib_prefix=no
41241 + need_version=no
41242 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
41243 + soname_spec='${libname}${release}${shared_ext}$major'
41244 + shlibpath_var=LD_LIBRARY_PATH
41245 + shlibpath_overrides_runpath=yes
41246 + hardcode_into_libs=yes
41247 + if test "$with_gnu_ld" = yes; then
41248 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
41249 + else
41250 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
41251 + case $host_os in
41252 + sco3.2v5*)
41253 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
41254 + ;;
41255 + esac
41256 + fi
41257 + sys_lib_dlsearch_path_spec='/usr/lib'
41258 + ;;
41259 +
41260 +tpf*)
41261 + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
41262 + version_type=linux
41263 + need_lib_prefix=no
41264 + need_version=no
41265 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41266 + shlibpath_var=LD_LIBRARY_PATH
41267 + shlibpath_overrides_runpath=no
41268 + hardcode_into_libs=yes
41269 + ;;
41270 +
41271 +uts4*)
41272 + version_type=linux
41273 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41274 + soname_spec='${libname}${release}${shared_ext}$major'
41275 + shlibpath_var=LD_LIBRARY_PATH
41276 + ;;
41277 +
41278 +*)
41279 + dynamic_linker=no
41280 + ;;
41281 +esac
41282 +AC_MSG_RESULT([$dynamic_linker])
41283 +test "$dynamic_linker" = no && can_build_shared=no
41284 +
41285 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
41286 +if test "$GCC" = yes; then
41287 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
41288 +fi
41289 +
41290 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
41291 + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
41292 +fi
41293 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
41294 + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
41295 +fi
41296 +
41297 +_LT_DECL([], [variables_saved_for_relink], [1],
41298 + [Variables whose values should be saved in libtool wrapper scripts and
41299 + restored at link time])
41300 +_LT_DECL([], [need_lib_prefix], [0],
41301 + [Do we need the "lib" prefix for modules?])
41302 +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
41303 +_LT_DECL([], [version_type], [0], [Library versioning type])
41304 +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
41305 +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
41306 +_LT_DECL([], [shlibpath_overrides_runpath], [0],
41307 + [Is shlibpath searched before the hard-coded library search path?])
41308 +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
41309 +_LT_DECL([], [library_names_spec], [1],
41310 + [[List of archive names. First name is the real one, the rest are links.
41311 + The last name is the one that the linker finds with -lNAME]])
41312 +_LT_DECL([], [soname_spec], [1],
41313 + [[The coded name of the library, if different from the real name]])
41314 +_LT_DECL([], [postinstall_cmds], [2],
41315 + [Command to use after installation of a shared archive])
41316 +_LT_DECL([], [postuninstall_cmds], [2],
41317 + [Command to use after uninstallation of a shared archive])
41318 +_LT_DECL([], [finish_cmds], [2],
41319 + [Commands used to finish a libtool library installation in a directory])
41320 +_LT_DECL([], [finish_eval], [1],
41321 + [[As "finish_cmds", except a single script fragment to be evaled but
41322 + not shown]])
41323 +_LT_DECL([], [hardcode_into_libs], [0],
41324 + [Whether we should hardcode library paths into libraries])
41325 +_LT_DECL([], [sys_lib_search_path_spec], [2],
41326 + [Compile-time system search path for libraries])
41327 +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
41328 + [Run-time system search path for libraries])
41329 +])# _LT_SYS_DYNAMIC_LINKER
41330 +
41331 +
41332 +# _LT_PATH_TOOL_PREFIX(TOOL)
41333 +# --------------------------
41334 +# find a file program which can recognize shared library
41335 +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
41336 +[m4_require([_LT_DECL_EGREP])dnl
41337 +AC_MSG_CHECKING([for $1])
41338 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
41339 +[case $MAGIC_CMD in
41340 +[[\\/*] | ?:[\\/]*])
41341 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
41342 + ;;
41343 +*)
41344 + lt_save_MAGIC_CMD="$MAGIC_CMD"
41345 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
41346 +dnl $ac_dummy forces splitting on constant user-supplied paths.
41347 +dnl POSIX.2 word splitting is done only on the output of word expansions,
41348 +dnl not every word. This closes a longstanding sh security hole.
41349 + ac_dummy="m4_if([$2], , $PATH, [$2])"
41350 + for ac_dir in $ac_dummy; do
41351 + IFS="$lt_save_ifs"
41352 + test -z "$ac_dir" && ac_dir=.
41353 + if test -f $ac_dir/$1; then
41354 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
41355 + if test -n "$file_magic_test_file"; then
41356 + case $deplibs_check_method in
41357 + "file_magic "*)
41358 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
41359 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
41360 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
41361 + $EGREP "$file_magic_regex" > /dev/null; then
41362 + :
41363 + else
41364 + cat <<_LT_EOF 1>&2
41365 +
41366 +*** Warning: the command libtool uses to detect shared libraries,
41367 +*** $file_magic_cmd, produces output that libtool cannot recognize.
41368 +*** The result is that libtool may fail to recognize shared libraries
41369 +*** as such. This will affect the creation of libtool libraries that
41370 +*** depend on shared libraries, but programs linked with such libtool
41371 +*** libraries will work regardless of this problem. Nevertheless, you
41372 +*** may want to report the problem to your system manager and/or to
41373 +*** [email protected]
41374 +
41375 +_LT_EOF
41376 + fi ;;
41377 + esac
41378 + fi
41379 + break
41380 + fi
41381 + done
41382 + IFS="$lt_save_ifs"
41383 + MAGIC_CMD="$lt_save_MAGIC_CMD"
41384 + ;;
41385 +esac])
41386 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
41387 +if test -n "$MAGIC_CMD"; then
41388 + AC_MSG_RESULT($MAGIC_CMD)
41389 +else
41390 + AC_MSG_RESULT(no)
41391 +fi
41392 +_LT_DECL([], [MAGIC_CMD], [0],
41393 + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
41394 +])# _LT_PATH_TOOL_PREFIX
41395 +
41396 +# Old name:
41397 +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
41398 +dnl aclocal-1.4 backwards compatibility:
41399 +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
41400 +
41401 +
41402 +# _LT_PATH_MAGIC
41403 +# --------------
41404 +# find a file program which can recognize a shared library
41405 +m4_defun([_LT_PATH_MAGIC],
41406 +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
41407 +if test -z "$lt_cv_path_MAGIC_CMD"; then
41408 + if test -n "$ac_tool_prefix"; then
41409 + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
41410 + else
41411 + MAGIC_CMD=:
41412 + fi
41413 +fi
41414 +])# _LT_PATH_MAGIC
41415 +
41416 +
41417 +# LT_PATH_LD
41418 +# ----------
41419 +# find the pathname to the GNU or non-GNU linker
41420 +AC_DEFUN([LT_PATH_LD],
41421 +[AC_REQUIRE([AC_PROG_CC])dnl
41422 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
41423 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
41424 +m4_require([_LT_DECL_SED])dnl
41425 +m4_require([_LT_DECL_EGREP])dnl
41426 +
41427 +AC_ARG_WITH([gnu-ld],
41428 + [AS_HELP_STRING([--with-gnu-ld],
41429 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
41430 + [test "$withval" = no || with_gnu_ld=yes],
41431 + [with_gnu_ld=no])dnl
41432 +
41433 +ac_prog=ld
41434 +if test "$GCC" = yes; then
41435 + # Check if gcc -print-prog-name=ld gives a path.
41436 + AC_MSG_CHECKING([for ld used by $CC])
41437 + case $host in
41438 + *-*-mingw*)
41439 + # gcc leaves a trailing carriage return which upsets mingw
41440 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
41441 + *)
41442 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
41443 + esac
41444 + case $ac_prog in
41445 + # Accept absolute paths.
41446 + [[\\/]]* | ?:[[\\/]]*)
41447 + re_direlt='/[[^/]][[^/]]*/\.\./'
41448 + # Canonicalize the pathname of ld
41449 + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
41450 + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
41451 + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
41452 + done
41453 + test -z "$LD" && LD="$ac_prog"
41454 + ;;
41455 + "")
41456 + # If it fails, then pretend we aren't using GCC.
41457 + ac_prog=ld
41458 + ;;
41459 + *)
41460 + # If it is relative, then search for the first ld in PATH.
41461 + with_gnu_ld=unknown
41462 + ;;
41463 + esac
41464 +elif test "$with_gnu_ld" = yes; then
41465 + AC_MSG_CHECKING([for GNU ld])
41466 +else
41467 + AC_MSG_CHECKING([for non-GNU ld])
41468 +fi
41469 +AC_CACHE_VAL(lt_cv_path_LD,
41470 +[if test -z "$LD"; then
41471 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
41472 + for ac_dir in $PATH; do
41473 + IFS="$lt_save_ifs"
41474 + test -z "$ac_dir" && ac_dir=.
41475 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
41476 + lt_cv_path_LD="$ac_dir/$ac_prog"
41477 + # Check to see if the program is GNU ld. I'd rather use --version,
41478 + # but apparently some variants of GNU ld only accept -v.
41479 + # Break only if it was the GNU/non-GNU ld that we prefer.
41480 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
41481 + *GNU* | *'with BFD'*)
41482 + test "$with_gnu_ld" != no && break
41483 + ;;
41484 + *)
41485 + test "$with_gnu_ld" != yes && break
41486 + ;;
41487 + esac
41488 + fi
41489 + done
41490 + IFS="$lt_save_ifs"
41491 +else
41492 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
41493 +fi])
41494 +LD="$lt_cv_path_LD"
41495 +if test -n "$LD"; then
41496 + AC_MSG_RESULT($LD)
41497 +else
41498 + AC_MSG_RESULT(no)
41499 +fi
41500 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
41501 +_LT_PATH_LD_GNU
41502 +AC_SUBST([LD])
41503 +
41504 +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
41505 +])# LT_PATH_LD
41506 +
41507 +# Old names:
41508 +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
41509 +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
41510 +dnl aclocal-1.4 backwards compatibility:
41511 +dnl AC_DEFUN([AM_PROG_LD], [])
41512 +dnl AC_DEFUN([AC_PROG_LD], [])
41513 +
41514 +
41515 +# _LT_PATH_LD_GNU
41516 +#- --------------
41517 +m4_defun([_LT_PATH_LD_GNU],
41518 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
41519 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
41520 +case `$LD -v 2>&1 </dev/null` in
41521 +*GNU* | *'with BFD'*)
41522 + lt_cv_prog_gnu_ld=yes
41523 + ;;
41524 +*)
41525 + lt_cv_prog_gnu_ld=no
41526 + ;;
41527 +esac])
41528 +with_gnu_ld=$lt_cv_prog_gnu_ld
41529 +])# _LT_PATH_LD_GNU
41530 +
41531 +
41532 +# _LT_CMD_RELOAD
41533 +# --------------
41534 +# find reload flag for linker
41535 +# -- PORTME Some linkers may need a different reload flag.
41536 +m4_defun([_LT_CMD_RELOAD],
41537 +[AC_CACHE_CHECK([for $LD option to reload object files],
41538 + lt_cv_ld_reload_flag,
41539 + [lt_cv_ld_reload_flag='-r'])
41540 +reload_flag=$lt_cv_ld_reload_flag
41541 +case $reload_flag in
41542 +"" | " "*) ;;
41543 +*) reload_flag=" $reload_flag" ;;
41544 +esac
41545 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
41546 +case $host_os in
41547 + darwin*)
41548 + if test "$GCC" = yes; then
41549 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
41550 + else
41551 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
41552 + fi
41553 + ;;
41554 +esac
41555 +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
41556 +_LT_DECL([], [reload_cmds], [2])dnl
41557 +])# _LT_CMD_RELOAD
41558 +
41559 +
41560 +# _LT_CHECK_MAGIC_METHOD
41561 +# ----------------------
41562 +# how to check for library dependencies
41563 +# -- PORTME fill in with the dynamic library characteristics
41564 +m4_defun([_LT_CHECK_MAGIC_METHOD],
41565 +[m4_require([_LT_DECL_EGREP])
41566 +m4_require([_LT_DECL_OBJDUMP])
41567 +AC_CACHE_CHECK([how to recognize dependent libraries],
41568 +lt_cv_deplibs_check_method,
41569 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
41570 +lt_cv_file_magic_test_file=
41571 +lt_cv_deplibs_check_method='unknown'
41572 +# Need to set the preceding variable on all platforms that support
41573 +# interlibrary dependencies.
41574 +# 'none' -- dependencies not supported.
41575 +# `unknown' -- same as none, but documents that we really don't know.
41576 +# 'pass_all' -- all dependencies passed with no checks.
41577 +# 'test_compile' -- check by making test program.
41578 +# 'file_magic [[regex]]' -- check by looking for files in library path
41579 +# which responds to the $file_magic_cmd with a given extended regex.
41580 +# If you have `file' or equivalent on your system and you're not sure
41581 +# whether `pass_all' will *always* work, you probably want this one.
41582 +
41583 +case $host_os in
41584 +aix[[4-9]]*)
41585 + lt_cv_deplibs_check_method=pass_all
41586 + ;;
41587 +
41588 +beos*)
41589 + lt_cv_deplibs_check_method=pass_all
41590 + ;;
41591 +
41592 +bsdi[[45]]*)
41593 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
41594 + lt_cv_file_magic_cmd='/usr/bin/file -L'
41595 + lt_cv_file_magic_test_file=/shlib/libc.so
41596 + ;;
41597 +
41598 +cygwin*)
41599 + # func_win32_libid is a shell function defined in ltmain.sh
41600 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
41601 + lt_cv_file_magic_cmd='func_win32_libid'
41602 + ;;
41603 +
41604 +mingw* | pw32*)
41605 + # Base MSYS/MinGW do not provide the 'file' command needed by
41606 + # func_win32_libid shell function, so use a weaker test based on 'objdump',
41607 + # unless we find 'file', for example because we are cross-compiling.
41608 + if ( file / ) >/dev/null 2>&1; then
41609 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
41610 + lt_cv_file_magic_cmd='func_win32_libid'
41611 + else
41612 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
41613 + lt_cv_file_magic_cmd='$OBJDUMP -f'
41614 + fi
41615 + ;;
41616 +
41617 +cegcc)
41618 + # use the weaker test based on 'objdump'. See mingw*.
41619 + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
41620 + lt_cv_file_magic_cmd='$OBJDUMP -f'
41621 + ;;
41622 +
41623 +darwin* | rhapsody*)
41624 + lt_cv_deplibs_check_method=pass_all
41625 + ;;
41626 +
41627 +freebsd* | dragonfly*)
41628 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
41629 + case $host_cpu in
41630 + i*86 )
41631 + # Not sure whether the presence of OpenBSD here was a mistake.
41632 + # Let's accept both of them until this is cleared up.
41633 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
41634 + lt_cv_file_magic_cmd=/usr/bin/file
41635 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
41636 + ;;
41637 + esac
41638 + else
41639 + lt_cv_deplibs_check_method=pass_all
41640 + fi
41641 + ;;
41642 +
41643 +gnu*)
41644 + lt_cv_deplibs_check_method=pass_all
41645 + ;;
41646 +
41647 +hpux10.20* | hpux11*)
41648 + lt_cv_file_magic_cmd=/usr/bin/file
41649 + case $host_cpu in
41650 + ia64*)
41651 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
41652 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
41653 + ;;
41654 + hppa*64*)
41655 + [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]']
41656 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
41657 + ;;
41658 + *)
41659 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
41660 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
41661 + ;;
41662 + esac
41663 + ;;
41664 +
41665 +interix[[3-9]]*)
41666 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
41667 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
41668 + ;;
41669 +
41670 +irix5* | irix6* | nonstopux*)
41671 + case $LD in
41672 + *-32|*"-32 ") libmagic=32-bit;;
41673 + *-n32|*"-n32 ") libmagic=N32;;
41674 + *-64|*"-64 ") libmagic=64-bit;;
41675 + *) libmagic=never-match;;
41676 + esac
41677 + lt_cv_deplibs_check_method=pass_all
41678 + ;;
41679 +
41680 +# This must be Linux ELF.
41681 +linux* | k*bsd*-gnu)
41682 + lt_cv_deplibs_check_method=pass_all
41683 + ;;
41684 +
41685 +netbsd*)
41686 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
41687 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
41688 + else
41689 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
41690 + fi
41691 + ;;
41692 +
41693 +newos6*)
41694 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
41695 + lt_cv_file_magic_cmd=/usr/bin/file
41696 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
41697 + ;;
41698 +
41699 +*nto* | *qnx*)
41700 + lt_cv_deplibs_check_method=pass_all
41701 + ;;
41702 +
41703 +openbsd*)
41704 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
41705 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
41706 + else
41707 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
41708 + fi
41709 + ;;
41710 +
41711 +osf3* | osf4* | osf5*)
41712 + lt_cv_deplibs_check_method=pass_all
41713 + ;;
41714 +
41715 +rdos*)
41716 + lt_cv_deplibs_check_method=pass_all
41717 + ;;
41718 +
41719 +solaris*)
41720 + lt_cv_deplibs_check_method=pass_all
41721 + ;;
41722 +
41723 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
41724 + lt_cv_deplibs_check_method=pass_all
41725 + ;;
41726 +
41727 +sysv4 | sysv4.3*)
41728 + case $host_vendor in
41729 + motorola)
41730 + 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]]'
41731 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
41732 + ;;
41733 + ncr)
41734 + lt_cv_deplibs_check_method=pass_all
41735 + ;;
41736 + sequent)
41737 + lt_cv_file_magic_cmd='/bin/file'
41738 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
41739 + ;;
41740 + sni)
41741 + lt_cv_file_magic_cmd='/bin/file'
41742 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
41743 + lt_cv_file_magic_test_file=/lib/libc.so
41744 + ;;
41745 + siemens)
41746 + lt_cv_deplibs_check_method=pass_all
41747 + ;;
41748 + pc)
41749 + lt_cv_deplibs_check_method=pass_all
41750 + ;;
41751 + esac
41752 + ;;
41753 +
41754 +tpf*)
41755 + lt_cv_deplibs_check_method=pass_all
41756 + ;;
41757 +esac
41758 +])
41759 +file_magic_cmd=$lt_cv_file_magic_cmd
41760 +deplibs_check_method=$lt_cv_deplibs_check_method
41761 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
41762 +
41763 +_LT_DECL([], [deplibs_check_method], [1],
41764 + [Method to check whether dependent libraries are shared objects])
41765 +_LT_DECL([], [file_magic_cmd], [1],
41766 + [Command to use when deplibs_check_method == "file_magic"])
41767 +])# _LT_CHECK_MAGIC_METHOD
41768 +
41769 +
41770 +# LT_PATH_NM
41771 +# ----------
41772 +# find the pathname to a BSD- or MS-compatible name lister
41773 +AC_DEFUN([LT_PATH_NM],
41774 +[AC_REQUIRE([AC_PROG_CC])dnl
41775 +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
41776 +[if test -n "$NM"; then
41777 + # Let the user override the test.
41778 + lt_cv_path_NM="$NM"
41779 +else
41780 + lt_nm_to_check="${ac_tool_prefix}nm"
41781 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
41782 + lt_nm_to_check="$lt_nm_to_check nm"
41783 + fi
41784 + for lt_tmp_nm in $lt_nm_to_check; do
41785 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
41786 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
41787 + IFS="$lt_save_ifs"
41788 + test -z "$ac_dir" && ac_dir=.
41789 + tmp_nm="$ac_dir/$lt_tmp_nm"
41790 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
41791 + # Check to see if the nm accepts a BSD-compat flag.
41792 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
41793 + # nm: unknown option "B" ignored
41794 + # Tru64's nm complains that /dev/null is an invalid object file
41795 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
41796 + */dev/null* | *'Invalid file or object type'*)
41797 + lt_cv_path_NM="$tmp_nm -B"
41798 + break
41799 + ;;
41800 + *)
41801 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
41802 + */dev/null*)
41803 + lt_cv_path_NM="$tmp_nm -p"
41804 + break
41805 + ;;
41806 + *)
41807 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
41808 + continue # so that we can try to find one that supports BSD flags
41809 + ;;
41810 + esac
41811 + ;;
41812 + esac
41813 + fi
41814 + done
41815 + IFS="$lt_save_ifs"
41816 + done
41817 + : ${lt_cv_path_NM=no}
41818 +fi])
41819 +if test "$lt_cv_path_NM" != "no"; then
41820 + NM="$lt_cv_path_NM"
41821 +else
41822 + # Didn't find any BSD compatible name lister, look for dumpbin.
41823 + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
41824 + AC_SUBST([DUMPBIN])
41825 + if test "$DUMPBIN" != ":"; then
41826 + NM="$DUMPBIN"
41827 + fi
41828 +fi
41829 +test -z "$NM" && NM=nm
41830 +AC_SUBST([NM])
41831 +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
41832 +
41833 +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
41834 + [lt_cv_nm_interface="BSD nm"
41835 + echo "int some_variable = 0;" > conftest.$ac_ext
41836 + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
41837 + (eval "$ac_compile" 2>conftest.err)
41838 + cat conftest.err >&AS_MESSAGE_LOG_FD
41839 + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
41840 + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
41841 + cat conftest.err >&AS_MESSAGE_LOG_FD
41842 + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
41843 + cat conftest.out >&AS_MESSAGE_LOG_FD
41844 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
41845 + lt_cv_nm_interface="MS dumpbin"
41846 + fi
41847 + rm -f conftest*])
41848 +])# LT_PATH_NM
41849 +
41850 +# Old names:
41851 +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
41852 +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
41853 +dnl aclocal-1.4 backwards compatibility:
41854 +dnl AC_DEFUN([AM_PROG_NM], [])
41855 +dnl AC_DEFUN([AC_PROG_NM], [])
41856 +
41857 +
41858 +# LT_LIB_M
41859 +# --------
41860 +# check for math library
41861 +AC_DEFUN([LT_LIB_M],
41862 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
41863 +LIBM=
41864 +case $host in
41865 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
41866 + # These system don't have libm, or don't need it
41867 + ;;
41868 +*-ncr-sysv4.3*)
41869 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
41870 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
41871 + ;;
41872 +*)
41873 + AC_CHECK_LIB(m, cos, LIBM="-lm")
41874 + ;;
41875 +esac
41876 +AC_SUBST([LIBM])
41877 +])# LT_LIB_M
41878 +
41879 +# Old name:
41880 +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
41881 +dnl aclocal-1.4 backwards compatibility:
41882 +dnl AC_DEFUN([AC_CHECK_LIBM], [])
41883 +
41884 +
41885 +# _LT_COMPILER_NO_RTTI([TAGNAME])
41886 +# -------------------------------
41887 +m4_defun([_LT_COMPILER_NO_RTTI],
41888 +[m4_require([_LT_TAG_COMPILER])dnl
41889 +
41890 +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
41891 +
41892 +if test "$GCC" = yes; then
41893 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
41894 +
41895 + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
41896 + lt_cv_prog_compiler_rtti_exceptions,
41897 + [-fno-rtti -fno-exceptions], [],
41898 + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
41899 +fi
41900 +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
41901 + [Compiler flag to turn off builtin functions])
41902 +])# _LT_COMPILER_NO_RTTI
41903 +
41904 +
41905 +# _LT_CMD_GLOBAL_SYMBOLS
41906 +# ----------------------
41907 +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
41908 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
41909 +AC_REQUIRE([AC_PROG_CC])dnl
41910 +AC_REQUIRE([LT_PATH_NM])dnl
41911 +AC_REQUIRE([LT_PATH_LD])dnl
41912 +m4_require([_LT_DECL_SED])dnl
41913 +m4_require([_LT_DECL_EGREP])dnl
41914 +m4_require([_LT_TAG_COMPILER])dnl
41915 +
41916 +# Check for command to grab the raw symbol name followed by C symbol from nm.
41917 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
41918 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
41919 +[
41920 +# These are sane defaults that work on at least a few old systems.
41921 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
41922 +
41923 +# Character class describing NM global symbol codes.
41924 +symcode='[[BCDEGRST]]'
41925 +
41926 +# Regexp to match symbols that can be accessed directly from C.
41927 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
41928 +
41929 +# Define system-specific variables.
41930 +case $host_os in
41931 +aix*)
41932 + symcode='[[BCDT]]'
41933 + ;;
41934 +cygwin* | mingw* | pw32* | cegcc*)
41935 + symcode='[[ABCDGISTW]]'
41936 + ;;
41937 +hpux*)
41938 + if test "$host_cpu" = ia64; then
41939 + symcode='[[ABCDEGRST]]'
41940 + fi
41941 + ;;
41942 +irix* | nonstopux*)
41943 + symcode='[[BCDEGRST]]'
41944 + ;;
41945 +osf*)
41946 + symcode='[[BCDEGQRST]]'
41947 + ;;
41948 +solaris*)
41949 + symcode='[[BDRT]]'
41950 + ;;
41951 +sco3.2v5*)
41952 + symcode='[[DT]]'
41953 + ;;
41954 +sysv4.2uw2*)
41955 + symcode='[[DT]]'
41956 + ;;
41957 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
41958 + symcode='[[ABDT]]'
41959 + ;;
41960 +sysv4)
41961 + symcode='[[DFNSTU]]'
41962 + ;;
41963 +esac
41964 +
41965 +# If we're using GNU nm, then use its standard symbol codes.
41966 +case `$NM -V 2>&1` in
41967 +*GNU* | *'with BFD'*)
41968 + symcode='[[ABCDGIRSTW]]' ;;
41969 +esac
41970 +
41971 +# Transform an extracted symbol line into a proper C declaration.
41972 +# Some systems (esp. on ia64) link data and code symbols differently,
41973 +# so use this general approach.
41974 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
41975 +
41976 +# Transform an extracted symbol line into symbol name and symbol address
41977 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
41978 +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'"
41979 +
41980 +# Handle CRLF in mingw tool chain
41981 +opt_cr=
41982 +case $build_os in
41983 +mingw*)
41984 + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
41985 + ;;
41986 +esac
41987 +
41988 +# Try without a prefix underscore, then with it.
41989 +for ac_symprfx in "" "_"; do
41990 +
41991 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
41992 + symxfrm="\\1 $ac_symprfx\\2 \\2"
41993 +
41994 + # Write the raw and C identifiers.
41995 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
41996 + # Fake it for dumpbin and say T for any non-static function
41997 + # and D for any global variable.
41998 + # Also find C++ and __fastcall symbols from MSVC++,
41999 + # which start with @ or ?.
42000 + lt_cv_sys_global_symbol_pipe="$AWK ['"\
42001 +" {last_section=section; section=\$ 3};"\
42002 +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
42003 +" \$ 0!~/External *\|/{next};"\
42004 +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
42005 +" {if(hide[section]) next};"\
42006 +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
42007 +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
42008 +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
42009 +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
42010 +" ' prfx=^$ac_symprfx]"
42011 + else
42012 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
42013 + fi
42014 +
42015 + # Check to see that the pipe works correctly.
42016 + pipe_works=no
42017 +
42018 + rm -f conftest*
42019 + cat > conftest.$ac_ext <<_LT_EOF
42020 +#ifdef __cplusplus
42021 +extern "C" {
42022 +#endif
42023 +char nm_test_var;
42024 +void nm_test_func(void);
42025 +void nm_test_func(void){}
42026 +#ifdef __cplusplus
42027 +}
42028 +#endif
42029 +int main(){nm_test_var='a';nm_test_func();return(0);}
42030 +_LT_EOF
42031 +
42032 + if AC_TRY_EVAL(ac_compile); then
42033 + # Now try to grab the symbols.
42034 + nlist=conftest.nm
42035 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
42036 + # Try sorting and uniquifying the output.
42037 + if sort "$nlist" | uniq > "$nlist"T; then
42038 + mv -f "$nlist"T "$nlist"
42039 + else
42040 + rm -f "$nlist"T
42041 + fi
42042 +
42043 + # Make sure that we snagged all the symbols we need.
42044 + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
42045 + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
42046 + cat <<_LT_EOF > conftest.$ac_ext
42047 +#ifdef __cplusplus
42048 +extern "C" {
42049 +#endif
42050 +
42051 +_LT_EOF
42052 + # Now generate the symbol file.
42053 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
42054 +
42055 + cat <<_LT_EOF >> conftest.$ac_ext
42056 +
42057 +/* The mapping between symbol names and symbols. */
42058 +const struct {
42059 + const char *name;
42060 + void *address;
42061 +}
42062 +lt__PROGRAM__LTX_preloaded_symbols[[]] =
42063 +{
42064 + { "@PROGRAM@", (void *) 0 },
42065 +_LT_EOF
42066 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
42067 + cat <<\_LT_EOF >> conftest.$ac_ext
42068 + {0, (void *) 0}
42069 +};
42070 +
42071 +/* This works around a problem in FreeBSD linker */
42072 +#ifdef FREEBSD_WORKAROUND
42073 +static const void *lt_preloaded_setup() {
42074 + return lt__PROGRAM__LTX_preloaded_symbols;
42075 +}
42076 +#endif
42077 +
42078 +#ifdef __cplusplus
42079 +}
42080 +#endif
42081 +_LT_EOF
42082 + # Now try linking the two files.
42083 + mv conftest.$ac_objext conftstm.$ac_objext
42084 + lt_save_LIBS="$LIBS"
42085 + lt_save_CFLAGS="$CFLAGS"
42086 + LIBS="conftstm.$ac_objext"
42087 + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
42088 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
42089 + pipe_works=yes
42090 + fi
42091 + LIBS="$lt_save_LIBS"
42092 + CFLAGS="$lt_save_CFLAGS"
42093 + else
42094 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
42095 + fi
42096 + else
42097 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
42098 + fi
42099 + else
42100 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
42101 + fi
42102 + else
42103 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
42104 + cat conftest.$ac_ext >&5
42105 + fi
42106 + rm -rf conftest* conftst*
42107 +
42108 + # Do not use the global_symbol_pipe unless it works.
42109 + if test "$pipe_works" = yes; then
42110 + break
42111 + else
42112 + lt_cv_sys_global_symbol_pipe=
42113 + fi
42114 +done
42115 +])
42116 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
42117 + lt_cv_sys_global_symbol_to_cdecl=
42118 +fi
42119 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
42120 + AC_MSG_RESULT(failed)
42121 +else
42122 + AC_MSG_RESULT(ok)
42123 +fi
42124 +
42125 +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
42126 + [Take the output of nm and produce a listing of raw symbols and C names])
42127 +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
42128 + [Transform the output of nm in a proper C declaration])
42129 +_LT_DECL([global_symbol_to_c_name_address],
42130 + [lt_cv_sys_global_symbol_to_c_name_address], [1],
42131 + [Transform the output of nm in a C name address pair])
42132 +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
42133 + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
42134 + [Transform the output of nm in a C name address pair when lib prefix is needed])
42135 +]) # _LT_CMD_GLOBAL_SYMBOLS
42136 +
42137 +
42138 +# _LT_COMPILER_PIC([TAGNAME])
42139 +# ---------------------------
42140 +m4_defun([_LT_COMPILER_PIC],
42141 +[m4_require([_LT_TAG_COMPILER])dnl
42142 +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
42143 +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
42144 +_LT_TAGVAR(lt_prog_compiler_static, $1)=
42145 +
42146 +AC_MSG_CHECKING([for $compiler option to produce PIC])
42147 +m4_if([$1], [CXX], [
42148 + # C++ specific cases for pic, static, wl, etc.
42149 + if test "$GXX" = yes; then
42150 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42151 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
42152 +
42153 + case $host_os in
42154 + aix*)
42155 + # All AIX code is PIC.
42156 + if test "$host_cpu" = ia64; then
42157 + # AIX 5 now supports IA64 processor
42158 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42159 + fi
42160 + ;;
42161 +
42162 + amigaos*)
42163 + case $host_cpu in
42164 + powerpc)
42165 + # see comment about AmigaOS4 .so support
42166 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
42167 + ;;
42168 + m68k)
42169 + # FIXME: we need at least 68020 code to build shared libraries, but
42170 + # adding the `-m68020' flag to GCC prevents building anything better,
42171 + # like `-m68040'.
42172 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
42173 + ;;
42174 + esac
42175 + ;;
42176 +
42177 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
42178 + # PIC is the default for these OSes.
42179 + ;;
42180 + mingw* | cygwin* | os2* | pw32* | cegcc*)
42181 + # This hack is so that the source file can tell whether it is being
42182 + # built for inclusion in a dll (and should export symbols for example).
42183 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
42184 + # (--disable-auto-import) libraries
42185 + m4_if([$1], [GCJ], [],
42186 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
42187 + ;;
42188 + darwin* | rhapsody*)
42189 + # PIC is the default on this platform
42190 + # Common symbols not allowed in MH_DYLIB files
42191 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
42192 + ;;
42193 + *djgpp*)
42194 + # DJGPP does not support shared libraries at all
42195 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
42196 + ;;
42197 + interix[[3-9]]*)
42198 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
42199 + # Instead, we relocate shared libraries at runtime.
42200 + ;;
42201 + sysv4*MP*)
42202 + if test -d /usr/nec; then
42203 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
42204 + fi
42205 + ;;
42206 + hpux*)
42207 + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
42208 + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
42209 + # sets the default TLS model and affects inlining.
42210 + case $host_cpu in
42211 + hppa*64*)
42212 + ;;
42213 + *)
42214 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
42215 + ;;
42216 + esac
42217 + ;;
42218 + *qnx* | *nto*)
42219 + # QNX uses GNU C++, but need to define -shared option too, otherwise
42220 + # it will coredump.
42221 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
42222 + ;;
42223 + *)
42224 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
42225 + ;;
42226 + esac
42227 + else
42228 + case $host_os in
42229 + aix[[4-9]]*)
42230 + # All AIX code is PIC.
42231 + if test "$host_cpu" = ia64; then
42232 + # AIX 5 now supports IA64 processor
42233 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42234 + else
42235 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
42236 + fi
42237 + ;;
42238 + chorus*)
42239 + case $cc_basename in
42240 + cxch68*)
42241 + # Green Hills C++ Compiler
42242 + # _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"
42243 + ;;
42244 + esac
42245 + ;;
42246 + dgux*)
42247 + case $cc_basename in
42248 + ec++*)
42249 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
42250 + ;;
42251 + ghcx*)
42252 + # Green Hills C++ Compiler
42253 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
42254 + ;;
42255 + *)
42256 + ;;
42257 + esac
42258 + ;;
42259 + freebsd* | dragonfly*)
42260 + # FreeBSD uses GNU C++
42261 + ;;
42262 + hpux9* | hpux10* | hpux11*)
42263 + case $cc_basename in
42264 + CC*)
42265 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42266 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
42267 + if test "$host_cpu" != ia64; then
42268 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
42269 + fi
42270 + ;;
42271 + aCC*)
42272 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42273 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
42274 + case $host_cpu in
42275 + hppa*64*|ia64*)
42276 + # +Z the default
42277 + ;;
42278 + *)
42279 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
42280 + ;;
42281 + esac
42282 + ;;
42283 + *)
42284 + ;;
42285 + esac
42286 + ;;
42287 + interix*)
42288 + # This is c89, which is MS Visual C++ (no shared libs)
42289 + # Anyone wants to do a port?
42290 + ;;
42291 + irix5* | irix6* | nonstopux*)
42292 + case $cc_basename in
42293 + CC*)
42294 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42295 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
42296 + # CC pic flag -KPIC is the default.
42297 + ;;
42298 + *)
42299 + ;;
42300 + esac
42301 + ;;
42302 + linux* | k*bsd*-gnu)
42303 + case $cc_basename in
42304 + KCC*)
42305 + # KAI C++ Compiler
42306 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
42307 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
42308 + ;;
42309 + ecpc* )
42310 + # old Intel C++ for x86_64 which still supported -KPIC.
42311 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42312 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
42313 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
42314 + ;;
42315 + icpc* )
42316 + # Intel C++, used to be incompatible with GCC.
42317 + # ICC 10 doesn't accept -KPIC any more.
42318 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42319 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
42320 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
42321 + ;;
42322 + pgCC* | pgcpp*)
42323 + # Portland Group C++ compiler
42324 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42325 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
42326 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42327 + ;;
42328 + cxx*)
42329 + # Compaq C++
42330 + # Make sure the PIC flag is empty. It appears that all Alpha
42331 + # Linux and Compaq Tru64 Unix objects are PIC.
42332 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
42333 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
42334 + ;;
42335 + xlc* | xlC*)
42336 + # IBM XL 8.0 on PPC
42337 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42338 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
42339 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
42340 + ;;
42341 + *)
42342 + case `$CC -V 2>&1 | sed 5q` in
42343 + *Sun\ C*)
42344 + # Sun C++ 5.9
42345 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
42346 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42347 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
42348 + ;;
42349 + esac
42350 + ;;
42351 + esac
42352 + ;;
42353 + lynxos*)
42354 + ;;
42355 + m88k*)
42356 + ;;
42357 + mvs*)
42358 + case $cc_basename in
42359 + cxx*)
42360 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
42361 + ;;
42362 + *)
42363 + ;;
42364 + esac
42365 + ;;
42366 + netbsd*)
42367 + ;;
42368 + *qnx* | *nto*)
42369 + # QNX uses GNU C++, but need to define -shared option too, otherwise
42370 + # it will coredump.
42371 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
42372 + ;;
42373 + osf3* | osf4* | osf5*)
42374 + case $cc_basename in
42375 + KCC*)
42376 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
42377 + ;;
42378 + RCC*)
42379 + # Rational C++ 2.4.1
42380 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
42381 + ;;
42382 + cxx*)
42383 + # Digital/Compaq C++
42384 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42385 + # Make sure the PIC flag is empty. It appears that all Alpha
42386 + # Linux and Compaq Tru64 Unix objects are PIC.
42387 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
42388 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
42389 + ;;
42390 + *)
42391 + ;;
42392 + esac
42393 + ;;
42394 + psos*)
42395 + ;;
42396 + solaris*)
42397 + case $cc_basename in
42398 + CC*)
42399 + # Sun C++ 4.2, 5.x and Centerline C++
42400 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
42401 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42402 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
42403 + ;;
42404 + gcx*)
42405 + # Green Hills C++ Compiler
42406 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
42407 + ;;
42408 + *)
42409 + ;;
42410 + esac
42411 + ;;
42412 + sunos4*)
42413 + case $cc_basename in
42414 + CC*)
42415 + # Sun C++ 4.x
42416 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
42417 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42418 + ;;
42419 + lcc*)
42420 + # Lucid
42421 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
42422 + ;;
42423 + *)
42424 + ;;
42425 + esac
42426 + ;;
42427 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
42428 + case $cc_basename in
42429 + CC*)
42430 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42431 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
42432 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42433 + ;;
42434 + esac
42435 + ;;
42436 + tandem*)
42437 + case $cc_basename in
42438 + NCC*)
42439 + # NonStop-UX NCC 3.20
42440 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
42441 + ;;
42442 + *)
42443 + ;;
42444 + esac
42445 + ;;
42446 + vxworks*)
42447 + ;;
42448 + *)
42449 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
42450 + ;;
42451 + esac
42452 + fi
42453 +],
42454 +[
42455 + if test "$GCC" = yes; then
42456 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42457 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
42458 +
42459 + case $host_os in
42460 + aix*)
42461 + # All AIX code is PIC.
42462 + if test "$host_cpu" = ia64; then
42463 + # AIX 5 now supports IA64 processor
42464 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42465 + fi
42466 + ;;
42467 +
42468 + amigaos*)
42469 + case $host_cpu in
42470 + powerpc)
42471 + # see comment about AmigaOS4 .so support
42472 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
42473 + ;;
42474 + m68k)
42475 + # FIXME: we need at least 68020 code to build shared libraries, but
42476 + # adding the `-m68020' flag to GCC prevents building anything better,
42477 + # like `-m68040'.
42478 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
42479 + ;;
42480 + esac
42481 + ;;
42482 +
42483 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
42484 + # PIC is the default for these OSes.
42485 + ;;
42486 +
42487 + mingw* | cygwin* | pw32* | os2* | cegcc*)
42488 + # This hack is so that the source file can tell whether it is being
42489 + # built for inclusion in a dll (and should export symbols for example).
42490 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
42491 + # (--disable-auto-import) libraries
42492 + m4_if([$1], [GCJ], [],
42493 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
42494 + ;;
42495 +
42496 + darwin* | rhapsody*)
42497 + # PIC is the default on this platform
42498 + # Common symbols not allowed in MH_DYLIB files
42499 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
42500 + ;;
42501 +
42502 + hpux*)
42503 + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
42504 + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
42505 + # sets the default TLS model and affects inlining.
42506 + case $host_cpu in
42507 + hppa*64*)
42508 + # +Z the default
42509 + ;;
42510 + *)
42511 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
42512 + ;;
42513 + esac
42514 + ;;
42515 +
42516 + interix[[3-9]]*)
42517 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
42518 + # Instead, we relocate shared libraries at runtime.
42519 + ;;
42520 +
42521 + msdosdjgpp*)
42522 + # Just because we use GCC doesn't mean we suddenly get shared libraries
42523 + # on systems that don't support them.
42524 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
42525 + enable_shared=no
42526 + ;;
42527 +
42528 + *nto* | *qnx*)
42529 + # QNX uses GNU C++, but need to define -shared option too, otherwise
42530 + # it will coredump.
42531 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
42532 + ;;
42533 +
42534 + sysv4*MP*)
42535 + if test -d /usr/nec; then
42536 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
42537 + fi
42538 + ;;
42539 +
42540 + *)
42541 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
42542 + ;;
42543 + esac
42544 + else
42545 + # PORTME Check for flag to pass linker flags through the system compiler.
42546 + case $host_os in
42547 + aix*)
42548 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42549 + if test "$host_cpu" = ia64; then
42550 + # AIX 5 now supports IA64 processor
42551 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42552 + else
42553 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
42554 + fi
42555 + ;;
42556 +
42557 + mingw* | cygwin* | pw32* | os2* | cegcc*)
42558 + # This hack is so that the source file can tell whether it is being
42559 + # built for inclusion in a dll (and should export symbols for example).
42560 + m4_if([$1], [GCJ], [],
42561 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
42562 + ;;
42563 +
42564 + hpux9* | hpux10* | hpux11*)
42565 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42566 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
42567 + # not for PA HP-UX.
42568 + case $host_cpu in
42569 + hppa*64*|ia64*)
42570 + # +Z the default
42571 + ;;
42572 + *)
42573 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
42574 + ;;
42575 + esac
42576 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
42577 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
42578 + ;;
42579 +
42580 + irix5* | irix6* | nonstopux*)
42581 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42582 + # PIC (with -KPIC) is the default.
42583 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
42584 + ;;
42585 +
42586 + linux* | k*bsd*-gnu)
42587 + case $cc_basename in
42588 + # old Intel for x86_64 which still supported -KPIC.
42589 + ecc*)
42590 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42591 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
42592 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
42593 + ;;
42594 + # icc used to be incompatible with GCC.
42595 + # ICC 10 doesn't accept -KPIC any more.
42596 + icc* | ifort*)
42597 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42598 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
42599 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
42600 + ;;
42601 + # Lahey Fortran 8.1.
42602 + lf95*)
42603 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42604 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
42605 + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
42606 + ;;
42607 + pgcc* | pgf77* | pgf90* | pgf95*)
42608 + # Portland Group compilers (*not* the Pentium gcc compiler,
42609 + # which looks to be a dead project)
42610 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42611 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
42612 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42613 + ;;
42614 + ccc*)
42615 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42616 + # All Alpha code is PIC.
42617 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
42618 + ;;
42619 + xl*)
42620 + # IBM XL C 8.0/Fortran 10.1 on PPC
42621 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42622 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
42623 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
42624 + ;;
42625 + *)
42626 + case `$CC -V 2>&1 | sed 5q` in
42627 + *Sun\ C*)
42628 + # Sun C 5.9
42629 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
42630 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42631 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42632 + ;;
42633 + *Sun\ F*)
42634 + # Sun Fortran 8.3 passes all unrecognized flags to the linker
42635 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
42636 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42637 + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
42638 + ;;
42639 + esac
42640 + ;;
42641 + esac
42642 + ;;
42643 +
42644 + newsos6)
42645 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
42646 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42647 + ;;
42648 +
42649 + *nto* | *qnx*)
42650 + # QNX uses GNU C++, but need to define -shared option too, otherwise
42651 + # it will coredump.
42652 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
42653 + ;;
42654 +
42655 + osf3* | osf4* | osf5*)
42656 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42657 + # All OSF/1 code is PIC.
42658 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
42659 + ;;
42660 +
42661 + rdos*)
42662 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
42663 + ;;
42664 +
42665 + solaris*)
42666 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
42667 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42668 + case $cc_basename in
42669 + f77* | f90* | f95*)
42670 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
42671 + *)
42672 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
42673 + esac
42674 + ;;
42675 +
42676 + sunos4*)
42677 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
42678 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
42679 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42680 + ;;
42681 +
42682 + sysv4 | sysv4.2uw2* | sysv4.3*)
42683 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42684 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
42685 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42686 + ;;
42687 +
42688 + sysv4*MP*)
42689 + if test -d /usr/nec ;then
42690 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
42691 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42692 + fi
42693 + ;;
42694 +
42695 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
42696 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42697 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
42698 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42699 + ;;
42700 +
42701 + unicos*)
42702 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42703 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
42704 + ;;
42705 +
42706 + uts4*)
42707 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
42708 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42709 + ;;
42710 +
42711 + *)
42712 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
42713 + ;;
42714 + esac
42715 + fi
42716 +])
42717 +case $host_os in
42718 + # For platforms which do not support PIC, -DPIC is meaningless:
42719 + *djgpp*)
42720 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
42721 + ;;
42722 + *)
42723 + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
42724 + ;;
42725 +esac
42726 +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
42727 +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
42728 + [How to pass a linker flag through the compiler])
42729 +
42730 +#
42731 +# Check to make sure the PIC flag actually works.
42732 +#
42733 +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
42734 + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
42735 + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
42736 + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
42737 + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
42738 + "" | " "*) ;;
42739 + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
42740 + esac],
42741 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
42742 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
42743 +fi
42744 +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
42745 + [Additional compiler flags for building library objects])
42746 +
42747 +#
42748 +# Check to make sure the static flag actually works.
42749 +#
42750 +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
42751 +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
42752 + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
42753 + $lt_tmp_static_flag,
42754 + [],
42755 + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
42756 +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
42757 + [Compiler flag to prevent dynamic linking])
42758 +])# _LT_COMPILER_PIC
42759 +
42760 +
42761 +# _LT_LINKER_SHLIBS([TAGNAME])
42762 +# ----------------------------
42763 +# See if the linker supports building shared libraries.
42764 +m4_defun([_LT_LINKER_SHLIBS],
42765 +[AC_REQUIRE([LT_PATH_LD])dnl
42766 +AC_REQUIRE([LT_PATH_NM])dnl
42767 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
42768 +m4_require([_LT_DECL_EGREP])dnl
42769 +m4_require([_LT_DECL_SED])dnl
42770 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
42771 +m4_require([_LT_TAG_COMPILER])dnl
42772 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
42773 +m4_if([$1], [CXX], [
42774 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
42775 + case $host_os in
42776 + aix[[4-9]]*)
42777 + # If we're using GNU nm, then we don't want the "-C" option.
42778 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
42779 + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
42780 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
42781 + else
42782 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
42783 + fi
42784 + ;;
42785 + pw32*)
42786 + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
42787 + ;;
42788 + cygwin* | mingw* | cegcc*)
42789 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
42790 + ;;
42791 + *)
42792 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
42793 + ;;
42794 + esac
42795 + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
42796 +], [
42797 + runpath_var=
42798 + _LT_TAGVAR(allow_undefined_flag, $1)=
42799 + _LT_TAGVAR(always_export_symbols, $1)=no
42800 + _LT_TAGVAR(archive_cmds, $1)=
42801 + _LT_TAGVAR(archive_expsym_cmds, $1)=
42802 + _LT_TAGVAR(compiler_needs_object, $1)=no
42803 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
42804 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
42805 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
42806 + _LT_TAGVAR(hardcode_automatic, $1)=no
42807 + _LT_TAGVAR(hardcode_direct, $1)=no
42808 + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
42809 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
42810 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
42811 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
42812 + _LT_TAGVAR(hardcode_minus_L, $1)=no
42813 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
42814 + _LT_TAGVAR(inherit_rpath, $1)=no
42815 + _LT_TAGVAR(link_all_deplibs, $1)=unknown
42816 + _LT_TAGVAR(module_cmds, $1)=
42817 + _LT_TAGVAR(module_expsym_cmds, $1)=
42818 + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
42819 + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
42820 + _LT_TAGVAR(thread_safe_flag_spec, $1)=
42821 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
42822 + # include_expsyms should be a list of space-separated symbols to be *always*
42823 + # included in the symbol list
42824 + _LT_TAGVAR(include_expsyms, $1)=
42825 + # exclude_expsyms can be an extended regexp of symbols to exclude
42826 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
42827 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
42828 + # as well as any symbol that contains `d'.
42829 + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
42830 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
42831 + # platforms (ab)use it in PIC code, but their linkers get confused if
42832 + # the symbol is explicitly referenced. Since portable code cannot
42833 + # rely on this symbol name, it's probably fine to never include it in
42834 + # preloaded symbol tables.
42835 + # Exclude shared library initialization/finalization symbols.
42836 +dnl Note also adjust exclude_expsyms for C++ above.
42837 + extract_expsyms_cmds=
42838 +
42839 + case $host_os in
42840 + cygwin* | mingw* | pw32* | cegcc*)
42841 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
42842 + # When not using gcc, we currently assume that we are using
42843 + # Microsoft Visual C++.
42844 + if test "$GCC" != yes; then
42845 + with_gnu_ld=no
42846 + fi
42847 + ;;
42848 + interix*)
42849 + # we just hope/assume this is gcc and not c89 (= MSVC++)
42850 + with_gnu_ld=yes
42851 + ;;
42852 + openbsd*)
42853 + with_gnu_ld=no
42854 + ;;
42855 + esac
42856 +
42857 + _LT_TAGVAR(ld_shlibs, $1)=yes
42858 + if test "$with_gnu_ld" = yes; then
42859 + # If archive_cmds runs LD, not CC, wlarc should be empty
42860 + wlarc='${wl}'
42861 +
42862 + # Set some defaults for GNU ld with shared library support. These
42863 + # are reset later if shared libraries are not supported. Putting them
42864 + # here allows them to be overridden if necessary.
42865 + runpath_var=LD_RUN_PATH
42866 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
42867 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
42868 + # ancient GNU ld didn't support --whole-archive et. al.
42869 + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
42870 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
42871 + else
42872 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
42873 + fi
42874 + supports_anon_versioning=no
42875 + case `$LD -v 2>&1` in
42876 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
42877 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
42878 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
42879 + *\ 2.11.*) ;; # other 2.11 versions
42880 + *) supports_anon_versioning=yes ;;
42881 + esac
42882 +
42883 + # See if GNU ld supports shared libraries.
42884 + case $host_os in
42885 + aix[[3-9]]*)
42886 + # On AIX/PPC, the GNU linker is very broken
42887 + if test "$host_cpu" != ia64; then
42888 + _LT_TAGVAR(ld_shlibs, $1)=no
42889 + cat <<_LT_EOF 1>&2
42890 +
42891 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
42892 +*** to be unable to reliably create shared libraries on AIX.
42893 +*** Therefore, libtool is disabling shared libraries support. If you
42894 +*** really care for shared libraries, you may want to modify your PATH
42895 +*** so that a non-GNU linker is found, and then restart.
42896 +
42897 +_LT_EOF
42898 + fi
42899 + ;;
42900 +
42901 + amigaos*)
42902 + case $host_cpu in
42903 + powerpc)
42904 + # see comment about AmigaOS4 .so support
42905 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
42906 + _LT_TAGVAR(archive_expsym_cmds, $1)=''
42907 + ;;
42908 + m68k)
42909 + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
42910 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
42911 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
42912 + ;;
42913 + esac
42914 + ;;
42915 +
42916 + beos*)
42917 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
42918 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
42919 + # Joseph Beckenbach <[email protected]> says some releases of gcc
42920 + # support --undefined. This deserves some investigation. FIXME
42921 + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
42922 + else
42923 + _LT_TAGVAR(ld_shlibs, $1)=no
42924 + fi
42925 + ;;
42926 +
42927 + cygwin* | mingw* | pw32* | cegcc*)
42928 + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
42929 + # as there is no search path for DLLs.
42930 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
42931 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
42932 + _LT_TAGVAR(always_export_symbols, $1)=no
42933 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
42934 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
42935 +
42936 + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
42937 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
42938 + # If the export-symbols file already is a .def file (1st line
42939 + # is EXPORTS), use it as is; otherwise, prepend...
42940 + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
42941 + cp $export_symbols $output_objdir/$soname.def;
42942 + else
42943 + echo EXPORTS > $output_objdir/$soname.def;
42944 + cat $export_symbols >> $output_objdir/$soname.def;
42945 + fi~
42946 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
42947 + else
42948 + _LT_TAGVAR(ld_shlibs, $1)=no
42949 + fi
42950 + ;;
42951 +
42952 + interix[[3-9]]*)
42953 + _LT_TAGVAR(hardcode_direct, $1)=no
42954 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
42955 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
42956 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
42957 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
42958 + # Instead, shared libraries are loaded at an image base (0x10000000 by
42959 + # default) and relocated if they conflict, which is a slow very memory
42960 + # consuming and fragmenting process. To avoid this, we pick a random,
42961 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
42962 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
42963 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
42964 + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
42965 + ;;
42966 +
42967 + gnu* | linux* | tpf* | k*bsd*-gnu)
42968 + tmp_diet=no
42969 + if test "$host_os" = linux-dietlibc; then
42970 + case $cc_basename in
42971 + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
42972 + esac
42973 + fi
42974 + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
42975 + && test "$tmp_diet" = no
42976 + then
42977 + tmp_addflag=
42978 + tmp_sharedflag='-shared'
42979 + case $cc_basename,$host_cpu in
42980 + pgcc*) # Portland Group C compiler
42981 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
42982 + tmp_addflag=' $pic_flag'
42983 + ;;
42984 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
42985 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
42986 + tmp_addflag=' $pic_flag -Mnomain' ;;
42987 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
42988 + tmp_addflag=' -i_dynamic' ;;
42989 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
42990 + tmp_addflag=' -i_dynamic -nofor_main' ;;
42991 + ifc* | ifort*) # Intel Fortran compiler
42992 + tmp_addflag=' -nofor_main' ;;
42993 + lf95*) # Lahey Fortran 8.1
42994 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
42995 + tmp_sharedflag='--shared' ;;
42996 + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
42997 + tmp_sharedflag='-qmkshrobj'
42998 + tmp_addflag= ;;
42999 + esac
43000 + case `$CC -V 2>&1 | sed 5q` in
43001 + *Sun\ C*) # Sun C 5.9
43002 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
43003 + _LT_TAGVAR(compiler_needs_object, $1)=yes
43004 + tmp_sharedflag='-G' ;;
43005 + *Sun\ F*) # Sun Fortran 8.3
43006 + tmp_sharedflag='-G' ;;
43007 + esac
43008 + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43009 +
43010 + if test "x$supports_anon_versioning" = xyes; then
43011 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
43012 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
43013 + echo "local: *; };" >> $output_objdir/$libname.ver~
43014 + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
43015 + fi
43016 +
43017 + case $cc_basename in
43018 + xlf*)
43019 + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
43020 + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
43021 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
43022 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
43023 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
43024 + if test "x$supports_anon_versioning" = xyes; then
43025 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
43026 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
43027 + echo "local: *; };" >> $output_objdir/$libname.ver~
43028 + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
43029 + fi
43030 + ;;
43031 + esac
43032 + else
43033 + _LT_TAGVAR(ld_shlibs, $1)=no
43034 + fi
43035 + ;;
43036 +
43037 + netbsd*)
43038 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
43039 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
43040 + wlarc=
43041 + else
43042 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43043 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
43044 + fi
43045 + ;;
43046 +
43047 + solaris*)
43048 + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
43049 + _LT_TAGVAR(ld_shlibs, $1)=no
43050 + cat <<_LT_EOF 1>&2
43051 +
43052 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
43053 +*** create shared libraries on Solaris systems. Therefore, libtool
43054 +*** is disabling shared libraries support. We urge you to upgrade GNU
43055 +*** binutils to release 2.9.1 or newer. Another option is to modify
43056 +*** your PATH or compiler configuration so that the native linker is
43057 +*** used, and then restart.
43058 +
43059 +_LT_EOF
43060 + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
43061 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43062 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
43063 + else
43064 + _LT_TAGVAR(ld_shlibs, $1)=no
43065 + fi
43066 + ;;
43067 +
43068 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
43069 + case `$LD -v 2>&1` in
43070 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
43071 + _LT_TAGVAR(ld_shlibs, $1)=no
43072 + cat <<_LT_EOF 1>&2
43073 +
43074 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
43075 +*** reliably create shared libraries on SCO systems. Therefore, libtool
43076 +*** is disabling shared libraries support. We urge you to upgrade GNU
43077 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
43078 +*** your PATH or compiler configuration so that the native linker is
43079 +*** used, and then restart.
43080 +
43081 +_LT_EOF
43082 + ;;
43083 + *)
43084 + # For security reasons, it is highly recommended that you always
43085 + # use absolute paths for naming shared libraries, and exclude the
43086 + # DT_RUNPATH tag from executables and libraries. But doing so
43087 + # requires that you compile everything twice, which is a pain.
43088 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
43089 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
43090 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43091 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
43092 + else
43093 + _LT_TAGVAR(ld_shlibs, $1)=no
43094 + fi
43095 + ;;
43096 + esac
43097 + ;;
43098 +
43099 + sunos4*)
43100 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
43101 + wlarc=
43102 + _LT_TAGVAR(hardcode_direct, $1)=yes
43103 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43104 + ;;
43105 +
43106 + *)
43107 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
43108 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43109 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
43110 + else
43111 + _LT_TAGVAR(ld_shlibs, $1)=no
43112 + fi
43113 + ;;
43114 + esac
43115 +
43116 + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
43117 + runpath_var=
43118 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
43119 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
43120 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
43121 + fi
43122 + else
43123 + # PORTME fill in a description of your system's linker (not GNU ld)
43124 + case $host_os in
43125 + aix3*)
43126 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
43127 + _LT_TAGVAR(always_export_symbols, $1)=yes
43128 + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
43129 + # Note: this linker hardcodes the directories in LIBPATH if there
43130 + # are no directories specified by -L.
43131 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
43132 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
43133 + # Neither direct hardcoding nor static linking is supported with a
43134 + # broken collect2.
43135 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
43136 + fi
43137 + ;;
43138 +
43139 + aix[[4-9]]*)
43140 + if test "$host_cpu" = ia64; then
43141 + # On IA64, the linker does run time linking by default, so we don't
43142 + # have to do anything special.
43143 + aix_use_runtimelinking=no
43144 + exp_sym_flag='-Bexport'
43145 + no_entry_flag=""
43146 + else
43147 + # If we're using GNU nm, then we don't want the "-C" option.
43148 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
43149 + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43150 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
43151 + else
43152 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
43153 + fi
43154 + aix_use_runtimelinking=no
43155 +
43156 + # Test if we are trying to use run time linking or normal
43157 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
43158 + # need to do runtime linking.
43159 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
43160 + for ld_flag in $LDFLAGS; do
43161 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
43162 + aix_use_runtimelinking=yes
43163 + break
43164 + fi
43165 + done
43166 + ;;
43167 + esac
43168 +
43169 + exp_sym_flag='-bexport'
43170 + no_entry_flag='-bnoentry'
43171 + fi
43172 +
43173 + # When large executables or shared objects are built, AIX ld can
43174 + # have problems creating the table of contents. If linking a library
43175 + # or program results in "error TOC overflow" add -mminimal-toc to
43176 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
43177 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
43178 +
43179 + _LT_TAGVAR(archive_cmds, $1)=''
43180 + _LT_TAGVAR(hardcode_direct, $1)=yes
43181 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
43182 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
43183 + _LT_TAGVAR(link_all_deplibs, $1)=yes
43184 + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
43185 +
43186 + if test "$GCC" = yes; then
43187 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
43188 + # We only want to do this on AIX 4.2 and lower, the check
43189 + # below for broken collect2 doesn't work under 4.3+
43190 + collect2name=`${CC} -print-prog-name=collect2`
43191 + if test -f "$collect2name" &&
43192 + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
43193 + then
43194 + # We have reworked collect2
43195 + :
43196 + else
43197 + # We have old collect2
43198 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
43199 + # It fails to find uninstalled libraries when the uninstalled
43200 + # path is not listed in the libpath. Setting hardcode_minus_L
43201 + # to unsupported forces relinking
43202 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
43203 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
43204 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
43205 + fi
43206 + ;;
43207 + esac
43208 + shared_flag='-shared'
43209 + if test "$aix_use_runtimelinking" = yes; then
43210 + shared_flag="$shared_flag "'${wl}-G'
43211 + fi
43212 + else
43213 + # not using gcc
43214 + if test "$host_cpu" = ia64; then
43215 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
43216 + # chokes on -Wl,-G. The following line is correct:
43217 + shared_flag='-G'
43218 + else
43219 + if test "$aix_use_runtimelinking" = yes; then
43220 + shared_flag='${wl}-G'
43221 + else
43222 + shared_flag='${wl}-bM:SRE'
43223 + fi
43224 + fi
43225 + fi
43226 +
43227 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
43228 + # It seems that -bexpall does not export symbols beginning with
43229 + # underscore (_), so it is better to generate a list of symbols to export.
43230 + _LT_TAGVAR(always_export_symbols, $1)=yes
43231 + if test "$aix_use_runtimelinking" = yes; then
43232 + # Warning - without using the other runtime loading flags (-brtl),
43233 + # -berok will link without error, but may produce a broken library.
43234 + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
43235 + # Determine the default libpath from the value encoded in an
43236 + # empty executable.
43237 + _LT_SYS_MODULE_PATH_AIX
43238 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
43239 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
43240 + else
43241 + if test "$host_cpu" = ia64; then
43242 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
43243 + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
43244 + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
43245 + else
43246 + # Determine the default libpath from the value encoded in an
43247 + # empty executable.
43248 + _LT_SYS_MODULE_PATH_AIX
43249 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
43250 + # Warning - without using the other run time loading flags,
43251 + # -berok will link without error, but may produce a broken library.
43252 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
43253 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
43254 + # Exported symbols can be pulled into shared objects from archives
43255 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
43256 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
43257 + # This is similar to how AIX traditionally builds its shared libraries.
43258 + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
43259 + fi
43260 + fi
43261 + ;;
43262 +
43263 + amigaos*)
43264 + case $host_cpu in
43265 + powerpc)
43266 + # see comment about AmigaOS4 .so support
43267 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43268 + _LT_TAGVAR(archive_expsym_cmds, $1)=''
43269 + ;;
43270 + m68k)
43271 + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
43272 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
43273 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
43274 + ;;
43275 + esac
43276 + ;;
43277 +
43278 + bsdi[[45]]*)
43279 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
43280 + ;;
43281 +
43282 + cygwin* | mingw* | pw32* | cegcc*)
43283 + # When not using gcc, we currently assume that we are using
43284 + # Microsoft Visual C++.
43285 + # hardcode_libdir_flag_spec is actually meaningless, as there is
43286 + # no search path for DLLs.
43287 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
43288 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
43289 + # Tell ltmain to make .lib files, not .a files.
43290 + libext=lib
43291 + # Tell ltmain to make .dll files, not .so files.
43292 + shrext_cmds=".dll"
43293 + # FIXME: Setting linknames here is a bad hack.
43294 + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
43295 + # The linker will automatically build a .lib file if we build a DLL.
43296 + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
43297 + # FIXME: Should let the user specify the lib program.
43298 + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
43299 + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
43300 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
43301 + ;;
43302 +
43303 + darwin* | rhapsody*)
43304 + _LT_DARWIN_LINKER_FEATURES($1)
43305 + ;;
43306 +
43307 + dgux*)
43308 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43309 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
43310 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43311 + ;;
43312 +
43313 + freebsd1*)
43314 + _LT_TAGVAR(ld_shlibs, $1)=no
43315 + ;;
43316 +
43317 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
43318 + # support. Future versions do this automatically, but an explicit c++rt0.o
43319 + # does not break anything, and helps significantly (at the cost of a little
43320 + # extra space).
43321 + freebsd2.2*)
43322 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
43323 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
43324 + _LT_TAGVAR(hardcode_direct, $1)=yes
43325 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43326 + ;;
43327 +
43328 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
43329 + freebsd2*)
43330 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
43331 + _LT_TAGVAR(hardcode_direct, $1)=yes
43332 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
43333 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43334 + ;;
43335 +
43336 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
43337 + freebsd* | dragonfly*)
43338 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
43339 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
43340 + _LT_TAGVAR(hardcode_direct, $1)=yes
43341 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43342 + ;;
43343 +
43344 + hpux9*)
43345 + if test "$GCC" = yes; then
43346 + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
43347 + else
43348 + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
43349 + fi
43350 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
43351 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
43352 + _LT_TAGVAR(hardcode_direct, $1)=yes
43353 +
43354 + # hardcode_minus_L: Not really in the search PATH,
43355 + # but as the default location of the library.
43356 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
43357 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
43358 + ;;
43359 +
43360 + hpux10*)
43361 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
43362 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
43363 + else
43364 + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
43365 + fi
43366 + if test "$with_gnu_ld" = no; then
43367 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
43368 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
43369 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
43370 + _LT_TAGVAR(hardcode_direct, $1)=yes
43371 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
43372 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
43373 + # hardcode_minus_L: Not really in the search PATH,
43374 + # but as the default location of the library.
43375 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
43376 + fi
43377 + ;;
43378 +
43379 + hpux11*)
43380 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
43381 + case $host_cpu in
43382 + hppa*64*)
43383 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43384 + ;;
43385 + ia64*)
43386 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
43387 + ;;
43388 + *)
43389 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
43390 + ;;
43391 + esac
43392 + else
43393 + case $host_cpu in
43394 + hppa*64*)
43395 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43396 + ;;
43397 + ia64*)
43398 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
43399 + ;;
43400 + *)
43401 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
43402 + ;;
43403 + esac
43404 + fi
43405 + if test "$with_gnu_ld" = no; then
43406 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
43407 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
43408 +
43409 + case $host_cpu in
43410 + hppa*64*|ia64*)
43411 + _LT_TAGVAR(hardcode_direct, $1)=no
43412 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43413 + ;;
43414 + *)
43415 + _LT_TAGVAR(hardcode_direct, $1)=yes
43416 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
43417 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
43418 +
43419 + # hardcode_minus_L: Not really in the search PATH,
43420 + # but as the default location of the library.
43421 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
43422 + ;;
43423 + esac
43424 + fi
43425 + ;;
43426 +
43427 + irix5* | irix6* | nonstopux*)
43428 + if test "$GCC" = yes; then
43429 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
43430 + # Try to use the -exported_symbol ld option, if it does not
43431 + # work, assume that -exports_file does not work either and
43432 + # implicitly export all symbols.
43433 + save_LDFLAGS="$LDFLAGS"
43434 + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
43435 + AC_LINK_IFELSE(int foo(void) {},
43436 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
43437 + )
43438 + LDFLAGS="$save_LDFLAGS"
43439 + else
43440 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
43441 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
43442 + fi
43443 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
43444 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
43445 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
43446 + _LT_TAGVAR(inherit_rpath, $1)=yes
43447 + _LT_TAGVAR(link_all_deplibs, $1)=yes
43448 + ;;
43449 +
43450 + netbsd*)
43451 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
43452 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
43453 + else
43454 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
43455 + fi
43456 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
43457 + _LT_TAGVAR(hardcode_direct, $1)=yes
43458 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43459 + ;;
43460 +
43461 + newsos6)
43462 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43463 + _LT_TAGVAR(hardcode_direct, $1)=yes
43464 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
43465 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
43466 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43467 + ;;
43468 +
43469 + *nto* | *qnx*)
43470 + ;;
43471 +
43472 + openbsd*)
43473 + if test -f /usr/libexec/ld.so; then
43474 + _LT_TAGVAR(hardcode_direct, $1)=yes
43475 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43476 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
43477 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
43478 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
43479 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
43480 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
43481 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
43482 + else
43483 + case $host_os in
43484 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
43485 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
43486 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
43487 + ;;
43488 + *)
43489 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
43490 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
43491 + ;;
43492 + esac
43493 + fi
43494 + else
43495 + _LT_TAGVAR(ld_shlibs, $1)=no
43496 + fi
43497 + ;;
43498 +
43499 + os2*)
43500 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
43501 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
43502 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
43503 + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
43504 + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
43505 + ;;
43506 +
43507 + osf3*)
43508 + if test "$GCC" = yes; then
43509 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
43510 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
43511 + else
43512 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
43513 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
43514 + fi
43515 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
43516 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
43517 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
43518 + ;;
43519 +
43520 + osf4* | osf5*) # as osf3* with the addition of -msym flag
43521 + if test "$GCC" = yes; then
43522 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
43523 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
43524 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
43525 + else
43526 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
43527 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
43528 + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
43529 + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
43530 +
43531 + # Both c and cxx compiler support -rpath directly
43532 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
43533 + fi
43534 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
43535 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
43536 + ;;
43537 +
43538 + solaris*)
43539 + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
43540 + if test "$GCC" = yes; then
43541 + wlarc='${wl}'
43542 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43543 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
43544 + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
43545 + else
43546 + case `$CC -V 2>&1` in
43547 + *"Compilers 5.0"*)
43548 + wlarc=''
43549 + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
43550 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
43551 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
43552 + ;;
43553 + *)
43554 + wlarc='${wl}'
43555 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
43556 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
43557 + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
43558 + ;;
43559 + esac
43560 + fi
43561 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
43562 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43563 + case $host_os in
43564 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
43565 + *)
43566 + # The compiler driver will combine and reorder linker options,
43567 + # but understands `-z linker_flag'. GCC discards it without `$wl',
43568 + # but is careful enough not to reorder.
43569 + # Supported since Solaris 2.6 (maybe 2.5.1?)
43570 + if test "$GCC" = yes; then
43571 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
43572 + else
43573 + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
43574 + fi
43575 + ;;
43576 + esac
43577 + _LT_TAGVAR(link_all_deplibs, $1)=yes
43578 + ;;
43579 +
43580 + sunos4*)
43581 + if test "x$host_vendor" = xsequent; then
43582 + # Use $CC to link under sequent, because it throws in some extra .o
43583 + # files that make .init and .fini sections work.
43584 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
43585 + else
43586 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
43587 + fi
43588 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
43589 + _LT_TAGVAR(hardcode_direct, $1)=yes
43590 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
43591 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43592 + ;;
43593 +
43594 + sysv4)
43595 + case $host_vendor in
43596 + sni)
43597 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43598 + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
43599 + ;;
43600 + siemens)
43601 + ## LD is ld it makes a PLAMLIB
43602 + ## CC just makes a GrossModule.
43603 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
43604 + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
43605 + _LT_TAGVAR(hardcode_direct, $1)=no
43606 + ;;
43607 + motorola)
43608 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43609 + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
43610 + ;;
43611 + esac
43612 + runpath_var='LD_RUN_PATH'
43613 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43614 + ;;
43615 +
43616 + sysv4.3*)
43617 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43618 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43619 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
43620 + ;;
43621 +
43622 + sysv4*MP*)
43623 + if test -d /usr/nec; then
43624 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43625 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43626 + runpath_var=LD_RUN_PATH
43627 + hardcode_runpath_var=yes
43628 + _LT_TAGVAR(ld_shlibs, $1)=yes
43629 + fi
43630 + ;;
43631 +
43632 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
43633 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
43634 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
43635 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43636 + runpath_var='LD_RUN_PATH'
43637 +
43638 + if test "$GCC" = yes; then
43639 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43640 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43641 + else
43642 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43643 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43644 + fi
43645 + ;;
43646 +
43647 + sysv5* | sco3.2v5* | sco5v6*)
43648 + # Note: We can NOT use -z defs as we might desire, because we do not
43649 + # link with -lc, and that would cause any symbols used from libc to
43650 + # always be unresolved, which means just about no library would
43651 + # ever link correctly. If we're not using GNU ld we use -z text
43652 + # though, which does catch some bad symbols but isn't as heavy-handed
43653 + # as -z defs.
43654 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
43655 + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
43656 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
43657 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43658 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
43659 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
43660 + _LT_TAGVAR(link_all_deplibs, $1)=yes
43661 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
43662 + runpath_var='LD_RUN_PATH'
43663 +
43664 + if test "$GCC" = yes; then
43665 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43666 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43667 + else
43668 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43669 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43670 + fi
43671 + ;;
43672 +
43673 + uts4*)
43674 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43675 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
43676 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43677 + ;;
43678 +
43679 + *)
43680 + _LT_TAGVAR(ld_shlibs, $1)=no
43681 + ;;
43682 + esac
43683 +
43684 + if test x$host_vendor = xsni; then
43685 + case $host in
43686 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
43687 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
43688 + ;;
43689 + esac
43690 + fi
43691 + fi
43692 +])
43693 +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
43694 +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
43695 +
43696 +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
43697 +
43698 +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
43699 +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
43700 +_LT_DECL([], [extract_expsyms_cmds], [2],
43701 + [The commands to extract the exported symbol list from a shared archive])
43702 +
43703 +#
43704 +# Do we need to explicitly link libc?
43705 +#
43706 +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
43707 +x|xyes)
43708 + # Assume -lc should be added
43709 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
43710 +
43711 + if test "$enable_shared" = yes && test "$GCC" = yes; then
43712 + case $_LT_TAGVAR(archive_cmds, $1) in
43713 + *'~'*)
43714 + # FIXME: we may have to deal with multi-command sequences.
43715 + ;;
43716 + '$CC '*)
43717 + # Test whether the compiler implicitly links with -lc since on some
43718 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
43719 + # to ld, don't add -lc before -lgcc.
43720 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
43721 + $RM conftest*
43722 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
43723 +
43724 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
43725 + soname=conftest
43726 + lib=conftest
43727 + libobjs=conftest.$ac_objext
43728 + deplibs=
43729 + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
43730 + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
43731 + compiler_flags=-v
43732 + linker_flags=-v
43733 + verstring=
43734 + output_objdir=.
43735 + libname=conftest
43736 + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
43737 + _LT_TAGVAR(allow_undefined_flag, $1)=
43738 + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
43739 + then
43740 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
43741 + else
43742 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
43743 + fi
43744 + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
43745 + else
43746 + cat conftest.err 1>&5
43747 + fi
43748 + $RM conftest*
43749 + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
43750 + ;;
43751 + esac
43752 + fi
43753 + ;;
43754 +esac
43755 +
43756 +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
43757 + [Whether or not to add -lc for building shared libraries])
43758 +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
43759 + [enable_shared_with_static_runtimes], [0],
43760 + [Whether or not to disallow shared libs when runtime libs are static])
43761 +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
43762 + [Compiler flag to allow reflexive dlopens])
43763 +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
43764 + [Compiler flag to generate shared objects directly from archives])
43765 +_LT_TAGDECL([], [compiler_needs_object], [1],
43766 + [Whether the compiler copes with passing no objects directly])
43767 +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
43768 + [Create an old-style archive from a shared archive])
43769 +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
43770 + [Create a temporary old-style archive to link instead of a shared archive])
43771 +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
43772 +_LT_TAGDECL([], [archive_expsym_cmds], [2])
43773 +_LT_TAGDECL([], [module_cmds], [2],
43774 + [Commands used to build a loadable module if different from building
43775 + a shared archive.])
43776 +_LT_TAGDECL([], [module_expsym_cmds], [2])
43777 +_LT_TAGDECL([], [with_gnu_ld], [1],
43778 + [Whether we are building with GNU ld or not])
43779 +_LT_TAGDECL([], [allow_undefined_flag], [1],
43780 + [Flag that allows shared libraries with undefined symbols to be built])
43781 +_LT_TAGDECL([], [no_undefined_flag], [1],
43782 + [Flag that enforces no undefined symbols])
43783 +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
43784 + [Flag to hardcode $libdir into a binary during linking.
43785 + This must work even if $libdir does not exist])
43786 +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
43787 + [[If ld is used when linking, flag to hardcode $libdir into a binary
43788 + during linking. This must work even if $libdir does not exist]])
43789 +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
43790 + [Whether we need a single "-rpath" flag with a separated argument])
43791 +_LT_TAGDECL([], [hardcode_direct], [0],
43792 + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
43793 + DIR into the resulting binary])
43794 +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
43795 + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
43796 + DIR into the resulting binary and the resulting library dependency is
43797 + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
43798 + library is relocated])
43799 +_LT_TAGDECL([], [hardcode_minus_L], [0],
43800 + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43801 + into the resulting binary])
43802 +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
43803 + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43804 + into the resulting binary])
43805 +_LT_TAGDECL([], [hardcode_automatic], [0],
43806 + [Set to "yes" if building a shared library automatically hardcodes DIR
43807 + into the library and all subsequent libraries and executables linked
43808 + against it])
43809 +_LT_TAGDECL([], [inherit_rpath], [0],
43810 + [Set to yes if linker adds runtime paths of dependent libraries
43811 + to runtime path list])
43812 +_LT_TAGDECL([], [link_all_deplibs], [0],
43813 + [Whether libtool must link a program against all its dependency libraries])
43814 +_LT_TAGDECL([], [fix_srcfile_path], [1],
43815 + [Fix the shell variable $srcfile for the compiler])
43816 +_LT_TAGDECL([], [always_export_symbols], [0],
43817 + [Set to "yes" if exported symbols are required])
43818 +_LT_TAGDECL([], [export_symbols_cmds], [2],
43819 + [The commands to list exported symbols])
43820 +_LT_TAGDECL([], [exclude_expsyms], [1],
43821 + [Symbols that should not be listed in the preloaded symbols])
43822 +_LT_TAGDECL([], [include_expsyms], [1],
43823 + [Symbols that must always be exported])
43824 +_LT_TAGDECL([], [prelink_cmds], [2],
43825 + [Commands necessary for linking programs (against libraries) with templates])
43826 +_LT_TAGDECL([], [file_list_spec], [1],
43827 + [Specify filename containing input files])
43828 +dnl FIXME: Not yet implemented
43829 +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
43830 +dnl [Compiler flag to generate thread safe objects])
43831 +])# _LT_LINKER_SHLIBS
43832 +
43833 +
43834 +# _LT_LANG_C_CONFIG([TAG])
43835 +# ------------------------
43836 +# Ensure that the configuration variables for a C compiler are suitably
43837 +# defined. These variables are subsequently used by _LT_CONFIG to write
43838 +# the compiler configuration to `libtool'.
43839 +m4_defun([_LT_LANG_C_CONFIG],
43840 +[m4_require([_LT_DECL_EGREP])dnl
43841 +lt_save_CC="$CC"
43842 +AC_LANG_PUSH(C)
43843 +
43844 +# Source file extension for C test sources.
43845 +ac_ext=c
43846 +
43847 +# Object file extension for compiled C test sources.
43848 +objext=o
43849 +_LT_TAGVAR(objext, $1)=$objext
43850 +
43851 +# Code to be used in simple compile tests
43852 +lt_simple_compile_test_code="int some_variable = 0;"
43853 +
43854 +# Code to be used in simple link tests
43855 +lt_simple_link_test_code='int main(){return(0);}'
43856 +
43857 +_LT_TAG_COMPILER
43858 +# Save the default compiler, since it gets overwritten when the other
43859 +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
43860 +compiler_DEFAULT=$CC
43861 +
43862 +# save warnings/boilerplate of simple test code
43863 +_LT_COMPILER_BOILERPLATE
43864 +_LT_LINKER_BOILERPLATE
43865 +
43866 +## CAVEAT EMPTOR:
43867 +## There is no encapsulation within the following macros, do not change
43868 +## the running order or otherwise move them around unless you know exactly
43869 +## what you are doing...
43870 +if test -n "$compiler"; then
43871 + _LT_COMPILER_NO_RTTI($1)
43872 + _LT_COMPILER_PIC($1)
43873 + _LT_COMPILER_C_O($1)
43874 + _LT_COMPILER_FILE_LOCKS($1)
43875 + _LT_LINKER_SHLIBS($1)
43876 + _LT_SYS_DYNAMIC_LINKER($1)
43877 + _LT_LINKER_HARDCODE_LIBPATH($1)
43878 + LT_SYS_DLOPEN_SELF
43879 + _LT_CMD_STRIPLIB
43880 +
43881 + # Report which library types will actually be built
43882 + AC_MSG_CHECKING([if libtool supports shared libraries])
43883 + AC_MSG_RESULT([$can_build_shared])
43884 +
43885 + AC_MSG_CHECKING([whether to build shared libraries])
43886 + test "$can_build_shared" = "no" && enable_shared=no
43887 +
43888 + # On AIX, shared libraries and static libraries use the same namespace, and
43889 + # are all built from PIC.
43890 + case $host_os in
43891 + aix3*)
43892 + test "$enable_shared" = yes && enable_static=no
43893 + if test -n "$RANLIB"; then
43894 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
43895 + postinstall_cmds='$RANLIB $lib'
43896 + fi
43897 + ;;
43898 +
43899 + aix[[4-9]]*)
43900 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
43901 + test "$enable_shared" = yes && enable_static=no
43902 + fi
43903 + ;;
43904 + esac
43905 + AC_MSG_RESULT([$enable_shared])
43906 +
43907 + AC_MSG_CHECKING([whether to build static libraries])
43908 + # Make sure either enable_shared or enable_static is yes.
43909 + test "$enable_shared" = yes || enable_static=yes
43910 + AC_MSG_RESULT([$enable_static])
43911 +
43912 + _LT_CONFIG($1)
43913 +fi
43914 +AC_LANG_POP
43915 +CC="$lt_save_CC"
43916 +])# _LT_LANG_C_CONFIG
43917 +
43918 +
43919 +# _LT_PROG_CXX
43920 +# ------------
43921 +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
43922 +# compiler, we have our own version here.
43923 +m4_defun([_LT_PROG_CXX],
43924 +[
43925 +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
43926 +AC_PROG_CXX
43927 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
43928 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
43929 + (test "X$CXX" != "Xg++"))) ; then
43930 + AC_PROG_CXXCPP
43931 +else
43932 + _lt_caught_CXX_error=yes
43933 +fi
43934 +popdef([AC_MSG_ERROR])
43935 +])# _LT_PROG_CXX
43936 +
43937 +dnl aclocal-1.4 backwards compatibility:
43938 +dnl AC_DEFUN([_LT_PROG_CXX], [])
43939 +
43940 +
43941 +# _LT_LANG_CXX_CONFIG([TAG])
43942 +# --------------------------
43943 +# Ensure that the configuration variables for a C++ compiler are suitably
43944 +# defined. These variables are subsequently used by _LT_CONFIG to write
43945 +# the compiler configuration to `libtool'.
43946 +m4_defun([_LT_LANG_CXX_CONFIG],
43947 +[AC_REQUIRE([_LT_PROG_CXX])dnl
43948 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
43949 +m4_require([_LT_DECL_EGREP])dnl
43950 +
43951 +AC_LANG_PUSH(C++)
43952 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
43953 +_LT_TAGVAR(allow_undefined_flag, $1)=
43954 +_LT_TAGVAR(always_export_symbols, $1)=no
43955 +_LT_TAGVAR(archive_expsym_cmds, $1)=
43956 +_LT_TAGVAR(compiler_needs_object, $1)=no
43957 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
43958 +_LT_TAGVAR(hardcode_direct, $1)=no
43959 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
43960 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
43961 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
43962 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
43963 +_LT_TAGVAR(hardcode_minus_L, $1)=no
43964 +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
43965 +_LT_TAGVAR(hardcode_automatic, $1)=no
43966 +_LT_TAGVAR(inherit_rpath, $1)=no
43967 +_LT_TAGVAR(module_cmds, $1)=
43968 +_LT_TAGVAR(module_expsym_cmds, $1)=
43969 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
43970 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
43971 +_LT_TAGVAR(no_undefined_flag, $1)=
43972 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
43973 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
43974 +
43975 +# Source file extension for C++ test sources.
43976 +ac_ext=cpp
43977 +
43978 +# Object file extension for compiled C++ test sources.
43979 +objext=o
43980 +_LT_TAGVAR(objext, $1)=$objext
43981 +
43982 +# No sense in running all these tests if we already determined that
43983 +# the CXX compiler isn't working. Some variables (like enable_shared)
43984 +# are currently assumed to apply to all compilers on this platform,
43985 +# and will be corrupted by setting them based on a non-working compiler.
43986 +if test "$_lt_caught_CXX_error" != yes; then
43987 + # Code to be used in simple compile tests
43988 + lt_simple_compile_test_code="int some_variable = 0;"
43989 +
43990 + # Code to be used in simple link tests
43991 + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
43992 +
43993 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
43994 + _LT_TAG_COMPILER
43995 +
43996 + # save warnings/boilerplate of simple test code
43997 + _LT_COMPILER_BOILERPLATE
43998 + _LT_LINKER_BOILERPLATE
43999 +
44000 + # Allow CC to be a program name with arguments.
44001 + lt_save_CC=$CC
44002 + lt_save_LD=$LD
44003 + lt_save_GCC=$GCC
44004 + GCC=$GXX
44005 + lt_save_with_gnu_ld=$with_gnu_ld
44006 + lt_save_path_LD=$lt_cv_path_LD
44007 + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
44008 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
44009 + else
44010 + $as_unset lt_cv_prog_gnu_ld
44011 + fi
44012 + if test -n "${lt_cv_path_LDCXX+set}"; then
44013 + lt_cv_path_LD=$lt_cv_path_LDCXX
44014 + else
44015 + $as_unset lt_cv_path_LD
44016 + fi
44017 + test -z "${LDCXX+set}" || LD=$LDCXX
44018 + CC=${CXX-"c++"}
44019 + compiler=$CC
44020 + _LT_TAGVAR(compiler, $1)=$CC
44021 + _LT_CC_BASENAME([$compiler])
44022 +
44023 + if test -n "$compiler"; then
44024 + # We don't want -fno-exception when compiling C++ code, so set the
44025 + # no_builtin_flag separately
44026 + if test "$GXX" = yes; then
44027 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
44028 + else
44029 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
44030 + fi
44031 +
44032 + if test "$GXX" = yes; then
44033 + # Set up default GNU C++ configuration
44034 +
44035 + LT_PATH_LD
44036 +
44037 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
44038 + # archiving commands below assume that GNU ld is being used.
44039 + if test "$with_gnu_ld" = yes; then
44040 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
44041 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
44042 +
44043 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
44044 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
44045 +
44046 + # If archive_cmds runs LD, not CC, wlarc should be empty
44047 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
44048 + # investigate it a little bit more. (MM)
44049 + wlarc='${wl}'
44050 +
44051 + # ancient GNU ld didn't support --whole-archive et. al.
44052 + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
44053 + $GREP 'no-whole-archive' > /dev/null; then
44054 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
44055 + else
44056 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
44057 + fi
44058 + else
44059 + with_gnu_ld=no
44060 + wlarc=
44061 +
44062 + # A generic and very simple default shared library creation
44063 + # command for GNU C++ for the case where it uses the native
44064 + # linker, instead of GNU ld. If possible, this setting should
44065 + # overridden to take advantage of the native linker features on
44066 + # the platform it is being used on.
44067 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
44068 + fi
44069 +
44070 + # Commands to make compiler produce verbose output that lists
44071 + # what "hidden" libraries, object files and flags are used when
44072 + # linking a shared library.
44073 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
44074 +
44075 + else
44076 + GXX=no
44077 + with_gnu_ld=no
44078 + wlarc=
44079 + fi
44080 +
44081 + # PORTME: fill in a description of your system's C++ link characteristics
44082 + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
44083 + _LT_TAGVAR(ld_shlibs, $1)=yes
44084 + case $host_os in
44085 + aix3*)
44086 + # FIXME: insert proper C++ library support
44087 + _LT_TAGVAR(ld_shlibs, $1)=no
44088 + ;;
44089 + aix[[4-9]]*)
44090 + if test "$host_cpu" = ia64; then
44091 + # On IA64, the linker does run time linking by default, so we don't
44092 + # have to do anything special.
44093 + aix_use_runtimelinking=no
44094 + exp_sym_flag='-Bexport'
44095 + no_entry_flag=""
44096 + else
44097 + aix_use_runtimelinking=no
44098 +
44099 + # Test if we are trying to use run time linking or normal
44100 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
44101 + # need to do runtime linking.
44102 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
44103 + for ld_flag in $LDFLAGS; do
44104 + case $ld_flag in
44105 + *-brtl*)
44106 + aix_use_runtimelinking=yes
44107 + break
44108 + ;;
44109 + esac
44110 + done
44111 + ;;
44112 + esac
44113 +
44114 + exp_sym_flag='-bexport'
44115 + no_entry_flag='-bnoentry'
44116 + fi
44117 +
44118 + # When large executables or shared objects are built, AIX ld can
44119 + # have problems creating the table of contents. If linking a library
44120 + # or program results in "error TOC overflow" add -mminimal-toc to
44121 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
44122 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
44123 +
44124 + _LT_TAGVAR(archive_cmds, $1)=''
44125 + _LT_TAGVAR(hardcode_direct, $1)=yes
44126 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
44127 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
44128 + _LT_TAGVAR(link_all_deplibs, $1)=yes
44129 + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
44130 +
44131 + if test "$GXX" = yes; then
44132 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
44133 + # We only want to do this on AIX 4.2 and lower, the check
44134 + # below for broken collect2 doesn't work under 4.3+
44135 + collect2name=`${CC} -print-prog-name=collect2`
44136 + if test -f "$collect2name" &&
44137 + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
44138 + then
44139 + # We have reworked collect2
44140 + :
44141 + else
44142 + # We have old collect2
44143 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
44144 + # It fails to find uninstalled libraries when the uninstalled
44145 + # path is not listed in the libpath. Setting hardcode_minus_L
44146 + # to unsupported forces relinking
44147 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
44148 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
44149 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
44150 + fi
44151 + esac
44152 + shared_flag='-shared'
44153 + if test "$aix_use_runtimelinking" = yes; then
44154 + shared_flag="$shared_flag "'${wl}-G'
44155 + fi
44156 + else
44157 + # not using gcc
44158 + if test "$host_cpu" = ia64; then
44159 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
44160 + # chokes on -Wl,-G. The following line is correct:
44161 + shared_flag='-G'
44162 + else
44163 + if test "$aix_use_runtimelinking" = yes; then
44164 + shared_flag='${wl}-G'
44165 + else
44166 + shared_flag='${wl}-bM:SRE'
44167 + fi
44168 + fi
44169 + fi
44170 +
44171 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
44172 + # It seems that -bexpall does not export symbols beginning with
44173 + # underscore (_), so it is better to generate a list of symbols to
44174 + # export.
44175 + _LT_TAGVAR(always_export_symbols, $1)=yes
44176 + if test "$aix_use_runtimelinking" = yes; then
44177 + # Warning - without using the other runtime loading flags (-brtl),
44178 + # -berok will link without error, but may produce a broken library.
44179 + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
44180 + # Determine the default libpath from the value encoded in an empty
44181 + # executable.
44182 + _LT_SYS_MODULE_PATH_AIX
44183 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
44184 +
44185 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
44186 + else
44187 + if test "$host_cpu" = ia64; then
44188 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
44189 + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
44190 + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
44191 + else
44192 + # Determine the default libpath from the value encoded in an
44193 + # empty executable.
44194 + _LT_SYS_MODULE_PATH_AIX
44195 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
44196 + # Warning - without using the other run time loading flags,
44197 + # -berok will link without error, but may produce a broken library.
44198 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
44199 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
44200 + # Exported symbols can be pulled into shared objects from archives
44201 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
44202 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
44203 + # This is similar to how AIX traditionally builds its shared
44204 + # libraries.
44205 + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
44206 + fi
44207 + fi
44208 + ;;
44209 +
44210 + beos*)
44211 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
44212 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
44213 + # Joseph Beckenbach <[email protected]> says some releases of gcc
44214 + # support --undefined. This deserves some investigation. FIXME
44215 + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
44216 + else
44217 + _LT_TAGVAR(ld_shlibs, $1)=no
44218 + fi
44219 + ;;
44220 +
44221 + chorus*)
44222 + case $cc_basename in
44223 + *)
44224 + # FIXME: insert proper C++ library support
44225 + _LT_TAGVAR(ld_shlibs, $1)=no
44226 + ;;
44227 + esac
44228 + ;;
44229 +
44230 + cygwin* | mingw* | pw32* | cegcc*)
44231 + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
44232 + # as there is no search path for DLLs.
44233 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
44234 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
44235 + _LT_TAGVAR(always_export_symbols, $1)=no
44236 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
44237 +
44238 + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
44239 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
44240 + # If the export-symbols file already is a .def file (1st line
44241 + # is EXPORTS), use it as is; otherwise, prepend...
44242 + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
44243 + cp $export_symbols $output_objdir/$soname.def;
44244 + else
44245 + echo EXPORTS > $output_objdir/$soname.def;
44246 + cat $export_symbols >> $output_objdir/$soname.def;
44247 + fi~
44248 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
44249 + else
44250 + _LT_TAGVAR(ld_shlibs, $1)=no
44251 + fi
44252 + ;;
44253 + darwin* | rhapsody*)
44254 + _LT_DARWIN_LINKER_FEATURES($1)
44255 + ;;
44256 +
44257 + dgux*)
44258 + case $cc_basename in
44259 + ec++*)
44260 + # FIXME: insert proper C++ library support
44261 + _LT_TAGVAR(ld_shlibs, $1)=no
44262 + ;;
44263 + ghcx*)
44264 + # Green Hills C++ Compiler
44265 + # FIXME: insert proper C++ library support
44266 + _LT_TAGVAR(ld_shlibs, $1)=no
44267 + ;;
44268 + *)
44269 + # FIXME: insert proper C++ library support
44270 + _LT_TAGVAR(ld_shlibs, $1)=no
44271 + ;;
44272 + esac
44273 + ;;
44274 +
44275 + freebsd[[12]]*)
44276 + # C++ shared libraries reported to be fairly broken before
44277 + # switch to ELF
44278 + _LT_TAGVAR(ld_shlibs, $1)=no
44279 + ;;
44280 +
44281 + freebsd-elf*)
44282 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
44283 + ;;
44284 +
44285 + freebsd* | dragonfly*)
44286 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
44287 + # conventions
44288 + _LT_TAGVAR(ld_shlibs, $1)=yes
44289 + ;;
44290 +
44291 + gnu*)
44292 + ;;
44293 +
44294 + hpux9*)
44295 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
44296 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
44297 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
44298 + _LT_TAGVAR(hardcode_direct, $1)=yes
44299 + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
44300 + # but as the default
44301 + # location of the library.
44302 +
44303 + case $cc_basename in
44304 + CC*)
44305 + # FIXME: insert proper C++ library support
44306 + _LT_TAGVAR(ld_shlibs, $1)=no
44307 + ;;
44308 + aCC*)
44309 + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
44310 + # Commands to make compiler produce verbose output that lists
44311 + # what "hidden" libraries, object files and flags are used when
44312 + # linking a shared library.
44313 + #
44314 + # There doesn't appear to be a way to prevent this compiler from
44315 + # explicitly linking system object files so we need to strip them
44316 + # from the output so that they don't get included in the library
44317 + # dependencies.
44318 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
44319 + ;;
44320 + *)
44321 + if test "$GXX" = yes; then
44322 + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
44323 + else
44324 + # FIXME: insert proper C++ library support
44325 + _LT_TAGVAR(ld_shlibs, $1)=no
44326 + fi
44327 + ;;
44328 + esac
44329 + ;;
44330 +
44331 + hpux10*|hpux11*)
44332 + if test $with_gnu_ld = no; then
44333 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
44334 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
44335 +
44336 + case $host_cpu in
44337 + hppa*64*|ia64*)
44338 + ;;
44339 + *)
44340 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
44341 + ;;
44342 + esac
44343 + fi
44344 + case $host_cpu in
44345 + hppa*64*|ia64*)
44346 + _LT_TAGVAR(hardcode_direct, $1)=no
44347 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
44348 + ;;
44349 + *)
44350 + _LT_TAGVAR(hardcode_direct, $1)=yes
44351 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
44352 + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
44353 + # but as the default
44354 + # location of the library.
44355 + ;;
44356 + esac
44357 +
44358 + case $cc_basename in
44359 + CC*)
44360 + # FIXME: insert proper C++ library support
44361 + _LT_TAGVAR(ld_shlibs, $1)=no
44362 + ;;
44363 + aCC*)
44364 + case $host_cpu in
44365 + hppa*64*)
44366 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
44367 + ;;
44368 + ia64*)
44369 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
44370 + ;;
44371 + *)
44372 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
44373 + ;;
44374 + esac
44375 + # Commands to make compiler produce verbose output that lists
44376 + # what "hidden" libraries, object files and flags are used when
44377 + # linking a shared library.
44378 + #
44379 + # There doesn't appear to be a way to prevent this compiler from
44380 + # explicitly linking system object files so we need to strip them
44381 + # from the output so that they don't get included in the library
44382 + # dependencies.
44383 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
44384 + ;;
44385 + *)
44386 + if test "$GXX" = yes; then
44387 + if test $with_gnu_ld = no; then
44388 + case $host_cpu in
44389 + hppa*64*)
44390 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
44391 + ;;
44392 + ia64*)
44393 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
44394 + ;;
44395 + *)
44396 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
44397 + ;;
44398 + esac
44399 + fi
44400 + else
44401 + # FIXME: insert proper C++ library support
44402 + _LT_TAGVAR(ld_shlibs, $1)=no
44403 + fi
44404 + ;;
44405 + esac
44406 + ;;
44407 +
44408 + interix[[3-9]]*)
44409 + _LT_TAGVAR(hardcode_direct, $1)=no
44410 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
44411 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
44412 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
44413 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
44414 + # Instead, shared libraries are loaded at an image base (0x10000000 by
44415 + # default) and relocated if they conflict, which is a slow very memory
44416 + # consuming and fragmenting process. To avoid this, we pick a random,
44417 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
44418 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
44419 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
44420 + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
44421 + ;;
44422 + irix5* | irix6*)
44423 + case $cc_basename in
44424 + CC*)
44425 + # SGI C++
44426 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
44427 +
44428 + # Archives containing C++ object files must be created using
44429 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
44430 + # necessary to make sure instantiated templates are included
44431 + # in the archive.
44432 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
44433 + ;;
44434 + *)
44435 + if test "$GXX" = yes; then
44436 + if test "$with_gnu_ld" = no; then
44437 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
44438 + else
44439 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
44440 + fi
44441 + fi
44442 + _LT_TAGVAR(link_all_deplibs, $1)=yes
44443 + ;;
44444 + esac
44445 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
44446 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
44447 + _LT_TAGVAR(inherit_rpath, $1)=yes
44448 + ;;
44449 +
44450 + linux* | k*bsd*-gnu)
44451 + case $cc_basename in
44452 + KCC*)
44453 + # Kuck and Associates, Inc. (KAI) C++ Compiler
44454 +
44455 + # KCC will only create a shared library if the output file
44456 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
44457 + # to its proper name (with version) after linking.
44458 + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
44459 + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
44460 + # Commands to make compiler produce verbose output that lists
44461 + # what "hidden" libraries, object files and flags are used when
44462 + # linking a shared library.
44463 + #
44464 + # There doesn't appear to be a way to prevent this compiler from
44465 + # explicitly linking system object files so we need to strip them
44466 + # from the output so that they don't get included in the library
44467 + # dependencies.
44468 + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
44469 +
44470 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
44471 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
44472 +
44473 + # Archives containing C++ object files must be created using
44474 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
44475 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
44476 + ;;
44477 + icpc* | ecpc* )
44478 + # Intel C++
44479 + with_gnu_ld=yes
44480 + # version 8.0 and above of icpc choke on multiply defined symbols
44481 + # if we add $predep_objects and $postdep_objects, however 7.1 and
44482 + # earlier do not add the objects themselves.
44483 + case `$CC -V 2>&1` in
44484 + *"Version 7."*)
44485 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
44486 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
44487 + ;;
44488 + *) # Version 8.0 or newer
44489 + tmp_idyn=
44490 + case $host_cpu in
44491 + ia64*) tmp_idyn=' -i_dynamic';;
44492 + esac
44493 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
44494 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
44495 + ;;
44496 + esac
44497 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
44498 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
44499 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
44500 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
44501 + ;;
44502 + pgCC* | pgcpp*)
44503 + # Portland Group C++ compiler
44504 + case `$CC -V` in
44505 + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
44506 + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
44507 + rm -rf $tpldir~
44508 + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
44509 + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
44510 + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
44511 + rm -rf $tpldir~
44512 + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
44513 + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
44514 + $RANLIB $oldlib'
44515 + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
44516 + rm -rf $tpldir~
44517 + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
44518 + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
44519 + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
44520 + rm -rf $tpldir~
44521 + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
44522 + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
44523 + ;;
44524 + *) # Version 6 will use weak symbols
44525 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
44526 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
44527 + ;;
44528 + esac
44529 +
44530 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
44531 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
44532 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
44533 + ;;
44534 + cxx*)
44535 + # Compaq C++
44536 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
44537 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
44538 +
44539 + runpath_var=LD_RUN_PATH
44540 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
44541 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
44542 +
44543 + # Commands to make compiler produce verbose output that lists
44544 + # what "hidden" libraries, object files and flags are used when
44545 + # linking a shared library.
44546 + #
44547 + # There doesn't appear to be a way to prevent this compiler from
44548 + # explicitly linking system object files so we need to strip them
44549 + # from the output so that they don't get included in the library
44550 + # dependencies.
44551 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
44552 + ;;
44553 + xl*)
44554 + # IBM XL 8.0 on PPC, with GNU ld
44555 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
44556 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
44557 + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
44558 + if test "x$supports_anon_versioning" = xyes; then
44559 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
44560 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
44561 + echo "local: *; };" >> $output_objdir/$libname.ver~
44562 + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
44563 + fi
44564 + ;;
44565 + *)
44566 + case `$CC -V 2>&1 | sed 5q` in
44567 + *Sun\ C*)
44568 + # Sun C++ 5.9
44569 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
44570 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
44571 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
44572 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
44573 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
44574 + _LT_TAGVAR(compiler_needs_object, $1)=yes
44575 +
44576 + # Not sure whether something based on
44577 + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
44578 + # would be better.
44579 + output_verbose_link_cmd='echo'
44580 +
44581 + # Archives containing C++ object files must be created using
44582 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
44583 + # necessary to make sure instantiated templates are included
44584 + # in the archive.
44585 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
44586 + ;;
44587 + esac
44588 + ;;
44589 + esac
44590 + ;;
44591 +
44592 + lynxos*)
44593 + # FIXME: insert proper C++ library support
44594 + _LT_TAGVAR(ld_shlibs, $1)=no
44595 + ;;
44596 +
44597 + m88k*)
44598 + # FIXME: insert proper C++ library support
44599 + _LT_TAGVAR(ld_shlibs, $1)=no
44600 + ;;
44601 +
44602 + mvs*)
44603 + case $cc_basename in
44604 + cxx*)
44605 + # FIXME: insert proper C++ library support
44606 + _LT_TAGVAR(ld_shlibs, $1)=no
44607 + ;;
44608 + *)
44609 + # FIXME: insert proper C++ library support
44610 + _LT_TAGVAR(ld_shlibs, $1)=no
44611 + ;;
44612 + esac
44613 + ;;
44614 +
44615 + netbsd*)
44616 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
44617 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
44618 + wlarc=
44619 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
44620 + _LT_TAGVAR(hardcode_direct, $1)=yes
44621 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
44622 + fi
44623 + # Workaround some broken pre-1.5 toolchains
44624 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
44625 + ;;
44626 +
44627 + *nto* | *qnx*)
44628 + _LT_TAGVAR(ld_shlibs, $1)=yes
44629 + ;;
44630 +
44631 + openbsd2*)
44632 + # C++ shared libraries are fairly broken
44633 + _LT_TAGVAR(ld_shlibs, $1)=no
44634 + ;;
44635 +
44636 + openbsd*)
44637 + if test -f /usr/libexec/ld.so; then
44638 + _LT_TAGVAR(hardcode_direct, $1)=yes
44639 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
44640 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
44641 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
44642 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
44643 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
44644 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
44645 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
44646 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
44647 + fi
44648 + output_verbose_link_cmd=echo
44649 + else
44650 + _LT_TAGVAR(ld_shlibs, $1)=no
44651 + fi
44652 + ;;
44653 +
44654 + osf3* | osf4* | osf5*)
44655 + case $cc_basename in
44656 + KCC*)
44657 + # Kuck and Associates, Inc. (KAI) C++ Compiler
44658 +
44659 + # KCC will only create a shared library if the output file
44660 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
44661 + # to its proper name (with version) after linking.
44662 + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
44663 +
44664 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
44665 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
44666 +
44667 + # Archives containing C++ object files must be created using
44668 + # the KAI C++ compiler.
44669 + case $host in
44670 + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
44671 + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
44672 + esac
44673 + ;;
44674 + RCC*)
44675 + # Rational C++ 2.4.1
44676 + # FIXME: insert proper C++ library support
44677 + _LT_TAGVAR(ld_shlibs, $1)=no
44678 + ;;
44679 + cxx*)
44680 + case $host in
44681 + osf3*)
44682 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
44683 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
44684 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
44685 + ;;
44686 + *)
44687 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
44688 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
44689 + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
44690 + echo "-hidden">> $lib.exp~
44691 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
44692 + $RM $lib.exp'
44693 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
44694 + ;;
44695 + esac
44696 +
44697 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
44698 +
44699 + # Commands to make compiler produce verbose output that lists
44700 + # what "hidden" libraries, object files and flags are used when
44701 + # linking a shared library.
44702 + #
44703 + # There doesn't appear to be a way to prevent this compiler from
44704 + # explicitly linking system object files so we need to strip them
44705 + # from the output so that they don't get included in the library
44706 + # dependencies.
44707 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
44708 + ;;
44709 + *)
44710 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
44711 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
44712 + case $host in
44713 + osf3*)
44714 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
44715 + ;;
44716 + *)
44717 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
44718 + ;;
44719 + esac
44720 +
44721 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
44722 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
44723 +
44724 + # Commands to make compiler produce verbose output that lists
44725 + # what "hidden" libraries, object files and flags are used when
44726 + # linking a shared library.
44727 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
44728 +
44729 + else
44730 + # FIXME: insert proper C++ library support
44731 + _LT_TAGVAR(ld_shlibs, $1)=no
44732 + fi
44733 + ;;
44734 + esac
44735 + ;;
44736 +
44737 + psos*)
44738 + # FIXME: insert proper C++ library support
44739 + _LT_TAGVAR(ld_shlibs, $1)=no
44740 + ;;
44741 +
44742 + sunos4*)
44743 + case $cc_basename in
44744 + CC*)
44745 + # Sun C++ 4.x
44746 + # FIXME: insert proper C++ library support
44747 + _LT_TAGVAR(ld_shlibs, $1)=no
44748 + ;;
44749 + lcc*)
44750 + # Lucid
44751 + # FIXME: insert proper C++ library support
44752 + _LT_TAGVAR(ld_shlibs, $1)=no
44753 + ;;
44754 + *)
44755 + # FIXME: insert proper C++ library support
44756 + _LT_TAGVAR(ld_shlibs, $1)=no
44757 + ;;
44758 + esac
44759 + ;;
44760 +
44761 + solaris*)
44762 + case $cc_basename in
44763 + CC*)
44764 + # Sun C++ 4.2, 5.x and Centerline C++
44765 + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
44766 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
44767 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
44768 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
44769 + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
44770 +
44771 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
44772 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
44773 + case $host_os in
44774 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
44775 + *)
44776 + # The compiler driver will combine and reorder linker options,
44777 + # but understands `-z linker_flag'.
44778 + # Supported since Solaris 2.6 (maybe 2.5.1?)
44779 + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
44780 + ;;
44781 + esac
44782 + _LT_TAGVAR(link_all_deplibs, $1)=yes
44783 +
44784 + output_verbose_link_cmd='echo'
44785 +
44786 + # Archives containing C++ object files must be created using
44787 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
44788 + # necessary to make sure instantiated templates are included
44789 + # in the archive.
44790 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
44791 + ;;
44792 + gcx*)
44793 + # Green Hills C++ Compiler
44794 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
44795 +
44796 + # The C++ compiler must be used to create the archive.
44797 + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
44798 + ;;
44799 + *)
44800 + # GNU C++ compiler with Solaris linker
44801 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
44802 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
44803 + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
44804 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
44805 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
44806 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
44807 +
44808 + # Commands to make compiler produce verbose output that lists
44809 + # what "hidden" libraries, object files and flags are used when
44810 + # linking a shared library.
44811 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
44812 + else
44813 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
44814 + # platform.
44815 + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
44816 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
44817 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
44818 +
44819 + # Commands to make compiler produce verbose output that lists
44820 + # what "hidden" libraries, object files and flags are used when
44821 + # linking a shared library.
44822 + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
44823 + fi
44824 +
44825 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
44826 + case $host_os in
44827 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
44828 + *)
44829 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
44830 + ;;
44831 + esac
44832 + fi
44833 + ;;
44834 + esac
44835 + ;;
44836 +
44837 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
44838 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
44839 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
44840 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
44841 + runpath_var='LD_RUN_PATH'
44842 +
44843 + case $cc_basename in
44844 + CC*)
44845 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44846 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44847 + ;;
44848 + *)
44849 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44850 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44851 + ;;
44852 + esac
44853 + ;;
44854 +
44855 + sysv5* | sco3.2v5* | sco5v6*)
44856 + # Note: We can NOT use -z defs as we might desire, because we do not
44857 + # link with -lc, and that would cause any symbols used from libc to
44858 + # always be unresolved, which means just about no library would
44859 + # ever link correctly. If we're not using GNU ld we use -z text
44860 + # though, which does catch some bad symbols but isn't as heavy-handed
44861 + # as -z defs.
44862 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
44863 + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
44864 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
44865 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
44866 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
44867 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
44868 + _LT_TAGVAR(link_all_deplibs, $1)=yes
44869 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
44870 + runpath_var='LD_RUN_PATH'
44871 +
44872 + case $cc_basename in
44873 + CC*)
44874 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44875 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44876 + ;;
44877 + *)
44878 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44879 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44880 + ;;
44881 + esac
44882 + ;;
44883 +
44884 + tandem*)
44885 + case $cc_basename in
44886 + NCC*)
44887 + # NonStop-UX NCC 3.20
44888 + # FIXME: insert proper C++ library support
44889 + _LT_TAGVAR(ld_shlibs, $1)=no
44890 + ;;
44891 + *)
44892 + # FIXME: insert proper C++ library support
44893 + _LT_TAGVAR(ld_shlibs, $1)=no
44894 + ;;
44895 + esac
44896 + ;;
44897 +
44898 + vxworks*)
44899 + # FIXME: insert proper C++ library support
44900 + _LT_TAGVAR(ld_shlibs, $1)=no
44901 + ;;
44902 +
44903 + *)
44904 + # FIXME: insert proper C++ library support
44905 + _LT_TAGVAR(ld_shlibs, $1)=no
44906 + ;;
44907 + esac
44908 +
44909 + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
44910 + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
44911 +
44912 + _LT_TAGVAR(GCC, $1)="$GXX"
44913 + _LT_TAGVAR(LD, $1)="$LD"
44914 +
44915 + ## CAVEAT EMPTOR:
44916 + ## There is no encapsulation within the following macros, do not change
44917 + ## the running order or otherwise move them around unless you know exactly
44918 + ## what you are doing...
44919 + _LT_SYS_HIDDEN_LIBDEPS($1)
44920 + _LT_COMPILER_PIC($1)
44921 + _LT_COMPILER_C_O($1)
44922 + _LT_COMPILER_FILE_LOCKS($1)
44923 + _LT_LINKER_SHLIBS($1)
44924 + _LT_SYS_DYNAMIC_LINKER($1)
44925 + _LT_LINKER_HARDCODE_LIBPATH($1)
44926 +
44927 + _LT_CONFIG($1)
44928 + fi # test -n "$compiler"
44929 +
44930 + CC=$lt_save_CC
44931 + LDCXX=$LD
44932 + LD=$lt_save_LD
44933 + GCC=$lt_save_GCC
44934 + with_gnu_ld=$lt_save_with_gnu_ld
44935 + lt_cv_path_LDCXX=$lt_cv_path_LD
44936 + lt_cv_path_LD=$lt_save_path_LD
44937 + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
44938 + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
44939 +fi # test "$_lt_caught_CXX_error" != yes
44940 +
44941 +AC_LANG_POP
44942 +])# _LT_LANG_CXX_CONFIG
44943 +
44944 +
44945 +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
44946 +# ---------------------------------
44947 +# Figure out "hidden" library dependencies from verbose
44948 +# compiler output when linking a shared library.
44949 +# Parse the compiler output and extract the necessary
44950 +# objects, libraries and library flags.
44951 +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
44952 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
44953 +# Dependencies to place before and after the object being linked:
44954 +_LT_TAGVAR(predep_objects, $1)=
44955 +_LT_TAGVAR(postdep_objects, $1)=
44956 +_LT_TAGVAR(predeps, $1)=
44957 +_LT_TAGVAR(postdeps, $1)=
44958 +_LT_TAGVAR(compiler_lib_search_path, $1)=
44959 +
44960 +dnl we can't use the lt_simple_compile_test_code here,
44961 +dnl because it contains code intended for an executable,
44962 +dnl not a library. It's possible we should let each
44963 +dnl tag define a new lt_????_link_test_code variable,
44964 +dnl but it's only used here...
44965 +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
44966 +int a;
44967 +void foo (void) { a = 0; }
44968 +_LT_EOF
44969 +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
44970 +class Foo
44971 +{
44972 +public:
44973 + Foo (void) { a = 0; }
44974 +private:
44975 + int a;
44976 +};
44977 +_LT_EOF
44978 +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
44979 + subroutine foo
44980 + implicit none
44981 + integer*4 a
44982 + a=0
44983 + return
44984 + end
44985 +_LT_EOF
44986 +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
44987 + subroutine foo
44988 + implicit none
44989 + integer a
44990 + a=0
44991 + return
44992 + end
44993 +_LT_EOF
44994 +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
44995 +public class foo {
44996 + private int a;
44997 + public void bar (void) {
44998 + a = 0;
44999 + }
45000 +};
45001 +_LT_EOF
45002 +])
45003 +dnl Parse the compiler output and extract the necessary
45004 +dnl objects, libraries and library flags.
45005 +if AC_TRY_EVAL(ac_compile); then
45006 + # Parse the compiler output and extract the necessary
45007 + # objects, libraries and library flags.
45008 +
45009 + # Sentinel used to keep track of whether or not we are before
45010 + # the conftest object file.
45011 + pre_test_object_deps_done=no
45012 +
45013 + for p in `eval "$output_verbose_link_cmd"`; do
45014 + case $p in
45015 +
45016 + -L* | -R* | -l*)
45017 + # Some compilers place space between "-{L,R}" and the path.
45018 + # Remove the space.
45019 + if test $p = "-L" ||
45020 + test $p = "-R"; then
45021 + prev=$p
45022 + continue
45023 + else
45024 + prev=
45025 + fi
45026 +
45027 + if test "$pre_test_object_deps_done" = no; then
45028 + case $p in
45029 + -L* | -R*)
45030 + # Internal compiler library paths should come after those
45031 + # provided the user. The postdeps already come after the
45032 + # user supplied libs so there is no need to process them.
45033 + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
45034 + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
45035 + else
45036 + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
45037 + fi
45038 + ;;
45039 + # The "-l" case would never come before the object being
45040 + # linked, so don't bother handling this case.
45041 + esac
45042 + else
45043 + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
45044 + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
45045 + else
45046 + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
45047 + fi
45048 + fi
45049 + ;;
45050 +
45051 + *.$objext)
45052 + # This assumes that the test object file only shows up
45053 + # once in the compiler output.
45054 + if test "$p" = "conftest.$objext"; then
45055 + pre_test_object_deps_done=yes
45056 + continue
45057 + fi
45058 +
45059 + if test "$pre_test_object_deps_done" = no; then
45060 + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
45061 + _LT_TAGVAR(predep_objects, $1)="$p"
45062 + else
45063 + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
45064 + fi
45065 + else
45066 + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
45067 + _LT_TAGVAR(postdep_objects, $1)="$p"
45068 + else
45069 + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
45070 + fi
45071 + fi
45072 + ;;
45073 +
45074 + *) ;; # Ignore the rest.
45075 +
45076 + esac
45077 + done
45078 +
45079 + # Clean up.
45080 + rm -f a.out a.exe
45081 +else
45082 + echo "libtool.m4: error: problem compiling $1 test program"
45083 +fi
45084 +
45085 +$RM -f confest.$objext
45086 +
45087 +# PORTME: override above test on systems where it is broken
45088 +m4_if([$1], [CXX],
45089 +[case $host_os in
45090 +interix[[3-9]]*)
45091 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
45092 + # hack all around it, let's just trust "g++" to DTRT.
45093 + _LT_TAGVAR(predep_objects,$1)=
45094 + _LT_TAGVAR(postdep_objects,$1)=
45095 + _LT_TAGVAR(postdeps,$1)=
45096 + ;;
45097 +
45098 +linux*)
45099 + case `$CC -V 2>&1 | sed 5q` in
45100 + *Sun\ C*)
45101 + # Sun C++ 5.9
45102 +
45103 + # The more standards-conforming stlport4 library is
45104 + # incompatible with the Cstd library. Avoid specifying
45105 + # it if it's in CXXFLAGS. Ignore libCrun as
45106 + # -library=stlport4 depends on it.
45107 + case " $CXX $CXXFLAGS " in
45108 + *" -library=stlport4 "*)
45109 + solaris_use_stlport4=yes
45110 + ;;
45111 + esac
45112 +
45113 + if test "$solaris_use_stlport4" != yes; then
45114 + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
45115 + fi
45116 + ;;
45117 + esac
45118 + ;;
45119 +
45120 +solaris*)
45121 + case $cc_basename in
45122 + CC*)
45123 + # The more standards-conforming stlport4 library is
45124 + # incompatible with the Cstd library. Avoid specifying
45125 + # it if it's in CXXFLAGS. Ignore libCrun as
45126 + # -library=stlport4 depends on it.
45127 + case " $CXX $CXXFLAGS " in
45128 + *" -library=stlport4 "*)
45129 + solaris_use_stlport4=yes
45130 + ;;
45131 + esac
45132 +
45133 + # Adding this requires a known-good setup of shared libraries for
45134 + # Sun compiler versions before 5.6, else PIC objects from an old
45135 + # archive will be linked into the output, leading to subtle bugs.
45136 + if test "$solaris_use_stlport4" != yes; then
45137 + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
45138 + fi
45139 + ;;
45140 + esac
45141 + ;;
45142 +esac
45143 +])
45144 +
45145 +case " $_LT_TAGVAR(postdeps, $1) " in
45146 +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
45147 +esac
45148 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
45149 +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
45150 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
45151 +fi
45152 +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
45153 + [The directories searched by this compiler when creating a shared library])
45154 +_LT_TAGDECL([], [predep_objects], [1],
45155 + [Dependencies to place before and after the objects being linked to
45156 + create a shared library])
45157 +_LT_TAGDECL([], [postdep_objects], [1])
45158 +_LT_TAGDECL([], [predeps], [1])
45159 +_LT_TAGDECL([], [postdeps], [1])
45160 +_LT_TAGDECL([], [compiler_lib_search_path], [1],
45161 + [The library search path used internally by the compiler when linking
45162 + a shared library])
45163 +])# _LT_SYS_HIDDEN_LIBDEPS
45164 +
45165 +
45166 +# _LT_PROG_F77
45167 +# ------------
45168 +# Since AC_PROG_F77 is broken, in that it returns the empty string
45169 +# if there is no fortran compiler, we have our own version here.
45170 +m4_defun([_LT_PROG_F77],
45171 +[
45172 +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
45173 +AC_PROG_F77
45174 +if test -z "$F77" || test "X$F77" = "Xno"; then
45175 + _lt_disable_F77=yes
45176 +fi
45177 +popdef([AC_MSG_ERROR])
45178 +])# _LT_PROG_F77
45179 +
45180 +dnl aclocal-1.4 backwards compatibility:
45181 +dnl AC_DEFUN([_LT_PROG_F77], [])
45182 +
45183 +
45184 +# _LT_LANG_F77_CONFIG([TAG])
45185 +# --------------------------
45186 +# Ensure that the configuration variables for a Fortran 77 compiler are
45187 +# suitably defined. These variables are subsequently used by _LT_CONFIG
45188 +# to write the compiler configuration to `libtool'.
45189 +m4_defun([_LT_LANG_F77_CONFIG],
45190 +[AC_REQUIRE([_LT_PROG_F77])dnl
45191 +AC_LANG_PUSH(Fortran 77)
45192 +
45193 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
45194 +_LT_TAGVAR(allow_undefined_flag, $1)=
45195 +_LT_TAGVAR(always_export_symbols, $1)=no
45196 +_LT_TAGVAR(archive_expsym_cmds, $1)=
45197 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
45198 +_LT_TAGVAR(hardcode_direct, $1)=no
45199 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
45200 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
45201 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
45202 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
45203 +_LT_TAGVAR(hardcode_minus_L, $1)=no
45204 +_LT_TAGVAR(hardcode_automatic, $1)=no
45205 +_LT_TAGVAR(inherit_rpath, $1)=no
45206 +_LT_TAGVAR(module_cmds, $1)=
45207 +_LT_TAGVAR(module_expsym_cmds, $1)=
45208 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
45209 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
45210 +_LT_TAGVAR(no_undefined_flag, $1)=
45211 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
45212 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
45213 +
45214 +# Source file extension for f77 test sources.
45215 +ac_ext=f
45216 +
45217 +# Object file extension for compiled f77 test sources.
45218 +objext=o
45219 +_LT_TAGVAR(objext, $1)=$objext
45220 +
45221 +# No sense in running all these tests if we already determined that
45222 +# the F77 compiler isn't working. Some variables (like enable_shared)
45223 +# are currently assumed to apply to all compilers on this platform,
45224 +# and will be corrupted by setting them based on a non-working compiler.
45225 +if test "$_lt_disable_F77" != yes; then
45226 + # Code to be used in simple compile tests
45227 + lt_simple_compile_test_code="\
45228 + subroutine t
45229 + return
45230 + end
45231 +"
45232 +
45233 + # Code to be used in simple link tests
45234 + lt_simple_link_test_code="\
45235 + program t
45236 + end
45237 +"
45238 +
45239 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
45240 + _LT_TAG_COMPILER
45241 +
45242 + # save warnings/boilerplate of simple test code
45243 + _LT_COMPILER_BOILERPLATE
45244 + _LT_LINKER_BOILERPLATE
45245 +
45246 + # Allow CC to be a program name with arguments.
45247 + lt_save_CC="$CC"
45248 + lt_save_GCC=$GCC
45249 + CC=${F77-"f77"}
45250 + compiler=$CC
45251 + _LT_TAGVAR(compiler, $1)=$CC
45252 + _LT_CC_BASENAME([$compiler])
45253 + GCC=$G77
45254 + if test -n "$compiler"; then
45255 + AC_MSG_CHECKING([if libtool supports shared libraries])
45256 + AC_MSG_RESULT([$can_build_shared])
45257 +
45258 + AC_MSG_CHECKING([whether to build shared libraries])
45259 + test "$can_build_shared" = "no" && enable_shared=no
45260 +
45261 + # On AIX, shared libraries and static libraries use the same namespace, and
45262 + # are all built from PIC.
45263 + case $host_os in
45264 + aix3*)
45265 + test "$enable_shared" = yes && enable_static=no
45266 + if test -n "$RANLIB"; then
45267 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
45268 + postinstall_cmds='$RANLIB $lib'
45269 + fi
45270 + ;;
45271 + aix[[4-9]]*)
45272 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
45273 + test "$enable_shared" = yes && enable_static=no
45274 + fi
45275 + ;;
45276 + esac
45277 + AC_MSG_RESULT([$enable_shared])
45278 +
45279 + AC_MSG_CHECKING([whether to build static libraries])
45280 + # Make sure either enable_shared or enable_static is yes.
45281 + test "$enable_shared" = yes || enable_static=yes
45282 + AC_MSG_RESULT([$enable_static])
45283 +
45284 + _LT_TAGVAR(GCC, $1)="$G77"
45285 + _LT_TAGVAR(LD, $1)="$LD"
45286 +
45287 + ## CAVEAT EMPTOR:
45288 + ## There is no encapsulation within the following macros, do not change
45289 + ## the running order or otherwise move them around unless you know exactly
45290 + ## what you are doing...
45291 + _LT_COMPILER_PIC($1)
45292 + _LT_COMPILER_C_O($1)
45293 + _LT_COMPILER_FILE_LOCKS($1)
45294 + _LT_LINKER_SHLIBS($1)
45295 + _LT_SYS_DYNAMIC_LINKER($1)
45296 + _LT_LINKER_HARDCODE_LIBPATH($1)
45297 +
45298 + _LT_CONFIG($1)
45299 + fi # test -n "$compiler"
45300 +
45301 + GCC=$lt_save_GCC
45302 + CC="$lt_save_CC"
45303 +fi # test "$_lt_disable_F77" != yes
45304 +
45305 +AC_LANG_POP
45306 +])# _LT_LANG_F77_CONFIG
45307 +
45308 +
45309 +# _LT_PROG_FC
45310 +# -----------
45311 +# Since AC_PROG_FC is broken, in that it returns the empty string
45312 +# if there is no fortran compiler, we have our own version here.
45313 +m4_defun([_LT_PROG_FC],
45314 +[
45315 +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
45316 +AC_PROG_FC
45317 +if test -z "$FC" || test "X$FC" = "Xno"; then
45318 + _lt_disable_FC=yes
45319 +fi
45320 +popdef([AC_MSG_ERROR])
45321 +])# _LT_PROG_FC
45322 +
45323 +dnl aclocal-1.4 backwards compatibility:
45324 +dnl AC_DEFUN([_LT_PROG_FC], [])
45325 +
45326 +
45327 +# _LT_LANG_FC_CONFIG([TAG])
45328 +# -------------------------
45329 +# Ensure that the configuration variables for a Fortran compiler are
45330 +# suitably defined. These variables are subsequently used by _LT_CONFIG
45331 +# to write the compiler configuration to `libtool'.
45332 +m4_defun([_LT_LANG_FC_CONFIG],
45333 +[AC_REQUIRE([_LT_PROG_FC])dnl
45334 +AC_LANG_PUSH(Fortran)
45335 +
45336 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
45337 +_LT_TAGVAR(allow_undefined_flag, $1)=
45338 +_LT_TAGVAR(always_export_symbols, $1)=no
45339 +_LT_TAGVAR(archive_expsym_cmds, $1)=
45340 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
45341 +_LT_TAGVAR(hardcode_direct, $1)=no
45342 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
45343 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
45344 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
45345 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
45346 +_LT_TAGVAR(hardcode_minus_L, $1)=no
45347 +_LT_TAGVAR(hardcode_automatic, $1)=no
45348 +_LT_TAGVAR(inherit_rpath, $1)=no
45349 +_LT_TAGVAR(module_cmds, $1)=
45350 +_LT_TAGVAR(module_expsym_cmds, $1)=
45351 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
45352 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
45353 +_LT_TAGVAR(no_undefined_flag, $1)=
45354 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
45355 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
45356 +
45357 +# Source file extension for fc test sources.
45358 +ac_ext=${ac_fc_srcext-f}
45359 +
45360 +# Object file extension for compiled fc test sources.
45361 +objext=o
45362 +_LT_TAGVAR(objext, $1)=$objext
45363 +
45364 +# No sense in running all these tests if we already determined that
45365 +# the FC compiler isn't working. Some variables (like enable_shared)
45366 +# are currently assumed to apply to all compilers on this platform,
45367 +# and will be corrupted by setting them based on a non-working compiler.
45368 +if test "$_lt_disable_FC" != yes; then
45369 + # Code to be used in simple compile tests
45370 + lt_simple_compile_test_code="\
45371 + subroutine t
45372 + return
45373 + end
45374 +"
45375 +
45376 + # Code to be used in simple link tests
45377 + lt_simple_link_test_code="\
45378 + program t
45379 + end
45380 +"
45381 +
45382 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
45383 + _LT_TAG_COMPILER
45384 +
45385 + # save warnings/boilerplate of simple test code
45386 + _LT_COMPILER_BOILERPLATE
45387 + _LT_LINKER_BOILERPLATE
45388 +
45389 + # Allow CC to be a program name with arguments.
45390 + lt_save_CC="$CC"
45391 + lt_save_GCC=$GCC
45392 + CC=${FC-"f95"}
45393 + compiler=$CC
45394 + GCC=$ac_cv_fc_compiler_gnu
45395 +
45396 + _LT_TAGVAR(compiler, $1)=$CC
45397 + _LT_CC_BASENAME([$compiler])
45398 +
45399 + if test -n "$compiler"; then
45400 + AC_MSG_CHECKING([if libtool supports shared libraries])
45401 + AC_MSG_RESULT([$can_build_shared])
45402 +
45403 + AC_MSG_CHECKING([whether to build shared libraries])
45404 + test "$can_build_shared" = "no" && enable_shared=no
45405 +
45406 + # On AIX, shared libraries and static libraries use the same namespace, and
45407 + # are all built from PIC.
45408 + case $host_os in
45409 + aix3*)
45410 + test "$enable_shared" = yes && enable_static=no
45411 + if test -n "$RANLIB"; then
45412 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
45413 + postinstall_cmds='$RANLIB $lib'
45414 + fi
45415 + ;;
45416 + aix[[4-9]]*)
45417 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
45418 + test "$enable_shared" = yes && enable_static=no
45419 + fi
45420 + ;;
45421 + esac
45422 + AC_MSG_RESULT([$enable_shared])
45423 +
45424 + AC_MSG_CHECKING([whether to build static libraries])
45425 + # Make sure either enable_shared or enable_static is yes.
45426 + test "$enable_shared" = yes || enable_static=yes
45427 + AC_MSG_RESULT([$enable_static])
45428 +
45429 + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
45430 + _LT_TAGVAR(LD, $1)="$LD"
45431 +
45432 + ## CAVEAT EMPTOR:
45433 + ## There is no encapsulation within the following macros, do not change
45434 + ## the running order or otherwise move them around unless you know exactly
45435 + ## what you are doing...
45436 + _LT_SYS_HIDDEN_LIBDEPS($1)
45437 + _LT_COMPILER_PIC($1)
45438 + _LT_COMPILER_C_O($1)
45439 + _LT_COMPILER_FILE_LOCKS($1)
45440 + _LT_LINKER_SHLIBS($1)
45441 + _LT_SYS_DYNAMIC_LINKER($1)
45442 + _LT_LINKER_HARDCODE_LIBPATH($1)
45443 +
45444 + _LT_CONFIG($1)
45445 + fi # test -n "$compiler"
45446 +
45447 + GCC=$lt_save_GCC
45448 + CC="$lt_save_CC"
45449 +fi # test "$_lt_disable_FC" != yes
45450 +
45451 +AC_LANG_POP
45452 +])# _LT_LANG_FC_CONFIG
45453 +
45454 +
45455 +# _LT_LANG_GCJ_CONFIG([TAG])
45456 +# --------------------------
45457 +# Ensure that the configuration variables for the GNU Java Compiler compiler
45458 +# are suitably defined. These variables are subsequently used by _LT_CONFIG
45459 +# to write the compiler configuration to `libtool'.
45460 +m4_defun([_LT_LANG_GCJ_CONFIG],
45461 +[AC_REQUIRE([LT_PROG_GCJ])dnl
45462 +AC_LANG_SAVE
45463 +
45464 +# Source file extension for Java test sources.
45465 +ac_ext=java
45466 +
45467 +# Object file extension for compiled Java test sources.
45468 +objext=o
45469 +_LT_TAGVAR(objext, $1)=$objext
45470 +
45471 +# Code to be used in simple compile tests
45472 +lt_simple_compile_test_code="class foo {}"
45473 +
45474 +# Code to be used in simple link tests
45475 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
45476 +
45477 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
45478 +_LT_TAG_COMPILER
45479 +
45480 +# save warnings/boilerplate of simple test code
45481 +_LT_COMPILER_BOILERPLATE
45482 +_LT_LINKER_BOILERPLATE
45483 +
45484 +# Allow CC to be a program name with arguments.
45485 +lt_save_CC="$CC"
45486 +lt_save_GCC=$GCC
45487 +GCC=yes
45488 +CC=${GCJ-"gcj"}
45489 +compiler=$CC
45490 +_LT_TAGVAR(compiler, $1)=$CC
45491 +_LT_TAGVAR(LD, $1)="$LD"
45492 +_LT_CC_BASENAME([$compiler])
45493 +
45494 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
45495 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
45496 +
45497 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
45498 +
45499 +## CAVEAT EMPTOR:
45500 +## There is no encapsulation within the following macros, do not change
45501 +## the running order or otherwise move them around unless you know exactly
45502 +## what you are doing...
45503 +if test -n "$compiler"; then
45504 + _LT_COMPILER_NO_RTTI($1)
45505 + _LT_COMPILER_PIC($1)
45506 + _LT_COMPILER_C_O($1)
45507 + _LT_COMPILER_FILE_LOCKS($1)
45508 + _LT_LINKER_SHLIBS($1)
45509 + _LT_LINKER_HARDCODE_LIBPATH($1)
45510 +
45511 + _LT_CONFIG($1)
45512 +fi
45513 +
45514 +AC_LANG_RESTORE
45515 +
45516 +GCC=$lt_save_GCC
45517 +CC="$lt_save_CC"
45518 +])# _LT_LANG_GCJ_CONFIG
45519 +
45520 +
45521 +# _LT_LANG_RC_CONFIG([TAG])
45522 +# -------------------------
45523 +# Ensure that the configuration variables for the Windows resource compiler
45524 +# are suitably defined. These variables are subsequently used by _LT_CONFIG
45525 +# to write the compiler configuration to `libtool'.
45526 +m4_defun([_LT_LANG_RC_CONFIG],
45527 +[AC_REQUIRE([LT_PROG_RC])dnl
45528 +AC_LANG_SAVE
45529 +
45530 +# Source file extension for RC test sources.
45531 +ac_ext=rc
45532 +
45533 +# Object file extension for compiled RC test sources.
45534 +objext=o
45535 +_LT_TAGVAR(objext, $1)=$objext
45536 +
45537 +# Code to be used in simple compile tests
45538 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
45539 +
45540 +# Code to be used in simple link tests
45541 +lt_simple_link_test_code="$lt_simple_compile_test_code"
45542 +
45543 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
45544 +_LT_TAG_COMPILER
45545 +
45546 +# save warnings/boilerplate of simple test code
45547 +_LT_COMPILER_BOILERPLATE
45548 +_LT_LINKER_BOILERPLATE
45549 +
45550 +# Allow CC to be a program name with arguments.
45551 +lt_save_CC="$CC"
45552 +lt_save_GCC=$GCC
45553 +GCC=
45554 +CC=${RC-"windres"}
45555 +compiler=$CC
45556 +_LT_TAGVAR(compiler, $1)=$CC
45557 +_LT_CC_BASENAME([$compiler])
45558 +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
45559 +
45560 +if test -n "$compiler"; then
45561 + :
45562 + _LT_CONFIG($1)
45563 +fi
45564 +
45565 +GCC=$lt_save_GCC
45566 +AC_LANG_RESTORE
45567 +CC="$lt_save_CC"
45568 +])# _LT_LANG_RC_CONFIG
45569 +
45570 +
45571 +# LT_PROG_GCJ
45572 +# -----------
45573 +AC_DEFUN([LT_PROG_GCJ],
45574 +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
45575 + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
45576 + [AC_CHECK_TOOL(GCJ, gcj,)
45577 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
45578 + AC_SUBST(GCJFLAGS)])])[]dnl
45579 +])
45580 +
45581 +# Old name:
45582 +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
45583 +dnl aclocal-1.4 backwards compatibility:
45584 +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
45585 +
45586 +
45587 +# LT_PROG_RC
45588 +# ----------
45589 +AC_DEFUN([LT_PROG_RC],
45590 +[AC_CHECK_TOOL(RC, windres,)
45591 +])
45592 +
45593 +# Old name:
45594 +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
45595 +dnl aclocal-1.4 backwards compatibility:
45596 +dnl AC_DEFUN([LT_AC_PROG_RC], [])
45597 +
45598 +
45599 +# _LT_DECL_EGREP
45600 +# --------------
45601 +# If we don't have a new enough Autoconf to choose the best grep
45602 +# available, choose the one first in the user's PATH.
45603 +m4_defun([_LT_DECL_EGREP],
45604 +[AC_REQUIRE([AC_PROG_EGREP])dnl
45605 +AC_REQUIRE([AC_PROG_FGREP])dnl
45606 +test -z "$GREP" && GREP=grep
45607 +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
45608 +_LT_DECL([], [EGREP], [1], [An ERE matcher])
45609 +_LT_DECL([], [FGREP], [1], [A literal string matcher])
45610 +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
45611 +AC_SUBST([GREP])
45612 +])
45613 +
45614 +
45615 +# _LT_DECL_OBJDUMP
45616 +# --------------
45617 +# If we don't have a new enough Autoconf to choose the best objdump
45618 +# available, choose the one first in the user's PATH.
45619 +m4_defun([_LT_DECL_OBJDUMP],
45620 +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
45621 +test -z "$OBJDUMP" && OBJDUMP=objdump
45622 +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
45623 +AC_SUBST([OBJDUMP])
45624 +])
45625 +
45626 +
45627 +# _LT_DECL_SED
45628 +# ------------
45629 +# Check for a fully-functional sed program, that truncates
45630 +# as few characters as possible. Prefer GNU sed if found.
45631 +m4_defun([_LT_DECL_SED],
45632 +[AC_PROG_SED
45633 +test -z "$SED" && SED=sed
45634 +Xsed="$SED -e 1s/^X//"
45635 +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
45636 +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
45637 + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
45638 +])# _LT_DECL_SED
45639 +
45640 +m4_ifndef([AC_PROG_SED], [
45641 +############################################################
45642 +# NOTE: This macro has been submitted for inclusion into #
45643 +# GNU Autoconf as AC_PROG_SED. When it is available in #
45644 +# a released version of Autoconf we should remove this #
45645 +# macro and use it instead. #
45646 +############################################################
45647 +
45648 +m4_defun([AC_PROG_SED],
45649 +[AC_MSG_CHECKING([for a sed that does not truncate output])
45650 +AC_CACHE_VAL(lt_cv_path_SED,
45651 +[# Loop through the user's path and test for sed and gsed.
45652 +# Then use that list of sed's as ones to test for truncation.
45653 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45654 +for as_dir in $PATH
45655 +do
45656 + IFS=$as_save_IFS
45657 + test -z "$as_dir" && as_dir=.
45658 + for lt_ac_prog in sed gsed; do
45659 + for ac_exec_ext in '' $ac_executable_extensions; do
45660 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
45661 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
45662 + fi
45663 + done
45664 + done
45665 +done
45666 +IFS=$as_save_IFS
45667 +lt_ac_max=0
45668 +lt_ac_count=0
45669 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
45670 +# along with /bin/sed that truncates output.
45671 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
45672 + test ! -f $lt_ac_sed && continue
45673 + cat /dev/null > conftest.in
45674 + lt_ac_count=0
45675 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
45676 + # Check for GNU sed and select it if it is found.
45677 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
45678 + lt_cv_path_SED=$lt_ac_sed
45679 + break
45680 + fi
45681 + while true; do
45682 + cat conftest.in conftest.in >conftest.tmp
45683 + mv conftest.tmp conftest.in
45684 + cp conftest.in conftest.nl
45685 + echo >>conftest.nl
45686 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
45687 + cmp -s conftest.out conftest.nl || break
45688 + # 10000 chars as input seems more than enough
45689 + test $lt_ac_count -gt 10 && break
45690 + lt_ac_count=`expr $lt_ac_count + 1`
45691 + if test $lt_ac_count -gt $lt_ac_max; then
45692 + lt_ac_max=$lt_ac_count
45693 + lt_cv_path_SED=$lt_ac_sed
45694 + fi
45695 + done
45696 +done
45697 +])
45698 +SED=$lt_cv_path_SED
45699 +AC_SUBST([SED])
45700 +AC_MSG_RESULT([$SED])
45701 +])#AC_PROG_SED
45702 +])#m4_ifndef
45703 +
45704 +# Old name:
45705 +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
45706 +dnl aclocal-1.4 backwards compatibility:
45707 +dnl AC_DEFUN([LT_AC_PROG_SED], [])
45708 +
45709 +
45710 +# _LT_CHECK_SHELL_FEATURES
45711 +# ------------------------
45712 +# Find out whether the shell is Bourne or XSI compatible,
45713 +# or has some other useful features.
45714 +m4_defun([_LT_CHECK_SHELL_FEATURES],
45715 +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
45716 +# Try some XSI features
45717 +xsi_shell=no
45718 +( _lt_dummy="a/b/c"
45719 + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
45720 + = c,a/b,, \
45721 + && eval 'test $(( 1 + 1 )) -eq 2 \
45722 + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
45723 + && xsi_shell=yes
45724 +AC_MSG_RESULT([$xsi_shell])
45725 +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
45726 +
45727 +AC_MSG_CHECKING([whether the shell understands "+="])
45728 +lt_shell_append=no
45729 +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
45730 + >/dev/null 2>&1 \
45731 + && lt_shell_append=yes
45732 +AC_MSG_RESULT([$lt_shell_append])
45733 +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
45734 +
45735 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
45736 + lt_unset=unset
45737 +else
45738 + lt_unset=false
45739 +fi
45740 +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
45741 +
45742 +# test EBCDIC or ASCII
45743 +case `echo X|tr X '\101'` in
45744 + A) # ASCII based system
45745 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
45746 + lt_SP2NL='tr \040 \012'
45747 + lt_NL2SP='tr \015\012 \040\040'
45748 + ;;
45749 + *) # EBCDIC based system
45750 + lt_SP2NL='tr \100 \n'
45751 + lt_NL2SP='tr \r\n \100\100'
45752 + ;;
45753 +esac
45754 +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
45755 +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
45756 +])# _LT_CHECK_SHELL_FEATURES
45757 +
45758 +
45759 +# _LT_PROG_XSI_SHELLFNS
45760 +# ---------------------
45761 +# Bourne and XSI compatible variants of some useful shell functions.
45762 +m4_defun([_LT_PROG_XSI_SHELLFNS],
45763 +[case $xsi_shell in
45764 + yes)
45765 + cat << \_LT_EOF >> "$cfgfile"
45766 +
45767 +# func_dirname file append nondir_replacement
45768 +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
45769 +# otherwise set result to NONDIR_REPLACEMENT.
45770 +func_dirname ()
45771 +{
45772 + case ${1} in
45773 + */*) func_dirname_result="${1%/*}${2}" ;;
45774 + * ) func_dirname_result="${3}" ;;
45775 + esac
45776 +}
45777 +
45778 +# func_basename file
45779 +func_basename ()
45780 +{
45781 + func_basename_result="${1##*/}"
45782 +}
45783 +
45784 +# func_dirname_and_basename file append nondir_replacement
45785 +# perform func_basename and func_dirname in a single function
45786 +# call:
45787 +# dirname: Compute the dirname of FILE. If nonempty,
45788 +# add APPEND to the result, otherwise set result
45789 +# to NONDIR_REPLACEMENT.
45790 +# value returned in "$func_dirname_result"
45791 +# basename: Compute filename of FILE.
45792 +# value retuned in "$func_basename_result"
45793 +# Implementation must be kept synchronized with func_dirname
45794 +# and func_basename. For efficiency, we do not delegate to
45795 +# those functions but instead duplicate the functionality here.
45796 +func_dirname_and_basename ()
45797 +{
45798 + case ${1} in
45799 + */*) func_dirname_result="${1%/*}${2}" ;;
45800 + * ) func_dirname_result="${3}" ;;
45801 + esac
45802 + func_basename_result="${1##*/}"
45803 +}
45804 +
45805 +# func_stripname prefix suffix name
45806 +# strip PREFIX and SUFFIX off of NAME.
45807 +# PREFIX and SUFFIX must not contain globbing or regex special
45808 +# characters, hashes, percent signs, but SUFFIX may contain a leading
45809 +# dot (in which case that matches only a dot).
45810 +func_stripname ()
45811 +{
45812 + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
45813 + # positional parameters, so assign one to ordinary parameter first.
45814 + func_stripname_result=${3}
45815 + func_stripname_result=${func_stripname_result#"${1}"}
45816 + func_stripname_result=${func_stripname_result%"${2}"}
45817 +}
45818 +
45819 +# func_opt_split
45820 +func_opt_split ()
45821 +{
45822 + func_opt_split_opt=${1%%=*}
45823 + func_opt_split_arg=${1#*=}
45824 +}
45825 +
45826 +# func_lo2o object
45827 +func_lo2o ()
45828 +{
45829 + case ${1} in
45830 + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
45831 + *) func_lo2o_result=${1} ;;
45832 + esac
45833 +}
45834 +
45835 +# func_xform libobj-or-source
45836 +func_xform ()
45837 +{
45838 + func_xform_result=${1%.*}.lo
45839 +}
45840 +
45841 +# func_arith arithmetic-term...
45842 +func_arith ()
45843 +{
45844 + func_arith_result=$(( $[*] ))
45845 +}
45846 +
45847 +# func_len string
45848 +# STRING may not start with a hyphen.
45849 +func_len ()
45850 +{
45851 + func_len_result=${#1}
45852 +}
45853 +
45854 +_LT_EOF
45855 + ;;
45856 + *) # Bourne compatible functions.
45857 + cat << \_LT_EOF >> "$cfgfile"
45858 +
45859 +# func_dirname file append nondir_replacement
45860 +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
45861 +# otherwise set result to NONDIR_REPLACEMENT.
45862 +func_dirname ()
45863 +{
45864 + # Extract subdirectory from the argument.
45865 + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
45866 + if test "X$func_dirname_result" = "X${1}"; then
45867 + func_dirname_result="${3}"
45868 + else
45869 + func_dirname_result="$func_dirname_result${2}"
45870 + fi
45871 +}
45872 +
45873 +# func_basename file
45874 +func_basename ()
45875 +{
45876 + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
45877 +}
45878 +
45879 +dnl func_dirname_and_basename
45880 +dnl A portable version of this function is already defined in general.m4sh
45881 +dnl so there is no need for it here.
45882 +
45883 +# func_stripname prefix suffix name
45884 +# strip PREFIX and SUFFIX off of NAME.
45885 +# PREFIX and SUFFIX must not contain globbing or regex special
45886 +# characters, hashes, percent signs, but SUFFIX may contain a leading
45887 +# dot (in which case that matches only a dot).
45888 +# func_strip_suffix prefix name
45889 +func_stripname ()
45890 +{
45891 + case ${2} in
45892 + .*) func_stripname_result=`$ECHO "X${3}" \
45893 + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
45894 + *) func_stripname_result=`$ECHO "X${3}" \
45895 + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
45896 + esac
45897 +}
45898 +
45899 +# sed scripts:
45900 +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
45901 +my_sed_long_arg='1s/^-[[^=]]*=//'
45902 +
45903 +# func_opt_split
45904 +func_opt_split ()
45905 +{
45906 + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
45907 + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
45908 +}
45909 +
45910 +# func_lo2o object
45911 +func_lo2o ()
45912 +{
45913 + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
45914 +}
45915 +
45916 +# func_xform libobj-or-source
45917 +func_xform ()
45918 +{
45919 + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
45920 +}
45921 +
45922 +# func_arith arithmetic-term...
45923 +func_arith ()
45924 +{
45925 + func_arith_result=`expr "$[@]"`
45926 +}
45927 +
45928 +# func_len string
45929 +# STRING may not start with a hyphen.
45930 +func_len ()
45931 +{
45932 + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
45933 +}
45934 +
45935 +_LT_EOF
45936 +esac
45937 +
45938 +case $lt_shell_append in
45939 + yes)
45940 + cat << \_LT_EOF >> "$cfgfile"
45941 +
45942 +# func_append var value
45943 +# Append VALUE to the end of shell variable VAR.
45944 +func_append ()
45945 +{
45946 + eval "$[1]+=\$[2]"
45947 +}
45948 +_LT_EOF
45949 + ;;
45950 + *)
45951 + cat << \_LT_EOF >> "$cfgfile"
45952 +
45953 +# func_append var value
45954 +# Append VALUE to the end of shell variable VAR.
45955 +func_append ()
45956 +{
45957 + eval "$[1]=\$$[1]\$[2]"
45958 +}
45959 +
45960 +_LT_EOF
45961 + ;;
45962 + esac
45963 +])
45964 diff --git a/libltdl/m4/ltdl.m4 b/libltdl/m4/ltdl.m4
45965 new file mode 100644
45966 index 0000000..f6be54a
45967 --- /dev/null
45968 +++ b/libltdl/m4/ltdl.m4
45969 @@ -0,0 +1,804 @@
45970 +# ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*-
45971 +#
45972 +# Copyright (C) 1999-2006, 2007, 2008 Free Software Foundation, Inc.
45973 +# Written by Thomas Tanner, 1999
45974 +#
45975 +# This file is free software; the Free Software Foundation gives
45976 +# unlimited permission to copy and/or distribute it, with or without
45977 +# modifications, as long as this notice is preserved.
45978 +
45979 +# serial 17 LTDL_INIT
45980 +
45981 +# LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE])
45982 +# ------------------------------------------
45983 +# DIRECTORY contains the libltdl sources. It is okay to call this
45984 +# function multiple times, as long as the same DIRECTORY is always given.
45985 +AC_DEFUN([LT_CONFIG_LTDL_DIR],
45986 +[AC_BEFORE([$0], [LTDL_INIT])
45987 +_$0($*)
45988 +])# LT_CONFIG_LTDL_DIR
45989 +
45990 +# We break this out into a separate macro, so that we can call it safely
45991 +# internally without being caught accidentally by the sed scan in libtoolize.
45992 +m4_defun([_LT_CONFIG_LTDL_DIR],
45993 +[dnl remove trailing slashes
45994 +m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$]))
45995 +m4_case(_LTDL_DIR,
45996 + [], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply `.'
45997 + m4_if(_ARG_DIR, [.],
45998 + [],
45999 + [m4_define([_LTDL_DIR], _ARG_DIR)
46000 + _LT_SHELL_INIT([lt_ltdl_dir=']_ARG_DIR['])])],
46001 + [m4_if(_ARG_DIR, _LTDL_DIR,
46002 + [],
46003 + [m4_fatal([multiple libltdl directories: `]_LTDL_DIR[', `]_ARG_DIR['])])])
46004 +m4_popdef([_ARG_DIR])
46005 +])# _LT_CONFIG_LTDL_DIR
46006 +
46007 +# Initialise:
46008 +m4_define([_LTDL_DIR], [])
46009 +
46010 +
46011 +# _LT_BUILD_PREFIX
46012 +# ----------------
46013 +# If Autoconf is new enough, expand to `${top_build_prefix}', otherwise
46014 +# to `${top_builddir}/'.
46015 +m4_define([_LT_BUILD_PREFIX],
46016 +[m4_ifdef([AC_AUTOCONF_VERSION],
46017 + [m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.62]),
46018 + [-1], [m4_ifdef([_AC_HAVE_TOP_BUILD_PREFIX],
46019 + [${top_build_prefix}],
46020 + [${top_builddir}/])],
46021 + [${top_build_prefix}])],
46022 + [${top_builddir}/])[]dnl
46023 +])
46024 +
46025 +
46026 +# LTDL_CONVENIENCE
46027 +# ----------------
46028 +# sets LIBLTDL to the link flags for the libltdl convenience library and
46029 +# LTDLINCL to the include flags for the libltdl header and adds
46030 +# --enable-ltdl-convenience to the configure arguments. Note that
46031 +# AC_CONFIG_SUBDIRS is not called here. LIBLTDL will be prefixed with
46032 +# '${top_build_prefix}' if available, otherwise with '${top_builddir}/',
46033 +# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
46034 +# quotes!). If your package is not flat and you're not using automake,
46035 +# define top_build_prefix, top_builddir, and top_srcdir appropriately
46036 +# in your Makefiles.
46037 +AC_DEFUN([LTDL_CONVENIENCE],
46038 +[AC_BEFORE([$0], [LTDL_INIT])dnl
46039 +dnl Although the argument is deprecated and no longer documented,
46040 +dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one
46041 +dnl here make sure it is the same as any other declaration of libltdl's
46042 +dnl location! This also ensures lt_ltdl_dir is set when configure.ac is
46043 +dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
46044 +m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
46045 +_$0()
46046 +])# LTDL_CONVENIENCE
46047 +
46048 +# AC_LIBLTDL_CONVENIENCE accepted a directory argument in older libtools,
46049 +# now we have LT_CONFIG_LTDL_DIR:
46050 +AU_DEFUN([AC_LIBLTDL_CONVENIENCE],
46051 +[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
46052 +_LTDL_CONVENIENCE])
46053 +
46054 +dnl aclocal-1.4 backwards compatibility:
46055 +dnl AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [])
46056 +
46057 +
46058 +# _LTDL_CONVENIENCE
46059 +# -----------------
46060 +# Code shared by LTDL_CONVENIENCE and LTDL_INIT([convenience]).
46061 +m4_defun([_LTDL_CONVENIENCE],
46062 +[case $enable_ltdl_convenience in
46063 + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
46064 + "") enable_ltdl_convenience=yes
46065 + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
46066 +esac
46067 +LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
46068 +LTDLDEPS=$LIBLTDL
46069 +LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
46070 +
46071 +AC_SUBST([LIBLTDL])
46072 +AC_SUBST([LTDLDEPS])
46073 +AC_SUBST([LTDLINCL])
46074 +
46075 +# For backwards non-gettext consistent compatibility...
46076 +INCLTDL="$LTDLINCL"
46077 +AC_SUBST([INCLTDL])
46078 +])# _LTDL_CONVENIENCE
46079 +
46080 +
46081 +# LTDL_INSTALLABLE
46082 +# ----------------
46083 +# sets LIBLTDL to the link flags for the libltdl installable library
46084 +# and LTDLINCL to the include flags for the libltdl header and adds
46085 +# --enable-ltdl-install to the configure arguments. Note that
46086 +# AC_CONFIG_SUBDIRS is not called from here. If an installed libltdl
46087 +# is not found, LIBLTDL will be prefixed with '${top_build_prefix}' if
46088 +# available, otherwise with '${top_builddir}/', and LTDLINCL will be
46089 +# prefixed with '${top_srcdir}/' (note the single quotes!). If your
46090 +# package is not flat and you're not using automake, define top_build_prefix,
46091 +# top_builddir, and top_srcdir appropriately in your Makefiles.
46092 +# In the future, this macro may have to be called after LT_INIT.
46093 +AC_DEFUN([LTDL_INSTALLABLE],
46094 +[AC_BEFORE([$0], [LTDL_INIT])dnl
46095 +dnl Although the argument is deprecated and no longer documented,
46096 +dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one
46097 +dnl here make sure it is the same as any other declaration of libltdl's
46098 +dnl location! This also ensures lt_ltdl_dir is set when configure.ac is
46099 +dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
46100 +m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
46101 +_$0()
46102 +])# LTDL_INSTALLABLE
46103 +
46104 +# AC_LIBLTDL_INSTALLABLE accepted a directory argument in older libtools,
46105 +# now we have LT_CONFIG_LTDL_DIR:
46106 +AU_DEFUN([AC_LIBLTDL_INSTALLABLE],
46107 +[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
46108 +_LTDL_INSTALLABLE])
46109 +
46110 +dnl aclocal-1.4 backwards compatibility:
46111 +dnl AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [])
46112 +
46113 +
46114 +# _LTDL_INSTALLABLE
46115 +# -----------------
46116 +# Code shared by LTDL_INSTALLABLE and LTDL_INIT([installable]).
46117 +m4_defun([_LTDL_INSTALLABLE],
46118 +[if test -f $prefix/lib/libltdl.la; then
46119 + lt_save_LDFLAGS="$LDFLAGS"
46120 + LDFLAGS="-L$prefix/lib $LDFLAGS"
46121 + AC_CHECK_LIB([ltdl], [lt_dlinit], [lt_lib_ltdl=yes])
46122 + LDFLAGS="$lt_save_LDFLAGS"
46123 + if test x"${lt_lib_ltdl-no}" = xyes; then
46124 + if test x"$enable_ltdl_install" != xyes; then
46125 + # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install
46126 + AC_MSG_WARN([not overwriting libltdl at $prefix, force with `--enable-ltdl-install'])
46127 + enable_ltdl_install=no
46128 + fi
46129 + elif test x"$enable_ltdl_install" = xno; then
46130 + AC_MSG_WARN([libltdl not installed, but installation disabled])
46131 + fi
46132 +fi
46133 +
46134 +# If configure.ac declared an installable ltdl, and the user didn't override
46135 +# with --disable-ltdl-install, we will install the shipped libltdl.
46136 +case $enable_ltdl_install in
46137 + no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
46138 + LIBLTDL="-lltdl"
46139 + LTDLDEPS=
46140 + LTDLINCL=
46141 + ;;
46142 + *) enable_ltdl_install=yes
46143 + ac_configure_args="$ac_configure_args --enable-ltdl-install"
46144 + LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la"
46145 + LTDLDEPS=$LIBLTDL
46146 + LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
46147 + ;;
46148 +esac
46149 +
46150 +AC_SUBST([LIBLTDL])
46151 +AC_SUBST([LTDLDEPS])
46152 +AC_SUBST([LTDLINCL])
46153 +
46154 +# For backwards non-gettext consistent compatibility...
46155 +INCLTDL="$LTDLINCL"
46156 +AC_SUBST([INCLTDL])
46157 +])# LTDL_INSTALLABLE
46158 +
46159 +
46160 +# _LTDL_MODE_DISPATCH
46161 +# -------------------
46162 +m4_define([_LTDL_MODE_DISPATCH],
46163 +[dnl If _LTDL_DIR is `.', then we are configuring libltdl itself:
46164 +m4_if(_LTDL_DIR, [],
46165 + [],
46166 + dnl if _LTDL_MODE was not set already, the default value is `subproject':
46167 + [m4_case(m4_default(_LTDL_MODE, [subproject]),
46168 + [subproject], [AC_CONFIG_SUBDIRS(_LTDL_DIR)
46169 + _LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"])],
46170 + [nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"])],
46171 + [recursive], [],
46172 + [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])dnl
46173 +dnl Be careful not to expand twice:
46174 +m4_define([$0], [])
46175 +])# _LTDL_MODE_DISPATCH
46176 +
46177 +
46178 +# _LT_LIBOBJ(MODULE_NAME)
46179 +# -----------------------
46180 +# Like AC_LIBOBJ, except that MODULE_NAME goes into _LT_LIBOBJS instead
46181 +# of into LIBOBJS.
46182 +AC_DEFUN([_LT_LIBOBJ], [
46183 + m4_pattern_allow([^_LT_LIBOBJS$])
46184 + _LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext"
46185 +])# _LT_LIBOBJS
46186 +
46187 +
46188 +# LTDL_INIT([OPTIONS])
46189 +# --------------------
46190 +# Clients of libltdl can use this macro to allow the installer to
46191 +# choose between a shipped copy of the ltdl sources or a preinstalled
46192 +# version of the library. If the shipped ltdl sources are not in a
46193 +# subdirectory named libltdl, the directory name must be given by
46194 +# LT_CONFIG_LTDL_DIR.
46195 +AC_DEFUN([LTDL_INIT],
46196 +[dnl Parse OPTIONS
46197 +_LT_SET_OPTIONS([$0], [$1])
46198 +
46199 +dnl We need to keep our own list of libobjs separate from our parent project,
46200 +dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while
46201 +dnl we look for our own LIBOBJs.
46202 +m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ]))
46203 +m4_pushdef([AC_LIBSOURCES])
46204 +
46205 +dnl If not otherwise defined, default to the 1.5.x compatible subproject mode:
46206 +m4_if(_LTDL_MODE, [],
46207 + [m4_define([_LTDL_MODE], m4_default([$2], [subproject]))
46208 + m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])],
46209 + [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])
46210 +
46211 +AC_ARG_WITH([included_ltdl],
46212 + [AS_HELP_STRING([--with-included-ltdl],
46213 + [use the GNU ltdl sources included here])])
46214 +
46215 +if test "x$with_included_ltdl" != xyes; then
46216 + # We are not being forced to use the included libltdl sources, so
46217 + # decide whether there is a useful installed version we can use.
46218 + AC_CHECK_HEADER([ltdl.h],
46219 + [AC_CHECK_DECL([lt_dlinterface_register],
46220 + [AC_CHECK_LIB([ltdl], [lt_dladvise_preload],
46221 + [with_included_ltdl=no],
46222 + [with_included_ltdl=yes])],
46223 + [with_included_ltdl=yes],
46224 + [AC_INCLUDES_DEFAULT
46225 + #include <ltdl.h>])],
46226 + [with_included_ltdl=yes],
46227 + [AC_INCLUDES_DEFAULT]
46228 + )
46229 +fi
46230 +
46231 +dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE
46232 +dnl was called yet, then for old times' sake, we assume libltdl is in an
46233 +dnl eponymous directory:
46234 +AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])])
46235 +
46236 +AC_ARG_WITH([ltdl_include],
46237 + [AS_HELP_STRING([--with-ltdl-include=DIR],
46238 + [use the ltdl headers installed in DIR])])
46239 +
46240 +if test -n "$with_ltdl_include"; then
46241 + if test -f "$with_ltdl_include/ltdl.h"; then :
46242 + else
46243 + AC_MSG_ERROR([invalid ltdl include directory: `$with_ltdl_include'])
46244 + fi
46245 +else
46246 + with_ltdl_include=no
46247 +fi
46248 +
46249 +AC_ARG_WITH([ltdl_lib],
46250 + [AS_HELP_STRING([--with-ltdl-lib=DIR],
46251 + [use the libltdl.la installed in DIR])])
46252 +
46253 +if test -n "$with_ltdl_lib"; then
46254 + if test -f "$with_ltdl_lib/libltdl.la"; then :
46255 + else
46256 + AC_MSG_ERROR([invalid ltdl library directory: `$with_ltdl_lib'])
46257 + fi
46258 +else
46259 + with_ltdl_lib=no
46260 +fi
46261 +
46262 +case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
46263 + ,yes,no,no,)
46264 + m4_case(m4_default(_LTDL_TYPE, [convenience]),
46265 + [convenience], [_LTDL_CONVENIENCE],
46266 + [installable], [_LTDL_INSTALLABLE],
46267 + [m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)])
46268 + ;;
46269 + ,no,no,no,)
46270 + # If the included ltdl is not to be used, then use the
46271 + # preinstalled libltdl we found.
46272 + AC_DEFINE([HAVE_LTDL], [1],
46273 + [Define this if a modern libltdl is already installed])
46274 + LIBLTDL=-lltdl
46275 + LTDLDEPS=
46276 + LTDLINCL=
46277 + ;;
46278 + ,no*,no,*)
46279 + AC_MSG_ERROR([`--with-ltdl-include' and `--with-ltdl-lib' options must be used together])
46280 + ;;
46281 + *) with_included_ltdl=no
46282 + LIBLTDL="-L$with_ltdl_lib -lltdl"
46283 + LTDLDEPS=
46284 + LTDLINCL="-I$with_ltdl_include"
46285 + ;;
46286 +esac
46287 +INCLTDL="$LTDLINCL"
46288 +
46289 +# Report our decision...
46290 +AC_MSG_CHECKING([where to find libltdl headers])
46291 +AC_MSG_RESULT([$LTDLINCL])
46292 +AC_MSG_CHECKING([where to find libltdl library])
46293 +AC_MSG_RESULT([$LIBLTDL])
46294 +
46295 +_LTDL_SETUP
46296 +
46297 +dnl restore autoconf definition.
46298 +m4_popdef([AC_LIBOBJ])
46299 +m4_popdef([AC_LIBSOURCES])
46300 +
46301 +AC_CONFIG_COMMANDS_PRE([
46302 + _ltdl_libobjs=
46303 + _ltdl_ltlibobjs=
46304 + if test -n "$_LT_LIBOBJS"; then
46305 + # Remove the extension.
46306 + _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
46307 + for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
46308 + _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
46309 + _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
46310 + done
46311 + fi
46312 + AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs])
46313 + AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs])
46314 +])
46315 +
46316 +# Only expand once:
46317 +m4_define([LTDL_INIT])
46318 +])# LTDL_INIT
46319 +
46320 +# Old names:
46321 +AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)])
46322 +AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)])
46323 +AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)])
46324 +dnl aclocal-1.4 backwards compatibility:
46325 +dnl AC_DEFUN([AC_LIB_LTDL], [])
46326 +dnl AC_DEFUN([AC_WITH_LTDL], [])
46327 +dnl AC_DEFUN([LT_WITH_LTDL], [])
46328 +
46329 +
46330 +# _LTDL_SETUP
46331 +# -----------
46332 +# Perform all the checks necessary for compilation of the ltdl objects
46333 +# -- including compiler checks and header checks. This is a public
46334 +# interface mainly for the benefit of libltdl's own configure.ac, most
46335 +# other users should call LTDL_INIT instead.
46336 +AC_DEFUN([_LTDL_SETUP],
46337 +[AC_REQUIRE([AC_PROG_CC])dnl
46338 +AC_REQUIRE([LT_SYS_MODULE_EXT])dnl
46339 +AC_REQUIRE([LT_SYS_MODULE_PATH])dnl
46340 +AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl
46341 +AC_REQUIRE([LT_LIB_DLLOAD])dnl
46342 +AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
46343 +AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl
46344 +AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl
46345 +AC_REQUIRE([gl_FUNC_ARGZ])dnl
46346 +
46347 +m4_require([_LT_CHECK_OBJDIR])dnl
46348 +m4_require([_LT_HEADER_DLFCN])dnl
46349 +m4_require([_LT_CHECK_DLPREOPEN])dnl
46350 +m4_require([_LT_DECL_SED])dnl
46351 +
46352 +dnl Don't require this, or it will be expanded earlier than the code
46353 +dnl that sets the variables it relies on:
46354 +_LT_ENABLE_INSTALL
46355 +
46356 +dnl _LTDL_MODE specific code must be called at least once:
46357 +_LTDL_MODE_DISPATCH
46358 +
46359 +# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
46360 +# the user used. This is so that ltdl.h can pick up the parent projects
46361 +# config.h file, The first file in AC_CONFIG_HEADERS must contain the
46362 +# definitions required by ltdl.c.
46363 +# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
46364 +AC_CONFIG_COMMANDS_PRE([dnl
46365 +m4_pattern_allow([^LT_CONFIG_H$])dnl
46366 +m4_ifset([AH_HEADER],
46367 + [LT_CONFIG_H=AH_HEADER],
46368 + [m4_ifset([AC_LIST_HEADERS],
46369 + [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[ ]]*,,;s,[[ :]].*$,,'`],
46370 + [])])])
46371 +AC_SUBST([LT_CONFIG_H])
46372 +
46373 +AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h],
46374 + [], [], [AC_INCLUDES_DEFAULT])
46375 +
46376 +AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])])
46377 +AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])])
46378 +
46379 +AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension])
46380 +
46381 +name=ltdl
46382 +LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
46383 +AC_SUBST([LTDLOPEN])
46384 +])# _LTDL_SETUP
46385 +
46386 +
46387 +# _LT_ENABLE_INSTALL
46388 +# ------------------
46389 +m4_define([_LT_ENABLE_INSTALL],
46390 +[AC_ARG_ENABLE([ltdl-install],
46391 + [AS_HELP_STRING([--enable-ltdl-install], [install libltdl])])
46392 +
46393 +case ,${enable_ltdl_install},${enable_ltdl_convenience} in
46394 + *yes*) ;;
46395 + *) enable_ltdl_convenience=yes ;;
46396 +esac
46397 +
46398 +m4_ifdef([AM_CONDITIONAL],
46399 +[AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno)
46400 + AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno)])
46401 +])# _LT_ENABLE_INSTALL
46402 +
46403 +
46404 +# LT_SYS_DLOPEN_DEPLIBS
46405 +# ---------------------
46406 +AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS],
46407 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
46408 +AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
46409 + [lt_cv_sys_dlopen_deplibs],
46410 + [# PORTME does your system automatically load deplibs for dlopen?
46411 + # or its logical equivalent (e.g. shl_load for HP-UX < 11)
46412 + # For now, we just catch OSes we know something about -- in the
46413 + # future, we'll try test this programmatically.
46414 + lt_cv_sys_dlopen_deplibs=unknown
46415 + case $host_os in
46416 + aix3*|aix4.1.*|aix4.2.*)
46417 + # Unknown whether this is true for these versions of AIX, but
46418 + # we want this `case' here to explicitly catch those versions.
46419 + lt_cv_sys_dlopen_deplibs=unknown
46420 + ;;
46421 + aix[[4-9]]*)
46422 + lt_cv_sys_dlopen_deplibs=yes
46423 + ;;
46424 + amigaos*)
46425 + case $host_cpu in
46426 + powerpc)
46427 + lt_cv_sys_dlopen_deplibs=no
46428 + ;;
46429 + esac
46430 + ;;
46431 + darwin*)
46432 + # Assuming the user has installed a libdl from somewhere, this is true
46433 + # If you are looking for one http://www.opendarwin.org/projects/dlcompat
46434 + lt_cv_sys_dlopen_deplibs=yes
46435 + ;;
46436 + freebsd* | dragonfly*)
46437 + lt_cv_sys_dlopen_deplibs=yes
46438 + ;;
46439 + gnu* | linux* | k*bsd*-gnu)
46440 + # GNU and its variants, using gnu ld.so (Glibc)
46441 + lt_cv_sys_dlopen_deplibs=yes
46442 + ;;
46443 + hpux10*|hpux11*)
46444 + lt_cv_sys_dlopen_deplibs=yes
46445 + ;;
46446 + interix*)
46447 + lt_cv_sys_dlopen_deplibs=yes
46448 + ;;
46449 + irix[[12345]]*|irix6.[[01]]*)
46450 + # Catch all versions of IRIX before 6.2, and indicate that we don't
46451 + # know how it worked for any of those versions.
46452 + lt_cv_sys_dlopen_deplibs=unknown
46453 + ;;
46454 + irix*)
46455 + # The case above catches anything before 6.2, and it's known that
46456 + # at 6.2 and later dlopen does load deplibs.
46457 + lt_cv_sys_dlopen_deplibs=yes
46458 + ;;
46459 + netbsd*)
46460 + lt_cv_sys_dlopen_deplibs=yes
46461 + ;;
46462 + openbsd*)
46463 + lt_cv_sys_dlopen_deplibs=yes
46464 + ;;
46465 + osf[[1234]]*)
46466 + # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
46467 + # it did *not* use an RPATH in a shared library to find objects the
46468 + # library depends on, so we explicitly say `no'.
46469 + lt_cv_sys_dlopen_deplibs=no
46470 + ;;
46471 + osf5.0|osf5.0a|osf5.1)
46472 + # dlopen *does* load deplibs and with the right loader patch applied
46473 + # it even uses RPATH in a shared library to search for shared objects
46474 + # that the library depends on, but there's no easy way to know if that
46475 + # patch is installed. Since this is the case, all we can really
46476 + # say is unknown -- it depends on the patch being installed. If
46477 + # it is, this changes to `yes'. Without it, it would be `no'.
46478 + lt_cv_sys_dlopen_deplibs=unknown
46479 + ;;
46480 + osf*)
46481 + # the two cases above should catch all versions of osf <= 5.1. Read
46482 + # the comments above for what we know about them.
46483 + # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
46484 + # is used to find them so we can finally say `yes'.
46485 + lt_cv_sys_dlopen_deplibs=yes
46486 + ;;
46487 + qnx*)
46488 + lt_cv_sys_dlopen_deplibs=yes
46489 + ;;
46490 + solaris*)
46491 + lt_cv_sys_dlopen_deplibs=yes
46492 + ;;
46493 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
46494 + libltdl_cv_sys_dlopen_deplibs=yes
46495 + ;;
46496 + esac
46497 + ])
46498 +if test "$lt_cv_sys_dlopen_deplibs" != yes; then
46499 + AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1],
46500 + [Define if the OS needs help to load dependent libraries for dlopen().])
46501 +fi
46502 +])# LT_SYS_DLOPEN_DEPLIBS
46503 +
46504 +# Old name:
46505 +AU_ALIAS([AC_LTDL_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS])
46506 +dnl aclocal-1.4 backwards compatibility:
46507 +dnl AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [])
46508 +
46509 +
46510 +# LT_SYS_MODULE_EXT
46511 +# -----------------
46512 +AC_DEFUN([LT_SYS_MODULE_EXT],
46513 +[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
46514 +AC_CACHE_CHECK([which extension is used for runtime loadable modules],
46515 + [libltdl_cv_shlibext],
46516 +[
46517 +module=yes
46518 +eval libltdl_cv_shlibext=$shrext_cmds
46519 + ])
46520 +if test -n "$libltdl_cv_shlibext"; then
46521 + m4_pattern_allow([LT_MODULE_EXT])dnl
46522 + AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"],
46523 + [Define to the extension used for runtime loadable modules, say, ".so".])
46524 +fi
46525 +])# LT_SYS_MODULE_EXT
46526 +
46527 +# Old name:
46528 +AU_ALIAS([AC_LTDL_SHLIBEXT], [LT_SYS_MODULE_EXT])
46529 +dnl aclocal-1.4 backwards compatibility:
46530 +dnl AC_DEFUN([AC_LTDL_SHLIBEXT], [])
46531 +
46532 +
46533 +# LT_SYS_MODULE_PATH
46534 +# ------------------
46535 +AC_DEFUN([LT_SYS_MODULE_PATH],
46536 +[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
46537 +AC_CACHE_CHECK([which variable specifies run-time module search path],
46538 + [lt_cv_module_path_var], [lt_cv_module_path_var="$shlibpath_var"])
46539 +if test -n "$lt_cv_module_path_var"; then
46540 + m4_pattern_allow([LT_MODULE_PATH_VAR])dnl
46541 + AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"],
46542 + [Define to the name of the environment variable that determines the run-time module search path.])
46543 +fi
46544 +])# LT_SYS_MODULE_PATH
46545 +
46546 +# Old name:
46547 +AU_ALIAS([AC_LTDL_SHLIBPATH], [LT_SYS_MODULE_PATH])
46548 +dnl aclocal-1.4 backwards compatibility:
46549 +dnl AC_DEFUN([AC_LTDL_SHLIBPATH], [])
46550 +
46551 +
46552 +# LT_SYS_DLSEARCH_PATH
46553 +# --------------------
46554 +AC_DEFUN([LT_SYS_DLSEARCH_PATH],
46555 +[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
46556 +AC_CACHE_CHECK([for the default library search path],
46557 + [lt_cv_sys_dlsearch_path],
46558 + [lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"])
46559 +if test -n "$lt_cv_sys_dlsearch_path"; then
46560 + sys_dlsearch_path=
46561 + for dir in $lt_cv_sys_dlsearch_path; do
46562 + if test -z "$sys_dlsearch_path"; then
46563 + sys_dlsearch_path="$dir"
46564 + else
46565 + sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
46566 + fi
46567 + done
46568 + m4_pattern_allow([LT_DLSEARCH_PATH])dnl
46569 + AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"],
46570 + [Define to the system default library search path.])
46571 +fi
46572 +])# LT_SYS_DLSEARCH_PATH
46573 +
46574 +# Old name:
46575 +AU_ALIAS([AC_LTDL_SYSSEARCHPATH], [LT_SYS_DLSEARCH_PATH])
46576 +dnl aclocal-1.4 backwards compatibility:
46577 +dnl AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [])
46578 +
46579 +
46580 +# _LT_CHECK_DLPREOPEN
46581 +# -------------------
46582 +m4_defun([_LT_CHECK_DLPREOPEN],
46583 +[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
46584 +AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen],
46585 + [libltdl_cv_preloaded_symbols],
46586 + [if test -n "$lt_cv_sys_global_symbol_pipe"; then
46587 + libltdl_cv_preloaded_symbols=yes
46588 + else
46589 + libltdl_cv_preloaded_symbols=no
46590 + fi
46591 + ])
46592 +if test x"$libltdl_cv_preloaded_symbols" = xyes; then
46593 + AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1],
46594 + [Define if libtool can extract symbol lists from object files.])
46595 +fi
46596 +])# _LT_CHECK_DLPREOPEN
46597 +
46598 +
46599 +# LT_LIB_DLLOAD
46600 +# -------------
46601 +AC_DEFUN([LT_LIB_DLLOAD],
46602 +[m4_pattern_allow([^LT_DLLOADERS$])
46603 +LT_DLLOADERS=
46604 +AC_SUBST([LT_DLLOADERS])
46605 +
46606 +AC_LANG_PUSH([C])
46607 +
46608 +LIBADD_DLOPEN=
46609 +AC_SEARCH_LIBS([dlopen], [dl],
46610 + [AC_DEFINE([HAVE_LIBDL], [1],
46611 + [Define if you have the libdl library or equivalent.])
46612 + if test "$ac_cv_search_dlopen" != "none required" ; then
46613 + LIBADD_DLOPEN="-ldl"
46614 + fi
46615 + libltdl_cv_lib_dl_dlopen="yes"
46616 + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
46617 + [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H
46618 +# include <dlfcn.h>
46619 +#endif
46620 + ]], [[dlopen(0, 0);]])],
46621 + [AC_DEFINE([HAVE_LIBDL], [1],
46622 + [Define if you have the libdl library or equivalent.])
46623 + libltdl_cv_func_dlopen="yes"
46624 + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
46625 + [AC_CHECK_LIB([svld], [dlopen],
46626 + [AC_DEFINE([HAVE_LIBDL], [1],
46627 + [Define if you have the libdl library or equivalent.])
46628 + LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
46629 + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])])
46630 +if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
46631 +then
46632 + lt_save_LIBS="$LIBS"
46633 + LIBS="$LIBS $LIBADD_DLOPEN"
46634 + AC_CHECK_FUNCS([dlerror])
46635 + LIBS="$lt_save_LIBS"
46636 +fi
46637 +AC_SUBST([LIBADD_DLOPEN])
46638 +
46639 +LIBADD_SHL_LOAD=
46640 +AC_CHECK_FUNC([shl_load],
46641 + [AC_DEFINE([HAVE_SHL_LOAD], [1],
46642 + [Define if you have the shl_load function.])
46643 + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"],
46644 + [AC_CHECK_LIB([dld], [shl_load],
46645 + [AC_DEFINE([HAVE_SHL_LOAD], [1],
46646 + [Define if you have the shl_load function.])
46647 + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
46648 + LIBADD_SHL_LOAD="-ldld"])])
46649 +AC_SUBST([LIBADD_SHL_LOAD])
46650 +
46651 +case $host_os in
46652 +darwin[[1567]].*)
46653 +# We only want this for pre-Mac OS X 10.4.
46654 + AC_CHECK_FUNC([_dyld_func_lookup],
46655 + [AC_DEFINE([HAVE_DYLD], [1],
46656 + [Define if you have the _dyld_func_lookup function.])
46657 + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"])
46658 + ;;
46659 +beos*)
46660 + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
46661 + ;;
46662 +cygwin* | mingw* | os2* | pw32*)
46663 + AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include <sys/cygwin.h>]])
46664 + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
46665 + ;;
46666 +esac
46667 +
46668 +AC_CHECK_LIB([dld], [dld_link],
46669 + [AC_DEFINE([HAVE_DLD], [1],
46670 + [Define if you have the GNU dld library.])
46671 + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"])
46672 +AC_SUBST([LIBADD_DLD_LINK])
46673 +
46674 +m4_pattern_allow([^LT_DLPREOPEN$])
46675 +LT_DLPREOPEN=
46676 +if test -n "$LT_DLLOADERS"
46677 +then
46678 + for lt_loader in $LT_DLLOADERS; do
46679 + LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
46680 + done
46681 + AC_DEFINE([HAVE_LIBDLLOADER], [1],
46682 + [Define if libdlloader will be built on this platform])
46683 +fi
46684 +AC_SUBST([LT_DLPREOPEN])
46685 +
46686 +dnl This isn't used anymore, but set it for backwards compatibility
46687 +LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
46688 +AC_SUBST([LIBADD_DL])
46689 +
46690 +AC_LANG_POP
46691 +])# LT_LIB_DLLOAD
46692 +
46693 +# Old name:
46694 +AU_ALIAS([AC_LTDL_DLLIB], [LT_LIB_DLLOAD])
46695 +dnl aclocal-1.4 backwards compatibility:
46696 +dnl AC_DEFUN([AC_LTDL_DLLIB], [])
46697 +
46698 +
46699 +# LT_SYS_SYMBOL_USCORE
46700 +# --------------------
46701 +# does the compiler prefix global symbols with an underscore?
46702 +AC_DEFUN([LT_SYS_SYMBOL_USCORE],
46703 +[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
46704 +AC_CACHE_CHECK([for _ prefix in compiled symbols],
46705 + [lt_cv_sys_symbol_underscore],
46706 + [lt_cv_sys_symbol_underscore=no
46707 + cat > conftest.$ac_ext <<_LT_EOF
46708 +void nm_test_func(){}
46709 +int main(){nm_test_func;return 0;}
46710 +_LT_EOF
46711 + if AC_TRY_EVAL(ac_compile); then
46712 + # Now try to grab the symbols.
46713 + ac_nlist=conftest.nm
46714 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
46715 + # See whether the symbols have a leading underscore.
46716 + if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
46717 + lt_cv_sys_symbol_underscore=yes
46718 + else
46719 + if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
46720 + :
46721 + else
46722 + echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD
46723 + fi
46724 + fi
46725 + else
46726 + echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
46727 + fi
46728 + else
46729 + echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD
46730 + cat conftest.c >&AS_MESSAGE_LOG_FD
46731 + fi
46732 + rm -rf conftest*
46733 + ])
46734 + sys_symbol_underscore=$lt_cv_sys_symbol_underscore
46735 + AC_SUBST([sys_symbol_underscore])
46736 +])# LT_SYS_SYMBOL_USCORE
46737 +
46738 +# Old name:
46739 +AU_ALIAS([AC_LTDL_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE])
46740 +dnl aclocal-1.4 backwards compatibility:
46741 +dnl AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [])
46742 +
46743 +
46744 +# LT_FUNC_DLSYM_USCORE
46745 +# --------------------
46746 +AC_DEFUN([LT_FUNC_DLSYM_USCORE],
46747 +[AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
46748 +if test x"$lt_cv_sys_symbol_underscore" = xyes; then
46749 + if test x"$libltdl_cv_func_dlopen" = xyes ||
46750 + test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
46751 + AC_CACHE_CHECK([whether we have to add an underscore for dlsym],
46752 + [libltdl_cv_need_uscore],
46753 + [libltdl_cv_need_uscore=unknown
46754 + save_LIBS="$LIBS"
46755 + LIBS="$LIBS $LIBADD_DLOPEN"
46756 + _LT_TRY_DLOPEN_SELF(
46757 + [libltdl_cv_need_uscore=no], [libltdl_cv_need_uscore=yes],
46758 + [], [libltdl_cv_need_uscore=cross])
46759 + LIBS="$save_LIBS"
46760 + ])
46761 + fi
46762 +fi
46763 +
46764 +if test x"$libltdl_cv_need_uscore" = xyes; then
46765 + AC_DEFINE([NEED_USCORE], [1],
46766 + [Define if dlsym() requires a leading underscore in symbol names.])
46767 +fi
46768 +])# LT_FUNC_DLSYM_USCORE
46769 +
46770 +# Old name:
46771 +AU_ALIAS([AC_LTDL_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE])
46772 +dnl aclocal-1.4 backwards compatibility:
46773 +dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], [])
46774 diff --git a/libltdl/m4/ltoptions.m4 b/libltdl/m4/ltoptions.m4
46775 new file mode 100644
46776 index 0000000..34151a3
46777 --- /dev/null
46778 +++ b/libltdl/m4/ltoptions.m4
46779 @@ -0,0 +1,368 @@
46780 +# Helper functions for option handling. -*- Autoconf -*-
46781 +#
46782 +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
46783 +# Written by Gary V. Vaughan, 2004
46784 +#
46785 +# This file is free software; the Free Software Foundation gives
46786 +# unlimited permission to copy and/or distribute it, with or without
46787 +# modifications, as long as this notice is preserved.
46788 +
46789 +# serial 6 ltoptions.m4
46790 +
46791 +# This is to help aclocal find these macros, as it can't see m4_define.
46792 +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
46793 +
46794 +
46795 +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
46796 +# ------------------------------------------
46797 +m4_define([_LT_MANGLE_OPTION],
46798 +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
46799 +
46800 +
46801 +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
46802 +# ---------------------------------------
46803 +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
46804 +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
46805 +# saved as a flag.
46806 +m4_define([_LT_SET_OPTION],
46807 +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
46808 +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
46809 + _LT_MANGLE_DEFUN([$1], [$2]),
46810 + [m4_warning([Unknown $1 option `$2'])])[]dnl
46811 +])
46812 +
46813 +
46814 +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
46815 +# ------------------------------------------------------------
46816 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
46817 +m4_define([_LT_IF_OPTION],
46818 +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
46819 +
46820 +
46821 +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
46822 +# -------------------------------------------------------
46823 +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
46824 +# are set.
46825 +m4_define([_LT_UNLESS_OPTIONS],
46826 +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
46827 + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
46828 + [m4_define([$0_found])])])[]dnl
46829 +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
46830 +])[]dnl
46831 +])
46832 +
46833 +
46834 +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
46835 +# ----------------------------------------
46836 +# OPTION-LIST is a space-separated list of Libtool options associated
46837 +# with MACRO-NAME. If any OPTION has a matching handler declared with
46838 +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
46839 +# the unknown option and exit.
46840 +m4_defun([_LT_SET_OPTIONS],
46841 +[# Set options
46842 +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
46843 + [_LT_SET_OPTION([$1], _LT_Option)])
46844 +
46845 +m4_if([$1],[LT_INIT],[
46846 + dnl
46847 + dnl Simply set some default values (i.e off) if boolean options were not
46848 + dnl specified:
46849 + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
46850 + ])
46851 + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
46852 + ])
46853 + dnl
46854 + dnl If no reference was made to various pairs of opposing options, then
46855 + dnl we run the default mode handler for the pair. For example, if neither
46856 + dnl `shared' nor `disable-shared' was passed, we enable building of shared
46857 + dnl archives by default:
46858 + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
46859 + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
46860 + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
46861 + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
46862 + [_LT_ENABLE_FAST_INSTALL])
46863 + ])
46864 +])# _LT_SET_OPTIONS
46865 +
46866 +
46867 +## --------------------------------- ##
46868 +## Macros to handle LT_INIT options. ##
46869 +## --------------------------------- ##
46870 +
46871 +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
46872 +# -----------------------------------------
46873 +m4_define([_LT_MANGLE_DEFUN],
46874 +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
46875 +
46876 +
46877 +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
46878 +# -----------------------------------------------
46879 +m4_define([LT_OPTION_DEFINE],
46880 +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
46881 +])# LT_OPTION_DEFINE
46882 +
46883 +
46884 +# dlopen
46885 +# ------
46886 +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
46887 +])
46888 +
46889 +AU_DEFUN([AC_LIBTOOL_DLOPEN],
46890 +[_LT_SET_OPTION([LT_INIT], [dlopen])
46891 +AC_DIAGNOSE([obsolete],
46892 +[$0: Remove this warning and the call to _LT_SET_OPTION when you
46893 +put the `dlopen' option into LT_INIT's first parameter.])
46894 +])
46895 +
46896 +dnl aclocal-1.4 backwards compatibility:
46897 +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
46898 +
46899 +
46900 +# win32-dll
46901 +# ---------
46902 +# Declare package support for building win32 dll's.
46903 +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
46904 +[enable_win32_dll=yes
46905 +
46906 +case $host in
46907 +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
46908 + AC_CHECK_TOOL(AS, as, false)
46909 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
46910 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
46911 + ;;
46912 +esac
46913 +
46914 +test -z "$AS" && AS=as
46915 +_LT_DECL([], [AS], [0], [Assembler program])dnl
46916 +
46917 +test -z "$DLLTOOL" && DLLTOOL=dlltool
46918 +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
46919 +
46920 +test -z "$OBJDUMP" && OBJDUMP=objdump
46921 +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
46922 +])# win32-dll
46923 +
46924 +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
46925 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
46926 +_LT_SET_OPTION([LT_INIT], [win32-dll])
46927 +AC_DIAGNOSE([obsolete],
46928 +[$0: Remove this warning and the call to _LT_SET_OPTION when you
46929 +put the `win32-dll' option into LT_INIT's first parameter.])
46930 +])
46931 +
46932 +dnl aclocal-1.4 backwards compatibility:
46933 +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
46934 +
46935 +
46936 +# _LT_ENABLE_SHARED([DEFAULT])
46937 +# ----------------------------
46938 +# implement the --enable-shared flag, and supports the `shared' and
46939 +# `disable-shared' LT_INIT options.
46940 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
46941 +m4_define([_LT_ENABLE_SHARED],
46942 +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
46943 +AC_ARG_ENABLE([shared],
46944 + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
46945 + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
46946 + [p=${PACKAGE-default}
46947 + case $enableval in
46948 + yes) enable_shared=yes ;;
46949 + no) enable_shared=no ;;
46950 + *)
46951 + enable_shared=no
46952 + # Look at the argument we got. We use all the common list separators.
46953 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
46954 + for pkg in $enableval; do
46955 + IFS="$lt_save_ifs"
46956 + if test "X$pkg" = "X$p"; then
46957 + enable_shared=yes
46958 + fi
46959 + done
46960 + IFS="$lt_save_ifs"
46961 + ;;
46962 + esac],
46963 + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
46964 +
46965 + _LT_DECL([build_libtool_libs], [enable_shared], [0],
46966 + [Whether or not to build shared libraries])
46967 +])# _LT_ENABLE_SHARED
46968 +
46969 +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
46970 +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
46971 +
46972 +# Old names:
46973 +AC_DEFUN([AC_ENABLE_SHARED],
46974 +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
46975 +])
46976 +
46977 +AC_DEFUN([AC_DISABLE_SHARED],
46978 +[_LT_SET_OPTION([LT_INIT], [disable-shared])
46979 +])
46980 +
46981 +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
46982 +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
46983 +
46984 +dnl aclocal-1.4 backwards compatibility:
46985 +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
46986 +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
46987 +
46988 +
46989 +
46990 +# _LT_ENABLE_STATIC([DEFAULT])
46991 +# ----------------------------
46992 +# implement the --enable-static flag, and support the `static' and
46993 +# `disable-static' LT_INIT options.
46994 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
46995 +m4_define([_LT_ENABLE_STATIC],
46996 +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
46997 +AC_ARG_ENABLE([static],
46998 + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
46999 + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
47000 + [p=${PACKAGE-default}
47001 + case $enableval in
47002 + yes) enable_static=yes ;;
47003 + no) enable_static=no ;;
47004 + *)
47005 + enable_static=no
47006 + # Look at the argument we got. We use all the common list separators.
47007 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
47008 + for pkg in $enableval; do
47009 + IFS="$lt_save_ifs"
47010 + if test "X$pkg" = "X$p"; then
47011 + enable_static=yes
47012 + fi
47013 + done
47014 + IFS="$lt_save_ifs"
47015 + ;;
47016 + esac],
47017 + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
47018 +
47019 + _LT_DECL([build_old_libs], [enable_static], [0],
47020 + [Whether or not to build static libraries])
47021 +])# _LT_ENABLE_STATIC
47022 +
47023 +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
47024 +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
47025 +
47026 +# Old names:
47027 +AC_DEFUN([AC_ENABLE_STATIC],
47028 +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
47029 +])
47030 +
47031 +AC_DEFUN([AC_DISABLE_STATIC],
47032 +[_LT_SET_OPTION([LT_INIT], [disable-static])
47033 +])
47034 +
47035 +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
47036 +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
47037 +
47038 +dnl aclocal-1.4 backwards compatibility:
47039 +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
47040 +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
47041 +
47042 +
47043 +
47044 +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
47045 +# ----------------------------------
47046 +# implement the --enable-fast-install flag, and support the `fast-install'
47047 +# and `disable-fast-install' LT_INIT options.
47048 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
47049 +m4_define([_LT_ENABLE_FAST_INSTALL],
47050 +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
47051 +AC_ARG_ENABLE([fast-install],
47052 + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
47053 + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
47054 + [p=${PACKAGE-default}
47055 + case $enableval in
47056 + yes) enable_fast_install=yes ;;
47057 + no) enable_fast_install=no ;;
47058 + *)
47059 + enable_fast_install=no
47060 + # Look at the argument we got. We use all the common list separators.
47061 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
47062 + for pkg in $enableval; do
47063 + IFS="$lt_save_ifs"
47064 + if test "X$pkg" = "X$p"; then
47065 + enable_fast_install=yes
47066 + fi
47067 + done
47068 + IFS="$lt_save_ifs"
47069 + ;;
47070 + esac],
47071 + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
47072 +
47073 +_LT_DECL([fast_install], [enable_fast_install], [0],
47074 + [Whether or not to optimize for fast installation])dnl
47075 +])# _LT_ENABLE_FAST_INSTALL
47076 +
47077 +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
47078 +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
47079 +
47080 +# Old names:
47081 +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
47082 +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
47083 +AC_DIAGNOSE([obsolete],
47084 +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
47085 +the `fast-install' option into LT_INIT's first parameter.])
47086 +])
47087 +
47088 +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
47089 +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
47090 +AC_DIAGNOSE([obsolete],
47091 +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
47092 +the `disable-fast-install' option into LT_INIT's first parameter.])
47093 +])
47094 +
47095 +dnl aclocal-1.4 backwards compatibility:
47096 +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
47097 +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
47098 +
47099 +
47100 +# _LT_WITH_PIC([MODE])
47101 +# --------------------
47102 +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
47103 +# LT_INIT options.
47104 +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
47105 +m4_define([_LT_WITH_PIC],
47106 +[AC_ARG_WITH([pic],
47107 + [AS_HELP_STRING([--with-pic],
47108 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
47109 + [pic_mode="$withval"],
47110 + [pic_mode=default])
47111 +
47112 +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
47113 +
47114 +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
47115 +])# _LT_WITH_PIC
47116 +
47117 +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
47118 +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
47119 +
47120 +# Old name:
47121 +AU_DEFUN([AC_LIBTOOL_PICMODE],
47122 +[_LT_SET_OPTION([LT_INIT], [pic-only])
47123 +AC_DIAGNOSE([obsolete],
47124 +[$0: Remove this warning and the call to _LT_SET_OPTION when you
47125 +put the `pic-only' option into LT_INIT's first parameter.])
47126 +])
47127 +
47128 +dnl aclocal-1.4 backwards compatibility:
47129 +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
47130 +
47131 +## ----------------- ##
47132 +## LTDL_INIT Options ##
47133 +## ----------------- ##
47134 +
47135 +m4_define([_LTDL_MODE], [])
47136 +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
47137 + [m4_define([_LTDL_MODE], [nonrecursive])])
47138 +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
47139 + [m4_define([_LTDL_MODE], [recursive])])
47140 +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
47141 + [m4_define([_LTDL_MODE], [subproject])])
47142 +
47143 +m4_define([_LTDL_TYPE], [])
47144 +LT_OPTION_DEFINE([LTDL_INIT], [installable],
47145 + [m4_define([_LTDL_TYPE], [installable])])
47146 +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
47147 + [m4_define([_LTDL_TYPE], [convenience])])
47148 diff --git a/libltdl/m4/ltsugar.m4 b/libltdl/m4/ltsugar.m4
47149 new file mode 100644
47150 index 0000000..9000a05
47151 --- /dev/null
47152 +++ b/libltdl/m4/ltsugar.m4
47153 @@ -0,0 +1,123 @@
47154 +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
47155 +#
47156 +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
47157 +# Written by Gary V. Vaughan, 2004
47158 +#
47159 +# This file is free software; the Free Software Foundation gives
47160 +# unlimited permission to copy and/or distribute it, with or without
47161 +# modifications, as long as this notice is preserved.
47162 +
47163 +# serial 6 ltsugar.m4
47164 +
47165 +# This is to help aclocal find these macros, as it can't see m4_define.
47166 +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
47167 +
47168 +
47169 +# lt_join(SEP, ARG1, [ARG2...])
47170 +# -----------------------------
47171 +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
47172 +# associated separator.
47173 +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
47174 +# versions in m4sugar had bugs.
47175 +m4_define([lt_join],
47176 +[m4_if([$#], [1], [],
47177 + [$#], [2], [[$2]],
47178 + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
47179 +m4_define([_lt_join],
47180 +[m4_if([$#$2], [2], [],
47181 + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
47182 +
47183 +
47184 +# lt_car(LIST)
47185 +# lt_cdr(LIST)
47186 +# ------------
47187 +# Manipulate m4 lists.
47188 +# These macros are necessary as long as will still need to support
47189 +# Autoconf-2.59 which quotes differently.
47190 +m4_define([lt_car], [[$1]])
47191 +m4_define([lt_cdr],
47192 +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
47193 + [$#], 1, [],
47194 + [m4_dquote(m4_shift($@))])])
47195 +m4_define([lt_unquote], $1)
47196 +
47197 +
47198 +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
47199 +# ------------------------------------------
47200 +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
47201 +# Note that neither SEPARATOR nor STRING are expanded; they are appended
47202 +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
47203 +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
47204 +# than defined and empty).
47205 +#
47206 +# This macro is needed until we can rely on Autoconf 2.62, since earlier
47207 +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
47208 +m4_define([lt_append],
47209 +[m4_define([$1],
47210 + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
47211 +
47212 +
47213 +
47214 +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
47215 +# ----------------------------------------------------------
47216 +# Produce a SEP delimited list of all paired combinations of elements of
47217 +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
47218 +# has the form PREFIXmINFIXSUFFIXn.
47219 +# Needed until we can rely on m4_combine added in Autoconf 2.62.
47220 +m4_define([lt_combine],
47221 +[m4_if(m4_eval([$# > 3]), [1],
47222 + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
47223 +[[m4_foreach([_Lt_prefix], [$2],
47224 + [m4_foreach([_Lt_suffix],
47225 + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
47226 + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
47227 +
47228 +
47229 +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
47230 +# -----------------------------------------------------------------------
47231 +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
47232 +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
47233 +m4_define([lt_if_append_uniq],
47234 +[m4_ifdef([$1],
47235 + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
47236 + [lt_append([$1], [$2], [$3])$4],
47237 + [$5])],
47238 + [lt_append([$1], [$2], [$3])$4])])
47239 +
47240 +
47241 +# lt_dict_add(DICT, KEY, VALUE)
47242 +# -----------------------------
47243 +m4_define([lt_dict_add],
47244 +[m4_define([$1($2)], [$3])])
47245 +
47246 +
47247 +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
47248 +# --------------------------------------------
47249 +m4_define([lt_dict_add_subkey],
47250 +[m4_define([$1($2:$3)], [$4])])
47251 +
47252 +
47253 +# lt_dict_fetch(DICT, KEY, [SUBKEY])
47254 +# ----------------------------------
47255 +m4_define([lt_dict_fetch],
47256 +[m4_ifval([$3],
47257 + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
47258 + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
47259 +
47260 +
47261 +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
47262 +# -----------------------------------------------------------------
47263 +m4_define([lt_if_dict_fetch],
47264 +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
47265 + [$5],
47266 + [$6])])
47267 +
47268 +
47269 +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
47270 +# --------------------------------------------------------------
47271 +m4_define([lt_dict_filter],
47272 +[m4_if([$5], [], [],
47273 + [lt_join(m4_quote(m4_default([$4], [[, ]])),
47274 + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
47275 + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
47276 +])
47277 diff --git a/libltdl/m4/ltversion.m4 b/libltdl/m4/ltversion.m4
47278 new file mode 100644
47279 index 0000000..f3c5309
47280 --- /dev/null
47281 +++ b/libltdl/m4/ltversion.m4
47282 @@ -0,0 +1,23 @@
47283 +# ltversion.m4 -- version numbers -*- Autoconf -*-
47284 +#
47285 +# Copyright (C) 2004 Free Software Foundation, Inc.
47286 +# Written by Scott James Remnant, 2004
47287 +#
47288 +# This file is free software; the Free Software Foundation gives
47289 +# unlimited permission to copy and/or distribute it, with or without
47290 +# modifications, as long as this notice is preserved.
47291 +
47292 +# Generated from ltversion.in.
47293 +
47294 +# serial 3017 ltversion.m4
47295 +# This file is part of GNU Libtool
47296 +
47297 +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
47298 +m4_define([LT_PACKAGE_REVISION], [1.3017])
47299 +
47300 +AC_DEFUN([LTVERSION_VERSION],
47301 +[macro_version='2.2.6b'
47302 +macro_revision='1.3017'
47303 +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
47304 +_LT_DECL(, macro_revision, 0)
47305 +])
47306 diff --git a/libltdl/m4/lt~obsolete.m4 b/libltdl/m4/lt~obsolete.m4
47307 new file mode 100644
47308 index 0000000..637bb20
47309 --- /dev/null
47310 +++ b/libltdl/m4/lt~obsolete.m4
47311 @@ -0,0 +1,92 @@
47312 +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
47313 +#
47314 +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
47315 +# Written by Scott James Remnant, 2004.
47316 +#
47317 +# This file is free software; the Free Software Foundation gives
47318 +# unlimited permission to copy and/or distribute it, with or without
47319 +# modifications, as long as this notice is preserved.
47320 +
47321 +# serial 4 lt~obsolete.m4
47322 +
47323 +# These exist entirely to fool aclocal when bootstrapping libtool.
47324 +#
47325 +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
47326 +# which have later been changed to m4_define as they aren't part of the
47327 +# exported API, or moved to Autoconf or Automake where they belong.
47328 +#
47329 +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
47330 +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
47331 +# using a macro with the same name in our local m4/libtool.m4 it'll
47332 +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
47333 +# and doesn't know about Autoconf macros at all.)
47334 +#
47335 +# So we provide this file, which has a silly filename so it's always
47336 +# included after everything else. This provides aclocal with the
47337 +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
47338 +# because those macros already exist, or will be overwritten later.
47339 +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
47340 +#
47341 +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
47342 +# Yes, that means every name once taken will need to remain here until
47343 +# we give up compatibility with versions before 1.7, at which point
47344 +# we need to keep only those names which we still refer to.
47345 +
47346 +# This is to help aclocal find these macros, as it can't see m4_define.
47347 +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
47348 +
47349 +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
47350 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
47351 +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
47352 +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
47353 +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
47354 +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
47355 +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
47356 +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
47357 +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
47358 +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
47359 +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
47360 +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
47361 +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
47362 +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
47363 +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
47364 +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
47365 +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
47366 +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
47367 +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
47368 +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
47369 +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
47370 +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
47371 +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
47372 +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
47373 +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
47374 +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
47375 +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
47376 +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
47377 +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
47378 +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
47379 +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
47380 +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
47381 +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
47382 +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
47383 +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
47384 +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
47385 +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
47386 +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
47387 +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
47388 +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
47389 +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
47390 +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
47391 +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
47392 +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
47393 +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
47394 +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
47395 +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
47396 +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
47397 +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
47398 +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
47399 +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
47400 +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
47401 +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
47402 +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
47403 +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
47404 diff --git a/libltdl/slist.c b/libltdl/slist.c
47405 new file mode 100644
47406 index 0000000..c99f399
47407 --- /dev/null
47408 +++ b/libltdl/slist.c
47409 @@ -0,0 +1,375 @@
47410 +/* slist.c -- generalised singly linked lists
47411 +
47412 + Copyright (C) 2000, 2004, 2007, 2008 Free Software Foundation, Inc.
47413 + Written by Gary V. Vaughan, 2000
47414 +
47415 + NOTE: The canonical source of this file is maintained with the
47416 + GNU Libtool package. Report bugs to [email protected].
47417 +
47418 +GNU Libltdl is free software; you can redistribute it and/or
47419 +modify it under the terms of the GNU Lesser General Public
47420 +License as published by the Free Software Foundation; either
47421 +version 2 of the License, or (at your option) any later version.
47422 +
47423 +As a special exception to the GNU Lesser General Public License,
47424 +if you distribute this file as part of a program or library that
47425 +is built using GNU Libtool, you may include this file under the
47426 +same distribution terms that you use for the rest of that program.
47427 +
47428 +GNU Libltdl is distributed in the hope that it will be useful,
47429 +but WITHOUT ANY WARRANTY; without even the implied warranty of
47430 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47431 +GNU Lesser General Public License for more details.
47432 +
47433 +You should have received a copy of the GNU Lesser General Public
47434 +License along with GNU Libltdl; see the file COPYING.LIB. If not, a
47435 +copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
47436 +or obtained by writing to the Free Software Foundation, Inc.,
47437 +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
47438 +*/
47439 +
47440 +#include <assert.h>
47441 +
47442 +#include "slist.h"
47443 +#include <stddef.h>
47444 +
47445 +static SList * slist_sort_merge (SList *left, SList *right,
47446 + SListCompare *compare, void *userdata);
47447 +
47448 +
47449 +/* Call DELETE repeatedly on each element of HEAD.
47450 +
47451 + CAVEAT: If you call this when HEAD is the start of a list of boxed
47452 + items, you must remember that each item passed back to your
47453 + DELETE function will be a boxed item that must be slist_unbox()ed
47454 + before operating on its contents.
47455 +
47456 + e.g. void boxed_delete (void *item) { item_free (slist_unbox (item)); }
47457 + ...
47458 + slist = slist_delete (slist, boxed_delete);
47459 + ...
47460 +*/
47461 +SList *
47462 +slist_delete (SList *head, void (*delete_fct) (void *item))
47463 +{
47464 + assert (delete_fct);
47465 +
47466 + while (head)
47467 + {
47468 + SList *next = head->next;
47469 + (*delete_fct) (head);
47470 + head = next;
47471 + }
47472 +
47473 + return 0;
47474 +}
47475 +
47476 +/* Call FIND repeatedly with MATCHDATA and each item of *PHEAD, until
47477 + FIND returns non-NULL, or the list is exhausted. If a match is found
47478 + the matching item is destructively removed from *PHEAD, and the value
47479 + returned by the matching call to FIND is returned.
47480 +
47481 + CAVEAT: To avoid memory leaks, unless you already have the address of
47482 + the stale item, you should probably return that from FIND if
47483 + it makes a successful match. Don't forget to slist_unbox()
47484 + every item in a boxed list before operating on its contents. */
47485 +void *
47486 +slist_remove (SList **phead, SListCallback *find, void *matchdata)
47487 +{
47488 + SList *stale = 0;
47489 + void *result = 0;
47490 +
47491 + assert (find);
47492 +
47493 + if (!phead || !*phead)
47494 + return 0;
47495 +
47496 + /* Does the head of the passed list match? */
47497 + result = (*find) (*phead, matchdata);
47498 + if (result)
47499 + {
47500 + stale = *phead;
47501 + *phead = stale->next;
47502 + }
47503 + /* what about the rest of the elements? */
47504 + else
47505 + {
47506 + SList *head;
47507 + for (head = *phead; head->next; head = head->next)
47508 + {
47509 + result = (*find) (head->next, matchdata);
47510 + if (result)
47511 + {
47512 + stale = head->next;
47513 + head->next = stale->next;
47514 + break;
47515 + }
47516 + }
47517 + }
47518 +
47519 + return result;
47520 +}
47521 +
47522 +/* Call FIND repeatedly with each element of SLIST and MATCHDATA, until
47523 + FIND returns non-NULL, or the list is exhausted. If a match is found
47524 + the value returned by the matching call to FIND is returned. */
47525 +void *
47526 +slist_find (SList *slist, SListCallback *find, void *matchdata)
47527 +{
47528 + void *result = 0;
47529 +
47530 + assert (find);
47531 +
47532 + for (; slist; slist = slist->next)
47533 + {
47534 + result = (*find) (slist, matchdata);
47535 + if (result)
47536 + break;
47537 + }
47538 +
47539 + return result;
47540 +}
47541 +
47542 +/* Return a single list, composed by destructively concatenating the
47543 + items in HEAD and TAIL. The values of HEAD and TAIL are undefined
47544 + after calling this function.
47545 +
47546 + CAVEAT: Don't mix boxed and unboxed items in a single list.
47547 +
47548 + e.g. slist1 = slist_concat (slist1, slist2); */
47549 +SList *
47550 +slist_concat (SList *head, SList *tail)
47551 +{
47552 + SList *last;
47553 +
47554 + if (!head)
47555 + {
47556 + return tail;
47557 + }
47558 +
47559 + last = head;
47560 + while (last->next)
47561 + last = last->next;
47562 +
47563 + last->next = tail;
47564 +
47565 + return head;
47566 +}
47567 +
47568 +/* Return a single list, composed by destructively appending all of
47569 + the items in SLIST to ITEM. The values of ITEM and SLIST are undefined
47570 + after calling this function.
47571 +
47572 + CAVEAT: Don't mix boxed and unboxed items in a single list.
47573 +
47574 + e.g. slist1 = slist_cons (slist_box (data), slist1); */
47575 +SList *
47576 +slist_cons (SList *item, SList *slist)
47577 +{
47578 + if (!item)
47579 + {
47580 + return slist;
47581 + }
47582 +
47583 + assert (!item->next);
47584 +
47585 + item->next = slist;
47586 + return item;
47587 +}
47588 +
47589 +/* Return a list starting at the second item of SLIST. */
47590 +SList *
47591 +slist_tail (SList *slist)
47592 +{
47593 + return slist ? slist->next : NULL;
47594 +}
47595 +
47596 +/* Return a list starting at the Nth item of SLIST. If SLIST is less
47597 + than N items long, NULL is returned. Just to be confusing, list items
47598 + are counted from 1, to get the 2nd element of slist:
47599 +
47600 + e.g. shared_list = slist_nth (slist, 2); */
47601 +SList *
47602 +slist_nth (SList *slist, size_t n)
47603 +{
47604 + for (;n > 1 && slist; n--)
47605 + slist = slist->next;
47606 +
47607 + return slist;
47608 +}
47609 +
47610 +/* Return the number of items in SLIST. We start counting from 1, so
47611 + the length of a list with no items is 0, and so on. */
47612 +size_t
47613 +slist_length (SList *slist)
47614 +{
47615 + size_t n;
47616 +
47617 + for (n = 0; slist; ++n)
47618 + slist = slist->next;
47619 +
47620 + return n;
47621 +}
47622 +
47623 +/* Destructively reverse the order of items in SLIST. The value of SLIST
47624 + is undefined after calling this function.
47625 +
47626 + CAVEAT: You must store the result of this function, or you might not
47627 + be able to get all the items except the first one back again.
47628 +
47629 + e.g. slist = slist_reverse (slist); */
47630 +SList *
47631 +slist_reverse (SList *slist)
47632 +{
47633 + SList *result = 0;
47634 + SList *next;
47635 +
47636 + while (slist)
47637 + {
47638 + next = slist->next;
47639 + slist->next = result;
47640 + result = slist;
47641 + slist = next;
47642 + }
47643 +
47644 + return result;
47645 +}
47646 +
47647 +/* Call FOREACH once for each item in SLIST, passing both the item and
47648 + USERDATA on each call. */
47649 +void *
47650 +slist_foreach (SList *slist, SListCallback *foreach, void *userdata)
47651 +{
47652 + void *result = 0;
47653 +
47654 + assert (foreach);
47655 +
47656 + while (slist)
47657 + {
47658 + SList *next = slist->next;
47659 + result = (*foreach) (slist, userdata);
47660 +
47661 + if (result)
47662 + break;
47663 +
47664 + slist = next;
47665 + }
47666 +
47667 + return result;
47668 +}
47669 +
47670 +/* Destructively merge the items of two ordered lists LEFT and RIGHT,
47671 + returning a single sorted list containing the items of both -- Part of
47672 + the quicksort algorithm. The values of LEFT and RIGHT are undefined
47673 + after calling this function.
47674 +
47675 + At each iteration, add another item to the merged list by taking the
47676 + lowest valued item from the head of either LEFT or RIGHT, determined
47677 + by passing those items and USERDATA to COMPARE. COMPARE should return
47678 + less than 0 if the head of LEFT has the lower value, greater than 0 if
47679 + the head of RIGHT has the lower value, otherwise 0. */
47680 +static SList *
47681 +slist_sort_merge (SList *left, SList *right, SListCompare *compare,
47682 + void *userdata)
47683 +{
47684 + SList merged, *insert;
47685 +
47686 + insert = &merged;
47687 +
47688 + while (left && right)
47689 + {
47690 + if ((*compare) (left, right, userdata) <= 0)
47691 + {
47692 + insert = insert->next = left;
47693 + left = left->next;
47694 + }
47695 + else
47696 + {
47697 + insert = insert->next = right;
47698 + right = right->next;
47699 + }
47700 + }
47701 +
47702 + insert->next = left ? left : right;
47703 +
47704 + return merged.next;
47705 +}
47706 +
47707 +/* Perform a destructive quicksort on the items in SLIST, by repeatedly
47708 + calling COMPARE with a pair of items from SLIST along with USERDATA
47709 + at every iteration. COMPARE is a function as defined above for
47710 + slist_sort_merge(). The value of SLIST is undefined after calling
47711 + this function.
47712 +
47713 + e.g. slist = slist_sort (slist, compare, 0); */
47714 +SList *
47715 +slist_sort (SList *slist, SListCompare *compare, void *userdata)
47716 +{
47717 + SList *left, *right;
47718 +
47719 + if (!slist)
47720 + return slist;
47721 +
47722 + /* Be sure that LEFT and RIGHT never contain the same item. */
47723 + left = slist;
47724 + right = slist->next;
47725 +
47726 + /* Skip two items with RIGHT and one with SLIST, until RIGHT falls off
47727 + the end. SLIST must be about half way along. */
47728 + while (right && (right = right->next))
47729 + {
47730 + if (!right || !(right = right->next))
47731 + break;
47732 + slist = slist->next;
47733 + }
47734 + right = slist->next;
47735 + slist->next = 0;
47736 +
47737 + /* Sort LEFT and RIGHT, then merge the two. */
47738 + return slist_sort_merge (slist_sort (left, compare, userdata),
47739 + slist_sort (right, compare, userdata),
47740 + compare, userdata);
47741 +}
47742 +
47743 +
47744 +/* Aside from using the functions above to manage chained structures of
47745 + any type that has a NEXT pointer as its first field, SLISTs can
47746 + be comprised of boxed items. The boxes are chained together in
47747 + that case, so there is no need for a NEXT field in the item proper.
47748 + Some care must be taken to slist_box and slist_unbox each item in
47749 + a boxed list at the appropriate points to avoid leaking the memory
47750 + used for the boxes. It us usually a very bad idea to mix boxed and
47751 + non-boxed items in a single list. */
47752 +
47753 +/* Return a `boxed' freshly mallocated 1 element list containing
47754 + USERDATA. */
47755 +SList *
47756 +slist_box (const void *userdata)
47757 +{
47758 + SList *item = (SList *) malloc (sizeof *item);
47759 +
47760 + if (item)
47761 + {
47762 + item->next = 0;
47763 + item->userdata = userdata;
47764 + }
47765 +
47766 + return item;
47767 +}
47768 +
47769 +/* Return the contents of a `boxed' ITEM, recycling the box itself. */
47770 +void *
47771 +slist_unbox (SList *item)
47772 +{
47773 + void *userdata = 0;
47774 +
47775 + if (item)
47776 + {
47777 + /* Strip the const, because responsibility for this memory
47778 + passes to the caller on return. */
47779 + userdata = (void *) item->userdata;
47780 + free (item);
47781 + }
47782 +
47783 + return userdata;
47784 +}
47785 diff --git a/ltmain.sh b/ltmain.sh
47786 old mode 100644
47787 new mode 100755
47788 index b36c4ad..a72f2fd
47789 --- a/ltmain.sh
47790 +++ b/ltmain.sh
47791 @@ -1,6 +1,6 @@
47792 # Generated from ltmain.m4sh.
47793
47794 -# ltmain.sh (GNU libtool) 2.2.6
47795 +# ltmain.sh (GNU libtool) 2.2.6b
47796 # Written by Gordon Matzigkeit <[email protected]>, 1996
47797
47798 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
47799 @@ -65,7 +65,7 @@
47800 # compiler: $LTCC
47801 # compiler flags: $LTCFLAGS
47802 # linker: $LD (gnu? $with_gnu_ld)
47803 -# $progname: (GNU libtool) 2.2.6
47804 +# $progname: (GNU libtool) 2.2.6b
47805 # automake: $automake_version
47806 # autoconf: $autoconf_version
47807 #
47808 @@ -73,9 +73,9 @@
47809
47810 PROGRAM=ltmain.sh
47811 PACKAGE=libtool
47812 -VERSION=2.2.6
47813 +VERSION=2.2.6b
47814 TIMESTAMP=""
47815 -package_revision=1.3012
47816 +package_revision=1.3017
47817
47818 # Be Bourne compatible
47819 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
47820 @@ -116,15 +116,15 @@ $lt_unset CDPATH
47821
47822 : ${CP="cp -f"}
47823 : ${ECHO="echo"}
47824 -: ${EGREP="/usr/bin/grep -E"}
47825 -: ${FGREP="/usr/bin/grep -F"}
47826 -: ${GREP="/usr/bin/grep"}
47827 +: ${EGREP="/bin/grep -E"}
47828 +: ${FGREP="/bin/grep -F"}
47829 +: ${GREP="/bin/grep"}
47830 : ${LN_S="ln -s"}
47831 : ${MAKE="make"}
47832 : ${MKDIR="mkdir"}
47833 : ${MV="mv -f"}
47834 : ${RM="rm -f"}
47835 -: ${SED="/opt/local/bin/gsed"}
47836 +: ${SED="/bin/sed"}
47837 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
47838 : ${Xsed="$SED -e 1s/^X//"}
47839
47840 --
47841 1.6.5.2
47842