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