Commit 17bf5a27a77b842c8e29a17fd8fa61ef3d8e9f42
1 parent
aaea686f
put the whole stuff in an autobuild environment
Showing
38 changed files
with
8219 additions
and
12 deletions
COPYING
0 → 100644
1 | + GNU GENERAL PUBLIC LICENSE | ||
2 | + Version 3, 29 June 2007 | ||
3 | + | ||
4 | + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | ||
5 | + Everyone is permitted to copy and distribute verbatim copies | ||
6 | + of this license document, but changing it is not allowed. | ||
7 | + | ||
8 | + Preamble | ||
9 | + | ||
10 | + The GNU General Public License is a free, copyleft license for | ||
11 | +software and other kinds of works. | ||
12 | + | ||
13 | + The licenses for most software and other practical works are designed | ||
14 | +to take away your freedom to share and change the works. By contrast, | ||
15 | +the GNU General Public License is intended to guarantee your freedom to | ||
16 | +share and change all versions of a program--to make sure it remains free | ||
17 | +software for all its users. We, the Free Software Foundation, use the | ||
18 | +GNU General Public License for most of our software; it applies also to | ||
19 | +any other work released this way by its authors. You can apply it to | ||
20 | +your programs, too. | ||
21 | + | ||
22 | + When we speak of free software, we are referring to freedom, not | ||
23 | +price. Our General Public Licenses are designed to make sure that you | ||
24 | +have the freedom to distribute copies of free software (and charge for | ||
25 | +them if you wish), that you receive source code or can get it if you | ||
26 | +want it, that you can change the software or use pieces of it in new | ||
27 | +free programs, and that you know you can do these things. | ||
28 | + | ||
29 | + To protect your rights, we need to prevent others from denying you | ||
30 | +these rights or asking you to surrender the rights. Therefore, you have | ||
31 | +certain responsibilities if you distribute copies of the software, or if | ||
32 | +you modify it: responsibilities to respect the freedom of others. | ||
33 | + | ||
34 | + For example, if you distribute copies of such a program, whether | ||
35 | +gratis or for a fee, you must pass on to the recipients the same | ||
36 | +freedoms that you received. You must make sure that they, too, receive | ||
37 | +or can get the source code. And you must show them these terms so they | ||
38 | +know their rights. | ||
39 | + | ||
40 | + Developers that use the GNU GPL protect your rights with two steps: | ||
41 | +(1) assert copyright on the software, and (2) offer you this License | ||
42 | +giving you legal permission to copy, distribute and/or modify it. | ||
43 | + | ||
44 | + For the developers' and authors' protection, the GPL clearly explains | ||
45 | +that there is no warranty for this free software. For both users' and | ||
46 | +authors' sake, the GPL requires that modified versions be marked as | ||
47 | +changed, so that their problems will not be attributed erroneously to | ||
48 | +authors of previous versions. | ||
49 | + | ||
50 | + Some devices are designed to deny users access to install or run | ||
51 | +modified versions of the software inside them, although the manufacturer | ||
52 | +can do so. This is fundamentally incompatible with the aim of | ||
53 | +protecting users' freedom to change the software. The systematic | ||
54 | +pattern of such abuse occurs in the area of products for individuals to | ||
55 | +use, which is precisely where it is most unacceptable. Therefore, we | ||
56 | +have designed this version of the GPL to prohibit the practice for those | ||
57 | +products. If such problems arise substantially in other domains, we | ||
58 | +stand ready to extend this provision to those domains in future versions | ||
59 | +of the GPL, as needed to protect the freedom of users. | ||
60 | + | ||
61 | + Finally, every program is threatened constantly by software patents. | ||
62 | +States should not allow patents to restrict development and use of | ||
63 | +software on general-purpose computers, but in those that do, we wish to | ||
64 | +avoid the special danger that patents applied to a free program could | ||
65 | +make it effectively proprietary. To prevent this, the GPL assures that | ||
66 | +patents cannot be used to render the program non-free. | ||
67 | + | ||
68 | + The precise terms and conditions for copying, distribution and | ||
69 | +modification follow. | ||
70 | + | ||
71 | + TERMS AND CONDITIONS | ||
72 | + | ||
73 | + 0. Definitions. | ||
74 | + | ||
75 | + "This License" refers to version 3 of the GNU General Public License. | ||
76 | + | ||
77 | + "Copyright" also means copyright-like laws that apply to other kinds of | ||
78 | +works, such as semiconductor masks. | ||
79 | + | ||
80 | + "The Program" refers to any copyrightable work licensed under this | ||
81 | +License. Each licensee is addressed as "you". "Licensees" and | ||
82 | +"recipients" may be individuals or organizations. | ||
83 | + | ||
84 | + To "modify" a work means to copy from or adapt all or part of the work | ||
85 | +in a fashion requiring copyright permission, other than the making of an | ||
86 | +exact copy. The resulting work is called a "modified version" of the | ||
87 | +earlier work or a work "based on" the earlier work. | ||
88 | + | ||
89 | + A "covered work" means either the unmodified Program or a work based | ||
90 | +on the Program. | ||
91 | + | ||
92 | + To "propagate" a work means to do anything with it that, without | ||
93 | +permission, would make you directly or secondarily liable for | ||
94 | +infringement under applicable copyright law, except executing it on a | ||
95 | +computer or modifying a private copy. Propagation includes copying, | ||
96 | +distribution (with or without modification), making available to the | ||
97 | +public, and in some countries other activities as well. | ||
98 | + | ||
99 | + To "convey" a work means any kind of propagation that enables other | ||
100 | +parties to make or receive copies. Mere interaction with a user through | ||
101 | +a computer network, with no transfer of a copy, is not conveying. | ||
102 | + | ||
103 | + An interactive user interface displays "Appropriate Legal Notices" | ||
104 | +to the extent that it includes a convenient and prominently visible | ||
105 | +feature that (1) displays an appropriate copyright notice, and (2) | ||
106 | +tells the user that there is no warranty for the work (except to the | ||
107 | +extent that warranties are provided), that licensees may convey the | ||
108 | +work under this License, and how to view a copy of this License. If | ||
109 | +the interface presents a list of user commands or options, such as a | ||
110 | +menu, a prominent item in the list meets this criterion. | ||
111 | + | ||
112 | + 1. Source Code. | ||
113 | + | ||
114 | + The "source code" for a work means the preferred form of the work | ||
115 | +for making modifications to it. "Object code" means any non-source | ||
116 | +form of a work. | ||
117 | + | ||
118 | + A "Standard Interface" means an interface that either is an official | ||
119 | +standard defined by a recognized standards body, or, in the case of | ||
120 | +interfaces specified for a particular programming language, one that | ||
121 | +is widely used among developers working in that language. | ||
122 | + | ||
123 | + The "System Libraries" of an executable work include anything, other | ||
124 | +than the work as a whole, that (a) is included in the normal form of | ||
125 | +packaging a Major Component, but which is not part of that Major | ||
126 | +Component, and (b) serves only to enable use of the work with that | ||
127 | +Major Component, or to implement a Standard Interface for which an | ||
128 | +implementation is available to the public in source code form. A | ||
129 | +"Major Component", in this context, means a major essential component | ||
130 | +(kernel, window system, and so on) of the specific operating system | ||
131 | +(if any) on which the executable work runs, or a compiler used to | ||
132 | +produce the work, or an object code interpreter used to run it. | ||
133 | + | ||
134 | + The "Corresponding Source" for a work in object code form means all | ||
135 | +the source code needed to generate, install, and (for an executable | ||
136 | +work) run the object code and to modify the work, including scripts to | ||
137 | +control those activities. However, it does not include the work's | ||
138 | +System Libraries, or general-purpose tools or generally available free | ||
139 | +programs which are used unmodified in performing those activities but | ||
140 | +which are not part of the work. For example, Corresponding Source | ||
141 | +includes interface definition files associated with source files for | ||
142 | +the work, and the source code for shared libraries and dynamically | ||
143 | +linked subprograms that the work is specifically designed to require, | ||
144 | +such as by intimate data communication or control flow between those | ||
145 | +subprograms and other parts of the work. | ||
146 | + | ||
147 | + The Corresponding Source need not include anything that users | ||
148 | +can regenerate automatically from other parts of the Corresponding | ||
149 | +Source. | ||
150 | + | ||
151 | + The Corresponding Source for a work in source code form is that | ||
152 | +same work. | ||
153 | + | ||
154 | + 2. Basic Permissions. | ||
155 | + | ||
156 | + All rights granted under this License are granted for the term of | ||
157 | +copyright on the Program, and are irrevocable provided the stated | ||
158 | +conditions are met. This License explicitly affirms your unlimited | ||
159 | +permission to run the unmodified Program. The output from running a | ||
160 | +covered work is covered by this License only if the output, given its | ||
161 | +content, constitutes a covered work. This License acknowledges your | ||
162 | +rights of fair use or other equivalent, as provided by copyright law. | ||
163 | + | ||
164 | + You may make, run and propagate covered works that you do not | ||
165 | +convey, without conditions so long as your license otherwise remains | ||
166 | +in force. You may convey covered works to others for the sole purpose | ||
167 | +of having them make modifications exclusively for you, or provide you | ||
168 | +with facilities for running those works, provided that you comply with | ||
169 | +the terms of this License in conveying all material for which you do | ||
170 | +not control copyright. Those thus making or running the covered works | ||
171 | +for you must do so exclusively on your behalf, under your direction | ||
172 | +and control, on terms that prohibit them from making any copies of | ||
173 | +your copyrighted material outside their relationship with you. | ||
174 | + | ||
175 | + Conveying under any other circumstances is permitted solely under | ||
176 | +the conditions stated below. Sublicensing is not allowed; section 10 | ||
177 | +makes it unnecessary. | ||
178 | + | ||
179 | + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. | ||
180 | + | ||
181 | + No covered work shall be deemed part of an effective technological | ||
182 | +measure under any applicable law fulfilling obligations under article | ||
183 | +11 of the WIPO copyright treaty adopted on 20 December 1996, or | ||
184 | +similar laws prohibiting or restricting circumvention of such | ||
185 | +measures. | ||
186 | + | ||
187 | + When you convey a covered work, you waive any legal power to forbid | ||
188 | +circumvention of technological measures to the extent such circumvention | ||
189 | +is effected by exercising rights under this License with respect to | ||
190 | +the covered work, and you disclaim any intention to limit operation or | ||
191 | +modification of the work as a means of enforcing, against the work's | ||
192 | +users, your or third parties' legal rights to forbid circumvention of | ||
193 | +technological measures. | ||
194 | + | ||
195 | + 4. Conveying Verbatim Copies. | ||
196 | + | ||
197 | + You may convey verbatim copies of the Program's source code as you | ||
198 | +receive it, in any medium, provided that you conspicuously and | ||
199 | +appropriately publish on each copy an appropriate copyright notice; | ||
200 | +keep intact all notices stating that this License and any | ||
201 | +non-permissive terms added in accord with section 7 apply to the code; | ||
202 | +keep intact all notices of the absence of any warranty; and give all | ||
203 | +recipients a copy of this License along with the Program. | ||
204 | + | ||
205 | + You may charge any price or no price for each copy that you convey, | ||
206 | +and you may offer support or warranty protection for a fee. | ||
207 | + | ||
208 | + 5. Conveying Modified Source Versions. | ||
209 | + | ||
210 | + You may convey a work based on the Program, or the modifications to | ||
211 | +produce it from the Program, in the form of source code under the | ||
212 | +terms of section 4, provided that you also meet all of these conditions: | ||
213 | + | ||
214 | + a) The work must carry prominent notices stating that you modified | ||
215 | + it, and giving a relevant date. | ||
216 | + | ||
217 | + b) The work must carry prominent notices stating that it is | ||
218 | + released under this License and any conditions added under section | ||
219 | + 7. This requirement modifies the requirement in section 4 to | ||
220 | + "keep intact all notices". | ||
221 | + | ||
222 | + c) You must license the entire work, as a whole, under this | ||
223 | + License to anyone who comes into possession of a copy. This | ||
224 | + License will therefore apply, along with any applicable section 7 | ||
225 | + additional terms, to the whole of the work, and all its parts, | ||
226 | + regardless of how they are packaged. This License gives no | ||
227 | + permission to license the work in any other way, but it does not | ||
228 | + invalidate such permission if you have separately received it. | ||
229 | + | ||
230 | + d) If the work has interactive user interfaces, each must display | ||
231 | + Appropriate Legal Notices; however, if the Program has interactive | ||
232 | + interfaces that do not display Appropriate Legal Notices, your | ||
233 | + work need not make them do so. | ||
234 | + | ||
235 | + A compilation of a covered work with other separate and independent | ||
236 | +works, which are not by their nature extensions of the covered work, | ||
237 | +and which are not combined with it such as to form a larger program, | ||
238 | +in or on a volume of a storage or distribution medium, is called an | ||
239 | +"aggregate" if the compilation and its resulting copyright are not | ||
240 | +used to limit the access or legal rights of the compilation's users | ||
241 | +beyond what the individual works permit. Inclusion of a covered work | ||
242 | +in an aggregate does not cause this License to apply to the other | ||
243 | +parts of the aggregate. | ||
244 | + | ||
245 | + 6. Conveying Non-Source Forms. | ||
246 | + | ||
247 | + You may convey a covered work in object code form under the terms | ||
248 | +of sections 4 and 5, provided that you also convey the | ||
249 | +machine-readable Corresponding Source under the terms of this License, | ||
250 | +in one of these ways: | ||
251 | + | ||
252 | + a) Convey the object code in, or embodied in, a physical product | ||
253 | + (including a physical distribution medium), accompanied by the | ||
254 | + Corresponding Source fixed on a durable physical medium | ||
255 | + customarily used for software interchange. | ||
256 | + | ||
257 | + b) Convey the object code in, or embodied in, a physical product | ||
258 | + (including a physical distribution medium), accompanied by a | ||
259 | + written offer, valid for at least three years and valid for as | ||
260 | + long as you offer spare parts or customer support for that product | ||
261 | + model, to give anyone who possesses the object code either (1) a | ||
262 | + copy of the Corresponding Source for all the software in the | ||
263 | + product that is covered by this License, on a durable physical | ||
264 | + medium customarily used for software interchange, for a price no | ||
265 | + more than your reasonable cost of physically performing this | ||
266 | + conveying of source, or (2) access to copy the | ||
267 | + Corresponding Source from a network server at no charge. | ||
268 | + | ||
269 | + c) Convey individual copies of the object code with a copy of the | ||
270 | + written offer to provide the Corresponding Source. This | ||
271 | + alternative is allowed only occasionally and noncommercially, and | ||
272 | + only if you received the object code with such an offer, in accord | ||
273 | + with subsection 6b. | ||
274 | + | ||
275 | + d) Convey the object code by offering access from a designated | ||
276 | + place (gratis or for a charge), and offer equivalent access to the | ||
277 | + Corresponding Source in the same way through the same place at no | ||
278 | + further charge. You need not require recipients to copy the | ||
279 | + Corresponding Source along with the object code. If the place to | ||
280 | + copy the object code is a network server, the Corresponding Source | ||
281 | + may be on a different server (operated by you or a third party) | ||
282 | + that supports equivalent copying facilities, provided you maintain | ||
283 | + clear directions next to the object code saying where to find the | ||
284 | + Corresponding Source. Regardless of what server hosts the | ||
285 | + Corresponding Source, you remain obligated to ensure that it is | ||
286 | + available for as long as needed to satisfy these requirements. | ||
287 | + | ||
288 | + e) Convey the object code using peer-to-peer transmission, provided | ||
289 | + you inform other peers where the object code and Corresponding | ||
290 | + Source of the work are being offered to the general public at no | ||
291 | + charge under subsection 6d. | ||
292 | + | ||
293 | + A separable portion of the object code, whose source code is excluded | ||
294 | +from the Corresponding Source as a System Library, need not be | ||
295 | +included in conveying the object code work. | ||
296 | + | ||
297 | + A "User Product" is either (1) a "consumer product", which means any | ||
298 | +tangible personal property which is normally used for personal, family, | ||
299 | +or household purposes, or (2) anything designed or sold for incorporation | ||
300 | +into a dwelling. In determining whether a product is a consumer product, | ||
301 | +doubtful cases shall be resolved in favor of coverage. For a particular | ||
302 | +product received by a particular user, "normally used" refers to a | ||
303 | +typical or common use of that class of product, regardless of the status | ||
304 | +of the particular user or of the way in which the particular user | ||
305 | +actually uses, or expects or is expected to use, the product. A product | ||
306 | +is a consumer product regardless of whether the product has substantial | ||
307 | +commercial, industrial or non-consumer uses, unless such uses represent | ||
308 | +the only significant mode of use of the product. | ||
309 | + | ||
310 | + "Installation Information" for a User Product means any methods, | ||
311 | +procedures, authorization keys, or other information required to install | ||
312 | +and execute modified versions of a covered work in that User Product from | ||
313 | +a modified version of its Corresponding Source. The information must | ||
314 | +suffice to ensure that the continued functioning of the modified object | ||
315 | +code is in no case prevented or interfered with solely because | ||
316 | +modification has been made. | ||
317 | + | ||
318 | + If you convey an object code work under this section in, or with, or | ||
319 | +specifically for use in, a User Product, and the conveying occurs as | ||
320 | +part of a transaction in which the right of possession and use of the | ||
321 | +User Product is transferred to the recipient in perpetuity or for a | ||
322 | +fixed term (regardless of how the transaction is characterized), the | ||
323 | +Corresponding Source conveyed under this section must be accompanied | ||
324 | +by the Installation Information. But this requirement does not apply | ||
325 | +if neither you nor any third party retains the ability to install | ||
326 | +modified object code on the User Product (for example, the work has | ||
327 | +been installed in ROM). | ||
328 | + | ||
329 | + The requirement to provide Installation Information does not include a | ||
330 | +requirement to continue to provide support service, warranty, or updates | ||
331 | +for a work that has been modified or installed by the recipient, or for | ||
332 | +the User Product in which it has been modified or installed. Access to a | ||
333 | +network may be denied when the modification itself materially and | ||
334 | +adversely affects the operation of the network or violates the rules and | ||
335 | +protocols for communication across the network. | ||
336 | + | ||
337 | + Corresponding Source conveyed, and Installation Information provided, | ||
338 | +in accord with this section must be in a format that is publicly | ||
339 | +documented (and with an implementation available to the public in | ||
340 | +source code form), and must require no special password or key for | ||
341 | +unpacking, reading or copying. | ||
342 | + | ||
343 | + 7. Additional Terms. | ||
344 | + | ||
345 | + "Additional permissions" are terms that supplement the terms of this | ||
346 | +License by making exceptions from one or more of its conditions. | ||
347 | +Additional permissions that are applicable to the entire Program shall | ||
348 | +be treated as though they were included in this License, to the extent | ||
349 | +that they are valid under applicable law. If additional permissions | ||
350 | +apply only to part of the Program, that part may be used separately | ||
351 | +under those permissions, but the entire Program remains governed by | ||
352 | +this License without regard to the additional permissions. | ||
353 | + | ||
354 | + When you convey a copy of a covered work, you may at your option | ||
355 | +remove any additional permissions from that copy, or from any part of | ||
356 | +it. (Additional permissions may be written to require their own | ||
357 | +removal in certain cases when you modify the work.) You may place | ||
358 | +additional permissions on material, added by you to a covered work, | ||
359 | +for which you have or can give appropriate copyright permission. | ||
360 | + | ||
361 | + Notwithstanding any other provision of this License, for material you | ||
362 | +add to a covered work, you may (if authorized by the copyright holders of | ||
363 | +that material) supplement the terms of this License with terms: | ||
364 | + | ||
365 | + a) Disclaiming warranty or limiting liability differently from the | ||
366 | + terms of sections 15 and 16 of this License; or | ||
367 | + | ||
368 | + b) Requiring preservation of specified reasonable legal notices or | ||
369 | + author attributions in that material or in the Appropriate Legal | ||
370 | + Notices displayed by works containing it; or | ||
371 | + | ||
372 | + c) Prohibiting misrepresentation of the origin of that material, or | ||
373 | + requiring that modified versions of such material be marked in | ||
374 | + reasonable ways as different from the original version; or | ||
375 | + | ||
376 | + d) Limiting the use for publicity purposes of names of licensors or | ||
377 | + authors of the material; or | ||
378 | + | ||
379 | + e) Declining to grant rights under trademark law for use of some | ||
380 | + trade names, trademarks, or service marks; or | ||
381 | + | ||
382 | + f) Requiring indemnification of licensors and authors of that | ||
383 | + material by anyone who conveys the material (or modified versions of | ||
384 | + it) with contractual assumptions of liability to the recipient, for | ||
385 | + any liability that these contractual assumptions directly impose on | ||
386 | + those licensors and authors. | ||
387 | + | ||
388 | + All other non-permissive additional terms are considered "further | ||
389 | +restrictions" within the meaning of section 10. If the Program as you | ||
390 | +received it, or any part of it, contains a notice stating that it is | ||
391 | +governed by this License along with a term that is a further | ||
392 | +restriction, you may remove that term. If a license document contains | ||
393 | +a further restriction but permits relicensing or conveying under this | ||
394 | +License, you may add to a covered work material governed by the terms | ||
395 | +of that license document, provided that the further restriction does | ||
396 | +not survive such relicensing or conveying. | ||
397 | + | ||
398 | + If you add terms to a covered work in accord with this section, you | ||
399 | +must place, in the relevant source files, a statement of the | ||
400 | +additional terms that apply to those files, or a notice indicating | ||
401 | +where to find the applicable terms. | ||
402 | + | ||
403 | + Additional terms, permissive or non-permissive, may be stated in the | ||
404 | +form of a separately written license, or stated as exceptions; | ||
405 | +the above requirements apply either way. | ||
406 | + | ||
407 | + 8. Termination. | ||
408 | + | ||
409 | + You may not propagate or modify a covered work except as expressly | ||
410 | +provided under this License. Any attempt otherwise to propagate or | ||
411 | +modify it is void, and will automatically terminate your rights under | ||
412 | +this License (including any patent licenses granted under the third | ||
413 | +paragraph of section 11). | ||
414 | + | ||
415 | + However, if you cease all violation of this License, then your | ||
416 | +license from a particular copyright holder is reinstated (a) | ||
417 | +provisionally, unless and until the copyright holder explicitly and | ||
418 | +finally terminates your license, and (b) permanently, if the copyright | ||
419 | +holder fails to notify you of the violation by some reasonable means | ||
420 | +prior to 60 days after the cessation. | ||
421 | + | ||
422 | + Moreover, your license from a particular copyright holder is | ||
423 | +reinstated permanently if the copyright holder notifies you of the | ||
424 | +violation by some reasonable means, this is the first time you have | ||
425 | +received notice of violation of this License (for any work) from that | ||
426 | +copyright holder, and you cure the violation prior to 30 days after | ||
427 | +your receipt of the notice. | ||
428 | + | ||
429 | + Termination of your rights under this section does not terminate the | ||
430 | +licenses of parties who have received copies or rights from you under | ||
431 | +this License. If your rights have been terminated and not permanently | ||
432 | +reinstated, you do not qualify to receive new licenses for the same | ||
433 | +material under section 10. | ||
434 | + | ||
435 | + 9. Acceptance Not Required for Having Copies. | ||
436 | + | ||
437 | + You are not required to accept this License in order to receive or | ||
438 | +run a copy of the Program. Ancillary propagation of a covered work | ||
439 | +occurring solely as a consequence of using peer-to-peer transmission | ||
440 | +to receive a copy likewise does not require acceptance. However, | ||
441 | +nothing other than this License grants you permission to propagate or | ||
442 | +modify any covered work. These actions infringe copyright if you do | ||
443 | +not accept this License. Therefore, by modifying or propagating a | ||
444 | +covered work, you indicate your acceptance of this License to do so. | ||
445 | + | ||
446 | + 10. Automatic Licensing of Downstream Recipients. | ||
447 | + | ||
448 | + Each time you convey a covered work, the recipient automatically | ||
449 | +receives a license from the original licensors, to run, modify and | ||
450 | +propagate that work, subject to this License. You are not responsible | ||
451 | +for enforcing compliance by third parties with this License. | ||
452 | + | ||
453 | + An "entity transaction" is a transaction transferring control of an | ||
454 | +organization, or substantially all assets of one, or subdividing an | ||
455 | +organization, or merging organizations. If propagation of a covered | ||
456 | +work results from an entity transaction, each party to that | ||
457 | +transaction who receives a copy of the work also receives whatever | ||
458 | +licenses to the work the party's predecessor in interest had or could | ||
459 | +give under the previous paragraph, plus a right to possession of the | ||
460 | +Corresponding Source of the work from the predecessor in interest, if | ||
461 | +the predecessor has it or can get it with reasonable efforts. | ||
462 | + | ||
463 | + You may not impose any further restrictions on the exercise of the | ||
464 | +rights granted or affirmed under this License. For example, you may | ||
465 | +not impose a license fee, royalty, or other charge for exercise of | ||
466 | +rights granted under this License, and you may not initiate litigation | ||
467 | +(including a cross-claim or counterclaim in a lawsuit) alleging that | ||
468 | +any patent claim is infringed by making, using, selling, offering for | ||
469 | +sale, or importing the Program or any portion of it. | ||
470 | + | ||
471 | + 11. Patents. | ||
472 | + | ||
473 | + A "contributor" is a copyright holder who authorizes use under this | ||
474 | +License of the Program or a work on which the Program is based. The | ||
475 | +work thus licensed is called the contributor's "contributor version". | ||
476 | + | ||
477 | + A contributor's "essential patent claims" are all patent claims | ||
478 | +owned or controlled by the contributor, whether already acquired or | ||
479 | +hereafter acquired, that would be infringed by some manner, permitted | ||
480 | +by this License, of making, using, or selling its contributor version, | ||
481 | +but do not include claims that would be infringed only as a | ||
482 | +consequence of further modification of the contributor version. For | ||
483 | +purposes of this definition, "control" includes the right to grant | ||
484 | +patent sublicenses in a manner consistent with the requirements of | ||
485 | +this License. | ||
486 | + | ||
487 | + Each contributor grants you a non-exclusive, worldwide, royalty-free | ||
488 | +patent license under the contributor's essential patent claims, to | ||
489 | +make, use, sell, offer for sale, import and otherwise run, modify and | ||
490 | +propagate the contents of its contributor version. | ||
491 | + | ||
492 | + In the following three paragraphs, a "patent license" is any express | ||
493 | +agreement or commitment, however denominated, not to enforce a patent | ||
494 | +(such as an express permission to practice a patent or covenant not to | ||
495 | +sue for patent infringement). To "grant" such a patent license to a | ||
496 | +party means to make such an agreement or commitment not to enforce a | ||
497 | +patent against the party. | ||
498 | + | ||
499 | + If you convey a covered work, knowingly relying on a patent license, | ||
500 | +and the Corresponding Source of the work is not available for anyone | ||
501 | +to copy, free of charge and under the terms of this License, through a | ||
502 | +publicly available network server or other readily accessible means, | ||
503 | +then you must either (1) cause the Corresponding Source to be so | ||
504 | +available, or (2) arrange to deprive yourself of the benefit of the | ||
505 | +patent license for this particular work, or (3) arrange, in a manner | ||
506 | +consistent with the requirements of this License, to extend the patent | ||
507 | +license to downstream recipients. "Knowingly relying" means you have | ||
508 | +actual knowledge that, but for the patent license, your conveying the | ||
509 | +covered work in a country, or your recipient's use of the covered work | ||
510 | +in a country, would infringe one or more identifiable patents in that | ||
511 | +country that you have reason to believe are valid. | ||
512 | + | ||
513 | + If, pursuant to or in connection with a single transaction or | ||
514 | +arrangement, you convey, or propagate by procuring conveyance of, a | ||
515 | +covered work, and grant a patent license to some of the parties | ||
516 | +receiving the covered work authorizing them to use, propagate, modify | ||
517 | +or convey a specific copy of the covered work, then the patent license | ||
518 | +you grant is automatically extended to all recipients of the covered | ||
519 | +work and works based on it. | ||
520 | + | ||
521 | + A patent license is "discriminatory" if it does not include within | ||
522 | +the scope of its coverage, prohibits the exercise of, or is | ||
523 | +conditioned on the non-exercise of one or more of the rights that are | ||
524 | +specifically granted under this License. You may not convey a covered | ||
525 | +work if you are a party to an arrangement with a third party that is | ||
526 | +in the business of distributing software, under which you make payment | ||
527 | +to the third party based on the extent of your activity of conveying | ||
528 | +the work, and under which the third party grants, to any of the | ||
529 | +parties who would receive the covered work from you, a discriminatory | ||
530 | +patent license (a) in connection with copies of the covered work | ||
531 | +conveyed by you (or copies made from those copies), or (b) primarily | ||
532 | +for and in connection with specific products or compilations that | ||
533 | +contain the covered work, unless you entered into that arrangement, | ||
534 | +or that patent license was granted, prior to 28 March 2007. | ||
535 | + | ||
536 | + Nothing in this License shall be construed as excluding or limiting | ||
537 | +any implied license or other defenses to infringement that may | ||
538 | +otherwise be available to you under applicable patent law. | ||
539 | + | ||
540 | + 12. No Surrender of Others' Freedom. | ||
541 | + | ||
542 | + If conditions are imposed on you (whether by court order, agreement or | ||
543 | +otherwise) that contradict the conditions of this License, they do not | ||
544 | +excuse you from the conditions of this License. If you cannot convey a | ||
545 | +covered work so as to satisfy simultaneously your obligations under this | ||
546 | +License and any other pertinent obligations, then as a consequence you may | ||
547 | +not convey it at all. For example, if you agree to terms that obligate you | ||
548 | +to collect a royalty for further conveying from those to whom you convey | ||
549 | +the Program, the only way you could satisfy both those terms and this | ||
550 | +License would be to refrain entirely from conveying the Program. | ||
551 | + | ||
552 | + 13. Use with the GNU Affero General Public License. | ||
553 | + | ||
554 | + Notwithstanding any other provision of this License, you have | ||
555 | +permission to link or combine any covered work with a work licensed | ||
556 | +under version 3 of the GNU Affero General Public License into a single | ||
557 | +combined work, and to convey the resulting work. The terms of this | ||
558 | +License will continue to apply to the part which is the covered work, | ||
559 | +but the special requirements of the GNU Affero General Public License, | ||
560 | +section 13, concerning interaction through a network will apply to the | ||
561 | +combination as such. | ||
562 | + | ||
563 | + 14. Revised Versions of this License. | ||
564 | + | ||
565 | + The Free Software Foundation may publish revised and/or new versions of | ||
566 | +the GNU General Public License from time to time. Such new versions will | ||
567 | +be similar in spirit to the present version, but may differ in detail to | ||
568 | +address new problems or concerns. | ||
569 | + | ||
570 | + Each version is given a distinguishing version number. If the | ||
571 | +Program specifies that a certain numbered version of the GNU General | ||
572 | +Public License "or any later version" applies to it, you have the | ||
573 | +option of following the terms and conditions either of that numbered | ||
574 | +version or of any later version published by the Free Software | ||
575 | +Foundation. If the Program does not specify a version number of the | ||
576 | +GNU General Public License, you may choose any version ever published | ||
577 | +by the Free Software Foundation. | ||
578 | + | ||
579 | + If the Program specifies that a proxy can decide which future | ||
580 | +versions of the GNU General Public License can be used, that proxy's | ||
581 | +public statement of acceptance of a version permanently authorizes you | ||
582 | +to choose that version for the Program. | ||
583 | + | ||
584 | + Later license versions may give you additional or different | ||
585 | +permissions. However, no additional obligations are imposed on any | ||
586 | +author or copyright holder as a result of your choosing to follow a | ||
587 | +later version. | ||
588 | + | ||
589 | + 15. Disclaimer of Warranty. | ||
590 | + | ||
591 | + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY | ||
592 | +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT | ||
593 | +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY | ||
594 | +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, | ||
595 | +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
596 | +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM | ||
597 | +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF | ||
598 | +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. | ||
599 | + | ||
600 | + 16. Limitation of Liability. | ||
601 | + | ||
602 | + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | ||
603 | +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS | ||
604 | +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY | ||
605 | +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE | ||
606 | +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF | ||
607 | +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD | ||
608 | +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), | ||
609 | +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF | ||
610 | +SUCH DAMAGES. | ||
611 | + | ||
612 | + 17. Interpretation of Sections 15 and 16. | ||
613 | + | ||
614 | + If the disclaimer of warranty and limitation of liability provided | ||
615 | +above cannot be given local legal effect according to their terms, | ||
616 | +reviewing courts shall apply local law that most closely approximates | ||
617 | +an absolute waiver of all civil liability in connection with the | ||
618 | +Program, unless a warranty or assumption of liability accompanies a | ||
619 | +copy of the Program in return for a fee. | ||
620 | + | ||
621 | + END OF TERMS AND CONDITIONS | ||
622 | + | ||
623 | + How to Apply These Terms to Your New Programs | ||
624 | + | ||
625 | + If you develop a new program, and you want it to be of the greatest | ||
626 | +possible use to the public, the best way to achieve this is to make it | ||
627 | +free software which everyone can redistribute and change under these terms. | ||
628 | + | ||
629 | + To do so, attach the following notices to the program. It is safest | ||
630 | +to attach them to the start of each source file to most effectively | ||
631 | +state the exclusion of warranty; and each file should have at least | ||
632 | +the "copyright" line and a pointer to where the full notice is found. | ||
633 | + | ||
634 | + <one line to give the program's name and a brief idea of what it does.> | ||
635 | + Copyright (C) <year> <name of author> | ||
636 | + | ||
637 | + This program is free software: you can redistribute it and/or modify | ||
638 | + it under the terms of the GNU General Public License as published by | ||
639 | + the Free Software Foundation, either version 3 of the License, or | ||
640 | + (at your option) any later version. | ||
641 | + | ||
642 | + This program is distributed in the hope that it will be useful, | ||
643 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
644 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
645 | + GNU General Public License for more details. | ||
646 | + | ||
647 | + You should have received a copy of the GNU General Public License | ||
648 | + along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
649 | + | ||
650 | +Also add information on how to contact you by electronic and paper mail. | ||
651 | + | ||
652 | + If the program does terminal interaction, make it output a short | ||
653 | +notice like this when it starts in an interactive mode: | ||
654 | + | ||
655 | + <program> Copyright (C) <year> <name of author> | ||
656 | + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | ||
657 | + This is free software, and you are welcome to redistribute it | ||
658 | + under certain conditions; type `show c' for details. | ||
659 | + | ||
660 | +The hypothetical commands `show w' and `show c' should show the appropriate | ||
661 | +parts of the General Public License. Of course, your program's commands | ||
662 | +might be different; for a GUI interface, you would use an "about box". | ||
663 | + | ||
664 | + You should also get your employer (if you work as a programmer) or school, | ||
665 | +if any, to sign a "copyright disclaimer" for the program, if necessary. | ||
666 | +For more information on this, and how to apply and follow the GNU GPL, see | ||
667 | +<http://www.gnu.org/licenses/>. | ||
668 | + | ||
669 | + The GNU General Public License does not permit incorporating your program | ||
670 | +into proprietary programs. If your program is a subroutine library, you | ||
671 | +may consider it more useful to permit linking proprietary applications with | ||
672 | +the library. If this is what you want to do, use the GNU Lesser General | ||
673 | +Public License instead of this License. But first, please read | ||
674 | +<http://www.gnu.org/philosophy/why-not-lgpl.html>. |
ChangeLog
0 → 100644
1 | +2011-11-14 22:55:29 +0100 Georg Hopp | ||
2 | + | ||
3 | + * some smaller fixes as well as a complete test create_token implementation. (HEAD, master) | ||
4 | + | ||
5 | +2011-11-14 18:48:09 +0100 Georg Hopp | ||
6 | + | ||
7 | + * hash integrated in dyntype...array still missing, but for simple sas tokens this should be suitable. | ||
8 | + | ||
9 | +2011-11-14 17:24:22 +0100 Georg Hopp | ||
10 | + | ||
11 | + * small fixes and preparations for further additions. valgrind shows no leaks now | ||
12 | + | ||
13 | +2011-11-14 16:53:34 +0100 Georg Hopp | ||
14 | + | ||
15 | + * hash now might be initialized by json object | ||
16 | + | ||
17 | +2011-11-14 16:29:55 +0100 Georg Hopp | ||
18 | + | ||
19 | + * fixed hash implementation...this one should be subject of optimizing in future | ||
20 | + | ||
21 | +2011-11-14 15:36:27 +0100 Georg Hopp | ||
22 | + | ||
23 | + * first creation of simple string indexed hash | ||
24 | + | ||
25 | +2011-11-14 14:01:00 +0100 Georg Hopp | ||
26 | + | ||
27 | + * reflect structural changes in test files | ||
28 | + | ||
29 | +2011-11-14 13:55:56 +0100 Georg Hopp | ||
30 | + | ||
31 | + * some structural changes | ||
32 | + | ||
33 | +2011-11-14 13:51:52 +0100 Georg Hopp | ||
34 | + | ||
35 | + * dyntype string stuff ready | ||
36 | + | ||
37 | +2011-11-14 13:12:24 +0100 Georg Hopp | ||
38 | + | ||
39 | + * dyntype seems to work for int now, incl. json | ||
40 | + | ||
41 | +2011-11-14 11:56:34 +0100 Georg Hopp | ||
42 | + | ||
43 | + * some more work on dyntype | ||
44 | + | ||
45 | +2011-11-14 09:50:20 +0100 Georg Hopp | ||
46 | + | ||
47 | + * initial checkin (origin/master, origin/HEAD) | ||
48 | + |
INSTALL
0 → 100644
1 | +Installation Instructions | ||
2 | +************************* | ||
3 | + | ||
4 | +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, | ||
5 | +2006, 2007, 2008, 2009 Free Software Foundation, Inc. | ||
6 | + | ||
7 | + Copying and distribution of this file, with or without modification, | ||
8 | +are permitted in any medium without royalty provided the copyright | ||
9 | +notice and this notice are preserved. This file is offered as-is, | ||
10 | +without warranty of any kind. | ||
11 | + | ||
12 | +Basic Installation | ||
13 | +================== | ||
14 | + | ||
15 | + Briefly, the shell commands `./configure; make; make install' should | ||
16 | +configure, build, and install this package. The following | ||
17 | +more-detailed instructions are generic; see the `README' file for | ||
18 | +instructions specific to this package. Some packages provide this | ||
19 | +`INSTALL' file but do not implement all of the features documented | ||
20 | +below. The lack of an optional feature in a given package is not | ||
21 | +necessarily a bug. More recommendations for GNU packages can be found | ||
22 | +in *note Makefile Conventions: (standards)Makefile Conventions. | ||
23 | + | ||
24 | + The `configure' shell script attempts to guess correct values for | ||
25 | +various system-dependent variables used during compilation. It uses | ||
26 | +those values to create a `Makefile' in each directory of the package. | ||
27 | +It may also create one or more `.h' files containing system-dependent | ||
28 | +definitions. Finally, it creates a shell script `config.status' that | ||
29 | +you can run in the future to recreate the current configuration, and a | ||
30 | +file `config.log' containing compiler output (useful mainly for | ||
31 | +debugging `configure'). | ||
32 | + | ||
33 | + It can also use an optional file (typically called `config.cache' | ||
34 | +and enabled with `--cache-file=config.cache' or simply `-C') that saves | ||
35 | +the results of its tests to speed up reconfiguring. Caching is | ||
36 | +disabled by default to prevent problems with accidental use of stale | ||
37 | +cache files. | ||
38 | + | ||
39 | + If you need to do unusual things to compile the package, please try | ||
40 | +to figure out how `configure' could check whether to do them, and mail | ||
41 | +diffs or instructions to the address given in the `README' so they can | ||
42 | +be considered for the next release. If you are using the cache, and at | ||
43 | +some point `config.cache' contains results you don't want to keep, you | ||
44 | +may remove or edit it. | ||
45 | + | ||
46 | + The file `configure.ac' (or `configure.in') is used to create | ||
47 | +`configure' by a program called `autoconf'. You need `configure.ac' if | ||
48 | +you want to change it or regenerate `configure' using a newer version | ||
49 | +of `autoconf'. | ||
50 | + | ||
51 | + The simplest way to compile this package is: | ||
52 | + | ||
53 | + 1. `cd' to the directory containing the package's source code and type | ||
54 | + `./configure' to configure the package for your system. | ||
55 | + | ||
56 | + Running `configure' might take a while. While running, it prints | ||
57 | + some messages telling which features it is checking for. | ||
58 | + | ||
59 | + 2. Type `make' to compile the package. | ||
60 | + | ||
61 | + 3. Optionally, type `make check' to run any self-tests that come with | ||
62 | + the package, generally using the just-built uninstalled binaries. | ||
63 | + | ||
64 | + 4. Type `make install' to install the programs and any data files and | ||
65 | + documentation. When installing into a prefix owned by root, it is | ||
66 | + recommended that the package be configured and built as a regular | ||
67 | + user, and only the `make install' phase executed with root | ||
68 | + privileges. | ||
69 | + | ||
70 | + 5. Optionally, type `make installcheck' to repeat any self-tests, but | ||
71 | + this time using the binaries in their final installed location. | ||
72 | + This target does not install anything. Running this target as a | ||
73 | + regular user, particularly if the prior `make install' required | ||
74 | + root privileges, verifies that the installation completed | ||
75 | + correctly. | ||
76 | + | ||
77 | + 6. You can remove the program binaries and object files from the | ||
78 | + source code directory by typing `make clean'. To also remove the | ||
79 | + files that `configure' created (so you can compile the package for | ||
80 | + a different kind of computer), type `make distclean'. There is | ||
81 | + also a `make maintainer-clean' target, but that is intended mainly | ||
82 | + for the package's developers. If you use it, you may have to get | ||
83 | + all sorts of other programs in order to regenerate files that came | ||
84 | + with the distribution. | ||
85 | + | ||
86 | + 7. Often, you can also type `make uninstall' to remove the installed | ||
87 | + files again. In practice, not all packages have tested that | ||
88 | + uninstallation works correctly, even though it is required by the | ||
89 | + GNU Coding Standards. | ||
90 | + | ||
91 | + 8. Some packages, particularly those that use Automake, provide `make | ||
92 | + distcheck', which can by used by developers to test that all other | ||
93 | + targets like `make install' and `make uninstall' work correctly. | ||
94 | + This target is generally not run by end users. | ||
95 | + | ||
96 | +Compilers and Options | ||
97 | +===================== | ||
98 | + | ||
99 | + Some systems require unusual options for compilation or linking that | ||
100 | +the `configure' script does not know about. Run `./configure --help' | ||
101 | +for details on some of the pertinent environment variables. | ||
102 | + | ||
103 | + You can give `configure' initial values for configuration parameters | ||
104 | +by setting variables in the command line or in the environment. Here | ||
105 | +is an example: | ||
106 | + | ||
107 | + ./configure CC=c99 CFLAGS=-g LIBS=-lposix | ||
108 | + | ||
109 | + *Note Defining Variables::, for more details. | ||
110 | + | ||
111 | +Compiling For Multiple Architectures | ||
112 | +==================================== | ||
113 | + | ||
114 | + You can compile the package for more than one kind of computer at the | ||
115 | +same time, by placing the object files for each architecture in their | ||
116 | +own directory. To do this, you can use GNU `make'. `cd' to the | ||
117 | +directory where you want the object files and executables to go and run | ||
118 | +the `configure' script. `configure' automatically checks for the | ||
119 | +source code in the directory that `configure' is in and in `..'. This | ||
120 | +is known as a "VPATH" build. | ||
121 | + | ||
122 | + With a non-GNU `make', it is safer to compile the package for one | ||
123 | +architecture at a time in the source code directory. After you have | ||
124 | +installed the package for one architecture, use `make distclean' before | ||
125 | +reconfiguring for another architecture. | ||
126 | + | ||
127 | + On MacOS X 10.5 and later systems, you can create libraries and | ||
128 | +executables that work on multiple system types--known as "fat" or | ||
129 | +"universal" binaries--by specifying multiple `-arch' options to the | ||
130 | +compiler but only a single `-arch' option to the preprocessor. Like | ||
131 | +this: | ||
132 | + | ||
133 | + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ | ||
134 | + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ | ||
135 | + CPP="gcc -E" CXXCPP="g++ -E" | ||
136 | + | ||
137 | + This is not guaranteed to produce working output in all cases, you | ||
138 | +may have to build one architecture at a time and combine the results | ||
139 | +using the `lipo' tool if you have problems. | ||
140 | + | ||
141 | +Installation Names | ||
142 | +================== | ||
143 | + | ||
144 | + By default, `make install' installs the package's commands under | ||
145 | +`/usr/local/bin', include files under `/usr/local/include', etc. You | ||
146 | +can specify an installation prefix other than `/usr/local' by giving | ||
147 | +`configure' the option `--prefix=PREFIX', where PREFIX must be an | ||
148 | +absolute file name. | ||
149 | + | ||
150 | + You can specify separate installation prefixes for | ||
151 | +architecture-specific files and architecture-independent files. If you | ||
152 | +pass the option `--exec-prefix=PREFIX' to `configure', the package uses | ||
153 | +PREFIX as the prefix for installing programs and libraries. | ||
154 | +Documentation and other data files still use the regular prefix. | ||
155 | + | ||
156 | + In addition, if you use an unusual directory layout you can give | ||
157 | +options like `--bindir=DIR' to specify different values for particular | ||
158 | +kinds of files. Run `configure --help' for a list of the directories | ||
159 | +you can set and what kinds of files go in them. In general, the | ||
160 | +default for these options is expressed in terms of `${prefix}', so that | ||
161 | +specifying just `--prefix' will affect all of the other directory | ||
162 | +specifications that were not explicitly provided. | ||
163 | + | ||
164 | + The most portable way to affect installation locations is to pass the | ||
165 | +correct locations to `configure'; however, many packages provide one or | ||
166 | +both of the following shortcuts of passing variable assignments to the | ||
167 | +`make install' command line to change installation locations without | ||
168 | +having to reconfigure or recompile. | ||
169 | + | ||
170 | + The first method involves providing an override variable for each | ||
171 | +affected directory. For example, `make install | ||
172 | +prefix=/alternate/directory' will choose an alternate location for all | ||
173 | +directory configuration variables that were expressed in terms of | ||
174 | +`${prefix}'. Any directories that were specified during `configure', | ||
175 | +but not in terms of `${prefix}', must each be overridden at install | ||
176 | +time for the entire installation to be relocated. The approach of | ||
177 | +makefile variable overrides for each directory variable is required by | ||
178 | +the GNU Coding Standards, and ideally causes no recompilation. | ||
179 | +However, some platforms have known limitations with the semantics of | ||
180 | +shared libraries that end up requiring recompilation when using this | ||
181 | +method, particularly noticeable in packages that use GNU Libtool. | ||
182 | + | ||
183 | + The second method involves providing the `DESTDIR' variable. For | ||
184 | +example, `make install DESTDIR=/alternate/directory' will prepend | ||
185 | +`/alternate/directory' before all installation names. The approach of | ||
186 | +`DESTDIR' overrides is not required by the GNU Coding Standards, and | ||
187 | +does not work on platforms that have drive letters. On the other hand, | ||
188 | +it does better at avoiding recompilation issues, and works well even | ||
189 | +when some directory options were not specified in terms of `${prefix}' | ||
190 | +at `configure' time. | ||
191 | + | ||
192 | +Optional Features | ||
193 | +================= | ||
194 | + | ||
195 | + If the package supports it, you can cause programs to be installed | ||
196 | +with an extra prefix or suffix on their names by giving `configure' the | ||
197 | +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. | ||
198 | + | ||
199 | + Some packages pay attention to `--enable-FEATURE' options to | ||
200 | +`configure', where FEATURE indicates an optional part of the package. | ||
201 | +They may also pay attention to `--with-PACKAGE' options, where PACKAGE | ||
202 | +is something like `gnu-as' or `x' (for the X Window System). The | ||
203 | +`README' should mention any `--enable-' and `--with-' options that the | ||
204 | +package recognizes. | ||
205 | + | ||
206 | + For packages that use the X Window System, `configure' can usually | ||
207 | +find the X include and library files automatically, but if it doesn't, | ||
208 | +you can use the `configure' options `--x-includes=DIR' and | ||
209 | +`--x-libraries=DIR' to specify their locations. | ||
210 | + | ||
211 | + Some packages offer the ability to configure how verbose the | ||
212 | +execution of `make' will be. For these packages, running `./configure | ||
213 | +--enable-silent-rules' sets the default to minimal output, which can be | ||
214 | +overridden with `make V=1'; while running `./configure | ||
215 | +--disable-silent-rules' sets the default to verbose, which can be | ||
216 | +overridden with `make V=0'. | ||
217 | + | ||
218 | +Particular systems | ||
219 | +================== | ||
220 | + | ||
221 | + On HP-UX, the default C compiler is not ANSI C compatible. If GNU | ||
222 | +CC is not installed, it is recommended to use the following options in | ||
223 | +order to use an ANSI C compiler: | ||
224 | + | ||
225 | + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" | ||
226 | + | ||
227 | +and if that doesn't work, install pre-built binaries of GCC for HP-UX. | ||
228 | + | ||
229 | + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot | ||
230 | +parse its `<wchar.h>' header file. The option `-nodtk' can be used as | ||
231 | +a workaround. If GNU CC is not installed, it is therefore recommended | ||
232 | +to try | ||
233 | + | ||
234 | + ./configure CC="cc" | ||
235 | + | ||
236 | +and if that doesn't work, try | ||
237 | + | ||
238 | + ./configure CC="cc -nodtk" | ||
239 | + | ||
240 | + On Solaris, don't put `/usr/ucb' early in your `PATH'. This | ||
241 | +directory contains several dysfunctional programs; working variants of | ||
242 | +these programs are available in `/usr/bin'. So, if you need `/usr/ucb' | ||
243 | +in your `PATH', put it _after_ `/usr/bin'. | ||
244 | + | ||
245 | + On Haiku, software installed for all users goes in `/boot/common', | ||
246 | +not `/usr/local'. It is recommended to use the following options: | ||
247 | + | ||
248 | + ./configure --prefix=/boot/common | ||
249 | + | ||
250 | +Specifying the System Type | ||
251 | +========================== | ||
252 | + | ||
253 | + There may be some features `configure' cannot figure out | ||
254 | +automatically, but needs to determine by the type of machine the package | ||
255 | +will run on. Usually, assuming the package is built to be run on the | ||
256 | +_same_ architectures, `configure' can figure that out, but if it prints | ||
257 | +a message saying it cannot guess the machine type, give it the | ||
258 | +`--build=TYPE' option. TYPE can either be a short name for the system | ||
259 | +type, such as `sun4', or a canonical name which has the form: | ||
260 | + | ||
261 | + CPU-COMPANY-SYSTEM | ||
262 | + | ||
263 | +where SYSTEM can have one of these forms: | ||
264 | + | ||
265 | + OS | ||
266 | + KERNEL-OS | ||
267 | + | ||
268 | + See the file `config.sub' for the possible values of each field. If | ||
269 | +`config.sub' isn't included in this package, then this package doesn't | ||
270 | +need to know the machine type. | ||
271 | + | ||
272 | + If you are _building_ compiler tools for cross-compiling, you should | ||
273 | +use the option `--target=TYPE' to select the type of system they will | ||
274 | +produce code for. | ||
275 | + | ||
276 | + If you want to _use_ a cross compiler, that generates code for a | ||
277 | +platform different from the build platform, you should specify the | ||
278 | +"host" platform (i.e., that on which the generated programs will | ||
279 | +eventually be run) with `--host=TYPE'. | ||
280 | + | ||
281 | +Sharing Defaults | ||
282 | +================ | ||
283 | + | ||
284 | + If you want to set default values for `configure' scripts to share, | ||
285 | +you can create a site shell script called `config.site' that gives | ||
286 | +default values for variables like `CC', `cache_file', and `prefix'. | ||
287 | +`configure' looks for `PREFIX/share/config.site' if it exists, then | ||
288 | +`PREFIX/etc/config.site' if it exists. Or, you can set the | ||
289 | +`CONFIG_SITE' environment variable to the location of the site script. | ||
290 | +A warning: not all `configure' scripts look for a site script. | ||
291 | + | ||
292 | +Defining Variables | ||
293 | +================== | ||
294 | + | ||
295 | + Variables not defined in a site shell script can be set in the | ||
296 | +environment passed to `configure'. However, some packages may run | ||
297 | +configure again during the build, and the customized values of these | ||
298 | +variables may be lost. In order to avoid this problem, you should set | ||
299 | +them in the `configure' command line, using `VAR=value'. For example: | ||
300 | + | ||
301 | + ./configure CC=/usr/local2/bin/gcc | ||
302 | + | ||
303 | +causes the specified `gcc' to be used as the C compiler (unless it is | ||
304 | +overridden in the site shell script). | ||
305 | + | ||
306 | +Unfortunately, this technique does not work for `CONFIG_SHELL' due to | ||
307 | +an Autoconf bug. Until the bug is fixed you can use this workaround: | ||
308 | + | ||
309 | + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash | ||
310 | + | ||
311 | +`configure' Invocation | ||
312 | +====================== | ||
313 | + | ||
314 | + `configure' recognizes the following options to control how it | ||
315 | +operates. | ||
316 | + | ||
317 | +`--help' | ||
318 | +`-h' | ||
319 | + Print a summary of all of the options to `configure', and exit. | ||
320 | + | ||
321 | +`--help=short' | ||
322 | +`--help=recursive' | ||
323 | + Print a summary of the options unique to this package's | ||
324 | + `configure', and exit. The `short' variant lists options used | ||
325 | + only in the top level, while the `recursive' variant lists options | ||
326 | + also present in any nested packages. | ||
327 | + | ||
328 | +`--version' | ||
329 | +`-V' | ||
330 | + Print the version of Autoconf used to generate the `configure' | ||
331 | + script, and exit. | ||
332 | + | ||
333 | +`--cache-file=FILE' | ||
334 | + Enable the cache: use and save the results of the tests in FILE, | ||
335 | + traditionally `config.cache'. FILE defaults to `/dev/null' to | ||
336 | + disable caching. | ||
337 | + | ||
338 | +`--config-cache' | ||
339 | +`-C' | ||
340 | + Alias for `--cache-file=config.cache'. | ||
341 | + | ||
342 | +`--quiet' | ||
343 | +`--silent' | ||
344 | +`-q' | ||
345 | + Do not print messages saying which checks are being made. To | ||
346 | + suppress all normal output, redirect it to `/dev/null' (any error | ||
347 | + messages will still be shown). | ||
348 | + | ||
349 | +`--srcdir=DIR' | ||
350 | + Look for the package's source code in directory DIR. Usually | ||
351 | + `configure' can determine that directory automatically. | ||
352 | + | ||
353 | +`--prefix=DIR' | ||
354 | + Use DIR as the installation prefix. *note Installation Names:: | ||
355 | + for more details, including other options available for fine-tuning | ||
356 | + the installation locations. | ||
357 | + | ||
358 | +`--no-create' | ||
359 | +`-n' | ||
360 | + Run the configure checks, but stop before creating any output | ||
361 | + files. | ||
362 | + | ||
363 | +`configure' also accepts some other, not widely useful, options. Run | ||
364 | +`configure --help' for more details. | ||
365 | + |
Makefile.am
0 → 100644
1 | +ACLOCAL_AMFLAGS = -I m4 | ||
2 | + | ||
3 | +lib_LTLIBRARIES = libbigpoint.la | ||
4 | +libbigpoint_la_SOURCES = base64.c bigpoint_cclass.c bigpoint_crypt.c bigpoint_dyntype.c \ | ||
5 | + bigpoint_hash.c bigpoint_packet.c | ||
6 | +libbigpoint_la_CFLAGS = -I include | ||
7 | +libbigpoint_la_LDFLAGS = -version-info 0:0:0 | ||
8 | + | ||
9 | + | ||
10 | +bin_PROGRAMS = create_token | ||
11 | +create_token_SOURCES = createToken.c | ||
12 | +create_token_LDADD = libbigpoint.la $(LIBOBJS) | ||
13 | +create_token_CFLAGS = -I include | ||
14 | + | ||
15 | +SUBDIRS = include |
Makefile.in
0 → 100644
1 | +# Makefile.in generated by automake 1.11.1 from Makefile.am. | ||
2 | +# @configure_input@ | ||
3 | + | ||
4 | +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||
5 | +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | ||
6 | +# Inc. | ||
7 | +# This Makefile.in is free software; the Free Software Foundation | ||
8 | +# gives unlimited permission to copy and/or distribute it, | ||
9 | +# with or without modifications, as long as this notice is preserved. | ||
10 | + | ||
11 | +# This program is distributed in the hope that it will be useful, | ||
12 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
13 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
14 | +# PARTICULAR PURPOSE. | ||
15 | + | ||
16 | +@SET_MAKE@ | ||
17 | + | ||
18 | + | ||
19 | +VPATH = @srcdir@ | ||
20 | +pkgdatadir = $(datadir)/@PACKAGE@ | ||
21 | +pkgincludedir = $(includedir)/@PACKAGE@ | ||
22 | +pkglibdir = $(libdir)/@PACKAGE@ | ||
23 | +pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
24 | +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
25 | +install_sh_DATA = $(install_sh) -c -m 644 | ||
26 | +install_sh_PROGRAM = $(install_sh) -c | ||
27 | +install_sh_SCRIPT = $(install_sh) -c | ||
28 | +INSTALL_HEADER = $(INSTALL_DATA) | ||
29 | +transform = $(program_transform_name) | ||
30 | +NORMAL_INSTALL = : | ||
31 | +PRE_INSTALL = : | ||
32 | +POST_INSTALL = : | ||
33 | +NORMAL_UNINSTALL = : | ||
34 | +PRE_UNINSTALL = : | ||
35 | +POST_UNINSTALL = : | ||
36 | +build_triplet = @build@ | ||
37 | +host_triplet = @host@ | ||
38 | +bin_PROGRAMS = create_token$(EXEEXT) | ||
39 | +subdir = . | ||
40 | +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ | ||
41 | + $(srcdir)/Makefile.in $(srcdir)/config.h.in \ | ||
42 | + $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ | ||
43 | + compile config.guess config.sub depcomp install-sh ltmain.sh \ | ||
44 | + missing | ||
45 | +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
46 | +am__aclocal_m4_deps = $(top_srcdir)/configure.ac | ||
47 | +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
48 | + $(ACLOCAL_M4) | ||
49 | +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | ||
50 | + configure.lineno config.status.lineno | ||
51 | +mkinstalldirs = $(install_sh) -d | ||
52 | +CONFIG_HEADER = config.h | ||
53 | +CONFIG_CLEAN_FILES = | ||
54 | +CONFIG_CLEAN_VPATH_FILES = | ||
55 | +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
56 | +am__vpath_adj = case $$p in \ | ||
57 | + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
58 | + *) f=$$p;; \ | ||
59 | + esac; | ||
60 | +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | ||
61 | +am__install_max = 40 | ||
62 | +am__nobase_strip_setup = \ | ||
63 | + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | ||
64 | +am__nobase_strip = \ | ||
65 | + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | ||
66 | +am__nobase_list = $(am__nobase_strip_setup); \ | ||
67 | + for p in $$list; do echo "$$p $$p"; done | \ | ||
68 | + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | ||
69 | + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | ||
70 | + if (++n[$$2] == $(am__install_max)) \ | ||
71 | + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | ||
72 | + END { for (dir in files) print dir, files[dir] }' | ||
73 | +am__base_list = \ | ||
74 | + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | ||
75 | + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | ||
76 | +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" | ||
77 | +LTLIBRARIES = $(lib_LTLIBRARIES) | ||
78 | +libbigpoint_la_LIBADD = | ||
79 | +am_libbigpoint_la_OBJECTS = libbigpoint_la-base64.lo \ | ||
80 | + libbigpoint_la-bigpoint_cclass.lo \ | ||
81 | + libbigpoint_la-bigpoint_crypt.lo \ | ||
82 | + libbigpoint_la-bigpoint_dyntype.lo \ | ||
83 | + libbigpoint_la-bigpoint_hash.lo \ | ||
84 | + libbigpoint_la-bigpoint_packet.lo | ||
85 | +libbigpoint_la_OBJECTS = $(am_libbigpoint_la_OBJECTS) | ||
86 | +libbigpoint_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
87 | + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libbigpoint_la_CFLAGS) \ | ||
88 | + $(CFLAGS) $(libbigpoint_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
89 | +PROGRAMS = $(bin_PROGRAMS) | ||
90 | +am_create_token_OBJECTS = create_token-createToken.$(OBJEXT) | ||
91 | +create_token_OBJECTS = $(am_create_token_OBJECTS) | ||
92 | +create_token_DEPENDENCIES = libbigpoint.la $(LIBOBJS) | ||
93 | +create_token_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
94 | + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(create_token_CFLAGS) \ | ||
95 | + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
96 | +DEFAULT_INCLUDES = -I.@am__isrc@ | ||
97 | +depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
98 | +am__depfiles_maybe = depfiles | ||
99 | +am__mv = mv -f | ||
100 | +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
101 | + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
102 | +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
103 | + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
104 | + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
105 | +CCLD = $(CC) | ||
106 | +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
107 | + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | ||
108 | + $(LDFLAGS) -o $@ | ||
109 | +SOURCES = $(libbigpoint_la_SOURCES) $(create_token_SOURCES) | ||
110 | +DIST_SOURCES = $(libbigpoint_la_SOURCES) $(create_token_SOURCES) | ||
111 | +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | ||
112 | + html-recursive info-recursive install-data-recursive \ | ||
113 | + install-dvi-recursive install-exec-recursive \ | ||
114 | + install-html-recursive install-info-recursive \ | ||
115 | + install-pdf-recursive install-ps-recursive install-recursive \ | ||
116 | + installcheck-recursive installdirs-recursive pdf-recursive \ | ||
117 | + ps-recursive uninstall-recursive | ||
118 | +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ | ||
119 | + distclean-recursive maintainer-clean-recursive | ||
120 | +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ | ||
121 | + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ | ||
122 | + distdir dist dist-all distcheck | ||
123 | +ETAGS = etags | ||
124 | +CTAGS = ctags | ||
125 | +DIST_SUBDIRS = $(SUBDIRS) | ||
126 | +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
127 | +distdir = $(PACKAGE)-$(VERSION) | ||
128 | +top_distdir = $(distdir) | ||
129 | +am__remove_distdir = \ | ||
130 | + { test ! -d "$(distdir)" \ | ||
131 | + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ | ||
132 | + && rm -fr "$(distdir)"; }; } | ||
133 | +am__relativize = \ | ||
134 | + dir0=`pwd`; \ | ||
135 | + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ | ||
136 | + sed_rest='s,^[^/]*/*,,'; \ | ||
137 | + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ | ||
138 | + sed_butlast='s,/*[^/]*$$,,'; \ | ||
139 | + while test -n "$$dir1"; do \ | ||
140 | + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ | ||
141 | + if test "$$first" != "."; then \ | ||
142 | + if test "$$first" = ".."; then \ | ||
143 | + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ | ||
144 | + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ | ||
145 | + else \ | ||
146 | + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ | ||
147 | + if test "$$first2" = "$$first"; then \ | ||
148 | + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ | ||
149 | + else \ | ||
150 | + dir2="../$$dir2"; \ | ||
151 | + fi; \ | ||
152 | + dir0="$$dir0"/"$$first"; \ | ||
153 | + fi; \ | ||
154 | + fi; \ | ||
155 | + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ | ||
156 | + done; \ | ||
157 | + reldir="$$dir2" | ||
158 | +DIST_ARCHIVES = $(distdir).tar.gz | ||
159 | +GZIP_ENV = --best | ||
160 | +distuninstallcheck_listfiles = find . -type f -print | ||
161 | +distcleancheck_listfiles = find . -type f -print | ||
162 | +ACLOCAL = @ACLOCAL@ | ||
163 | +AMTAR = @AMTAR@ | ||
164 | +AR = @AR@ | ||
165 | +AUTOCONF = @AUTOCONF@ | ||
166 | +AUTOHEADER = @AUTOHEADER@ | ||
167 | +AUTOMAKE = @AUTOMAKE@ | ||
168 | +AWK = @AWK@ | ||
169 | +CC = @CC@ | ||
170 | +CCDEPMODE = @CCDEPMODE@ | ||
171 | +CFLAGS = @CFLAGS@ | ||
172 | +CPP = @CPP@ | ||
173 | +CPPFLAGS = @CPPFLAGS@ | ||
174 | +CYGPATH_W = @CYGPATH_W@ | ||
175 | +DEFS = @DEFS@ | ||
176 | +DEPDIR = @DEPDIR@ | ||
177 | +DLLTOOL = @DLLTOOL@ | ||
178 | +DSYMUTIL = @DSYMUTIL@ | ||
179 | +DUMPBIN = @DUMPBIN@ | ||
180 | +ECHO_C = @ECHO_C@ | ||
181 | +ECHO_N = @ECHO_N@ | ||
182 | +ECHO_T = @ECHO_T@ | ||
183 | +EGREP = @EGREP@ | ||
184 | +EXEEXT = @EXEEXT@ | ||
185 | +FGREP = @FGREP@ | ||
186 | +GREP = @GREP@ | ||
187 | +INSTALL = @INSTALL@ | ||
188 | +INSTALL_DATA = @INSTALL_DATA@ | ||
189 | +INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
190 | +INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
191 | +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
192 | +LD = @LD@ | ||
193 | +LDFLAGS = @LDFLAGS@ | ||
194 | +LIBOBJS = @LIBOBJS@ | ||
195 | +LIBS = @LIBS@ | ||
196 | +LIBTOOL = @LIBTOOL@ | ||
197 | +LIPO = @LIPO@ | ||
198 | +LN_S = @LN_S@ | ||
199 | +LTLIBOBJS = @LTLIBOBJS@ | ||
200 | +MAKEINFO = @MAKEINFO@ | ||
201 | +MANIFEST_TOOL = @MANIFEST_TOOL@ | ||
202 | +MKDIR_P = @MKDIR_P@ | ||
203 | +NM = @NM@ | ||
204 | +NMEDIT = @NMEDIT@ | ||
205 | +OBJDUMP = @OBJDUMP@ | ||
206 | +OBJEXT = @OBJEXT@ | ||
207 | +OTOOL = @OTOOL@ | ||
208 | +OTOOL64 = @OTOOL64@ | ||
209 | +PACKAGE = @PACKAGE@ | ||
210 | +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
211 | +PACKAGE_NAME = @PACKAGE_NAME@ | ||
212 | +PACKAGE_STRING = @PACKAGE_STRING@ | ||
213 | +PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
214 | +PACKAGE_URL = @PACKAGE_URL@ | ||
215 | +PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
216 | +PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
217 | +RANLIB = @RANLIB@ | ||
218 | +SED = @SED@ | ||
219 | +SET_MAKE = @SET_MAKE@ | ||
220 | +SHELL = @SHELL@ | ||
221 | +STRIP = @STRIP@ | ||
222 | +VERSION = @VERSION@ | ||
223 | +abs_builddir = @abs_builddir@ | ||
224 | +abs_srcdir = @abs_srcdir@ | ||
225 | +abs_top_builddir = @abs_top_builddir@ | ||
226 | +abs_top_srcdir = @abs_top_srcdir@ | ||
227 | +ac_ct_AR = @ac_ct_AR@ | ||
228 | +ac_ct_CC = @ac_ct_CC@ | ||
229 | +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
230 | +am__include = @am__include@ | ||
231 | +am__leading_dot = @am__leading_dot@ | ||
232 | +am__quote = @am__quote@ | ||
233 | +am__tar = @am__tar@ | ||
234 | +am__untar = @am__untar@ | ||
235 | +bindir = @bindir@ | ||
236 | +build = @build@ | ||
237 | +build_alias = @build_alias@ | ||
238 | +build_cpu = @build_cpu@ | ||
239 | +build_os = @build_os@ | ||
240 | +build_vendor = @build_vendor@ | ||
241 | +builddir = @builddir@ | ||
242 | +datadir = @datadir@ | ||
243 | +datarootdir = @datarootdir@ | ||
244 | +docdir = @docdir@ | ||
245 | +dvidir = @dvidir@ | ||
246 | +exec_prefix = @exec_prefix@ | ||
247 | +host = @host@ | ||
248 | +host_alias = @host_alias@ | ||
249 | +host_cpu = @host_cpu@ | ||
250 | +host_os = @host_os@ | ||
251 | +host_vendor = @host_vendor@ | ||
252 | +htmldir = @htmldir@ | ||
253 | +includedir = @includedir@ | ||
254 | +infodir = @infodir@ | ||
255 | +install_sh = @install_sh@ | ||
256 | +libdir = @libdir@ | ||
257 | +libexecdir = @libexecdir@ | ||
258 | +localedir = @localedir@ | ||
259 | +localstatedir = @localstatedir@ | ||
260 | +mandir = @mandir@ | ||
261 | +mkdir_p = @mkdir_p@ | ||
262 | +oldincludedir = @oldincludedir@ | ||
263 | +pdfdir = @pdfdir@ | ||
264 | +prefix = @prefix@ | ||
265 | +program_transform_name = @program_transform_name@ | ||
266 | +psdir = @psdir@ | ||
267 | +sbindir = @sbindir@ | ||
268 | +sharedstatedir = @sharedstatedir@ | ||
269 | +srcdir = @srcdir@ | ||
270 | +sysconfdir = @sysconfdir@ | ||
271 | +target_alias = @target_alias@ | ||
272 | +top_build_prefix = @top_build_prefix@ | ||
273 | +top_builddir = @top_builddir@ | ||
274 | +top_srcdir = @top_srcdir@ | ||
275 | +ACLOCAL_AMFLAGS = -I m4 | ||
276 | +lib_LTLIBRARIES = libbigpoint.la | ||
277 | +libbigpoint_la_SOURCES = base64.c bigpoint_cclass.c bigpoint_crypt.c bigpoint_dyntype.c \ | ||
278 | + bigpoint_hash.c bigpoint_packet.c | ||
279 | + | ||
280 | +libbigpoint_la_CFLAGS = -I include | ||
281 | +libbigpoint_la_LDFLAGS = -version-info 0:0:0 | ||
282 | +create_token_SOURCES = createToken.c | ||
283 | +create_token_LDADD = libbigpoint.la $(LIBOBJS) | ||
284 | +create_token_CFLAGS = -I include | ||
285 | +SUBDIRS = include | ||
286 | +all: config.h | ||
287 | + $(MAKE) $(AM_MAKEFLAGS) all-recursive | ||
288 | + | ||
289 | +.SUFFIXES: | ||
290 | +.SUFFIXES: .c .lo .o .obj | ||
291 | +am--refresh: | ||
292 | + @: | ||
293 | +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
294 | + @for dep in $?; do \ | ||
295 | + case '$(am__configure_deps)' in \ | ||
296 | + *$$dep*) \ | ||
297 | + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ | ||
298 | + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ | ||
299 | + && exit 0; \ | ||
300 | + exit 1;; \ | ||
301 | + esac; \ | ||
302 | + done; \ | ||
303 | + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ | ||
304 | + $(am__cd) $(top_srcdir) && \ | ||
305 | + $(AUTOMAKE) --gnu Makefile | ||
306 | +.PRECIOUS: Makefile | ||
307 | +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
308 | + @case '$?' in \ | ||
309 | + *config.status*) \ | ||
310 | + echo ' $(SHELL) ./config.status'; \ | ||
311 | + $(SHELL) ./config.status;; \ | ||
312 | + *) \ | ||
313 | + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ | ||
314 | + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ | ||
315 | + esac; | ||
316 | + | ||
317 | +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
318 | + $(SHELL) ./config.status --recheck | ||
319 | + | ||
320 | +$(top_srcdir)/configure: $(am__configure_deps) | ||
321 | + $(am__cd) $(srcdir) && $(AUTOCONF) | ||
322 | +$(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
323 | + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | ||
324 | +$(am__aclocal_m4_deps): | ||
325 | + | ||
326 | +config.h: stamp-h1 | ||
327 | + @if test ! -f $@; then \ | ||
328 | + rm -f stamp-h1; \ | ||
329 | + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ | ||
330 | + else :; fi | ||
331 | + | ||
332 | +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status | ||
333 | + @rm -f stamp-h1 | ||
334 | + cd $(top_builddir) && $(SHELL) ./config.status config.h | ||
335 | +$(srcdir)/config.h.in: $(am__configure_deps) | ||
336 | + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) | ||
337 | + rm -f stamp-h1 | ||
338 | + touch $@ | ||
339 | + | ||
340 | +distclean-hdr: | ||
341 | + -rm -f config.h stamp-h1 | ||
342 | +install-libLTLIBRARIES: $(lib_LTLIBRARIES) | ||
343 | + @$(NORMAL_INSTALL) | ||
344 | + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" | ||
345 | + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ | ||
346 | + list2=; for p in $$list; do \ | ||
347 | + if test -f $$p; then \ | ||
348 | + list2="$$list2 $$p"; \ | ||
349 | + else :; fi; \ | ||
350 | + done; \ | ||
351 | + test -z "$$list2" || { \ | ||
352 | + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ | ||
353 | + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ | ||
354 | + } | ||
355 | + | ||
356 | +uninstall-libLTLIBRARIES: | ||
357 | + @$(NORMAL_UNINSTALL) | ||
358 | + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ | ||
359 | + for p in $$list; do \ | ||
360 | + $(am__strip_dir) \ | ||
361 | + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ | ||
362 | + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ | ||
363 | + done | ||
364 | + | ||
365 | +clean-libLTLIBRARIES: | ||
366 | + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) | ||
367 | + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ | ||
368 | + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
369 | + test "$$dir" != "$$p" || dir=.; \ | ||
370 | + echo "rm -f \"$${dir}/so_locations\""; \ | ||
371 | + rm -f "$${dir}/so_locations"; \ | ||
372 | + done | ||
373 | +libbigpoint.la: $(libbigpoint_la_OBJECTS) $(libbigpoint_la_DEPENDENCIES) | ||
374 | + $(libbigpoint_la_LINK) -rpath $(libdir) $(libbigpoint_la_OBJECTS) $(libbigpoint_la_LIBADD) $(LIBS) | ||
375 | +install-binPROGRAMS: $(bin_PROGRAMS) | ||
376 | + @$(NORMAL_INSTALL) | ||
377 | + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" | ||
378 | + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ | ||
379 | + for p in $$list; do echo "$$p $$p"; done | \ | ||
380 | + sed 's/$(EXEEXT)$$//' | \ | ||
381 | + while read p p1; do if test -f $$p || test -f $$p1; \ | ||
382 | + then echo "$$p"; echo "$$p"; else :; fi; \ | ||
383 | + done | \ | ||
384 | + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ | ||
385 | + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ | ||
386 | + sed 'N;N;N;s,\n, ,g' | \ | ||
387 | + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ | ||
388 | + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ | ||
389 | + if ($$2 == $$4) files[d] = files[d] " " $$1; \ | ||
390 | + else { print "f", $$3 "/" $$4, $$1; } } \ | ||
391 | + END { for (d in files) print "f", d, files[d] }' | \ | ||
392 | + while read type dir files; do \ | ||
393 | + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ | ||
394 | + test -z "$$files" || { \ | ||
395 | + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ | ||
396 | + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ | ||
397 | + } \ | ||
398 | + ; done | ||
399 | + | ||
400 | +uninstall-binPROGRAMS: | ||
401 | + @$(NORMAL_UNINSTALL) | ||
402 | + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ | ||
403 | + files=`for p in $$list; do echo "$$p"; done | \ | ||
404 | + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ | ||
405 | + -e 's/$$/$(EXEEXT)/' `; \ | ||
406 | + test -n "$$list" || exit 0; \ | ||
407 | + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ | ||
408 | + cd "$(DESTDIR)$(bindir)" && rm -f $$files | ||
409 | + | ||
410 | +clean-binPROGRAMS: | ||
411 | + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ | ||
412 | + echo " rm -f" $$list; \ | ||
413 | + rm -f $$list || exit $$?; \ | ||
414 | + test -n "$(EXEEXT)" || exit 0; \ | ||
415 | + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ | ||
416 | + echo " rm -f" $$list; \ | ||
417 | + rm -f $$list | ||
418 | +create_token$(EXEEXT): $(create_token_OBJECTS) $(create_token_DEPENDENCIES) | ||
419 | + @rm -f create_token$(EXEEXT) | ||
420 | + $(create_token_LINK) $(create_token_OBJECTS) $(create_token_LDADD) $(LIBS) | ||
421 | + | ||
422 | +mostlyclean-compile: | ||
423 | + -rm -f *.$(OBJEXT) | ||
424 | + | ||
425 | +distclean-compile: | ||
426 | + -rm -f *.tab.c | ||
427 | + | ||
428 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_token-createToken.Po@am__quote@ | ||
429 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbigpoint_la-base64.Plo@am__quote@ | ||
430 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbigpoint_la-bigpoint_cclass.Plo@am__quote@ | ||
431 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbigpoint_la-bigpoint_crypt.Plo@am__quote@ | ||
432 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbigpoint_la-bigpoint_dyntype.Plo@am__quote@ | ||
433 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbigpoint_la-bigpoint_hash.Plo@am__quote@ | ||
434 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbigpoint_la-bigpoint_packet.Plo@am__quote@ | ||
435 | + | ||
436 | +.c.o: | ||
437 | +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
438 | +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
439 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
440 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
441 | +@am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
442 | + | ||
443 | +.c.obj: | ||
444 | +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
445 | +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
446 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
447 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
448 | +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
449 | + | ||
450 | +.c.lo: | ||
451 | +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
452 | +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
453 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
454 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
455 | +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
456 | + | ||
457 | +libbigpoint_la-base64.lo: base64.c | ||
458 | +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -MT libbigpoint_la-base64.lo -MD -MP -MF $(DEPDIR)/libbigpoint_la-base64.Tpo -c -o libbigpoint_la-base64.lo `test -f 'base64.c' || echo '$(srcdir)/'`base64.c | ||
459 | +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libbigpoint_la-base64.Tpo $(DEPDIR)/libbigpoint_la-base64.Plo | ||
460 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='base64.c' object='libbigpoint_la-base64.lo' libtool=yes @AMDEPBACKSLASH@ | ||
461 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
462 | +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -c -o libbigpoint_la-base64.lo `test -f 'base64.c' || echo '$(srcdir)/'`base64.c | ||
463 | + | ||
464 | +libbigpoint_la-bigpoint_cclass.lo: bigpoint_cclass.c | ||
465 | +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -MT libbigpoint_la-bigpoint_cclass.lo -MD -MP -MF $(DEPDIR)/libbigpoint_la-bigpoint_cclass.Tpo -c -o libbigpoint_la-bigpoint_cclass.lo `test -f 'bigpoint_cclass.c' || echo '$(srcdir)/'`bigpoint_cclass.c | ||
466 | +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libbigpoint_la-bigpoint_cclass.Tpo $(DEPDIR)/libbigpoint_la-bigpoint_cclass.Plo | ||
467 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='bigpoint_cclass.c' object='libbigpoint_la-bigpoint_cclass.lo' libtool=yes @AMDEPBACKSLASH@ | ||
468 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
469 | +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -c -o libbigpoint_la-bigpoint_cclass.lo `test -f 'bigpoint_cclass.c' || echo '$(srcdir)/'`bigpoint_cclass.c | ||
470 | + | ||
471 | +libbigpoint_la-bigpoint_crypt.lo: bigpoint_crypt.c | ||
472 | +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -MT libbigpoint_la-bigpoint_crypt.lo -MD -MP -MF $(DEPDIR)/libbigpoint_la-bigpoint_crypt.Tpo -c -o libbigpoint_la-bigpoint_crypt.lo `test -f 'bigpoint_crypt.c' || echo '$(srcdir)/'`bigpoint_crypt.c | ||
473 | +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libbigpoint_la-bigpoint_crypt.Tpo $(DEPDIR)/libbigpoint_la-bigpoint_crypt.Plo | ||
474 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='bigpoint_crypt.c' object='libbigpoint_la-bigpoint_crypt.lo' libtool=yes @AMDEPBACKSLASH@ | ||
475 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
476 | +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -c -o libbigpoint_la-bigpoint_crypt.lo `test -f 'bigpoint_crypt.c' || echo '$(srcdir)/'`bigpoint_crypt.c | ||
477 | + | ||
478 | +libbigpoint_la-bigpoint_dyntype.lo: bigpoint_dyntype.c | ||
479 | +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -MT libbigpoint_la-bigpoint_dyntype.lo -MD -MP -MF $(DEPDIR)/libbigpoint_la-bigpoint_dyntype.Tpo -c -o libbigpoint_la-bigpoint_dyntype.lo `test -f 'bigpoint_dyntype.c' || echo '$(srcdir)/'`bigpoint_dyntype.c | ||
480 | +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libbigpoint_la-bigpoint_dyntype.Tpo $(DEPDIR)/libbigpoint_la-bigpoint_dyntype.Plo | ||
481 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='bigpoint_dyntype.c' object='libbigpoint_la-bigpoint_dyntype.lo' libtool=yes @AMDEPBACKSLASH@ | ||
482 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
483 | +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -c -o libbigpoint_la-bigpoint_dyntype.lo `test -f 'bigpoint_dyntype.c' || echo '$(srcdir)/'`bigpoint_dyntype.c | ||
484 | + | ||
485 | +libbigpoint_la-bigpoint_hash.lo: bigpoint_hash.c | ||
486 | +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -MT libbigpoint_la-bigpoint_hash.lo -MD -MP -MF $(DEPDIR)/libbigpoint_la-bigpoint_hash.Tpo -c -o libbigpoint_la-bigpoint_hash.lo `test -f 'bigpoint_hash.c' || echo '$(srcdir)/'`bigpoint_hash.c | ||
487 | +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libbigpoint_la-bigpoint_hash.Tpo $(DEPDIR)/libbigpoint_la-bigpoint_hash.Plo | ||
488 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='bigpoint_hash.c' object='libbigpoint_la-bigpoint_hash.lo' libtool=yes @AMDEPBACKSLASH@ | ||
489 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
490 | +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -c -o libbigpoint_la-bigpoint_hash.lo `test -f 'bigpoint_hash.c' || echo '$(srcdir)/'`bigpoint_hash.c | ||
491 | + | ||
492 | +libbigpoint_la-bigpoint_packet.lo: bigpoint_packet.c | ||
493 | +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -MT libbigpoint_la-bigpoint_packet.lo -MD -MP -MF $(DEPDIR)/libbigpoint_la-bigpoint_packet.Tpo -c -o libbigpoint_la-bigpoint_packet.lo `test -f 'bigpoint_packet.c' || echo '$(srcdir)/'`bigpoint_packet.c | ||
494 | +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libbigpoint_la-bigpoint_packet.Tpo $(DEPDIR)/libbigpoint_la-bigpoint_packet.Plo | ||
495 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='bigpoint_packet.c' object='libbigpoint_la-bigpoint_packet.lo' libtool=yes @AMDEPBACKSLASH@ | ||
496 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
497 | +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libbigpoint_la_CFLAGS) $(CFLAGS) -c -o libbigpoint_la-bigpoint_packet.lo `test -f 'bigpoint_packet.c' || echo '$(srcdir)/'`bigpoint_packet.c | ||
498 | + | ||
499 | +create_token-createToken.o: createToken.c | ||
500 | +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_token_CFLAGS) $(CFLAGS) -MT create_token-createToken.o -MD -MP -MF $(DEPDIR)/create_token-createToken.Tpo -c -o create_token-createToken.o `test -f 'createToken.c' || echo '$(srcdir)/'`createToken.c | ||
501 | +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_token-createToken.Tpo $(DEPDIR)/create_token-createToken.Po | ||
502 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='createToken.c' object='create_token-createToken.o' libtool=no @AMDEPBACKSLASH@ | ||
503 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
504 | +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_token_CFLAGS) $(CFLAGS) -c -o create_token-createToken.o `test -f 'createToken.c' || echo '$(srcdir)/'`createToken.c | ||
505 | + | ||
506 | +create_token-createToken.obj: createToken.c | ||
507 | +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_token_CFLAGS) $(CFLAGS) -MT create_token-createToken.obj -MD -MP -MF $(DEPDIR)/create_token-createToken.Tpo -c -o create_token-createToken.obj `if test -f 'createToken.c'; then $(CYGPATH_W) 'createToken.c'; else $(CYGPATH_W) '$(srcdir)/createToken.c'; fi` | ||
508 | +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_token-createToken.Tpo $(DEPDIR)/create_token-createToken.Po | ||
509 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='createToken.c' object='create_token-createToken.obj' libtool=no @AMDEPBACKSLASH@ | ||
510 | +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
511 | +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_token_CFLAGS) $(CFLAGS) -c -o create_token-createToken.obj `if test -f 'createToken.c'; then $(CYGPATH_W) 'createToken.c'; else $(CYGPATH_W) '$(srcdir)/createToken.c'; fi` | ||
512 | + | ||
513 | +mostlyclean-libtool: | ||
514 | + -rm -f *.lo | ||
515 | + | ||
516 | +clean-libtool: | ||
517 | + -rm -rf .libs _libs | ||
518 | + | ||
519 | +distclean-libtool: | ||
520 | + -rm -f libtool config.lt | ||
521 | + | ||
522 | +# This directory's subdirectories are mostly independent; you can cd | ||
523 | +# into them and run `make' without going through this Makefile. | ||
524 | +# To change the values of `make' variables: instead of editing Makefiles, | ||
525 | +# (1) if the variable is set in `config.status', edit `config.status' | ||
526 | +# (which will cause the Makefiles to be regenerated when you run `make'); | ||
527 | +# (2) otherwise, pass the desired values on the `make' command line. | ||
528 | +$(RECURSIVE_TARGETS): | ||
529 | + @fail= failcom='exit 1'; \ | ||
530 | + for f in x $$MAKEFLAGS; do \ | ||
531 | + case $$f in \ | ||
532 | + *=* | --[!k]*);; \ | ||
533 | + *k*) failcom='fail=yes';; \ | ||
534 | + esac; \ | ||
535 | + done; \ | ||
536 | + dot_seen=no; \ | ||
537 | + target=`echo $@ | sed s/-recursive//`; \ | ||
538 | + list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
539 | + echo "Making $$target in $$subdir"; \ | ||
540 | + if test "$$subdir" = "."; then \ | ||
541 | + dot_seen=yes; \ | ||
542 | + local_target="$$target-am"; \ | ||
543 | + else \ | ||
544 | + local_target="$$target"; \ | ||
545 | + fi; \ | ||
546 | + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | ||
547 | + || eval $$failcom; \ | ||
548 | + done; \ | ||
549 | + if test "$$dot_seen" = "no"; then \ | ||
550 | + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | ||
551 | + fi; test -z "$$fail" | ||
552 | + | ||
553 | +$(RECURSIVE_CLEAN_TARGETS): | ||
554 | + @fail= failcom='exit 1'; \ | ||
555 | + for f in x $$MAKEFLAGS; do \ | ||
556 | + case $$f in \ | ||
557 | + *=* | --[!k]*);; \ | ||
558 | + *k*) failcom='fail=yes';; \ | ||
559 | + esac; \ | ||
560 | + done; \ | ||
561 | + dot_seen=no; \ | ||
562 | + case "$@" in \ | ||
563 | + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | ||
564 | + *) list='$(SUBDIRS)' ;; \ | ||
565 | + esac; \ | ||
566 | + rev=''; for subdir in $$list; do \ | ||
567 | + if test "$$subdir" = "."; then :; else \ | ||
568 | + rev="$$subdir $$rev"; \ | ||
569 | + fi; \ | ||
570 | + done; \ | ||
571 | + rev="$$rev ."; \ | ||
572 | + target=`echo $@ | sed s/-recursive//`; \ | ||
573 | + for subdir in $$rev; do \ | ||
574 | + echo "Making $$target in $$subdir"; \ | ||
575 | + if test "$$subdir" = "."; then \ | ||
576 | + local_target="$$target-am"; \ | ||
577 | + else \ | ||
578 | + local_target="$$target"; \ | ||
579 | + fi; \ | ||
580 | + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | ||
581 | + || eval $$failcom; \ | ||
582 | + done && test -z "$$fail" | ||
583 | +tags-recursive: | ||
584 | + list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
585 | + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | ||
586 | + done | ||
587 | +ctags-recursive: | ||
588 | + list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
589 | + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | ||
590 | + done | ||
591 | + | ||
592 | +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
593 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
594 | + unique=`for i in $$list; do \ | ||
595 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
596 | + done | \ | ||
597 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
598 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
599 | + mkid -fID $$unique | ||
600 | +tags: TAGS | ||
601 | + | ||
602 | +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | ||
603 | + $(TAGS_FILES) $(LISP) | ||
604 | + set x; \ | ||
605 | + here=`pwd`; \ | ||
606 | + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ | ||
607 | + include_option=--etags-include; \ | ||
608 | + empty_fix=.; \ | ||
609 | + else \ | ||
610 | + include_option=--include; \ | ||
611 | + empty_fix=; \ | ||
612 | + fi; \ | ||
613 | + list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
614 | + if test "$$subdir" = .; then :; else \ | ||
615 | + test ! -f $$subdir/TAGS || \ | ||
616 | + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ | ||
617 | + fi; \ | ||
618 | + done; \ | ||
619 | + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | ||
620 | + unique=`for i in $$list; do \ | ||
621 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
622 | + done | \ | ||
623 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
624 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
625 | + shift; \ | ||
626 | + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
627 | + test -n "$$unique" || unique=$$empty_fix; \ | ||
628 | + if test $$# -gt 0; then \ | ||
629 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
630 | + "$$@" $$unique; \ | ||
631 | + else \ | ||
632 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
633 | + $$unique; \ | ||
634 | + fi; \ | ||
635 | + fi | ||
636 | +ctags: CTAGS | ||
637 | +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | ||
638 | + $(TAGS_FILES) $(LISP) | ||
639 | + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | ||
640 | + unique=`for i in $$list; do \ | ||
641 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
642 | + done | \ | ||
643 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
644 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
645 | + test -z "$(CTAGS_ARGS)$$unique" \ | ||
646 | + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
647 | + $$unique | ||
648 | + | ||
649 | +GTAGS: | ||
650 | + here=`$(am__cd) $(top_builddir) && pwd` \ | ||
651 | + && $(am__cd) $(top_srcdir) \ | ||
652 | + && gtags -i $(GTAGS_ARGS) "$$here" | ||
653 | + | ||
654 | +distclean-tags: | ||
655 | + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
656 | + | ||
657 | +distdir: $(DISTFILES) | ||
658 | + $(am__remove_distdir) | ||
659 | + test -d "$(distdir)" || mkdir "$(distdir)" | ||
660 | + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
661 | + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
662 | + list='$(DISTFILES)'; \ | ||
663 | + dist_files=`for file in $$list; do echo $$file; done | \ | ||
664 | + sed -e "s|^$$srcdirstrip/||;t" \ | ||
665 | + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
666 | + case $$dist_files in \ | ||
667 | + */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
668 | + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
669 | + sort -u` ;; \ | ||
670 | + esac; \ | ||
671 | + for file in $$dist_files; do \ | ||
672 | + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
673 | + if test -d $$d/$$file; then \ | ||
674 | + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
675 | + if test -d "$(distdir)/$$file"; then \ | ||
676 | + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
677 | + fi; \ | ||
678 | + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
679 | + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
680 | + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
681 | + fi; \ | ||
682 | + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
683 | + else \ | ||
684 | + test -f "$(distdir)/$$file" \ | ||
685 | + || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
686 | + || exit 1; \ | ||
687 | + fi; \ | ||
688 | + done | ||
689 | + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | ||
690 | + if test "$$subdir" = .; then :; else \ | ||
691 | + test -d "$(distdir)/$$subdir" \ | ||
692 | + || $(MKDIR_P) "$(distdir)/$$subdir" \ | ||
693 | + || exit 1; \ | ||
694 | + fi; \ | ||
695 | + done | ||
696 | + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | ||
697 | + if test "$$subdir" = .; then :; else \ | ||
698 | + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ | ||
699 | + $(am__relativize); \ | ||
700 | + new_distdir=$$reldir; \ | ||
701 | + dir1=$$subdir; dir2="$(top_distdir)"; \ | ||
702 | + $(am__relativize); \ | ||
703 | + new_top_distdir=$$reldir; \ | ||
704 | + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ | ||
705 | + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ | ||
706 | + ($(am__cd) $$subdir && \ | ||
707 | + $(MAKE) $(AM_MAKEFLAGS) \ | ||
708 | + top_distdir="$$new_top_distdir" \ | ||
709 | + distdir="$$new_distdir" \ | ||
710 | + am__remove_distdir=: \ | ||
711 | + am__skip_length_check=: \ | ||
712 | + am__skip_mode_fix=: \ | ||
713 | + distdir) \ | ||
714 | + || exit 1; \ | ||
715 | + fi; \ | ||
716 | + done | ||
717 | + -test -n "$(am__skip_mode_fix)" \ | ||
718 | + || find "$(distdir)" -type d ! -perm -755 \ | ||
719 | + -exec chmod u+rwx,go+rx {} \; -o \ | ||
720 | + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | ||
721 | + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | ||
722 | + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ | ||
723 | + || chmod -R a+r "$(distdir)" | ||
724 | +dist-gzip: distdir | ||
725 | + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | ||
726 | + $(am__remove_distdir) | ||
727 | + | ||
728 | +dist-bzip2: distdir | ||
729 | + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 | ||
730 | + $(am__remove_distdir) | ||
731 | + | ||
732 | +dist-lzma: distdir | ||
733 | + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma | ||
734 | + $(am__remove_distdir) | ||
735 | + | ||
736 | +dist-xz: distdir | ||
737 | + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz | ||
738 | + $(am__remove_distdir) | ||
739 | + | ||
740 | +dist-tarZ: distdir | ||
741 | + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z | ||
742 | + $(am__remove_distdir) | ||
743 | + | ||
744 | +dist-shar: distdir | ||
745 | + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz | ||
746 | + $(am__remove_distdir) | ||
747 | + | ||
748 | +dist-zip: distdir | ||
749 | + -rm -f $(distdir).zip | ||
750 | + zip -rq $(distdir).zip $(distdir) | ||
751 | + $(am__remove_distdir) | ||
752 | + | ||
753 | +dist dist-all: distdir | ||
754 | + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | ||
755 | + $(am__remove_distdir) | ||
756 | + | ||
757 | +# This target untars the dist file and tries a VPATH configuration. Then | ||
758 | +# it guarantees that the distribution is self-contained by making another | ||
759 | +# tarfile. | ||
760 | +distcheck: dist | ||
761 | + case '$(DIST_ARCHIVES)' in \ | ||
762 | + *.tar.gz*) \ | ||
763 | + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ | ||
764 | + *.tar.bz2*) \ | ||
765 | + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ | ||
766 | + *.tar.lzma*) \ | ||
767 | + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ | ||
768 | + *.tar.xz*) \ | ||
769 | + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ | ||
770 | + *.tar.Z*) \ | ||
771 | + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ | ||
772 | + *.shar.gz*) \ | ||
773 | + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ | ||
774 | + *.zip*) \ | ||
775 | + unzip $(distdir).zip ;;\ | ||
776 | + esac | ||
777 | + chmod -R a-w $(distdir); chmod a+w $(distdir) | ||
778 | + mkdir $(distdir)/_build | ||
779 | + mkdir $(distdir)/_inst | ||
780 | + chmod a-w $(distdir) | ||
781 | + test -d $(distdir)/_build || exit 0; \ | ||
782 | + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ | ||
783 | + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ | ||
784 | + && am__cwd=`pwd` \ | ||
785 | + && $(am__cd) $(distdir)/_build \ | ||
786 | + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ | ||
787 | + $(DISTCHECK_CONFIGURE_FLAGS) \ | ||
788 | + && $(MAKE) $(AM_MAKEFLAGS) \ | ||
789 | + && $(MAKE) $(AM_MAKEFLAGS) dvi \ | ||
790 | + && $(MAKE) $(AM_MAKEFLAGS) check \ | ||
791 | + && $(MAKE) $(AM_MAKEFLAGS) install \ | ||
792 | + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ | ||
793 | + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ | ||
794 | + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ | ||
795 | + distuninstallcheck \ | ||
796 | + && chmod -R a-w "$$dc_install_base" \ | ||
797 | + && ({ \ | ||
798 | + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ | ||
799 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ | ||
800 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ | ||
801 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ | ||
802 | + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ | ||
803 | + } || { rm -rf "$$dc_destdir"; exit 1; }) \ | ||
804 | + && rm -rf "$$dc_destdir" \ | ||
805 | + && $(MAKE) $(AM_MAKEFLAGS) dist \ | ||
806 | + && rm -rf $(DIST_ARCHIVES) \ | ||
807 | + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ | ||
808 | + && cd "$$am__cwd" \ | ||
809 | + || exit 1 | ||
810 | + $(am__remove_distdir) | ||
811 | + @(echo "$(distdir) archives ready for distribution: "; \ | ||
812 | + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ | ||
813 | + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' | ||
814 | +distuninstallcheck: | ||
815 | + @$(am__cd) '$(distuninstallcheck_dir)' \ | ||
816 | + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ | ||
817 | + || { echo "ERROR: files left after uninstall:" ; \ | ||
818 | + if test -n "$(DESTDIR)"; then \ | ||
819 | + echo " (check DESTDIR support)"; \ | ||
820 | + fi ; \ | ||
821 | + $(distuninstallcheck_listfiles) ; \ | ||
822 | + exit 1; } >&2 | ||
823 | +distcleancheck: distclean | ||
824 | + @if test '$(srcdir)' = . ; then \ | ||
825 | + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ | ||
826 | + exit 1 ; \ | ||
827 | + fi | ||
828 | + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ | ||
829 | + || { echo "ERROR: files left in build directory after distclean:" ; \ | ||
830 | + $(distcleancheck_listfiles) ; \ | ||
831 | + exit 1; } >&2 | ||
832 | +check-am: all-am | ||
833 | +check: check-recursive | ||
834 | +all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) config.h | ||
835 | +install-binPROGRAMS: install-libLTLIBRARIES | ||
836 | + | ||
837 | +installdirs: installdirs-recursive | ||
838 | +installdirs-am: | ||
839 | + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)"; do \ | ||
840 | + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
841 | + done | ||
842 | +install: install-recursive | ||
843 | +install-exec: install-exec-recursive | ||
844 | +install-data: install-data-recursive | ||
845 | +uninstall: uninstall-recursive | ||
846 | + | ||
847 | +install-am: all-am | ||
848 | + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
849 | + | ||
850 | +installcheck: installcheck-recursive | ||
851 | +install-strip: | ||
852 | + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
853 | + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
854 | + `test -z '$(STRIP)' || \ | ||
855 | + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
856 | +mostlyclean-generic: | ||
857 | + | ||
858 | +clean-generic: | ||
859 | + | ||
860 | +distclean-generic: | ||
861 | + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
862 | + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
863 | + | ||
864 | +maintainer-clean-generic: | ||
865 | + @echo "This command is intended for maintainers to use" | ||
866 | + @echo "it deletes files that may require special tools to rebuild." | ||
867 | +clean: clean-recursive | ||
868 | + | ||
869 | +clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ | ||
870 | + clean-libtool mostlyclean-am | ||
871 | + | ||
872 | +distclean: distclean-recursive | ||
873 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) | ||
874 | + -rm -rf ./$(DEPDIR) | ||
875 | + -rm -f Makefile | ||
876 | +distclean-am: clean-am distclean-compile distclean-generic \ | ||
877 | + distclean-hdr distclean-libtool distclean-tags | ||
878 | + | ||
879 | +dvi: dvi-recursive | ||
880 | + | ||
881 | +dvi-am: | ||
882 | + | ||
883 | +html: html-recursive | ||
884 | + | ||
885 | +html-am: | ||
886 | + | ||
887 | +info: info-recursive | ||
888 | + | ||
889 | +info-am: | ||
890 | + | ||
891 | +install-data-am: | ||
892 | + | ||
893 | +install-dvi: install-dvi-recursive | ||
894 | + | ||
895 | +install-dvi-am: | ||
896 | + | ||
897 | +install-exec-am: install-binPROGRAMS install-libLTLIBRARIES | ||
898 | + | ||
899 | +install-html: install-html-recursive | ||
900 | + | ||
901 | +install-html-am: | ||
902 | + | ||
903 | +install-info: install-info-recursive | ||
904 | + | ||
905 | +install-info-am: | ||
906 | + | ||
907 | +install-man: | ||
908 | + | ||
909 | +install-pdf: install-pdf-recursive | ||
910 | + | ||
911 | +install-pdf-am: | ||
912 | + | ||
913 | +install-ps: install-ps-recursive | ||
914 | + | ||
915 | +install-ps-am: | ||
916 | + | ||
917 | +installcheck-am: | ||
918 | + | ||
919 | +maintainer-clean: maintainer-clean-recursive | ||
920 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) | ||
921 | + -rm -rf $(top_srcdir)/autom4te.cache | ||
922 | + -rm -rf ./$(DEPDIR) | ||
923 | + -rm -f Makefile | ||
924 | +maintainer-clean-am: distclean-am maintainer-clean-generic | ||
925 | + | ||
926 | +mostlyclean: mostlyclean-recursive | ||
927 | + | ||
928 | +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
929 | + mostlyclean-libtool | ||
930 | + | ||
931 | +pdf: pdf-recursive | ||
932 | + | ||
933 | +pdf-am: | ||
934 | + | ||
935 | +ps: ps-recursive | ||
936 | + | ||
937 | +ps-am: | ||
938 | + | ||
939 | +uninstall-am: uninstall-binPROGRAMS uninstall-libLTLIBRARIES | ||
940 | + | ||
941 | +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ | ||
942 | + ctags-recursive install-am install-strip tags-recursive | ||
943 | + | ||
944 | +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ | ||
945 | + all all-am am--refresh check check-am clean clean-binPROGRAMS \ | ||
946 | + clean-generic clean-libLTLIBRARIES clean-libtool ctags \ | ||
947 | + ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-lzma \ | ||
948 | + dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \ | ||
949 | + distclean-compile distclean-generic distclean-hdr \ | ||
950 | + distclean-libtool distclean-tags distcleancheck distdir \ | ||
951 | + distuninstallcheck dvi dvi-am html html-am info info-am \ | ||
952 | + install install-am install-binPROGRAMS install-data \ | ||
953 | + install-data-am install-dvi install-dvi-am install-exec \ | ||
954 | + install-exec-am install-html install-html-am install-info \ | ||
955 | + install-info-am install-libLTLIBRARIES install-man install-pdf \ | ||
956 | + install-pdf-am install-ps install-ps-am install-strip \ | ||
957 | + installcheck installcheck-am installdirs installdirs-am \ | ||
958 | + maintainer-clean maintainer-clean-generic mostlyclean \ | ||
959 | + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ | ||
960 | + pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ | ||
961 | + uninstall-binPROGRAMS uninstall-libLTLIBRARIES | ||
962 | + | ||
963 | + | ||
964 | +# Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
965 | +# Otherwise a system limit (for SysV at least) may be exceeded. | ||
966 | +.NOEXPORT: |
NEWS
0 → 100644
README
0 → 100644
aclocal.m4
0 → 100644
This diff could not be displayed because it is too large.
1 | -#include "bigpoint_cclass.h" | ||
2 | - | ||
3 | #include <stdarg.h> | 1 | #include <stdarg.h> |
4 | #include <string.h> | 2 | #include <string.h> |
5 | #include <stdlib.h> | 3 | #include <stdlib.h> |
6 | #include <json/json.h> | 4 | #include <json/json.h> |
7 | 5 | ||
6 | +#include "bigpoint/bigpoint_cclass.h" | ||
7 | + | ||
8 | 8 | ||
9 | void * | 9 | void * |
10 | new(const void * _class, ...) | 10 | new(const void * _class, ...) |
@@ -3,8 +3,8 @@ | @@ -3,8 +3,8 @@ | ||
3 | #include <sys/types.h> | 3 | #include <sys/types.h> |
4 | #include <json/json.h> | 4 | #include <json/json.h> |
5 | 5 | ||
6 | -#include "bigpoint_dyntype.h" | ||
7 | -#include "bigpoint_hash.h" | 6 | +#include "bigpoint/bigpoint_dyntype.h" |
7 | +#include "bigpoint/bigpoint_hash.h" | ||
8 | 8 | ||
9 | 9 | ||
10 | static | 10 | static |
compile
0 → 100755
1 | +#! /bin/sh | ||
2 | +# Wrapper for compilers which do not understand `-c -o'. | ||
3 | + | ||
4 | +scriptversion=2009-10-06.20; # UTC | ||
5 | + | ||
6 | +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software | ||
7 | +# Foundation, Inc. | ||
8 | +# Written by Tom Tromey <tromey@cygnus.com>. | ||
9 | +# | ||
10 | +# This program is free software; you can redistribute it and/or modify | ||
11 | +# it under the terms of the GNU General Public License as published by | ||
12 | +# the Free Software Foundation; either version 2, or (at your option) | ||
13 | +# any later version. | ||
14 | +# | ||
15 | +# This program is distributed in the hope that it will be useful, | ||
16 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
17 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
18 | +# GNU General Public License for more details. | ||
19 | +# | ||
20 | +# You should have received a copy of the GNU General Public License | ||
21 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
22 | + | ||
23 | +# As a special exception to the GNU General Public License, if you | ||
24 | +# distribute this file as part of a program that contains a | ||
25 | +# configuration script generated by Autoconf, you may include it under | ||
26 | +# the same distribution terms that you use for the rest of that program. | ||
27 | + | ||
28 | +# This file is maintained in Automake, please report | ||
29 | +# bugs to <bug-automake@gnu.org> or send patches to | ||
30 | +# <automake-patches@gnu.org>. | ||
31 | + | ||
32 | +case $1 in | ||
33 | + '') | ||
34 | + echo "$0: No command. Try \`$0 --help' for more information." 1>&2 | ||
35 | + exit 1; | ||
36 | + ;; | ||
37 | + -h | --h*) | ||
38 | + cat <<\EOF | ||
39 | +Usage: compile [--help] [--version] PROGRAM [ARGS] | ||
40 | + | ||
41 | +Wrapper for compilers which do not understand `-c -o'. | ||
42 | +Remove `-o dest.o' from ARGS, run PROGRAM with the remaining | ||
43 | +arguments, and rename the output as expected. | ||
44 | + | ||
45 | +If you are trying to build a whole package this is not the | ||
46 | +right script to run: please start by reading the file `INSTALL'. | ||
47 | + | ||
48 | +Report bugs to <bug-automake@gnu.org>. | ||
49 | +EOF | ||
50 | + exit $? | ||
51 | + ;; | ||
52 | + -v | --v*) | ||
53 | + echo "compile $scriptversion" | ||
54 | + exit $? | ||
55 | + ;; | ||
56 | +esac | ||
57 | + | ||
58 | +ofile= | ||
59 | +cfile= | ||
60 | +eat= | ||
61 | + | ||
62 | +for arg | ||
63 | +do | ||
64 | + if test -n "$eat"; then | ||
65 | + eat= | ||
66 | + else | ||
67 | + case $1 in | ||
68 | + -o) | ||
69 | + # configure might choose to run compile as `compile cc -o foo foo.c'. | ||
70 | + # So we strip `-o arg' only if arg is an object. | ||
71 | + eat=1 | ||
72 | + case $2 in | ||
73 | + *.o | *.obj) | ||
74 | + ofile=$2 | ||
75 | + ;; | ||
76 | + *) | ||
77 | + set x "$@" -o "$2" | ||
78 | + shift | ||
79 | + ;; | ||
80 | + esac | ||
81 | + ;; | ||
82 | + *.c) | ||
83 | + cfile=$1 | ||
84 | + set x "$@" "$1" | ||
85 | + shift | ||
86 | + ;; | ||
87 | + *) | ||
88 | + set x "$@" "$1" | ||
89 | + shift | ||
90 | + ;; | ||
91 | + esac | ||
92 | + fi | ||
93 | + shift | ||
94 | +done | ||
95 | + | ||
96 | +if test -z "$ofile" || test -z "$cfile"; then | ||
97 | + # If no `-o' option was seen then we might have been invoked from a | ||
98 | + # pattern rule where we don't need one. That is ok -- this is a | ||
99 | + # normal compilation that the losing compiler can handle. If no | ||
100 | + # `.c' file was seen then we are probably linking. That is also | ||
101 | + # ok. | ||
102 | + exec "$@" | ||
103 | +fi | ||
104 | + | ||
105 | +# Name of file we expect compiler to create. | ||
106 | +cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` | ||
107 | + | ||
108 | +# Create the lock directory. | ||
109 | +# Note: use `[/\\:.-]' here to ensure that we don't use the same name | ||
110 | +# that we are using for the .o file. Also, base the name on the expected | ||
111 | +# object file name, since that is what matters with a parallel build. | ||
112 | +lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d | ||
113 | +while true; do | ||
114 | + if mkdir "$lockdir" >/dev/null 2>&1; then | ||
115 | + break | ||
116 | + fi | ||
117 | + sleep 1 | ||
118 | +done | ||
119 | +# FIXME: race condition here if user kills between mkdir and trap. | ||
120 | +trap "rmdir '$lockdir'; exit 1" 1 2 15 | ||
121 | + | ||
122 | +# Run the compile. | ||
123 | +"$@" | ||
124 | +ret=$? | ||
125 | + | ||
126 | +if test -f "$cofile"; then | ||
127 | + test "$cofile" = "$ofile" || mv "$cofile" "$ofile" | ||
128 | +elif test -f "${cofile}bj"; then | ||
129 | + test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" | ||
130 | +fi | ||
131 | + | ||
132 | +rmdir "$lockdir" | ||
133 | +exit $ret | ||
134 | + | ||
135 | +# Local Variables: | ||
136 | +# mode: shell-script | ||
137 | +# sh-indentation: 2 | ||
138 | +# eval: (add-hook 'write-file-hooks 'time-stamp) | ||
139 | +# time-stamp-start: "scriptversion=" | ||
140 | +# time-stamp-format: "%:y-%02m-%02d.%02H" | ||
141 | +# time-stamp-time-zone: "UTC" | ||
142 | +# time-stamp-end: "; # UTC" | ||
143 | +# End: |
config.guess
0 → 100755
1 | +#! /bin/sh | ||
2 | +# Attempt to guess a canonical system name. | ||
3 | +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | ||
4 | +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, | ||
5 | +# 2011 Free Software Foundation, Inc. | ||
6 | + | ||
7 | +timestamp='2011-02-02' | ||
8 | + | ||
9 | +# This file is free software; you can redistribute it and/or modify it | ||
10 | +# under the terms of the GNU General Public License as published by | ||
11 | +# the Free Software Foundation; either version 2 of the License, or | ||
12 | +# (at your option) any later version. | ||
13 | +# | ||
14 | +# This program is distributed in the hope that it will be useful, but | ||
15 | +# WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
17 | +# General Public License for more details. | ||
18 | +# | ||
19 | +# You should have received a copy of the GNU General Public License | ||
20 | +# along with this program; if not, write to the Free Software | ||
21 | +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | ||
22 | +# 02110-1301, USA. | ||
23 | +# | ||
24 | +# As a special exception to the GNU General Public License, if you | ||
25 | +# distribute this file as part of a program that contains a | ||
26 | +# configuration script generated by Autoconf, you may include it under | ||
27 | +# the same distribution terms that you use for the rest of that program. | ||
28 | + | ||
29 | + | ||
30 | +# Originally written by Per Bothner. Please send patches (context | ||
31 | +# diff format) to <config-patches@gnu.org> and include a ChangeLog | ||
32 | +# entry. | ||
33 | +# | ||
34 | +# This script attempts to guess a canonical system name similar to | ||
35 | +# config.sub. If it succeeds, it prints the system name on stdout, and | ||
36 | +# exits with 0. Otherwise, it exits with 1. | ||
37 | +# | ||
38 | +# You can get the latest version of this script from: | ||
39 | +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD | ||
40 | + | ||
41 | +me=`echo "$0" | sed -e 's,.*/,,'` | ||
42 | + | ||
43 | +usage="\ | ||
44 | +Usage: $0 [OPTION] | ||
45 | + | ||
46 | +Output the configuration name of the system \`$me' is run on. | ||
47 | + | ||
48 | +Operation modes: | ||
49 | + -h, --help print this help, then exit | ||
50 | + -t, --time-stamp print date of last modification, then exit | ||
51 | + -v, --version print version number, then exit | ||
52 | + | ||
53 | +Report bugs and patches to <config-patches@gnu.org>." | ||
54 | + | ||
55 | +version="\ | ||
56 | +GNU config.guess ($timestamp) | ||
57 | + | ||
58 | +Originally written by Per Bothner. | ||
59 | +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | ||
60 | +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free | ||
61 | +Software Foundation, Inc. | ||
62 | + | ||
63 | +This is free software; see the source for copying conditions. There is NO | ||
64 | +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | ||
65 | + | ||
66 | +help=" | ||
67 | +Try \`$me --help' for more information." | ||
68 | + | ||
69 | +# Parse command line | ||
70 | +while test $# -gt 0 ; do | ||
71 | + case $1 in | ||
72 | + --time-stamp | --time* | -t ) | ||
73 | + echo "$timestamp" ; exit ;; | ||
74 | + --version | -v ) | ||
75 | + echo "$version" ; exit ;; | ||
76 | + --help | --h* | -h ) | ||
77 | + echo "$usage"; exit ;; | ||
78 | + -- ) # Stop option processing | ||
79 | + shift; break ;; | ||
80 | + - ) # Use stdin as input. | ||
81 | + break ;; | ||
82 | + -* ) | ||
83 | + echo "$me: invalid option $1$help" >&2 | ||
84 | + exit 1 ;; | ||
85 | + * ) | ||
86 | + break ;; | ||
87 | + esac | ||
88 | +done | ||
89 | + | ||
90 | +if test $# != 0; then | ||
91 | + echo "$me: too many arguments$help" >&2 | ||
92 | + exit 1 | ||
93 | +fi | ||
94 | + | ||
95 | +trap 'exit 1' 1 2 15 | ||
96 | + | ||
97 | +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a | ||
98 | +# compiler to aid in system detection is discouraged as it requires | ||
99 | +# temporary files to be created and, as you can see below, it is a | ||
100 | +# headache to deal with in a portable fashion. | ||
101 | + | ||
102 | +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still | ||
103 | +# use `HOST_CC' if defined, but it is deprecated. | ||
104 | + | ||
105 | +# Portable tmp directory creation inspired by the Autoconf team. | ||
106 | + | ||
107 | +set_cc_for_build=' | ||
108 | +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; | ||
109 | +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; | ||
110 | +: ${TMPDIR=/tmp} ; | ||
111 | + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || | ||
112 | + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || | ||
113 | + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || | ||
114 | + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; | ||
115 | +dummy=$tmp/dummy ; | ||
116 | +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; | ||
117 | +case $CC_FOR_BUILD,$HOST_CC,$CC in | ||
118 | + ,,) echo "int x;" > $dummy.c ; | ||
119 | + for c in cc gcc c89 c99 ; do | ||
120 | + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then | ||
121 | + CC_FOR_BUILD="$c"; break ; | ||
122 | + fi ; | ||
123 | + done ; | ||
124 | + if test x"$CC_FOR_BUILD" = x ; then | ||
125 | + CC_FOR_BUILD=no_compiler_found ; | ||
126 | + fi | ||
127 | + ;; | ||
128 | + ,,*) CC_FOR_BUILD=$CC ;; | ||
129 | + ,*,*) CC_FOR_BUILD=$HOST_CC ;; | ||
130 | +esac ; set_cc_for_build= ;' | ||
131 | + | ||
132 | +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. | ||
133 | +# (ghazi@noc.rutgers.edu 1994-08-24) | ||
134 | +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then | ||
135 | + PATH=$PATH:/.attbin ; export PATH | ||
136 | +fi | ||
137 | + | ||
138 | +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown | ||
139 | +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown | ||
140 | +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown | ||
141 | +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown | ||
142 | + | ||
143 | +case "${UNAME_SYSTEM}" in | ||
144 | +Linux|GNU/*) | ||
145 | + eval $set_cc_for_build | ||
146 | + cat <<-EOF > $dummy.c | ||
147 | + #include <features.h> | ||
148 | + #ifdef __UCLIBC__ | ||
149 | + # ifdef __UCLIBC_CONFIG_VERSION__ | ||
150 | + LIBC=uclibc __UCLIBC_CONFIG_VERSION__ | ||
151 | + # else | ||
152 | + LIBC=uclibc | ||
153 | + # endif | ||
154 | + #else | ||
155 | + # ifdef __dietlibc__ | ||
156 | + LIBC=dietlibc | ||
157 | + # else | ||
158 | + LIBC=gnu | ||
159 | + # endif | ||
160 | + #endif | ||
161 | + EOF | ||
162 | + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | ||
163 | + ;; | ||
164 | +esac | ||
165 | + | ||
166 | +# Note: order is significant - the case branches are not exclusive. | ||
167 | + | ||
168 | +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||
169 | + *:NetBSD:*:*) | ||
170 | + # NetBSD (nbsd) targets should (where applicable) match one or | ||
171 | + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, | ||
172 | + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently | ||
173 | + # switched to ELF, *-*-netbsd* would select the old | ||
174 | + # object file format. This provides both forward | ||
175 | + # compatibility and a consistent mechanism for selecting the | ||
176 | + # object file format. | ||
177 | + # | ||
178 | + # Note: NetBSD doesn't particularly care about the vendor | ||
179 | + # portion of the name. We always set it to "unknown". | ||
180 | + sysctl="sysctl -n hw.machine_arch" | ||
181 | + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ | ||
182 | + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` | ||
183 | + case "${UNAME_MACHINE_ARCH}" in | ||
184 | + armeb) machine=armeb-unknown ;; | ||
185 | + arm*) machine=arm-unknown ;; | ||
186 | + sh3el) machine=shl-unknown ;; | ||
187 | + sh3eb) machine=sh-unknown ;; | ||
188 | + sh5el) machine=sh5le-unknown ;; | ||
189 | + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; | ||
190 | + esac | ||
191 | + # The Operating System including object format, if it has switched | ||
192 | + # to ELF recently, or will in the future. | ||
193 | + case "${UNAME_MACHINE_ARCH}" in | ||
194 | + arm*|i386|m68k|ns32k|sh3*|sparc|vax) | ||
195 | + eval $set_cc_for_build | ||
196 | + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | ||
197 | + | grep -q __ELF__ | ||
198 | + then | ||
199 | + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). | ||
200 | + # Return netbsd for either. FIX? | ||
201 | + os=netbsd | ||
202 | + else | ||
203 | + os=netbsdelf | ||
204 | + fi | ||
205 | + ;; | ||
206 | + *) | ||
207 | + os=netbsd | ||
208 | + ;; | ||
209 | + esac | ||
210 | + # The OS release | ||
211 | + # Debian GNU/NetBSD machines have a different userland, and | ||
212 | + # thus, need a distinct triplet. However, they do not need | ||
213 | + # kernel version information, so it can be replaced with a | ||
214 | + # suitable tag, in the style of linux-gnu. | ||
215 | + case "${UNAME_VERSION}" in | ||
216 | + Debian*) | ||
217 | + release='-gnu' | ||
218 | + ;; | ||
219 | + *) | ||
220 | + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | ||
221 | + ;; | ||
222 | + esac | ||
223 | + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: | ||
224 | + # contains redundant information, the shorter form: | ||
225 | + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. | ||
226 | + echo "${machine}-${os}${release}" | ||
227 | + exit ;; | ||
228 | + *:OpenBSD:*:*) | ||
229 | + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` | ||
230 | + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | ||
231 | + exit ;; | ||
232 | + *:ekkoBSD:*:*) | ||
233 | + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} | ||
234 | + exit ;; | ||
235 | + *:SolidBSD:*:*) | ||
236 | + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} | ||
237 | + exit ;; | ||
238 | + macppc:MirBSD:*:*) | ||
239 | + echo powerpc-unknown-mirbsd${UNAME_RELEASE} | ||
240 | + exit ;; | ||
241 | + *:MirBSD:*:*) | ||
242 | + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} | ||
243 | + exit ;; | ||
244 | + alpha:OSF1:*:*) | ||
245 | + case $UNAME_RELEASE in | ||
246 | + *4.0) | ||
247 | + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` | ||
248 | + ;; | ||
249 | + *5.*) | ||
250 | + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | ||
251 | + ;; | ||
252 | + esac | ||
253 | + # According to Compaq, /usr/sbin/psrinfo has been available on | ||
254 | + # OSF/1 and Tru64 systems produced since 1995. I hope that | ||
255 | + # covers most systems running today. This code pipes the CPU | ||
256 | + # types through head -n 1, so we only detect the type of CPU 0. | ||
257 | + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` | ||
258 | + case "$ALPHA_CPU_TYPE" in | ||
259 | + "EV4 (21064)") | ||
260 | + UNAME_MACHINE="alpha" ;; | ||
261 | + "EV4.5 (21064)") | ||
262 | + UNAME_MACHINE="alpha" ;; | ||
263 | + "LCA4 (21066/21068)") | ||
264 | + UNAME_MACHINE="alpha" ;; | ||
265 | + "EV5 (21164)") | ||
266 | + UNAME_MACHINE="alphaev5" ;; | ||
267 | + "EV5.6 (21164A)") | ||
268 | + UNAME_MACHINE="alphaev56" ;; | ||
269 | + "EV5.6 (21164PC)") | ||
270 | + UNAME_MACHINE="alphapca56" ;; | ||
271 | + "EV5.7 (21164PC)") | ||
272 | + UNAME_MACHINE="alphapca57" ;; | ||
273 | + "EV6 (21264)") | ||
274 | + UNAME_MACHINE="alphaev6" ;; | ||
275 | + "EV6.7 (21264A)") | ||
276 | + UNAME_MACHINE="alphaev67" ;; | ||
277 | + "EV6.8CB (21264C)") | ||
278 | + UNAME_MACHINE="alphaev68" ;; | ||
279 | + "EV6.8AL (21264B)") | ||
280 | + UNAME_MACHINE="alphaev68" ;; | ||
281 | + "EV6.8CX (21264D)") | ||
282 | + UNAME_MACHINE="alphaev68" ;; | ||
283 | + "EV6.9A (21264/EV69A)") | ||
284 | + UNAME_MACHINE="alphaev69" ;; | ||
285 | + "EV7 (21364)") | ||
286 | + UNAME_MACHINE="alphaev7" ;; | ||
287 | + "EV7.9 (21364A)") | ||
288 | + UNAME_MACHINE="alphaev79" ;; | ||
289 | + esac | ||
290 | + # A Pn.n version is a patched version. | ||
291 | + # A Vn.n version is a released version. | ||
292 | + # A Tn.n version is a released field test version. | ||
293 | + # A Xn.n version is an unreleased experimental baselevel. | ||
294 | + # 1.2 uses "1.2" for uname -r. | ||
295 | + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | ||
296 | + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. | ||
297 | + exitcode=$? | ||
298 | + trap '' 0 | ||
299 | + exit $exitcode ;; | ||
300 | + Alpha\ *:Windows_NT*:*) | ||
301 | + # How do we know it's Interix rather than the generic POSIX subsystem? | ||
302 | + # Should we change UNAME_MACHINE based on the output of uname instead | ||
303 | + # of the specific Alpha model? | ||
304 | + echo alpha-pc-interix | ||
305 | + exit ;; | ||
306 | + 21064:Windows_NT:50:3) | ||
307 | + echo alpha-dec-winnt3.5 | ||
308 | + exit ;; | ||
309 | + Amiga*:UNIX_System_V:4.0:*) | ||
310 | + echo m68k-unknown-sysv4 | ||
311 | + exit ;; | ||
312 | + *:[Aa]miga[Oo][Ss]:*:*) | ||
313 | + echo ${UNAME_MACHINE}-unknown-amigaos | ||
314 | + exit ;; | ||
315 | + *:[Mm]orph[Oo][Ss]:*:*) | ||
316 | + echo ${UNAME_MACHINE}-unknown-morphos | ||
317 | + exit ;; | ||
318 | + *:OS/390:*:*) | ||
319 | + echo i370-ibm-openedition | ||
320 | + exit ;; | ||
321 | + *:z/VM:*:*) | ||
322 | + echo s390-ibm-zvmoe | ||
323 | + exit ;; | ||
324 | + *:OS400:*:*) | ||
325 | + echo powerpc-ibm-os400 | ||
326 | + exit ;; | ||
327 | + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) | ||
328 | + echo arm-acorn-riscix${UNAME_RELEASE} | ||
329 | + exit ;; | ||
330 | + arm:riscos:*:*|arm:RISCOS:*:*) | ||
331 | + echo arm-unknown-riscos | ||
332 | + exit ;; | ||
333 | + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) | ||
334 | + echo hppa1.1-hitachi-hiuxmpp | ||
335 | + exit ;; | ||
336 | + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) | ||
337 | + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. | ||
338 | + if test "`(/bin/universe) 2>/dev/null`" = att ; then | ||
339 | + echo pyramid-pyramid-sysv3 | ||
340 | + else | ||
341 | + echo pyramid-pyramid-bsd | ||
342 | + fi | ||
343 | + exit ;; | ||
344 | + NILE*:*:*:dcosx) | ||
345 | + echo pyramid-pyramid-svr4 | ||
346 | + exit ;; | ||
347 | + DRS?6000:unix:4.0:6*) | ||
348 | + echo sparc-icl-nx6 | ||
349 | + exit ;; | ||
350 | + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) | ||
351 | + case `/usr/bin/uname -p` in | ||
352 | + sparc) echo sparc-icl-nx7; exit ;; | ||
353 | + esac ;; | ||
354 | + s390x:SunOS:*:*) | ||
355 | + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||
356 | + exit ;; | ||
357 | + sun4H:SunOS:5.*:*) | ||
358 | + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||
359 | + exit ;; | ||
360 | + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) | ||
361 | + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||
362 | + exit ;; | ||
363 | + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) | ||
364 | + echo i386-pc-auroraux${UNAME_RELEASE} | ||
365 | + exit ;; | ||
366 | + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) | ||
367 | + eval $set_cc_for_build | ||
368 | + SUN_ARCH="i386" | ||
369 | + # If there is a compiler, see if it is configured for 64-bit objects. | ||
370 | + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. | ||
371 | + # This test works for both compilers. | ||
372 | + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | ||
373 | + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ | ||
374 | + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | ||
375 | + grep IS_64BIT_ARCH >/dev/null | ||
376 | + then | ||
377 | + SUN_ARCH="x86_64" | ||
378 | + fi | ||
379 | + fi | ||
380 | + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||
381 | + exit ;; | ||
382 | + sun4*:SunOS:6*:*) | ||
383 | + # According to config.sub, this is the proper way to canonicalize | ||
384 | + # SunOS6. Hard to guess exactly what SunOS6 will be like, but | ||
385 | + # it's likely to be more like Solaris than SunOS4. | ||
386 | + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||
387 | + exit ;; | ||
388 | + sun4*:SunOS:*:*) | ||
389 | + case "`/usr/bin/arch -k`" in | ||
390 | + Series*|S4*) | ||
391 | + UNAME_RELEASE=`uname -v` | ||
392 | + ;; | ||
393 | + esac | ||
394 | + # Japanese Language versions have a version number like `4.1.3-JL'. | ||
395 | + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` | ||
396 | + exit ;; | ||
397 | + sun3*:SunOS:*:*) | ||
398 | + echo m68k-sun-sunos${UNAME_RELEASE} | ||
399 | + exit ;; | ||
400 | + sun*:*:4.2BSD:*) | ||
401 | + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` | ||
402 | + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 | ||
403 | + case "`/bin/arch`" in | ||
404 | + sun3) | ||
405 | + echo m68k-sun-sunos${UNAME_RELEASE} | ||
406 | + ;; | ||
407 | + sun4) | ||
408 | + echo sparc-sun-sunos${UNAME_RELEASE} | ||
409 | + ;; | ||
410 | + esac | ||
411 | + exit ;; | ||
412 | + aushp:SunOS:*:*) | ||
413 | + echo sparc-auspex-sunos${UNAME_RELEASE} | ||
414 | + exit ;; | ||
415 | + # The situation for MiNT is a little confusing. The machine name | ||
416 | + # can be virtually everything (everything which is not | ||
417 | + # "atarist" or "atariste" at least should have a processor | ||
418 | + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" | ||
419 | + # to the lowercase version "mint" (or "freemint"). Finally | ||
420 | + # the system name "TOS" denotes a system which is actually not | ||
421 | + # MiNT. But MiNT is downward compatible to TOS, so this should | ||
422 | + # be no problem. | ||
423 | + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) | ||
424 | + echo m68k-atari-mint${UNAME_RELEASE} | ||
425 | + exit ;; | ||
426 | + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) | ||
427 | + echo m68k-atari-mint${UNAME_RELEASE} | ||
428 | + exit ;; | ||
429 | + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) | ||
430 | + echo m68k-atari-mint${UNAME_RELEASE} | ||
431 | + exit ;; | ||
432 | + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) | ||
433 | + echo m68k-milan-mint${UNAME_RELEASE} | ||
434 | + exit ;; | ||
435 | + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) | ||
436 | + echo m68k-hades-mint${UNAME_RELEASE} | ||
437 | + exit ;; | ||
438 | + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) | ||
439 | + echo m68k-unknown-mint${UNAME_RELEASE} | ||
440 | + exit ;; | ||
441 | + m68k:machten:*:*) | ||
442 | + echo m68k-apple-machten${UNAME_RELEASE} | ||
443 | + exit ;; | ||
444 | + powerpc:machten:*:*) | ||
445 | + echo powerpc-apple-machten${UNAME_RELEASE} | ||
446 | + exit ;; | ||
447 | + RISC*:Mach:*:*) | ||
448 | + echo mips-dec-mach_bsd4.3 | ||
449 | + exit ;; | ||
450 | + RISC*:ULTRIX:*:*) | ||
451 | + echo mips-dec-ultrix${UNAME_RELEASE} | ||
452 | + exit ;; | ||
453 | + VAX*:ULTRIX*:*:*) | ||
454 | + echo vax-dec-ultrix${UNAME_RELEASE} | ||
455 | + exit ;; | ||
456 | + 2020:CLIX:*:* | 2430:CLIX:*:*) | ||
457 | + echo clipper-intergraph-clix${UNAME_RELEASE} | ||
458 | + exit ;; | ||
459 | + mips:*:*:UMIPS | mips:*:*:RISCos) | ||
460 | + eval $set_cc_for_build | ||
461 | + sed 's/^ //' << EOF >$dummy.c | ||
462 | +#ifdef __cplusplus | ||
463 | +#include <stdio.h> /* for printf() prototype */ | ||
464 | + int main (int argc, char *argv[]) { | ||
465 | +#else | ||
466 | + int main (argc, argv) int argc; char *argv[]; { | ||
467 | +#endif | ||
468 | + #if defined (host_mips) && defined (MIPSEB) | ||
469 | + #if defined (SYSTYPE_SYSV) | ||
470 | + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); | ||
471 | + #endif | ||
472 | + #if defined (SYSTYPE_SVR4) | ||
473 | + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); | ||
474 | + #endif | ||
475 | + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) | ||
476 | + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); | ||
477 | + #endif | ||
478 | + #endif | ||
479 | + exit (-1); | ||
480 | + } | ||
481 | +EOF | ||
482 | + $CC_FOR_BUILD -o $dummy $dummy.c && | ||
483 | + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && | ||
484 | + SYSTEM_NAME=`$dummy $dummyarg` && | ||
485 | + { echo "$SYSTEM_NAME"; exit; } | ||
486 | + echo mips-mips-riscos${UNAME_RELEASE} | ||
487 | + exit ;; | ||
488 | + Motorola:PowerMAX_OS:*:*) | ||
489 | + echo powerpc-motorola-powermax | ||
490 | + exit ;; | ||
491 | + Motorola:*:4.3:PL8-*) | ||
492 | + echo powerpc-harris-powermax | ||
493 | + exit ;; | ||
494 | + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) | ||
495 | + echo powerpc-harris-powermax | ||
496 | + exit ;; | ||
497 | + Night_Hawk:Power_UNIX:*:*) | ||
498 | + echo powerpc-harris-powerunix | ||
499 | + exit ;; | ||
500 | + m88k:CX/UX:7*:*) | ||
501 | + echo m88k-harris-cxux7 | ||
502 | + exit ;; | ||
503 | + m88k:*:4*:R4*) | ||
504 | + echo m88k-motorola-sysv4 | ||
505 | + exit ;; | ||
506 | + m88k:*:3*:R3*) | ||
507 | + echo m88k-motorola-sysv3 | ||
508 | + exit ;; | ||
509 | + AViiON:dgux:*:*) | ||
510 | + # DG/UX returns AViiON for all architectures | ||
511 | + UNAME_PROCESSOR=`/usr/bin/uname -p` | ||
512 | + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] | ||
513 | + then | ||
514 | + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ | ||
515 | + [ ${TARGET_BINARY_INTERFACE}x = x ] | ||
516 | + then | ||
517 | + echo m88k-dg-dgux${UNAME_RELEASE} | ||
518 | + else | ||
519 | + echo m88k-dg-dguxbcs${UNAME_RELEASE} | ||
520 | + fi | ||
521 | + else | ||
522 | + echo i586-dg-dgux${UNAME_RELEASE} | ||
523 | + fi | ||
524 | + exit ;; | ||
525 | + M88*:DolphinOS:*:*) # DolphinOS (SVR3) | ||
526 | + echo m88k-dolphin-sysv3 | ||
527 | + exit ;; | ||
528 | + M88*:*:R3*:*) | ||
529 | + # Delta 88k system running SVR3 | ||
530 | + echo m88k-motorola-sysv3 | ||
531 | + exit ;; | ||
532 | + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) | ||
533 | + echo m88k-tektronix-sysv3 | ||
534 | + exit ;; | ||
535 | + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) | ||
536 | + echo m68k-tektronix-bsd | ||
537 | + exit ;; | ||
538 | + *:IRIX*:*:*) | ||
539 | + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` | ||
540 | + exit ;; | ||
541 | + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. | ||
542 | + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id | ||
543 | + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' | ||
544 | + i*86:AIX:*:*) | ||
545 | + echo i386-ibm-aix | ||
546 | + exit ;; | ||
547 | + ia64:AIX:*:*) | ||
548 | + if [ -x /usr/bin/oslevel ] ; then | ||
549 | + IBM_REV=`/usr/bin/oslevel` | ||
550 | + else | ||
551 | + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | ||
552 | + fi | ||
553 | + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} | ||
554 | + exit ;; | ||
555 | + *:AIX:2:3) | ||
556 | + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then | ||
557 | + eval $set_cc_for_build | ||
558 | + sed 's/^ //' << EOF >$dummy.c | ||
559 | + #include <sys/systemcfg.h> | ||
560 | + | ||
561 | + main() | ||
562 | + { | ||
563 | + if (!__power_pc()) | ||
564 | + exit(1); | ||
565 | + puts("powerpc-ibm-aix3.2.5"); | ||
566 | + exit(0); | ||
567 | + } | ||
568 | +EOF | ||
569 | + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` | ||
570 | + then | ||
571 | + echo "$SYSTEM_NAME" | ||
572 | + else | ||
573 | + echo rs6000-ibm-aix3.2.5 | ||
574 | + fi | ||
575 | + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then | ||
576 | + echo rs6000-ibm-aix3.2.4 | ||
577 | + else | ||
578 | + echo rs6000-ibm-aix3.2 | ||
579 | + fi | ||
580 | + exit ;; | ||
581 | + *:AIX:*:[4567]) | ||
582 | + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` | ||
583 | + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then | ||
584 | + IBM_ARCH=rs6000 | ||
585 | + else | ||
586 | + IBM_ARCH=powerpc | ||
587 | + fi | ||
588 | + if [ -x /usr/bin/oslevel ] ; then | ||
589 | + IBM_REV=`/usr/bin/oslevel` | ||
590 | + else | ||
591 | + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | ||
592 | + fi | ||
593 | + echo ${IBM_ARCH}-ibm-aix${IBM_REV} | ||
594 | + exit ;; | ||
595 | + *:AIX:*:*) | ||
596 | + echo rs6000-ibm-aix | ||
597 | + exit ;; | ||
598 | + ibmrt:4.4BSD:*|romp-ibm:BSD:*) | ||
599 | + echo romp-ibm-bsd4.4 | ||
600 | + exit ;; | ||
601 | + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and | ||
602 | + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to | ||
603 | + exit ;; # report: romp-ibm BSD 4.3 | ||
604 | + *:BOSX:*:*) | ||
605 | + echo rs6000-bull-bosx | ||
606 | + exit ;; | ||
607 | + DPX/2?00:B.O.S.:*:*) | ||
608 | + echo m68k-bull-sysv3 | ||
609 | + exit ;; | ||
610 | + 9000/[34]??:4.3bsd:1.*:*) | ||
611 | + echo m68k-hp-bsd | ||
612 | + exit ;; | ||
613 | + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) | ||
614 | + echo m68k-hp-bsd4.4 | ||
615 | + exit ;; | ||
616 | + 9000/[34678]??:HP-UX:*:*) | ||
617 | + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | ||
618 | + case "${UNAME_MACHINE}" in | ||
619 | + 9000/31? ) HP_ARCH=m68000 ;; | ||
620 | + 9000/[34]?? ) HP_ARCH=m68k ;; | ||
621 | + 9000/[678][0-9][0-9]) | ||
622 | + if [ -x /usr/bin/getconf ]; then | ||
623 | + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` | ||
624 | + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | ||
625 | + case "${sc_cpu_version}" in | ||
626 | + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 | ||
627 | + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 | ||
628 | + 532) # CPU_PA_RISC2_0 | ||
629 | + case "${sc_kernel_bits}" in | ||
630 | + 32) HP_ARCH="hppa2.0n" ;; | ||
631 | + 64) HP_ARCH="hppa2.0w" ;; | ||
632 | + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 | ||
633 | + esac ;; | ||
634 | + esac | ||
635 | + fi | ||
636 | + if [ "${HP_ARCH}" = "" ]; then | ||
637 | + eval $set_cc_for_build | ||
638 | + sed 's/^ //' << EOF >$dummy.c | ||
639 | + | ||
640 | + #define _HPUX_SOURCE | ||
641 | + #include <stdlib.h> | ||
642 | + #include <unistd.h> | ||
643 | + | ||
644 | + int main () | ||
645 | + { | ||
646 | + #if defined(_SC_KERNEL_BITS) | ||
647 | + long bits = sysconf(_SC_KERNEL_BITS); | ||
648 | + #endif | ||
649 | + long cpu = sysconf (_SC_CPU_VERSION); | ||
650 | + | ||
651 | + switch (cpu) | ||
652 | + { | ||
653 | + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; | ||
654 | + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; | ||
655 | + case CPU_PA_RISC2_0: | ||
656 | + #if defined(_SC_KERNEL_BITS) | ||
657 | + switch (bits) | ||
658 | + { | ||
659 | + case 64: puts ("hppa2.0w"); break; | ||
660 | + case 32: puts ("hppa2.0n"); break; | ||
661 | + default: puts ("hppa2.0"); break; | ||
662 | + } break; | ||
663 | + #else /* !defined(_SC_KERNEL_BITS) */ | ||
664 | + puts ("hppa2.0"); break; | ||
665 | + #endif | ||
666 | + default: puts ("hppa1.0"); break; | ||
667 | + } | ||
668 | + exit (0); | ||
669 | + } | ||
670 | +EOF | ||
671 | + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` | ||
672 | + test -z "$HP_ARCH" && HP_ARCH=hppa | ||
673 | + fi ;; | ||
674 | + esac | ||
675 | + if [ ${HP_ARCH} = "hppa2.0w" ] | ||
676 | + then | ||
677 | + eval $set_cc_for_build | ||
678 | + | ||
679 | + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating | ||
680 | + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler | ||
681 | + # generating 64-bit code. GNU and HP use different nomenclature: | ||
682 | + # | ||
683 | + # $ CC_FOR_BUILD=cc ./config.guess | ||
684 | + # => hppa2.0w-hp-hpux11.23 | ||
685 | + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess | ||
686 | + # => hppa64-hp-hpux11.23 | ||
687 | + | ||
688 | + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | | ||
689 | + grep -q __LP64__ | ||
690 | + then | ||
691 | + HP_ARCH="hppa2.0w" | ||
692 | + else | ||
693 | + HP_ARCH="hppa64" | ||
694 | + fi | ||
695 | + fi | ||
696 | + echo ${HP_ARCH}-hp-hpux${HPUX_REV} | ||
697 | + exit ;; | ||
698 | + ia64:HP-UX:*:*) | ||
699 | + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | ||
700 | + echo ia64-hp-hpux${HPUX_REV} | ||
701 | + exit ;; | ||
702 | + 3050*:HI-UX:*:*) | ||
703 | + eval $set_cc_for_build | ||
704 | + sed 's/^ //' << EOF >$dummy.c | ||
705 | + #include <unistd.h> | ||
706 | + int | ||
707 | + main () | ||
708 | + { | ||
709 | + long cpu = sysconf (_SC_CPU_VERSION); | ||
710 | + /* The order matters, because CPU_IS_HP_MC68K erroneously returns | ||
711 | + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct | ||
712 | + results, however. */ | ||
713 | + if (CPU_IS_PA_RISC (cpu)) | ||
714 | + { | ||
715 | + switch (cpu) | ||
716 | + { | ||
717 | + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; | ||
718 | + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; | ||
719 | + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; | ||
720 | + default: puts ("hppa-hitachi-hiuxwe2"); break; | ||
721 | + } | ||
722 | + } | ||
723 | + else if (CPU_IS_HP_MC68K (cpu)) | ||
724 | + puts ("m68k-hitachi-hiuxwe2"); | ||
725 | + else puts ("unknown-hitachi-hiuxwe2"); | ||
726 | + exit (0); | ||
727 | + } | ||
728 | +EOF | ||
729 | + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && | ||
730 | + { echo "$SYSTEM_NAME"; exit; } | ||
731 | + echo unknown-hitachi-hiuxwe2 | ||
732 | + exit ;; | ||
733 | + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) | ||
734 | + echo hppa1.1-hp-bsd | ||
735 | + exit ;; | ||
736 | + 9000/8??:4.3bsd:*:*) | ||
737 | + echo hppa1.0-hp-bsd | ||
738 | + exit ;; | ||
739 | + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) | ||
740 | + echo hppa1.0-hp-mpeix | ||
741 | + exit ;; | ||
742 | + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) | ||
743 | + echo hppa1.1-hp-osf | ||
744 | + exit ;; | ||
745 | + hp8??:OSF1:*:*) | ||
746 | + echo hppa1.0-hp-osf | ||
747 | + exit ;; | ||
748 | + i*86:OSF1:*:*) | ||
749 | + if [ -x /usr/sbin/sysversion ] ; then | ||
750 | + echo ${UNAME_MACHINE}-unknown-osf1mk | ||
751 | + else | ||
752 | + echo ${UNAME_MACHINE}-unknown-osf1 | ||
753 | + fi | ||
754 | + exit ;; | ||
755 | + parisc*:Lites*:*:*) | ||
756 | + echo hppa1.1-hp-lites | ||
757 | + exit ;; | ||
758 | + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) | ||
759 | + echo c1-convex-bsd | ||
760 | + exit ;; | ||
761 | + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) | ||
762 | + if getsysinfo -f scalar_acc | ||
763 | + then echo c32-convex-bsd | ||
764 | + else echo c2-convex-bsd | ||
765 | + fi | ||
766 | + exit ;; | ||
767 | + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) | ||
768 | + echo c34-convex-bsd | ||
769 | + exit ;; | ||
770 | + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) | ||
771 | + echo c38-convex-bsd | ||
772 | + exit ;; | ||
773 | + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) | ||
774 | + echo c4-convex-bsd | ||
775 | + exit ;; | ||
776 | + CRAY*Y-MP:*:*:*) | ||
777 | + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | ||
778 | + exit ;; | ||
779 | + CRAY*[A-Z]90:*:*:*) | ||
780 | + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | ||
781 | + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ | ||
782 | + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ | ||
783 | + -e 's/\.[^.]*$/.X/' | ||
784 | + exit ;; | ||
785 | + CRAY*TS:*:*:*) | ||
786 | + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | ||
787 | + exit ;; | ||
788 | + CRAY*T3E:*:*:*) | ||
789 | + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | ||
790 | + exit ;; | ||
791 | + CRAY*SV1:*:*:*) | ||
792 | + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | ||
793 | + exit ;; | ||
794 | + *:UNICOS/mp:*:*) | ||
795 | + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | ||
796 | + exit ;; | ||
797 | + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) | ||
798 | + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | ||
799 | + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | ||
800 | + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` | ||
801 | + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | ||
802 | + exit ;; | ||
803 | + 5000:UNIX_System_V:4.*:*) | ||
804 | + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | ||
805 | + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` | ||
806 | + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | ||
807 | + exit ;; | ||
808 | + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) | ||
809 | + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} | ||
810 | + exit ;; | ||
811 | + sparc*:BSD/OS:*:*) | ||
812 | + echo sparc-unknown-bsdi${UNAME_RELEASE} | ||
813 | + exit ;; | ||
814 | + *:BSD/OS:*:*) | ||
815 | + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} | ||
816 | + exit ;; | ||
817 | + *:FreeBSD:*:*) | ||
818 | + case ${UNAME_MACHINE} in | ||
819 | + pc98) | ||
820 | + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | ||
821 | + amd64) | ||
822 | + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | ||
823 | + *) | ||
824 | + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | ||
825 | + esac | ||
826 | + exit ;; | ||
827 | + i*:CYGWIN*:*) | ||
828 | + echo ${UNAME_MACHINE}-pc-cygwin | ||
829 | + exit ;; | ||
830 | + *:MINGW*:*) | ||
831 | + echo ${UNAME_MACHINE}-pc-mingw32 | ||
832 | + exit ;; | ||
833 | + i*:windows32*:*) | ||
834 | + # uname -m includes "-pc" on this system. | ||
835 | + echo ${UNAME_MACHINE}-mingw32 | ||
836 | + exit ;; | ||
837 | + i*:PW*:*) | ||
838 | + echo ${UNAME_MACHINE}-pc-pw32 | ||
839 | + exit ;; | ||
840 | + *:Interix*:*) | ||
841 | + case ${UNAME_MACHINE} in | ||
842 | + x86) | ||
843 | + echo i586-pc-interix${UNAME_RELEASE} | ||
844 | + exit ;; | ||
845 | + authenticamd | genuineintel | EM64T) | ||
846 | + echo x86_64-unknown-interix${UNAME_RELEASE} | ||
847 | + exit ;; | ||
848 | + IA64) | ||
849 | + echo ia64-unknown-interix${UNAME_RELEASE} | ||
850 | + exit ;; | ||
851 | + esac ;; | ||
852 | + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | ||
853 | + echo i${UNAME_MACHINE}-pc-mks | ||
854 | + exit ;; | ||
855 | + 8664:Windows_NT:*) | ||
856 | + echo x86_64-pc-mks | ||
857 | + exit ;; | ||
858 | + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | ||
859 | + # How do we know it's Interix rather than the generic POSIX subsystem? | ||
860 | + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | ||
861 | + # UNAME_MACHINE based on the output of uname instead of i386? | ||
862 | + echo i586-pc-interix | ||
863 | + exit ;; | ||
864 | + i*:UWIN*:*) | ||
865 | + echo ${UNAME_MACHINE}-pc-uwin | ||
866 | + exit ;; | ||
867 | + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) | ||
868 | + echo x86_64-unknown-cygwin | ||
869 | + exit ;; | ||
870 | + p*:CYGWIN*:*) | ||
871 | + echo powerpcle-unknown-cygwin | ||
872 | + exit ;; | ||
873 | + prep*:SunOS:5.*:*) | ||
874 | + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||
875 | + exit ;; | ||
876 | + *:GNU:*:*) | ||
877 | + # the GNU system | ||
878 | + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | ||
879 | + exit ;; | ||
880 | + *:GNU/*:*:*) | ||
881 | + # other systems with GNU libc and userland | ||
882 | + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} | ||
883 | + exit ;; | ||
884 | + i*86:Minix:*:*) | ||
885 | + echo ${UNAME_MACHINE}-pc-minix | ||
886 | + exit ;; | ||
887 | + alpha:Linux:*:*) | ||
888 | + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | ||
889 | + EV5) UNAME_MACHINE=alphaev5 ;; | ||
890 | + EV56) UNAME_MACHINE=alphaev56 ;; | ||
891 | + PCA56) UNAME_MACHINE=alphapca56 ;; | ||
892 | + PCA57) UNAME_MACHINE=alphapca56 ;; | ||
893 | + EV6) UNAME_MACHINE=alphaev6 ;; | ||
894 | + EV67) UNAME_MACHINE=alphaev67 ;; | ||
895 | + EV68*) UNAME_MACHINE=alphaev68 ;; | ||
896 | + esac | ||
897 | + objdump --private-headers /bin/sh | grep -q ld.so.1 | ||
898 | + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi | ||
899 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||
900 | + exit ;; | ||
901 | + arm*:Linux:*:*) | ||
902 | + eval $set_cc_for_build | ||
903 | + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | ||
904 | + | grep -q __ARM_EABI__ | ||
905 | + then | ||
906 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||
907 | + else | ||
908 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi | ||
909 | + fi | ||
910 | + exit ;; | ||
911 | + avr32*:Linux:*:*) | ||
912 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||
913 | + exit ;; | ||
914 | + cris:Linux:*:*) | ||
915 | + echo cris-axis-linux-${LIBC} | ||
916 | + exit ;; | ||
917 | + crisv32:Linux:*:*) | ||
918 | + echo crisv32-axis-linux-${LIBC} | ||
919 | + exit ;; | ||
920 | + frv:Linux:*:*) | ||
921 | + echo frv-unknown-linux-${LIBC} | ||
922 | + exit ;; | ||
923 | + i*86:Linux:*:*) | ||
924 | + echo ${UNAME_MACHINE}-pc-linux-${LIBC} | ||
925 | + exit ;; | ||
926 | + ia64:Linux:*:*) | ||
927 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||
928 | + exit ;; | ||
929 | + m32r*:Linux:*:*) | ||
930 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||
931 | + exit ;; | ||
932 | + m68*:Linux:*:*) | ||
933 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||
934 | + exit ;; | ||
935 | + mips:Linux:*:* | mips64:Linux:*:*) | ||
936 | + eval $set_cc_for_build | ||
937 | + sed 's/^ //' << EOF >$dummy.c | ||
938 | + #undef CPU | ||
939 | + #undef ${UNAME_MACHINE} | ||
940 | + #undef ${UNAME_MACHINE}el | ||
941 | + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | ||
942 | + CPU=${UNAME_MACHINE}el | ||
943 | + #else | ||
944 | + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | ||
945 | + CPU=${UNAME_MACHINE} | ||
946 | + #else | ||
947 | + CPU= | ||
948 | + #endif | ||
949 | + #endif | ||
950 | +EOF | ||
951 | + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | ||
952 | + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } | ||
953 | + ;; | ||
954 | + or32:Linux:*:*) | ||
955 | + echo or32-unknown-linux-${LIBC} | ||
956 | + exit ;; | ||
957 | + padre:Linux:*:*) | ||
958 | + echo sparc-unknown-linux-${LIBC} | ||
959 | + exit ;; | ||
960 | + parisc64:Linux:*:* | hppa64:Linux:*:*) | ||
961 | + echo hppa64-unknown-linux-${LIBC} | ||
962 | + exit ;; | ||
963 | + parisc:Linux:*:* | hppa:Linux:*:*) | ||
964 | + # Look for CPU level | ||
965 | + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in | ||
966 | + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; | ||
967 | + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; | ||
968 | + *) echo hppa-unknown-linux-${LIBC} ;; | ||
969 | + esac | ||
970 | + exit ;; | ||
971 | + ppc64:Linux:*:*) | ||
972 | + echo powerpc64-unknown-linux-${LIBC} | ||
973 | + exit ;; | ||
974 | + ppc:Linux:*:*) | ||
975 | + echo powerpc-unknown-linux-${LIBC} | ||
976 | + exit ;; | ||
977 | + s390:Linux:*:* | s390x:Linux:*:*) | ||
978 | + echo ${UNAME_MACHINE}-ibm-linux | ||
979 | + exit ;; | ||
980 | + sh64*:Linux:*:*) | ||
981 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||
982 | + exit ;; | ||
983 | + sh*:Linux:*:*) | ||
984 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||
985 | + exit ;; | ||
986 | + sparc:Linux:*:* | sparc64:Linux:*:*) | ||
987 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||
988 | + exit ;; | ||
989 | + tile*:Linux:*:*) | ||
990 | + echo ${UNAME_MACHINE}-tilera-linux-gnu | ||
991 | + exit ;; | ||
992 | + vax:Linux:*:*) | ||
993 | + echo ${UNAME_MACHINE}-dec-linux-${LIBC} | ||
994 | + exit ;; | ||
995 | + x86_64:Linux:*:*) | ||
996 | + echo x86_64-unknown-linux-${LIBC} | ||
997 | + exit ;; | ||
998 | + xtensa*:Linux:*:*) | ||
999 | + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | ||
1000 | + exit ;; | ||
1001 | + i*86:DYNIX/ptx:4*:*) | ||
1002 | + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | ||
1003 | + # earlier versions are messed up and put the nodename in both | ||
1004 | + # sysname and nodename. | ||
1005 | + echo i386-sequent-sysv4 | ||
1006 | + exit ;; | ||
1007 | + i*86:UNIX_SV:4.2MP:2.*) | ||
1008 | + # Unixware is an offshoot of SVR4, but it has its own version | ||
1009 | + # number series starting with 2... | ||
1010 | + # I am not positive that other SVR4 systems won't match this, | ||
1011 | + # I just have to hope. -- rms. | ||
1012 | + # Use sysv4.2uw... so that sysv4* matches it. | ||
1013 | + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} | ||
1014 | + exit ;; | ||
1015 | + i*86:OS/2:*:*) | ||
1016 | + # If we were able to find `uname', then EMX Unix compatibility | ||
1017 | + # is probably installed. | ||
1018 | + echo ${UNAME_MACHINE}-pc-os2-emx | ||
1019 | + exit ;; | ||
1020 | + i*86:XTS-300:*:STOP) | ||
1021 | + echo ${UNAME_MACHINE}-unknown-stop | ||
1022 | + exit ;; | ||
1023 | + i*86:atheos:*:*) | ||
1024 | + echo ${UNAME_MACHINE}-unknown-atheos | ||
1025 | + exit ;; | ||
1026 | + i*86:syllable:*:*) | ||
1027 | + echo ${UNAME_MACHINE}-pc-syllable | ||
1028 | + exit ;; | ||
1029 | + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) | ||
1030 | + echo i386-unknown-lynxos${UNAME_RELEASE} | ||
1031 | + exit ;; | ||
1032 | + i*86:*DOS:*:*) | ||
1033 | + echo ${UNAME_MACHINE}-pc-msdosdjgpp | ||
1034 | + exit ;; | ||
1035 | + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) | ||
1036 | + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` | ||
1037 | + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then | ||
1038 | + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} | ||
1039 | + else | ||
1040 | + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} | ||
1041 | + fi | ||
1042 | + exit ;; | ||
1043 | + i*86:*:5:[678]*) | ||
1044 | + # UnixWare 7.x, OpenUNIX and OpenServer 6. | ||
1045 | + case `/bin/uname -X | grep "^Machine"` in | ||
1046 | + *486*) UNAME_MACHINE=i486 ;; | ||
1047 | + *Pentium) UNAME_MACHINE=i586 ;; | ||
1048 | + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; | ||
1049 | + esac | ||
1050 | + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} | ||
1051 | + exit ;; | ||
1052 | + i*86:*:3.2:*) | ||
1053 | + if test -f /usr/options/cb.name; then | ||
1054 | + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` | ||
1055 | + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL | ||
1056 | + elif /bin/uname -X 2>/dev/null >/dev/null ; then | ||
1057 | + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` | ||
1058 | + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 | ||
1059 | + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ | ||
1060 | + && UNAME_MACHINE=i586 | ||
1061 | + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ | ||
1062 | + && UNAME_MACHINE=i686 | ||
1063 | + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ | ||
1064 | + && UNAME_MACHINE=i686 | ||
1065 | + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL | ||
1066 | + else | ||
1067 | + echo ${UNAME_MACHINE}-pc-sysv32 | ||
1068 | + fi | ||
1069 | + exit ;; | ||
1070 | + pc:*:*:*) | ||
1071 | + # Left here for compatibility: | ||
1072 | + # uname -m prints for DJGPP always 'pc', but it prints nothing about | ||
1073 | + # the processor, so we play safe by assuming i586. | ||
1074 | + # Note: whatever this is, it MUST be the same as what config.sub | ||
1075 | + # prints for the "djgpp" host, or else GDB configury will decide that | ||
1076 | + # this is a cross-build. | ||
1077 | + echo i586-pc-msdosdjgpp | ||
1078 | + exit ;; | ||
1079 | + Intel:Mach:3*:*) | ||
1080 | + echo i386-pc-mach3 | ||
1081 | + exit ;; | ||
1082 | + paragon:*:*:*) | ||
1083 | + echo i860-intel-osf1 | ||
1084 | + exit ;; | ||
1085 | + i860:*:4.*:*) # i860-SVR4 | ||
1086 | + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then | ||
1087 | + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 | ||
1088 | + else # Add other i860-SVR4 vendors below as they are discovered. | ||
1089 | + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 | ||
1090 | + fi | ||
1091 | + exit ;; | ||
1092 | + mini*:CTIX:SYS*5:*) | ||
1093 | + # "miniframe" | ||
1094 | + echo m68010-convergent-sysv | ||
1095 | + exit ;; | ||
1096 | + mc68k:UNIX:SYSTEM5:3.51m) | ||
1097 | + echo m68k-convergent-sysv | ||
1098 | + exit ;; | ||
1099 | + M680?0:D-NIX:5.3:*) | ||
1100 | + echo m68k-diab-dnix | ||
1101 | + exit ;; | ||
1102 | + M68*:*:R3V[5678]*:*) | ||
1103 | + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; | ||
1104 | + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) | ||
1105 | + OS_REL='' | ||
1106 | + test -r /etc/.relid \ | ||
1107 | + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` | ||
1108 | + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | ||
1109 | + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | ||
1110 | + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | ||
1111 | + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | ||
1112 | + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) | ||
1113 | + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | ||
1114 | + && { echo i486-ncr-sysv4; exit; } ;; | ||
1115 | + NCR*:*:4.2:* | MPRAS*:*:4.2:*) | ||
1116 | + OS_REL='.3' | ||
1117 | + test -r /etc/.relid \ | ||
1118 | + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` | ||
1119 | + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | ||
1120 | + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | ||
1121 | + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | ||
1122 | + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } | ||
1123 | + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ | ||
1124 | + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | ||
1125 | + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) | ||
1126 | + echo m68k-unknown-lynxos${UNAME_RELEASE} | ||
1127 | + exit ;; | ||
1128 | + mc68030:UNIX_System_V:4.*:*) | ||
1129 | + echo m68k-atari-sysv4 | ||
1130 | + exit ;; | ||
1131 | + TSUNAMI:LynxOS:2.*:*) | ||
1132 | + echo sparc-unknown-lynxos${UNAME_RELEASE} | ||
1133 | + exit ;; | ||
1134 | + rs6000:LynxOS:2.*:*) | ||
1135 | + echo rs6000-unknown-lynxos${UNAME_RELEASE} | ||
1136 | + exit ;; | ||
1137 | + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) | ||
1138 | + echo powerpc-unknown-lynxos${UNAME_RELEASE} | ||
1139 | + exit ;; | ||
1140 | + SM[BE]S:UNIX_SV:*:*) | ||
1141 | + echo mips-dde-sysv${UNAME_RELEASE} | ||
1142 | + exit ;; | ||
1143 | + RM*:ReliantUNIX-*:*:*) | ||
1144 | + echo mips-sni-sysv4 | ||
1145 | + exit ;; | ||
1146 | + RM*:SINIX-*:*:*) | ||
1147 | + echo mips-sni-sysv4 | ||
1148 | + exit ;; | ||
1149 | + *:SINIX-*:*:*) | ||
1150 | + if uname -p 2>/dev/null >/dev/null ; then | ||
1151 | + UNAME_MACHINE=`(uname -p) 2>/dev/null` | ||
1152 | + echo ${UNAME_MACHINE}-sni-sysv4 | ||
1153 | + else | ||
1154 | + echo ns32k-sni-sysv | ||
1155 | + fi | ||
1156 | + exit ;; | ||
1157 | + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | ||
1158 | + # says <Richard.M.Bartel@ccMail.Census.GOV> | ||
1159 | + echo i586-unisys-sysv4 | ||
1160 | + exit ;; | ||
1161 | + *:UNIX_System_V:4*:FTX*) | ||
1162 | + # From Gerald Hewes <hewes@openmarket.com>. | ||
1163 | + # How about differentiating between stratus architectures? -djm | ||
1164 | + echo hppa1.1-stratus-sysv4 | ||
1165 | + exit ;; | ||
1166 | + *:*:*:FTX*) | ||
1167 | + # From seanf@swdc.stratus.com. | ||
1168 | + echo i860-stratus-sysv4 | ||
1169 | + exit ;; | ||
1170 | + i*86:VOS:*:*) | ||
1171 | + # From Paul.Green@stratus.com. | ||
1172 | + echo ${UNAME_MACHINE}-stratus-vos | ||
1173 | + exit ;; | ||
1174 | + *:VOS:*:*) | ||
1175 | + # From Paul.Green@stratus.com. | ||
1176 | + echo hppa1.1-stratus-vos | ||
1177 | + exit ;; | ||
1178 | + mc68*:A/UX:*:*) | ||
1179 | + echo m68k-apple-aux${UNAME_RELEASE} | ||
1180 | + exit ;; | ||
1181 | + news*:NEWS-OS:6*:*) | ||
1182 | + echo mips-sony-newsos6 | ||
1183 | + exit ;; | ||
1184 | + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) | ||
1185 | + if [ -d /usr/nec ]; then | ||
1186 | + echo mips-nec-sysv${UNAME_RELEASE} | ||
1187 | + else | ||
1188 | + echo mips-unknown-sysv${UNAME_RELEASE} | ||
1189 | + fi | ||
1190 | + exit ;; | ||
1191 | + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. | ||
1192 | + echo powerpc-be-beos | ||
1193 | + exit ;; | ||
1194 | + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. | ||
1195 | + echo powerpc-apple-beos | ||
1196 | + exit ;; | ||
1197 | + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. | ||
1198 | + echo i586-pc-beos | ||
1199 | + exit ;; | ||
1200 | + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. | ||
1201 | + echo i586-pc-haiku | ||
1202 | + exit ;; | ||
1203 | + SX-4:SUPER-UX:*:*) | ||
1204 | + echo sx4-nec-superux${UNAME_RELEASE} | ||
1205 | + exit ;; | ||
1206 | + SX-5:SUPER-UX:*:*) | ||
1207 | + echo sx5-nec-superux${UNAME_RELEASE} | ||
1208 | + exit ;; | ||
1209 | + SX-6:SUPER-UX:*:*) | ||
1210 | + echo sx6-nec-superux${UNAME_RELEASE} | ||
1211 | + exit ;; | ||
1212 | + SX-7:SUPER-UX:*:*) | ||
1213 | + echo sx7-nec-superux${UNAME_RELEASE} | ||
1214 | + exit ;; | ||
1215 | + SX-8:SUPER-UX:*:*) | ||
1216 | + echo sx8-nec-superux${UNAME_RELEASE} | ||
1217 | + exit ;; | ||
1218 | + SX-8R:SUPER-UX:*:*) | ||
1219 | + echo sx8r-nec-superux${UNAME_RELEASE} | ||
1220 | + exit ;; | ||
1221 | + Power*:Rhapsody:*:*) | ||
1222 | + echo powerpc-apple-rhapsody${UNAME_RELEASE} | ||
1223 | + exit ;; | ||
1224 | + *:Rhapsody:*:*) | ||
1225 | + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | ||
1226 | + exit ;; | ||
1227 | + *:Darwin:*:*) | ||
1228 | + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | ||
1229 | + case $UNAME_PROCESSOR in | ||
1230 | + i386) | ||
1231 | + eval $set_cc_for_build | ||
1232 | + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | ||
1233 | + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | ||
1234 | + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | ||
1235 | + grep IS_64BIT_ARCH >/dev/null | ||
1236 | + then | ||
1237 | + UNAME_PROCESSOR="x86_64" | ||
1238 | + fi | ||
1239 | + fi ;; | ||
1240 | + unknown) UNAME_PROCESSOR=powerpc ;; | ||
1241 | + esac | ||
1242 | + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | ||
1243 | + exit ;; | ||
1244 | + *:procnto*:*:* | *:QNX:[0123456789]*:*) | ||
1245 | + UNAME_PROCESSOR=`uname -p` | ||
1246 | + if test "$UNAME_PROCESSOR" = "x86"; then | ||
1247 | + UNAME_PROCESSOR=i386 | ||
1248 | + UNAME_MACHINE=pc | ||
1249 | + fi | ||
1250 | + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} | ||
1251 | + exit ;; | ||
1252 | + *:QNX:*:4*) | ||
1253 | + echo i386-pc-qnx | ||
1254 | + exit ;; | ||
1255 | + NEO-?:NONSTOP_KERNEL:*:*) | ||
1256 | + echo neo-tandem-nsk${UNAME_RELEASE} | ||
1257 | + exit ;; | ||
1258 | + NSE-?:NONSTOP_KERNEL:*:*) | ||
1259 | + echo nse-tandem-nsk${UNAME_RELEASE} | ||
1260 | + exit ;; | ||
1261 | + NSR-?:NONSTOP_KERNEL:*:*) | ||
1262 | + echo nsr-tandem-nsk${UNAME_RELEASE} | ||
1263 | + exit ;; | ||
1264 | + *:NonStop-UX:*:*) | ||
1265 | + echo mips-compaq-nonstopux | ||
1266 | + exit ;; | ||
1267 | + BS2000:POSIX*:*:*) | ||
1268 | + echo bs2000-siemens-sysv | ||
1269 | + exit ;; | ||
1270 | + DS/*:UNIX_System_V:*:*) | ||
1271 | + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} | ||
1272 | + exit ;; | ||
1273 | + *:Plan9:*:*) | ||
1274 | + # "uname -m" is not consistent, so use $cputype instead. 386 | ||
1275 | + # is converted to i386 for consistency with other x86 | ||
1276 | + # operating systems. | ||
1277 | + if test "$cputype" = "386"; then | ||
1278 | + UNAME_MACHINE=i386 | ||
1279 | + else | ||
1280 | + UNAME_MACHINE="$cputype" | ||
1281 | + fi | ||
1282 | + echo ${UNAME_MACHINE}-unknown-plan9 | ||
1283 | + exit ;; | ||
1284 | + *:TOPS-10:*:*) | ||
1285 | + echo pdp10-unknown-tops10 | ||
1286 | + exit ;; | ||
1287 | + *:TENEX:*:*) | ||
1288 | + echo pdp10-unknown-tenex | ||
1289 | + exit ;; | ||
1290 | + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) | ||
1291 | + echo pdp10-dec-tops20 | ||
1292 | + exit ;; | ||
1293 | + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) | ||
1294 | + echo pdp10-xkl-tops20 | ||
1295 | + exit ;; | ||
1296 | + *:TOPS-20:*:*) | ||
1297 | + echo pdp10-unknown-tops20 | ||
1298 | + exit ;; | ||
1299 | + *:ITS:*:*) | ||
1300 | + echo pdp10-unknown-its | ||
1301 | + exit ;; | ||
1302 | + SEI:*:*:SEIUX) | ||
1303 | + echo mips-sei-seiux${UNAME_RELEASE} | ||
1304 | + exit ;; | ||
1305 | + *:DragonFly:*:*) | ||
1306 | + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | ||
1307 | + exit ;; | ||
1308 | + *:*VMS:*:*) | ||
1309 | + UNAME_MACHINE=`(uname -p) 2>/dev/null` | ||
1310 | + case "${UNAME_MACHINE}" in | ||
1311 | + A*) echo alpha-dec-vms ; exit ;; | ||
1312 | + I*) echo ia64-dec-vms ; exit ;; | ||
1313 | + V*) echo vax-dec-vms ; exit ;; | ||
1314 | + esac ;; | ||
1315 | + *:XENIX:*:SysV) | ||
1316 | + echo i386-pc-xenix | ||
1317 | + exit ;; | ||
1318 | + i*86:skyos:*:*) | ||
1319 | + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' | ||
1320 | + exit ;; | ||
1321 | + i*86:rdos:*:*) | ||
1322 | + echo ${UNAME_MACHINE}-pc-rdos | ||
1323 | + exit ;; | ||
1324 | + i*86:AROS:*:*) | ||
1325 | + echo ${UNAME_MACHINE}-pc-aros | ||
1326 | + exit ;; | ||
1327 | +esac | ||
1328 | + | ||
1329 | +#echo '(No uname command or uname output not recognized.)' 1>&2 | ||
1330 | +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | ||
1331 | + | ||
1332 | +eval $set_cc_for_build | ||
1333 | +cat >$dummy.c <<EOF | ||
1334 | +#ifdef _SEQUENT_ | ||
1335 | +# include <sys/types.h> | ||
1336 | +# include <sys/utsname.h> | ||
1337 | +#endif | ||
1338 | +main () | ||
1339 | +{ | ||
1340 | +#if defined (sony) | ||
1341 | +#if defined (MIPSEB) | ||
1342 | + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, | ||
1343 | + I don't know.... */ | ||
1344 | + printf ("mips-sony-bsd\n"); exit (0); | ||
1345 | +#else | ||
1346 | +#include <sys/param.h> | ||
1347 | + printf ("m68k-sony-newsos%s\n", | ||
1348 | +#ifdef NEWSOS4 | ||
1349 | + "4" | ||
1350 | +#else | ||
1351 | + "" | ||
1352 | +#endif | ||
1353 | + ); exit (0); | ||
1354 | +#endif | ||
1355 | +#endif | ||
1356 | + | ||
1357 | +#if defined (__arm) && defined (__acorn) && defined (__unix) | ||
1358 | + printf ("arm-acorn-riscix\n"); exit (0); | ||
1359 | +#endif | ||
1360 | + | ||
1361 | +#if defined (hp300) && !defined (hpux) | ||
1362 | + printf ("m68k-hp-bsd\n"); exit (0); | ||
1363 | +#endif | ||
1364 | + | ||
1365 | +#if defined (NeXT) | ||
1366 | +#if !defined (__ARCHITECTURE__) | ||
1367 | +#define __ARCHITECTURE__ "m68k" | ||
1368 | +#endif | ||
1369 | + int version; | ||
1370 | + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; | ||
1371 | + if (version < 4) | ||
1372 | + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); | ||
1373 | + else | ||
1374 | + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); | ||
1375 | + exit (0); | ||
1376 | +#endif | ||
1377 | + | ||
1378 | +#if defined (MULTIMAX) || defined (n16) | ||
1379 | +#if defined (UMAXV) | ||
1380 | + printf ("ns32k-encore-sysv\n"); exit (0); | ||
1381 | +#else | ||
1382 | +#if defined (CMU) | ||
1383 | + printf ("ns32k-encore-mach\n"); exit (0); | ||
1384 | +#else | ||
1385 | + printf ("ns32k-encore-bsd\n"); exit (0); | ||
1386 | +#endif | ||
1387 | +#endif | ||
1388 | +#endif | ||
1389 | + | ||
1390 | +#if defined (__386BSD__) | ||
1391 | + printf ("i386-pc-bsd\n"); exit (0); | ||
1392 | +#endif | ||
1393 | + | ||
1394 | +#if defined (sequent) | ||
1395 | +#if defined (i386) | ||
1396 | + printf ("i386-sequent-dynix\n"); exit (0); | ||
1397 | +#endif | ||
1398 | +#if defined (ns32000) | ||
1399 | + printf ("ns32k-sequent-dynix\n"); exit (0); | ||
1400 | +#endif | ||
1401 | +#endif | ||
1402 | + | ||
1403 | +#if defined (_SEQUENT_) | ||
1404 | + struct utsname un; | ||
1405 | + | ||
1406 | + uname(&un); | ||
1407 | + | ||
1408 | + if (strncmp(un.version, "V2", 2) == 0) { | ||
1409 | + printf ("i386-sequent-ptx2\n"); exit (0); | ||
1410 | + } | ||
1411 | + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ | ||
1412 | + printf ("i386-sequent-ptx1\n"); exit (0); | ||
1413 | + } | ||
1414 | + printf ("i386-sequent-ptx\n"); exit (0); | ||
1415 | + | ||
1416 | +#endif | ||
1417 | + | ||
1418 | +#if defined (vax) | ||
1419 | +# if !defined (ultrix) | ||
1420 | +# include <sys/param.h> | ||
1421 | +# if defined (BSD) | ||
1422 | +# if BSD == 43 | ||
1423 | + printf ("vax-dec-bsd4.3\n"); exit (0); | ||
1424 | +# else | ||
1425 | +# if BSD == 199006 | ||
1426 | + printf ("vax-dec-bsd4.3reno\n"); exit (0); | ||
1427 | +# else | ||
1428 | + printf ("vax-dec-bsd\n"); exit (0); | ||
1429 | +# endif | ||
1430 | +# endif | ||
1431 | +# else | ||
1432 | + printf ("vax-dec-bsd\n"); exit (0); | ||
1433 | +# endif | ||
1434 | +# else | ||
1435 | + printf ("vax-dec-ultrix\n"); exit (0); | ||
1436 | +# endif | ||
1437 | +#endif | ||
1438 | + | ||
1439 | +#if defined (alliant) && defined (i860) | ||
1440 | + printf ("i860-alliant-bsd\n"); exit (0); | ||
1441 | +#endif | ||
1442 | + | ||
1443 | + exit (1); | ||
1444 | +} | ||
1445 | +EOF | ||
1446 | + | ||
1447 | +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && | ||
1448 | + { echo "$SYSTEM_NAME"; exit; } | ||
1449 | + | ||
1450 | +# Apollos put the system type in the environment. | ||
1451 | + | ||
1452 | +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } | ||
1453 | + | ||
1454 | +# Convex versions that predate uname can use getsysinfo(1) | ||
1455 | + | ||
1456 | +if [ -x /usr/convex/getsysinfo ] | ||
1457 | +then | ||
1458 | + case `getsysinfo -f cpu_type` in | ||
1459 | + c1*) | ||
1460 | + echo c1-convex-bsd | ||
1461 | + exit ;; | ||
1462 | + c2*) | ||
1463 | + if getsysinfo -f scalar_acc | ||
1464 | + then echo c32-convex-bsd | ||
1465 | + else echo c2-convex-bsd | ||
1466 | + fi | ||
1467 | + exit ;; | ||
1468 | + c34*) | ||
1469 | + echo c34-convex-bsd | ||
1470 | + exit ;; | ||
1471 | + c38*) | ||
1472 | + echo c38-convex-bsd | ||
1473 | + exit ;; | ||
1474 | + c4*) | ||
1475 | + echo c4-convex-bsd | ||
1476 | + exit ;; | ||
1477 | + esac | ||
1478 | +fi | ||
1479 | + | ||
1480 | +cat >&2 <<EOF | ||
1481 | +$0: unable to guess system type | ||
1482 | + | ||
1483 | +This script, last modified $timestamp, has failed to recognize | ||
1484 | +the operating system you are using. It is advised that you | ||
1485 | +download the most up to date version of the config scripts from | ||
1486 | + | ||
1487 | + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD | ||
1488 | +and | ||
1489 | + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | ||
1490 | + | ||
1491 | +If the version you run ($0) is already up to date, please | ||
1492 | +send the following data and any information you think might be | ||
1493 | +pertinent to <config-patches@gnu.org> in order to provide the needed | ||
1494 | +information to handle your system. | ||
1495 | + | ||
1496 | +config.guess timestamp = $timestamp | ||
1497 | + | ||
1498 | +uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1499 | +uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1500 | +uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1501 | +uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1502 | + | ||
1503 | +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` | ||
1504 | +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` | ||
1505 | + | ||
1506 | +hostinfo = `(hostinfo) 2>/dev/null` | ||
1507 | +/bin/universe = `(/bin/universe) 2>/dev/null` | ||
1508 | +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` | ||
1509 | +/bin/arch = `(/bin/arch) 2>/dev/null` | ||
1510 | +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` | ||
1511 | +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` | ||
1512 | + | ||
1513 | +UNAME_MACHINE = ${UNAME_MACHINE} | ||
1514 | +UNAME_RELEASE = ${UNAME_RELEASE} | ||
1515 | +UNAME_SYSTEM = ${UNAME_SYSTEM} | ||
1516 | +UNAME_VERSION = ${UNAME_VERSION} | ||
1517 | +EOF | ||
1518 | + | ||
1519 | +exit 1 | ||
1520 | + | ||
1521 | +# Local variables: | ||
1522 | +# eval: (add-hook 'write-file-hooks 'time-stamp) | ||
1523 | +# time-stamp-start: "timestamp='" | ||
1524 | +# time-stamp-format: "%:y-%02m-%02d" | ||
1525 | +# time-stamp-end: "'" | ||
1526 | +# End: |
config.h.in
0 → 100644
1 | +/* config.h.in. Generated from configure.ac by autoheader. */ | ||
2 | + | ||
3 | +/* Define to 1 if you have the <dlfcn.h> header file. */ | ||
4 | +#undef HAVE_DLFCN_H | ||
5 | + | ||
6 | +/* Define to 1 if you have the <fcntl.h> header file. */ | ||
7 | +#undef HAVE_FCNTL_H | ||
8 | + | ||
9 | +/* Define to 1 if you have the <inttypes.h> header file. */ | ||
10 | +#undef HAVE_INTTYPES_H | ||
11 | + | ||
12 | +/* Define to 1 if you have the `json' library (-ljson). */ | ||
13 | +#undef HAVE_LIBJSON | ||
14 | + | ||
15 | +/* Define to 1 if you have the `mcrypt' library (-lmcrypt). */ | ||
16 | +#undef HAVE_LIBMCRYPT | ||
17 | + | ||
18 | +/* Define to 1 if you have the `mhash' library (-lmhash). */ | ||
19 | +#undef HAVE_LIBMHASH | ||
20 | + | ||
21 | +/* Define to 1 if you have the <limits.h> header file. */ | ||
22 | +#undef HAVE_LIMITS_H | ||
23 | + | ||
24 | +/* Define to 1 if you have the `memchr' function. */ | ||
25 | +#undef HAVE_MEMCHR | ||
26 | + | ||
27 | +/* Define to 1 if you have the `memmove' function. */ | ||
28 | +#undef HAVE_MEMMOVE | ||
29 | + | ||
30 | +/* Define to 1 if you have the <memory.h> header file. */ | ||
31 | +#undef HAVE_MEMORY_H | ||
32 | + | ||
33 | +/* Define to 1 if you have the `memset' function. */ | ||
34 | +#undef HAVE_MEMSET | ||
35 | + | ||
36 | +/* Define to 1 if stdbool.h conforms to C99. */ | ||
37 | +#undef HAVE_STDBOOL_H | ||
38 | + | ||
39 | +/* Define to 1 if you have the <stddef.h> header file. */ | ||
40 | +#undef HAVE_STDDEF_H | ||
41 | + | ||
42 | +/* Define to 1 if you have the <stdint.h> header file. */ | ||
43 | +#undef HAVE_STDINT_H | ||
44 | + | ||
45 | +/* Define to 1 if you have the <stdlib.h> header file. */ | ||
46 | +#undef HAVE_STDLIB_H | ||
47 | + | ||
48 | +/* Define to 1 if you have the <strings.h> header file. */ | ||
49 | +#undef HAVE_STRINGS_H | ||
50 | + | ||
51 | +/* Define to 1 if you have the <string.h> header file. */ | ||
52 | +#undef HAVE_STRING_H | ||
53 | + | ||
54 | +/* Define to 1 if you have the <sys/stat.h> header file. */ | ||
55 | +#undef HAVE_SYS_STAT_H | ||
56 | + | ||
57 | +/* Define to 1 if you have the <sys/types.h> header file. */ | ||
58 | +#undef HAVE_SYS_TYPES_H | ||
59 | + | ||
60 | +/* Define to 1 if you have the <unistd.h> header file. */ | ||
61 | +#undef HAVE_UNISTD_H | ||
62 | + | ||
63 | +/* Define to 1 if the system has the type `_Bool'. */ | ||
64 | +#undef HAVE__BOOL | ||
65 | + | ||
66 | +/* Define to the sub-directory in which libtool stores uninstalled libraries. | ||
67 | + */ | ||
68 | +#undef LT_OBJDIR | ||
69 | + | ||
70 | +/* Define to 1 if your C compiler doesn't accept -c and -o together. */ | ||
71 | +#undef NO_MINUS_C_MINUS_O | ||
72 | + | ||
73 | +/* Name of package */ | ||
74 | +#undef PACKAGE | ||
75 | + | ||
76 | +/* Define to the address where bug reports for this package should be sent. */ | ||
77 | +#undef PACKAGE_BUGREPORT | ||
78 | + | ||
79 | +/* Define to the full name of this package. */ | ||
80 | +#undef PACKAGE_NAME | ||
81 | + | ||
82 | +/* Define to the full name and version of this package. */ | ||
83 | +#undef PACKAGE_STRING | ||
84 | + | ||
85 | +/* Define to the one symbol short name of this package. */ | ||
86 | +#undef PACKAGE_TARNAME | ||
87 | + | ||
88 | +/* Define to the home page for this package. */ | ||
89 | +#undef PACKAGE_URL | ||
90 | + | ||
91 | +/* Define to the version of this package. */ | ||
92 | +#undef PACKAGE_VERSION | ||
93 | + | ||
94 | +/* Define to 1 if you have the ANSI C header files. */ | ||
95 | +#undef STDC_HEADERS | ||
96 | + | ||
97 | +/* Version number of package */ | ||
98 | +#undef VERSION | ||
99 | + | ||
100 | +/* Define to `__inline__' or `__inline' if that's what the C compiler | ||
101 | + calls it, or to nothing if 'inline' is not supported under any name. */ | ||
102 | +#ifndef __cplusplus | ||
103 | +#undef inline | ||
104 | +#endif | ||
105 | + | ||
106 | +/* Define to the equivalent of the C99 'restrict' keyword, or to | ||
107 | + nothing if this is not supported. Do not define if restrict is | ||
108 | + supported directly. */ | ||
109 | +#undef restrict | ||
110 | +/* Work around a bug in Sun C++: it does not support _Restrict or | ||
111 | + __restrict__, even though the corresponding Sun C compiler ends up with | ||
112 | + "#define restrict _Restrict" or "#define restrict __restrict__" in the | ||
113 | + previous line. Perhaps some future version of Sun C++ will work with | ||
114 | + restrict; if so, hopefully it defines __RESTRICT like Sun C does. */ | ||
115 | +#if defined __SUNPRO_CC && !defined __RESTRICT | ||
116 | +# define _Restrict | ||
117 | +# define __restrict__ | ||
118 | +#endif | ||
119 | + | ||
120 | +/* Define to `unsigned int' if <sys/types.h> does not define. */ | ||
121 | +#undef size_t |
config.sub
0 → 100755
1 | +#! /bin/sh | ||
2 | +# Configuration validation subroutine script. | ||
3 | +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | ||
4 | +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, | ||
5 | +# 2011 Free Software Foundation, Inc. | ||
6 | + | ||
7 | +timestamp='2011-02-02' | ||
8 | + | ||
9 | +# This file is (in principle) common to ALL GNU software. | ||
10 | +# The presence of a machine in this file suggests that SOME GNU software | ||
11 | +# can handle that machine. It does not imply ALL GNU software can. | ||
12 | +# | ||
13 | +# This file is free software; you can redistribute it and/or modify | ||
14 | +# it under the terms of the GNU General Public License as published by | ||
15 | +# the Free Software Foundation; either version 2 of the License, or | ||
16 | +# (at your option) any later version. | ||
17 | +# | ||
18 | +# This program is distributed in the hope that it will be useful, | ||
19 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
20 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
21 | +# GNU General Public License for more details. | ||
22 | +# | ||
23 | +# You should have received a copy of the GNU General Public License | ||
24 | +# along with this program; if not, write to the Free Software | ||
25 | +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | ||
26 | +# 02110-1301, USA. | ||
27 | +# | ||
28 | +# As a special exception to the GNU General Public License, if you | ||
29 | +# distribute this file as part of a program that contains a | ||
30 | +# configuration script generated by Autoconf, you may include it under | ||
31 | +# the same distribution terms that you use for the rest of that program. | ||
32 | + | ||
33 | + | ||
34 | +# Please send patches to <config-patches@gnu.org>. Submit a context | ||
35 | +# diff and a properly formatted GNU ChangeLog entry. | ||
36 | +# | ||
37 | +# Configuration subroutine to validate and canonicalize a configuration type. | ||
38 | +# Supply the specified configuration type as an argument. | ||
39 | +# If it is invalid, we print an error message on stderr and exit with code 1. | ||
40 | +# Otherwise, we print the canonical config type on stdout and succeed. | ||
41 | + | ||
42 | +# You can get the latest version of this script from: | ||
43 | +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | ||
44 | + | ||
45 | +# This file is supposed to be the same for all GNU packages | ||
46 | +# and recognize all the CPU types, system types and aliases | ||
47 | +# that are meaningful with *any* GNU software. | ||
48 | +# Each package is responsible for reporting which valid configurations | ||
49 | +# it does not support. The user should be able to distinguish | ||
50 | +# a failure to support a valid configuration from a meaningless | ||
51 | +# configuration. | ||
52 | + | ||
53 | +# The goal of this file is to map all the various variations of a given | ||
54 | +# machine specification into a single specification in the form: | ||
55 | +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM | ||
56 | +# or in some cases, the newer four-part form: | ||
57 | +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM | ||
58 | +# It is wrong to echo any other type of specification. | ||
59 | + | ||
60 | +me=`echo "$0" | sed -e 's,.*/,,'` | ||
61 | + | ||
62 | +usage="\ | ||
63 | +Usage: $0 [OPTION] CPU-MFR-OPSYS | ||
64 | + $0 [OPTION] ALIAS | ||
65 | + | ||
66 | +Canonicalize a configuration name. | ||
67 | + | ||
68 | +Operation modes: | ||
69 | + -h, --help print this help, then exit | ||
70 | + -t, --time-stamp print date of last modification, then exit | ||
71 | + -v, --version print version number, then exit | ||
72 | + | ||
73 | +Report bugs and patches to <config-patches@gnu.org>." | ||
74 | + | ||
75 | +version="\ | ||
76 | +GNU config.sub ($timestamp) | ||
77 | + | ||
78 | +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | ||
79 | +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free | ||
80 | +Software Foundation, Inc. | ||
81 | + | ||
82 | +This is free software; see the source for copying conditions. There is NO | ||
83 | +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | ||
84 | + | ||
85 | +help=" | ||
86 | +Try \`$me --help' for more information." | ||
87 | + | ||
88 | +# Parse command line | ||
89 | +while test $# -gt 0 ; do | ||
90 | + case $1 in | ||
91 | + --time-stamp | --time* | -t ) | ||
92 | + echo "$timestamp" ; exit ;; | ||
93 | + --version | -v ) | ||
94 | + echo "$version" ; exit ;; | ||
95 | + --help | --h* | -h ) | ||
96 | + echo "$usage"; exit ;; | ||
97 | + -- ) # Stop option processing | ||
98 | + shift; break ;; | ||
99 | + - ) # Use stdin as input. | ||
100 | + break ;; | ||
101 | + -* ) | ||
102 | + echo "$me: invalid option $1$help" | ||
103 | + exit 1 ;; | ||
104 | + | ||
105 | + *local*) | ||
106 | + # First pass through any local machine types. | ||
107 | + echo $1 | ||
108 | + exit ;; | ||
109 | + | ||
110 | + * ) | ||
111 | + break ;; | ||
112 | + esac | ||
113 | +done | ||
114 | + | ||
115 | +case $# in | ||
116 | + 0) echo "$me: missing argument$help" >&2 | ||
117 | + exit 1;; | ||
118 | + 1) ;; | ||
119 | + *) echo "$me: too many arguments$help" >&2 | ||
120 | + exit 1;; | ||
121 | +esac | ||
122 | + | ||
123 | +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). | ||
124 | +# Here we must recognize all the valid KERNEL-OS combinations. | ||
125 | +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | ||
126 | +case $maybe_os in | ||
127 | + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ | ||
128 | + linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ | ||
129 | + knetbsd*-gnu* | netbsd*-gnu* | \ | ||
130 | + kopensolaris*-gnu* | \ | ||
131 | + storm-chaos* | os2-emx* | rtmk-nova*) | ||
132 | + os=-$maybe_os | ||
133 | + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | ||
134 | + ;; | ||
135 | + *) | ||
136 | + basic_machine=`echo $1 | sed 's/-[^-]*$//'` | ||
137 | + if [ $basic_machine != $1 ] | ||
138 | + then os=`echo $1 | sed 's/.*-/-/'` | ||
139 | + else os=; fi | ||
140 | + ;; | ||
141 | +esac | ||
142 | + | ||
143 | +### Let's recognize common machines as not being operating systems so | ||
144 | +### that things like config.sub decstation-3100 work. We also | ||
145 | +### recognize some manufacturers as not being operating systems, so we | ||
146 | +### can provide default operating systems below. | ||
147 | +case $os in | ||
148 | + -sun*os*) | ||
149 | + # Prevent following clause from handling this invalid input. | ||
150 | + ;; | ||
151 | + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ | ||
152 | + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ | ||
153 | + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ | ||
154 | + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ | ||
155 | + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ | ||
156 | + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ | ||
157 | + -apple | -axis | -knuth | -cray | -microblaze) | ||
158 | + os= | ||
159 | + basic_machine=$1 | ||
160 | + ;; | ||
161 | + -bluegene*) | ||
162 | + os=-cnk | ||
163 | + ;; | ||
164 | + -sim | -cisco | -oki | -wec | -winbond) | ||
165 | + os= | ||
166 | + basic_machine=$1 | ||
167 | + ;; | ||
168 | + -scout) | ||
169 | + ;; | ||
170 | + -wrs) | ||
171 | + os=-vxworks | ||
172 | + basic_machine=$1 | ||
173 | + ;; | ||
174 | + -chorusos*) | ||
175 | + os=-chorusos | ||
176 | + basic_machine=$1 | ||
177 | + ;; | ||
178 | + -chorusrdb) | ||
179 | + os=-chorusrdb | ||
180 | + basic_machine=$1 | ||
181 | + ;; | ||
182 | + -hiux*) | ||
183 | + os=-hiuxwe2 | ||
184 | + ;; | ||
185 | + -sco6) | ||
186 | + os=-sco5v6 | ||
187 | + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
188 | + ;; | ||
189 | + -sco5) | ||
190 | + os=-sco3.2v5 | ||
191 | + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
192 | + ;; | ||
193 | + -sco4) | ||
194 | + os=-sco3.2v4 | ||
195 | + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
196 | + ;; | ||
197 | + -sco3.2.[4-9]*) | ||
198 | + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` | ||
199 | + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
200 | + ;; | ||
201 | + -sco3.2v[4-9]*) | ||
202 | + # Don't forget version if it is 3.2v4 or newer. | ||
203 | + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
204 | + ;; | ||
205 | + -sco5v6*) | ||
206 | + # Don't forget version if it is 3.2v4 or newer. | ||
207 | + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
208 | + ;; | ||
209 | + -sco*) | ||
210 | + os=-sco3.2v2 | ||
211 | + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
212 | + ;; | ||
213 | + -udk*) | ||
214 | + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
215 | + ;; | ||
216 | + -isc) | ||
217 | + os=-isc2.2 | ||
218 | + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
219 | + ;; | ||
220 | + -clix*) | ||
221 | + basic_machine=clipper-intergraph | ||
222 | + ;; | ||
223 | + -isc*) | ||
224 | + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
225 | + ;; | ||
226 | + -lynx*) | ||
227 | + os=-lynxos | ||
228 | + ;; | ||
229 | + -ptx*) | ||
230 | + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` | ||
231 | + ;; | ||
232 | + -windowsnt*) | ||
233 | + os=`echo $os | sed -e 's/windowsnt/winnt/'` | ||
234 | + ;; | ||
235 | + -psos*) | ||
236 | + os=-psos | ||
237 | + ;; | ||
238 | + -mint | -mint[0-9]*) | ||
239 | + basic_machine=m68k-atari | ||
240 | + os=-mint | ||
241 | + ;; | ||
242 | +esac | ||
243 | + | ||
244 | +# Decode aliases for certain CPU-COMPANY combinations. | ||
245 | +case $basic_machine in | ||
246 | + # Recognize the basic CPU types without company name. | ||
247 | + # Some are omitted here because they have special meanings below. | ||
248 | + 1750a | 580 \ | ||
249 | + | a29k \ | ||
250 | + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | ||
251 | + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | ||
252 | + | am33_2.0 \ | ||
253 | + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | ||
254 | + | bfin \ | ||
255 | + | c4x | clipper \ | ||
256 | + | d10v | d30v | dlx | dsp16xx | dvp \ | ||
257 | + | fido | fr30 | frv \ | ||
258 | + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | ||
259 | + | i370 | i860 | i960 | ia64 \ | ||
260 | + | ip2k | iq2000 \ | ||
261 | + | lm32 \ | ||
262 | + | m32c | m32r | m32rle | m68000 | m68k | m88k \ | ||
263 | + | maxq | mb | microblaze | mcore | mep | metag \ | ||
264 | + | mips | mipsbe | mipseb | mipsel | mipsle \ | ||
265 | + | mips16 \ | ||
266 | + | mips64 | mips64el \ | ||
267 | + | mips64octeon | mips64octeonel \ | ||
268 | + | mips64orion | mips64orionel \ | ||
269 | + | mips64r5900 | mips64r5900el \ | ||
270 | + | mips64vr | mips64vrel \ | ||
271 | + | mips64vr4100 | mips64vr4100el \ | ||
272 | + | mips64vr4300 | mips64vr4300el \ | ||
273 | + | mips64vr5000 | mips64vr5000el \ | ||
274 | + | mips64vr5900 | mips64vr5900el \ | ||
275 | + | mipsisa32 | mipsisa32el \ | ||
276 | + | mipsisa32r2 | mipsisa32r2el \ | ||
277 | + | mipsisa64 | mipsisa64el \ | ||
278 | + | mipsisa64r2 | mipsisa64r2el \ | ||
279 | + | mipsisa64sb1 | mipsisa64sb1el \ | ||
280 | + | mipsisa64sr71k | mipsisa64sr71kel \ | ||
281 | + | mipstx39 | mipstx39el \ | ||
282 | + | mn10200 | mn10300 \ | ||
283 | + | moxie \ | ||
284 | + | mt \ | ||
285 | + | msp430 \ | ||
286 | + | nds32 | nds32le | nds32be \ | ||
287 | + | nios | nios2 \ | ||
288 | + | ns16k | ns32k \ | ||
289 | + | or32 \ | ||
290 | + | pdp10 | pdp11 | pj | pjl \ | ||
291 | + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | ||
292 | + | pyramid \ | ||
293 | + | rx \ | ||
294 | + | score \ | ||
295 | + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | ||
296 | + | sh64 | sh64le \ | ||
297 | + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | ||
298 | + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | ||
299 | + | spu | strongarm \ | ||
300 | + | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ||
301 | + | ubicom32 \ | ||
302 | + | v850 | v850e \ | ||
303 | + | we32k \ | ||
304 | + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | ||
305 | + | z8k | z80) | ||
306 | + basic_machine=$basic_machine-unknown | ||
307 | + ;; | ||
308 | + c54x) | ||
309 | + basic_machine=tic54x-unknown | ||
310 | + ;; | ||
311 | + c55x) | ||
312 | + basic_machine=tic55x-unknown | ||
313 | + ;; | ||
314 | + c6x) | ||
315 | + basic_machine=tic6x-unknown | ||
316 | + ;; | ||
317 | + m6811 | m68hc11 | m6812 | m68hc12 | picochip) | ||
318 | + # Motorola 68HC11/12. | ||
319 | + basic_machine=$basic_machine-unknown | ||
320 | + os=-none | ||
321 | + ;; | ||
322 | + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) | ||
323 | + ;; | ||
324 | + ms1) | ||
325 | + basic_machine=mt-unknown | ||
326 | + ;; | ||
327 | + | ||
328 | + # We use `pc' rather than `unknown' | ||
329 | + # because (1) that's what they normally are, and | ||
330 | + # (2) the word "unknown" tends to confuse beginning users. | ||
331 | + i*86 | x86_64) | ||
332 | + basic_machine=$basic_machine-pc | ||
333 | + ;; | ||
334 | + # Object if more than one company name word. | ||
335 | + *-*-*) | ||
336 | + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | ||
337 | + exit 1 | ||
338 | + ;; | ||
339 | + # Recognize the basic CPU types with company name. | ||
340 | + 580-* \ | ||
341 | + | a29k-* \ | ||
342 | + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | ||
343 | + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | ||
344 | + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | ||
345 | + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | ||
346 | + | avr-* | avr32-* \ | ||
347 | + | bfin-* | bs2000-* \ | ||
348 | + | c[123]* | c30-* | [cjt]90-* | c4x-* \ | ||
349 | + | clipper-* | craynv-* | cydra-* \ | ||
350 | + | d10v-* | d30v-* | dlx-* \ | ||
351 | + | elxsi-* \ | ||
352 | + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | ||
353 | + | h8300-* | h8500-* \ | ||
354 | + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | ||
355 | + | i*86-* | i860-* | i960-* | ia64-* \ | ||
356 | + | ip2k-* | iq2000-* \ | ||
357 | + | lm32-* \ | ||
358 | + | m32c-* | m32r-* | m32rle-* \ | ||
359 | + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | ||
360 | + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | ||
361 | + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | ||
362 | + | mips16-* \ | ||
363 | + | mips64-* | mips64el-* \ | ||
364 | + | mips64octeon-* | mips64octeonel-* \ | ||
365 | + | mips64orion-* | mips64orionel-* \ | ||
366 | + | mips64r5900-* | mips64r5900el-* \ | ||
367 | + | mips64vr-* | mips64vrel-* \ | ||
368 | + | mips64vr4100-* | mips64vr4100el-* \ | ||
369 | + | mips64vr4300-* | mips64vr4300el-* \ | ||
370 | + | mips64vr5000-* | mips64vr5000el-* \ | ||
371 | + | mips64vr5900-* | mips64vr5900el-* \ | ||
372 | + | mipsisa32-* | mipsisa32el-* \ | ||
373 | + | mipsisa32r2-* | mipsisa32r2el-* \ | ||
374 | + | mipsisa64-* | mipsisa64el-* \ | ||
375 | + | mipsisa64r2-* | mipsisa64r2el-* \ | ||
376 | + | mipsisa64sb1-* | mipsisa64sb1el-* \ | ||
377 | + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | ||
378 | + | mipstx39-* | mipstx39el-* \ | ||
379 | + | mmix-* \ | ||
380 | + | mt-* \ | ||
381 | + | msp430-* \ | ||
382 | + | nds32-* | nds32le-* | nds32be-* \ | ||
383 | + | nios-* | nios2-* \ | ||
384 | + | none-* | np1-* | ns16k-* | ns32k-* \ | ||
385 | + | orion-* \ | ||
386 | + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | ||
387 | + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | ||
388 | + | pyramid-* \ | ||
389 | + | romp-* | rs6000-* | rx-* \ | ||
390 | + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | ||
391 | + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | ||
392 | + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | ||
393 | + | sparclite-* \ | ||
394 | + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | ||
395 | + | tahoe-* | thumb-* \ | ||
396 | + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | ||
397 | + | tile-* | tilegx-* \ | ||
398 | + | tron-* \ | ||
399 | + | ubicom32-* \ | ||
400 | + | v850-* | v850e-* | vax-* \ | ||
401 | + | we32k-* \ | ||
402 | + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | ||
403 | + | xstormy16-* | xtensa*-* \ | ||
404 | + | ymp-* \ | ||
405 | + | z8k-* | z80-*) | ||
406 | + ;; | ||
407 | + # Recognize the basic CPU types without company name, with glob match. | ||
408 | + xtensa*) | ||
409 | + basic_machine=$basic_machine-unknown | ||
410 | + ;; | ||
411 | + # Recognize the various machine names and aliases which stand | ||
412 | + # for a CPU type and a company and sometimes even an OS. | ||
413 | + 386bsd) | ||
414 | + basic_machine=i386-unknown | ||
415 | + os=-bsd | ||
416 | + ;; | ||
417 | + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) | ||
418 | + basic_machine=m68000-att | ||
419 | + ;; | ||
420 | + 3b*) | ||
421 | + basic_machine=we32k-att | ||
422 | + ;; | ||
423 | + a29khif) | ||
424 | + basic_machine=a29k-amd | ||
425 | + os=-udi | ||
426 | + ;; | ||
427 | + abacus) | ||
428 | + basic_machine=abacus-unknown | ||
429 | + ;; | ||
430 | + adobe68k) | ||
431 | + basic_machine=m68010-adobe | ||
432 | + os=-scout | ||
433 | + ;; | ||
434 | + alliant | fx80) | ||
435 | + basic_machine=fx80-alliant | ||
436 | + ;; | ||
437 | + altos | altos3068) | ||
438 | + basic_machine=m68k-altos | ||
439 | + ;; | ||
440 | + am29k) | ||
441 | + basic_machine=a29k-none | ||
442 | + os=-bsd | ||
443 | + ;; | ||
444 | + amd64) | ||
445 | + basic_machine=x86_64-pc | ||
446 | + ;; | ||
447 | + amd64-*) | ||
448 | + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
449 | + ;; | ||
450 | + amdahl) | ||
451 | + basic_machine=580-amdahl | ||
452 | + os=-sysv | ||
453 | + ;; | ||
454 | + amiga | amiga-*) | ||
455 | + basic_machine=m68k-unknown | ||
456 | + ;; | ||
457 | + amigaos | amigados) | ||
458 | + basic_machine=m68k-unknown | ||
459 | + os=-amigaos | ||
460 | + ;; | ||
461 | + amigaunix | amix) | ||
462 | + basic_machine=m68k-unknown | ||
463 | + os=-sysv4 | ||
464 | + ;; | ||
465 | + apollo68) | ||
466 | + basic_machine=m68k-apollo | ||
467 | + os=-sysv | ||
468 | + ;; | ||
469 | + apollo68bsd) | ||
470 | + basic_machine=m68k-apollo | ||
471 | + os=-bsd | ||
472 | + ;; | ||
473 | + aros) | ||
474 | + basic_machine=i386-pc | ||
475 | + os=-aros | ||
476 | + ;; | ||
477 | + aux) | ||
478 | + basic_machine=m68k-apple | ||
479 | + os=-aux | ||
480 | + ;; | ||
481 | + balance) | ||
482 | + basic_machine=ns32k-sequent | ||
483 | + os=-dynix | ||
484 | + ;; | ||
485 | + blackfin) | ||
486 | + basic_machine=bfin-unknown | ||
487 | + os=-linux | ||
488 | + ;; | ||
489 | + blackfin-*) | ||
490 | + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
491 | + os=-linux | ||
492 | + ;; | ||
493 | + bluegene*) | ||
494 | + basic_machine=powerpc-ibm | ||
495 | + os=-cnk | ||
496 | + ;; | ||
497 | + c54x-*) | ||
498 | + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
499 | + ;; | ||
500 | + c55x-*) | ||
501 | + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
502 | + ;; | ||
503 | + c6x-*) | ||
504 | + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
505 | + ;; | ||
506 | + c90) | ||
507 | + basic_machine=c90-cray | ||
508 | + os=-unicos | ||
509 | + ;; | ||
510 | + cegcc) | ||
511 | + basic_machine=arm-unknown | ||
512 | + os=-cegcc | ||
513 | + ;; | ||
514 | + convex-c1) | ||
515 | + basic_machine=c1-convex | ||
516 | + os=-bsd | ||
517 | + ;; | ||
518 | + convex-c2) | ||
519 | + basic_machine=c2-convex | ||
520 | + os=-bsd | ||
521 | + ;; | ||
522 | + convex-c32) | ||
523 | + basic_machine=c32-convex | ||
524 | + os=-bsd | ||
525 | + ;; | ||
526 | + convex-c34) | ||
527 | + basic_machine=c34-convex | ||
528 | + os=-bsd | ||
529 | + ;; | ||
530 | + convex-c38) | ||
531 | + basic_machine=c38-convex | ||
532 | + os=-bsd | ||
533 | + ;; | ||
534 | + cray | j90) | ||
535 | + basic_machine=j90-cray | ||
536 | + os=-unicos | ||
537 | + ;; | ||
538 | + craynv) | ||
539 | + basic_machine=craynv-cray | ||
540 | + os=-unicosmp | ||
541 | + ;; | ||
542 | + cr16 | cr16-*) | ||
543 | + basic_machine=cr16-unknown | ||
544 | + os=-elf | ||
545 | + ;; | ||
546 | + crds | unos) | ||
547 | + basic_machine=m68k-crds | ||
548 | + ;; | ||
549 | + crisv32 | crisv32-* | etraxfs*) | ||
550 | + basic_machine=crisv32-axis | ||
551 | + ;; | ||
552 | + cris | cris-* | etrax*) | ||
553 | + basic_machine=cris-axis | ||
554 | + ;; | ||
555 | + crx) | ||
556 | + basic_machine=crx-unknown | ||
557 | + os=-elf | ||
558 | + ;; | ||
559 | + da30 | da30-*) | ||
560 | + basic_machine=m68k-da30 | ||
561 | + ;; | ||
562 | + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) | ||
563 | + basic_machine=mips-dec | ||
564 | + ;; | ||
565 | + decsystem10* | dec10*) | ||
566 | + basic_machine=pdp10-dec | ||
567 | + os=-tops10 | ||
568 | + ;; | ||
569 | + decsystem20* | dec20*) | ||
570 | + basic_machine=pdp10-dec | ||
571 | + os=-tops20 | ||
572 | + ;; | ||
573 | + delta | 3300 | motorola-3300 | motorola-delta \ | ||
574 | + | 3300-motorola | delta-motorola) | ||
575 | + basic_machine=m68k-motorola | ||
576 | + ;; | ||
577 | + delta88) | ||
578 | + basic_machine=m88k-motorola | ||
579 | + os=-sysv3 | ||
580 | + ;; | ||
581 | + dicos) | ||
582 | + basic_machine=i686-pc | ||
583 | + os=-dicos | ||
584 | + ;; | ||
585 | + djgpp) | ||
586 | + basic_machine=i586-pc | ||
587 | + os=-msdosdjgpp | ||
588 | + ;; | ||
589 | + dpx20 | dpx20-*) | ||
590 | + basic_machine=rs6000-bull | ||
591 | + os=-bosx | ||
592 | + ;; | ||
593 | + dpx2* | dpx2*-bull) | ||
594 | + basic_machine=m68k-bull | ||
595 | + os=-sysv3 | ||
596 | + ;; | ||
597 | + ebmon29k) | ||
598 | + basic_machine=a29k-amd | ||
599 | + os=-ebmon | ||
600 | + ;; | ||
601 | + elxsi) | ||
602 | + basic_machine=elxsi-elxsi | ||
603 | + os=-bsd | ||
604 | + ;; | ||
605 | + encore | umax | mmax) | ||
606 | + basic_machine=ns32k-encore | ||
607 | + ;; | ||
608 | + es1800 | OSE68k | ose68k | ose | OSE) | ||
609 | + basic_machine=m68k-ericsson | ||
610 | + os=-ose | ||
611 | + ;; | ||
612 | + fx2800) | ||
613 | + basic_machine=i860-alliant | ||
614 | + ;; | ||
615 | + genix) | ||
616 | + basic_machine=ns32k-ns | ||
617 | + ;; | ||
618 | + gmicro) | ||
619 | + basic_machine=tron-gmicro | ||
620 | + os=-sysv | ||
621 | + ;; | ||
622 | + go32) | ||
623 | + basic_machine=i386-pc | ||
624 | + os=-go32 | ||
625 | + ;; | ||
626 | + h3050r* | hiux*) | ||
627 | + basic_machine=hppa1.1-hitachi | ||
628 | + os=-hiuxwe2 | ||
629 | + ;; | ||
630 | + h8300hms) | ||
631 | + basic_machine=h8300-hitachi | ||
632 | + os=-hms | ||
633 | + ;; | ||
634 | + h8300xray) | ||
635 | + basic_machine=h8300-hitachi | ||
636 | + os=-xray | ||
637 | + ;; | ||
638 | + h8500hms) | ||
639 | + basic_machine=h8500-hitachi | ||
640 | + os=-hms | ||
641 | + ;; | ||
642 | + harris) | ||
643 | + basic_machine=m88k-harris | ||
644 | + os=-sysv3 | ||
645 | + ;; | ||
646 | + hp300-*) | ||
647 | + basic_machine=m68k-hp | ||
648 | + ;; | ||
649 | + hp300bsd) | ||
650 | + basic_machine=m68k-hp | ||
651 | + os=-bsd | ||
652 | + ;; | ||
653 | + hp300hpux) | ||
654 | + basic_machine=m68k-hp | ||
655 | + os=-hpux | ||
656 | + ;; | ||
657 | + hp3k9[0-9][0-9] | hp9[0-9][0-9]) | ||
658 | + basic_machine=hppa1.0-hp | ||
659 | + ;; | ||
660 | + hp9k2[0-9][0-9] | hp9k31[0-9]) | ||
661 | + basic_machine=m68000-hp | ||
662 | + ;; | ||
663 | + hp9k3[2-9][0-9]) | ||
664 | + basic_machine=m68k-hp | ||
665 | + ;; | ||
666 | + hp9k6[0-9][0-9] | hp6[0-9][0-9]) | ||
667 | + basic_machine=hppa1.0-hp | ||
668 | + ;; | ||
669 | + hp9k7[0-79][0-9] | hp7[0-79][0-9]) | ||
670 | + basic_machine=hppa1.1-hp | ||
671 | + ;; | ||
672 | + hp9k78[0-9] | hp78[0-9]) | ||
673 | + # FIXME: really hppa2.0-hp | ||
674 | + basic_machine=hppa1.1-hp | ||
675 | + ;; | ||
676 | + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) | ||
677 | + # FIXME: really hppa2.0-hp | ||
678 | + basic_machine=hppa1.1-hp | ||
679 | + ;; | ||
680 | + hp9k8[0-9][13679] | hp8[0-9][13679]) | ||
681 | + basic_machine=hppa1.1-hp | ||
682 | + ;; | ||
683 | + hp9k8[0-9][0-9] | hp8[0-9][0-9]) | ||
684 | + basic_machine=hppa1.0-hp | ||
685 | + ;; | ||
686 | + hppa-next) | ||
687 | + os=-nextstep3 | ||
688 | + ;; | ||
689 | + hppaosf) | ||
690 | + basic_machine=hppa1.1-hp | ||
691 | + os=-osf | ||
692 | + ;; | ||
693 | + hppro) | ||
694 | + basic_machine=hppa1.1-hp | ||
695 | + os=-proelf | ||
696 | + ;; | ||
697 | + i370-ibm* | ibm*) | ||
698 | + basic_machine=i370-ibm | ||
699 | + ;; | ||
700 | +# I'm not sure what "Sysv32" means. Should this be sysv3.2? | ||
701 | + i*86v32) | ||
702 | + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | ||
703 | + os=-sysv32 | ||
704 | + ;; | ||
705 | + i*86v4*) | ||
706 | + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | ||
707 | + os=-sysv4 | ||
708 | + ;; | ||
709 | + i*86v) | ||
710 | + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | ||
711 | + os=-sysv | ||
712 | + ;; | ||
713 | + i*86sol2) | ||
714 | + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | ||
715 | + os=-solaris2 | ||
716 | + ;; | ||
717 | + i386mach) | ||
718 | + basic_machine=i386-mach | ||
719 | + os=-mach | ||
720 | + ;; | ||
721 | + i386-vsta | vsta) | ||
722 | + basic_machine=i386-unknown | ||
723 | + os=-vsta | ||
724 | + ;; | ||
725 | + iris | iris4d) | ||
726 | + basic_machine=mips-sgi | ||
727 | + case $os in | ||
728 | + -irix*) | ||
729 | + ;; | ||
730 | + *) | ||
731 | + os=-irix4 | ||
732 | + ;; | ||
733 | + esac | ||
734 | + ;; | ||
735 | + isi68 | isi) | ||
736 | + basic_machine=m68k-isi | ||
737 | + os=-sysv | ||
738 | + ;; | ||
739 | + m68knommu) | ||
740 | + basic_machine=m68k-unknown | ||
741 | + os=-linux | ||
742 | + ;; | ||
743 | + m68knommu-*) | ||
744 | + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
745 | + os=-linux | ||
746 | + ;; | ||
747 | + m88k-omron*) | ||
748 | + basic_machine=m88k-omron | ||
749 | + ;; | ||
750 | + magnum | m3230) | ||
751 | + basic_machine=mips-mips | ||
752 | + os=-sysv | ||
753 | + ;; | ||
754 | + merlin) | ||
755 | + basic_machine=ns32k-utek | ||
756 | + os=-sysv | ||
757 | + ;; | ||
758 | + microblaze) | ||
759 | + basic_machine=microblaze-xilinx | ||
760 | + ;; | ||
761 | + mingw32) | ||
762 | + basic_machine=i386-pc | ||
763 | + os=-mingw32 | ||
764 | + ;; | ||
765 | + mingw32ce) | ||
766 | + basic_machine=arm-unknown | ||
767 | + os=-mingw32ce | ||
768 | + ;; | ||
769 | + miniframe) | ||
770 | + basic_machine=m68000-convergent | ||
771 | + ;; | ||
772 | + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) | ||
773 | + basic_machine=m68k-atari | ||
774 | + os=-mint | ||
775 | + ;; | ||
776 | + mipsEE* | ee | ps2) | ||
777 | + basic_machine=mips64r5900el-scei | ||
778 | + case $os in | ||
779 | + -linux*) | ||
780 | + ;; | ||
781 | + *) | ||
782 | + os=-elf | ||
783 | + ;; | ||
784 | + esac | ||
785 | + ;; | ||
786 | + iop) | ||
787 | + basic_machine=mipsel-scei | ||
788 | + os=-irx | ||
789 | + ;; | ||
790 | + dvp) | ||
791 | + basic_machine=dvp-scei | ||
792 | + os=-elf | ||
793 | + ;; | ||
794 | + mips3*-*) | ||
795 | + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` | ||
796 | + ;; | ||
797 | + mips3*) | ||
798 | + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown | ||
799 | + ;; | ||
800 | + monitor) | ||
801 | + basic_machine=m68k-rom68k | ||
802 | + os=-coff | ||
803 | + ;; | ||
804 | + morphos) | ||
805 | + basic_machine=powerpc-unknown | ||
806 | + os=-morphos | ||
807 | + ;; | ||
808 | + msdos) | ||
809 | + basic_machine=i386-pc | ||
810 | + os=-msdos | ||
811 | + ;; | ||
812 | + ms1-*) | ||
813 | + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` | ||
814 | + ;; | ||
815 | + mvs) | ||
816 | + basic_machine=i370-ibm | ||
817 | + os=-mvs | ||
818 | + ;; | ||
819 | + ncr3000) | ||
820 | + basic_machine=i486-ncr | ||
821 | + os=-sysv4 | ||
822 | + ;; | ||
823 | + netbsd386) | ||
824 | + basic_machine=i386-unknown | ||
825 | + os=-netbsd | ||
826 | + ;; | ||
827 | + netwinder) | ||
828 | + basic_machine=armv4l-rebel | ||
829 | + os=-linux | ||
830 | + ;; | ||
831 | + news | news700 | news800 | news900) | ||
832 | + basic_machine=m68k-sony | ||
833 | + os=-newsos | ||
834 | + ;; | ||
835 | + news1000) | ||
836 | + basic_machine=m68030-sony | ||
837 | + os=-newsos | ||
838 | + ;; | ||
839 | + news-3600 | risc-news) | ||
840 | + basic_machine=mips-sony | ||
841 | + os=-newsos | ||
842 | + ;; | ||
843 | + necv70) | ||
844 | + basic_machine=v70-nec | ||
845 | + os=-sysv | ||
846 | + ;; | ||
847 | + next | m*-next ) | ||
848 | + basic_machine=m68k-next | ||
849 | + case $os in | ||
850 | + -nextstep* ) | ||
851 | + ;; | ||
852 | + -ns2*) | ||
853 | + os=-nextstep2 | ||
854 | + ;; | ||
855 | + *) | ||
856 | + os=-nextstep3 | ||
857 | + ;; | ||
858 | + esac | ||
859 | + ;; | ||
860 | + nh3000) | ||
861 | + basic_machine=m68k-harris | ||
862 | + os=-cxux | ||
863 | + ;; | ||
864 | + nh[45]000) | ||
865 | + basic_machine=m88k-harris | ||
866 | + os=-cxux | ||
867 | + ;; | ||
868 | + nindy960) | ||
869 | + basic_machine=i960-intel | ||
870 | + os=-nindy | ||
871 | + ;; | ||
872 | + mon960) | ||
873 | + basic_machine=i960-intel | ||
874 | + os=-mon960 | ||
875 | + ;; | ||
876 | + nonstopux) | ||
877 | + basic_machine=mips-compaq | ||
878 | + os=-nonstopux | ||
879 | + ;; | ||
880 | + np1) | ||
881 | + basic_machine=np1-gould | ||
882 | + ;; | ||
883 | + neo-tandem) | ||
884 | + basic_machine=neo-tandem | ||
885 | + ;; | ||
886 | + nse-tandem) | ||
887 | + basic_machine=nse-tandem | ||
888 | + ;; | ||
889 | + nsr-tandem) | ||
890 | + basic_machine=nsr-tandem | ||
891 | + ;; | ||
892 | + op50n-* | op60c-*) | ||
893 | + basic_machine=hppa1.1-oki | ||
894 | + os=-proelf | ||
895 | + ;; | ||
896 | + openrisc | openrisc-*) | ||
897 | + basic_machine=or32-unknown | ||
898 | + ;; | ||
899 | + os400) | ||
900 | + basic_machine=powerpc-ibm | ||
901 | + os=-os400 | ||
902 | + ;; | ||
903 | + OSE68000 | ose68000) | ||
904 | + basic_machine=m68000-ericsson | ||
905 | + os=-ose | ||
906 | + ;; | ||
907 | + os68k) | ||
908 | + basic_machine=m68k-none | ||
909 | + os=-os68k | ||
910 | + ;; | ||
911 | + pa-hitachi) | ||
912 | + basic_machine=hppa1.1-hitachi | ||
913 | + os=-hiuxwe2 | ||
914 | + ;; | ||
915 | + paragon) | ||
916 | + basic_machine=i860-intel | ||
917 | + os=-osf | ||
918 | + ;; | ||
919 | + parisc) | ||
920 | + basic_machine=hppa-unknown | ||
921 | + os=-linux | ||
922 | + ;; | ||
923 | + parisc-*) | ||
924 | + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
925 | + os=-linux | ||
926 | + ;; | ||
927 | + pbd) | ||
928 | + basic_machine=sparc-tti | ||
929 | + ;; | ||
930 | + pbb) | ||
931 | + basic_machine=m68k-tti | ||
932 | + ;; | ||
933 | + pc532 | pc532-*) | ||
934 | + basic_machine=ns32k-pc532 | ||
935 | + ;; | ||
936 | + pc98) | ||
937 | + basic_machine=i386-pc | ||
938 | + ;; | ||
939 | + pc98-*) | ||
940 | + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
941 | + ;; | ||
942 | + pentium | p5 | k5 | k6 | nexgen | viac3) | ||
943 | + basic_machine=i586-pc | ||
944 | + ;; | ||
945 | + pentiumpro | p6 | 6x86 | athlon | athlon_*) | ||
946 | + basic_machine=i686-pc | ||
947 | + ;; | ||
948 | + pentiumii | pentium2 | pentiumiii | pentium3) | ||
949 | + basic_machine=i686-pc | ||
950 | + ;; | ||
951 | + pentium4) | ||
952 | + basic_machine=i786-pc | ||
953 | + ;; | ||
954 | + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) | ||
955 | + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
956 | + ;; | ||
957 | + pentiumpro-* | p6-* | 6x86-* | athlon-*) | ||
958 | + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
959 | + ;; | ||
960 | + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) | ||
961 | + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
962 | + ;; | ||
963 | + pentium4-*) | ||
964 | + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
965 | + ;; | ||
966 | + pn) | ||
967 | + basic_machine=pn-gould | ||
968 | + ;; | ||
969 | + power) basic_machine=power-ibm | ||
970 | + ;; | ||
971 | + ppc) basic_machine=powerpc-unknown | ||
972 | + ;; | ||
973 | + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
974 | + ;; | ||
975 | + ppcle | powerpclittle | ppc-le | powerpc-little) | ||
976 | + basic_machine=powerpcle-unknown | ||
977 | + ;; | ||
978 | + ppcle-* | powerpclittle-*) | ||
979 | + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
980 | + ;; | ||
981 | + ppc64) basic_machine=powerpc64-unknown | ||
982 | + ;; | ||
983 | + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
984 | + ;; | ||
985 | + ppc64le | powerpc64little | ppc64-le | powerpc64-little) | ||
986 | + basic_machine=powerpc64le-unknown | ||
987 | + ;; | ||
988 | + ppc64le-* | powerpc64little-*) | ||
989 | + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
990 | + ;; | ||
991 | + ps2) | ||
992 | + basic_machine=i386-ibm | ||
993 | + ;; | ||
994 | + pw32) | ||
995 | + basic_machine=i586-unknown | ||
996 | + os=-pw32 | ||
997 | + ;; | ||
998 | + rdos) | ||
999 | + basic_machine=i386-pc | ||
1000 | + os=-rdos | ||
1001 | + ;; | ||
1002 | + rom68k) | ||
1003 | + basic_machine=m68k-rom68k | ||
1004 | + os=-coff | ||
1005 | + ;; | ||
1006 | + rm[46]00) | ||
1007 | + basic_machine=mips-siemens | ||
1008 | + ;; | ||
1009 | + rtpc | rtpc-*) | ||
1010 | + basic_machine=romp-ibm | ||
1011 | + ;; | ||
1012 | + s390 | s390-*) | ||
1013 | + basic_machine=s390-ibm | ||
1014 | + ;; | ||
1015 | + s390x | s390x-*) | ||
1016 | + basic_machine=s390x-ibm | ||
1017 | + ;; | ||
1018 | + sa29200) | ||
1019 | + basic_machine=a29k-amd | ||
1020 | + os=-udi | ||
1021 | + ;; | ||
1022 | + sb1) | ||
1023 | + basic_machine=mipsisa64sb1-unknown | ||
1024 | + ;; | ||
1025 | + sb1el) | ||
1026 | + basic_machine=mipsisa64sb1el-unknown | ||
1027 | + ;; | ||
1028 | + sde) | ||
1029 | + basic_machine=mipsisa32-sde | ||
1030 | + os=-elf | ||
1031 | + ;; | ||
1032 | + sei) | ||
1033 | + basic_machine=mips-sei | ||
1034 | + os=-seiux | ||
1035 | + ;; | ||
1036 | + sequent) | ||
1037 | + basic_machine=i386-sequent | ||
1038 | + ;; | ||
1039 | + sh) | ||
1040 | + basic_machine=sh-hitachi | ||
1041 | + os=-hms | ||
1042 | + ;; | ||
1043 | + sh5el) | ||
1044 | + basic_machine=sh5le-unknown | ||
1045 | + ;; | ||
1046 | + sh64) | ||
1047 | + basic_machine=sh64-unknown | ||
1048 | + ;; | ||
1049 | + sparclite-wrs | simso-wrs) | ||
1050 | + basic_machine=sparclite-wrs | ||
1051 | + os=-vxworks | ||
1052 | + ;; | ||
1053 | + sps7) | ||
1054 | + basic_machine=m68k-bull | ||
1055 | + os=-sysv2 | ||
1056 | + ;; | ||
1057 | + spur) | ||
1058 | + basic_machine=spur-unknown | ||
1059 | + ;; | ||
1060 | + st2000) | ||
1061 | + basic_machine=m68k-tandem | ||
1062 | + ;; | ||
1063 | + stratus) | ||
1064 | + basic_machine=i860-stratus | ||
1065 | + os=-sysv4 | ||
1066 | + ;; | ||
1067 | + sun2) | ||
1068 | + basic_machine=m68000-sun | ||
1069 | + ;; | ||
1070 | + sun2os3) | ||
1071 | + basic_machine=m68000-sun | ||
1072 | + os=-sunos3 | ||
1073 | + ;; | ||
1074 | + sun2os4) | ||
1075 | + basic_machine=m68000-sun | ||
1076 | + os=-sunos4 | ||
1077 | + ;; | ||
1078 | + sun3os3) | ||
1079 | + basic_machine=m68k-sun | ||
1080 | + os=-sunos3 | ||
1081 | + ;; | ||
1082 | + sun3os4) | ||
1083 | + basic_machine=m68k-sun | ||
1084 | + os=-sunos4 | ||
1085 | + ;; | ||
1086 | + sun4os3) | ||
1087 | + basic_machine=sparc-sun | ||
1088 | + os=-sunos3 | ||
1089 | + ;; | ||
1090 | + sun4os4) | ||
1091 | + basic_machine=sparc-sun | ||
1092 | + os=-sunos4 | ||
1093 | + ;; | ||
1094 | + sun4sol2) | ||
1095 | + basic_machine=sparc-sun | ||
1096 | + os=-solaris2 | ||
1097 | + ;; | ||
1098 | + sun3 | sun3-*) | ||
1099 | + basic_machine=m68k-sun | ||
1100 | + ;; | ||
1101 | + sun4) | ||
1102 | + basic_machine=sparc-sun | ||
1103 | + ;; | ||
1104 | + sun386 | sun386i | roadrunner) | ||
1105 | + basic_machine=i386-sun | ||
1106 | + ;; | ||
1107 | + sv1) | ||
1108 | + basic_machine=sv1-cray | ||
1109 | + os=-unicos | ||
1110 | + ;; | ||
1111 | + symmetry) | ||
1112 | + basic_machine=i386-sequent | ||
1113 | + os=-dynix | ||
1114 | + ;; | ||
1115 | + t3e) | ||
1116 | + basic_machine=alphaev5-cray | ||
1117 | + os=-unicos | ||
1118 | + ;; | ||
1119 | + t90) | ||
1120 | + basic_machine=t90-cray | ||
1121 | + os=-unicos | ||
1122 | + ;; | ||
1123 | + # This must be matched before tile*. | ||
1124 | + tilegx*) | ||
1125 | + basic_machine=tilegx-unknown | ||
1126 | + os=-linux-gnu | ||
1127 | + ;; | ||
1128 | + tile*) | ||
1129 | + basic_machine=tile-unknown | ||
1130 | + os=-linux-gnu | ||
1131 | + ;; | ||
1132 | + tx39) | ||
1133 | + basic_machine=mipstx39-unknown | ||
1134 | + ;; | ||
1135 | + tx39el) | ||
1136 | + basic_machine=mipstx39el-unknown | ||
1137 | + ;; | ||
1138 | + toad1) | ||
1139 | + basic_machine=pdp10-xkl | ||
1140 | + os=-tops20 | ||
1141 | + ;; | ||
1142 | + tower | tower-32) | ||
1143 | + basic_machine=m68k-ncr | ||
1144 | + ;; | ||
1145 | + tpf) | ||
1146 | + basic_machine=s390x-ibm | ||
1147 | + os=-tpf | ||
1148 | + ;; | ||
1149 | + udi29k) | ||
1150 | + basic_machine=a29k-amd | ||
1151 | + os=-udi | ||
1152 | + ;; | ||
1153 | + ultra3) | ||
1154 | + basic_machine=a29k-nyu | ||
1155 | + os=-sym1 | ||
1156 | + ;; | ||
1157 | + v810 | necv810) | ||
1158 | + basic_machine=v810-nec | ||
1159 | + os=-none | ||
1160 | + ;; | ||
1161 | + vaxv) | ||
1162 | + basic_machine=vax-dec | ||
1163 | + os=-sysv | ||
1164 | + ;; | ||
1165 | + vms) | ||
1166 | + basic_machine=vax-dec | ||
1167 | + os=-vms | ||
1168 | + ;; | ||
1169 | + vpp*|vx|vx-*) | ||
1170 | + basic_machine=f301-fujitsu | ||
1171 | + ;; | ||
1172 | + vxworks960) | ||
1173 | + basic_machine=i960-wrs | ||
1174 | + os=-vxworks | ||
1175 | + ;; | ||
1176 | + vxworks68) | ||
1177 | + basic_machine=m68k-wrs | ||
1178 | + os=-vxworks | ||
1179 | + ;; | ||
1180 | + vxworks29k) | ||
1181 | + basic_machine=a29k-wrs | ||
1182 | + os=-vxworks | ||
1183 | + ;; | ||
1184 | + w65*) | ||
1185 | + basic_machine=w65-wdc | ||
1186 | + os=-none | ||
1187 | + ;; | ||
1188 | + w89k-*) | ||
1189 | + basic_machine=hppa1.1-winbond | ||
1190 | + os=-proelf | ||
1191 | + ;; | ||
1192 | + xbox) | ||
1193 | + basic_machine=i686-pc | ||
1194 | + os=-mingw32 | ||
1195 | + ;; | ||
1196 | + xps | xps100) | ||
1197 | + basic_machine=xps100-honeywell | ||
1198 | + ;; | ||
1199 | + ymp) | ||
1200 | + basic_machine=ymp-cray | ||
1201 | + os=-unicos | ||
1202 | + ;; | ||
1203 | + z8k-*-coff) | ||
1204 | + basic_machine=z8k-unknown | ||
1205 | + os=-sim | ||
1206 | + ;; | ||
1207 | + z80-*-coff) | ||
1208 | + basic_machine=z80-unknown | ||
1209 | + os=-sim | ||
1210 | + ;; | ||
1211 | + none) | ||
1212 | + basic_machine=none-none | ||
1213 | + os=-none | ||
1214 | + ;; | ||
1215 | + | ||
1216 | +# Here we handle the default manufacturer of certain CPU types. It is in | ||
1217 | +# some cases the only manufacturer, in others, it is the most popular. | ||
1218 | + w89k) | ||
1219 | + basic_machine=hppa1.1-winbond | ||
1220 | + ;; | ||
1221 | + op50n) | ||
1222 | + basic_machine=hppa1.1-oki | ||
1223 | + ;; | ||
1224 | + op60c) | ||
1225 | + basic_machine=hppa1.1-oki | ||
1226 | + ;; | ||
1227 | + romp) | ||
1228 | + basic_machine=romp-ibm | ||
1229 | + ;; | ||
1230 | + mmix) | ||
1231 | + basic_machine=mmix-knuth | ||
1232 | + ;; | ||
1233 | + rs6000) | ||
1234 | + basic_machine=rs6000-ibm | ||
1235 | + ;; | ||
1236 | + vax) | ||
1237 | + basic_machine=vax-dec | ||
1238 | + ;; | ||
1239 | + pdp10) | ||
1240 | + # there are many clones, so DEC is not a safe bet | ||
1241 | + basic_machine=pdp10-unknown | ||
1242 | + ;; | ||
1243 | + pdp11) | ||
1244 | + basic_machine=pdp11-dec | ||
1245 | + ;; | ||
1246 | + we32k) | ||
1247 | + basic_machine=we32k-att | ||
1248 | + ;; | ||
1249 | + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) | ||
1250 | + basic_machine=sh-unknown | ||
1251 | + ;; | ||
1252 | + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) | ||
1253 | + basic_machine=sparc-sun | ||
1254 | + ;; | ||
1255 | + cydra) | ||
1256 | + basic_machine=cydra-cydrome | ||
1257 | + ;; | ||
1258 | + orion) | ||
1259 | + basic_machine=orion-highlevel | ||
1260 | + ;; | ||
1261 | + orion105) | ||
1262 | + basic_machine=clipper-highlevel | ||
1263 | + ;; | ||
1264 | + mac | mpw | mac-mpw) | ||
1265 | + basic_machine=m68k-apple | ||
1266 | + ;; | ||
1267 | + pmac | pmac-mpw) | ||
1268 | + basic_machine=powerpc-apple | ||
1269 | + ;; | ||
1270 | + *-unknown) | ||
1271 | + # Make sure to match an already-canonicalized machine name. | ||
1272 | + ;; | ||
1273 | + *) | ||
1274 | + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | ||
1275 | + exit 1 | ||
1276 | + ;; | ||
1277 | +esac | ||
1278 | + | ||
1279 | +# Here we canonicalize certain aliases for manufacturers. | ||
1280 | +case $basic_machine in | ||
1281 | + *-digital*) | ||
1282 | + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` | ||
1283 | + ;; | ||
1284 | + *-commodore*) | ||
1285 | + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` | ||
1286 | + ;; | ||
1287 | + *) | ||
1288 | + ;; | ||
1289 | +esac | ||
1290 | + | ||
1291 | +# Decode manufacturer-specific aliases for certain operating systems. | ||
1292 | + | ||
1293 | +if [ x"$os" != x"" ] | ||
1294 | +then | ||
1295 | +case $os in | ||
1296 | + # First match some system type aliases | ||
1297 | + # that might get confused with valid system types. | ||
1298 | + # -solaris* is a basic system type, with this one exception. | ||
1299 | + -auroraux) | ||
1300 | + os=-auroraux | ||
1301 | + ;; | ||
1302 | + -solaris1 | -solaris1.*) | ||
1303 | + os=`echo $os | sed -e 's|solaris1|sunos4|'` | ||
1304 | + ;; | ||
1305 | + -solaris) | ||
1306 | + os=-solaris2 | ||
1307 | + ;; | ||
1308 | + -svr4*) | ||
1309 | + os=-sysv4 | ||
1310 | + ;; | ||
1311 | + -unixware*) | ||
1312 | + os=-sysv4.2uw | ||
1313 | + ;; | ||
1314 | + -gnu/linux*) | ||
1315 | + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` | ||
1316 | + ;; | ||
1317 | + # First accept the basic system types. | ||
1318 | + # The portable systems comes first. | ||
1319 | + # Each alternative MUST END IN A *, to match a version number. | ||
1320 | + # -sysv* is not here because it comes later, after sysvr4. | ||
1321 | + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | ||
1322 | + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | ||
1323 | + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | ||
1324 | + | -sym* | -kopensolaris* \ | ||
1325 | + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | ||
1326 | + | -aos* | -aros* \ | ||
1327 | + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | ||
1328 | + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | ||
1329 | + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | ||
1330 | + | -openbsd* | -solidbsd* \ | ||
1331 | + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | ||
1332 | + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | ||
1333 | + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | ||
1334 | + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | ||
1335 | + | -chorusos* | -chorusrdb* | -cegcc* \ | ||
1336 | + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | ||
1337 | + | -mingw32* | -linux-gnu* | -linux-android* \ | ||
1338 | + | -linux-newlib* | -linux-uclibc* \ | ||
1339 | + | -uxpv* | -beos* | -mpeix* | -udk* \ | ||
1340 | + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | ||
1341 | + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | ||
1342 | + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -irx* \ | ||
1343 | + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | ||
1344 | + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | ||
1345 | + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | ||
1346 | + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) | ||
1347 | + # Remember, each alternative MUST END IN *, to match a version number. | ||
1348 | + ;; | ||
1349 | + -qnx*) | ||
1350 | + case $basic_machine in | ||
1351 | + x86-* | i*86-*) | ||
1352 | + ;; | ||
1353 | + *) | ||
1354 | + os=-nto$os | ||
1355 | + ;; | ||
1356 | + esac | ||
1357 | + ;; | ||
1358 | + -nto-qnx*) | ||
1359 | + ;; | ||
1360 | + -nto*) | ||
1361 | + os=`echo $os | sed -e 's|nto|nto-qnx|'` | ||
1362 | + ;; | ||
1363 | + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | ||
1364 | + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | ||
1365 | + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) | ||
1366 | + ;; | ||
1367 | + -mac*) | ||
1368 | + os=`echo $os | sed -e 's|mac|macos|'` | ||
1369 | + ;; | ||
1370 | + -linux-dietlibc) | ||
1371 | + os=-linux-dietlibc | ||
1372 | + ;; | ||
1373 | + -linux*) | ||
1374 | + os=`echo $os | sed -e 's|linux|linux-gnu|'` | ||
1375 | + ;; | ||
1376 | + -sunos5*) | ||
1377 | + os=`echo $os | sed -e 's|sunos5|solaris2|'` | ||
1378 | + ;; | ||
1379 | + -sunos6*) | ||
1380 | + os=`echo $os | sed -e 's|sunos6|solaris3|'` | ||
1381 | + ;; | ||
1382 | + -opened*) | ||
1383 | + os=-openedition | ||
1384 | + ;; | ||
1385 | + -os400*) | ||
1386 | + os=-os400 | ||
1387 | + ;; | ||
1388 | + -wince*) | ||
1389 | + os=-wince | ||
1390 | + ;; | ||
1391 | + -osfrose*) | ||
1392 | + os=-osfrose | ||
1393 | + ;; | ||
1394 | + -osf*) | ||
1395 | + os=-osf | ||
1396 | + ;; | ||
1397 | + -utek*) | ||
1398 | + os=-bsd | ||
1399 | + ;; | ||
1400 | + -dynix*) | ||
1401 | + os=-bsd | ||
1402 | + ;; | ||
1403 | + -acis*) | ||
1404 | + os=-aos | ||
1405 | + ;; | ||
1406 | + -atheos*) | ||
1407 | + os=-atheos | ||
1408 | + ;; | ||
1409 | + -syllable*) | ||
1410 | + os=-syllable | ||
1411 | + ;; | ||
1412 | + -386bsd) | ||
1413 | + os=-bsd | ||
1414 | + ;; | ||
1415 | + -ctix* | -uts*) | ||
1416 | + os=-sysv | ||
1417 | + ;; | ||
1418 | + -nova*) | ||
1419 | + os=-rtmk-nova | ||
1420 | + ;; | ||
1421 | + -ns2 ) | ||
1422 | + os=-nextstep2 | ||
1423 | + ;; | ||
1424 | + -nsk*) | ||
1425 | + os=-nsk | ||
1426 | + ;; | ||
1427 | + # Preserve the version number of sinix5. | ||
1428 | + -sinix5.*) | ||
1429 | + os=`echo $os | sed -e 's|sinix|sysv|'` | ||
1430 | + ;; | ||
1431 | + -sinix*) | ||
1432 | + os=-sysv4 | ||
1433 | + ;; | ||
1434 | + -tpf*) | ||
1435 | + os=-tpf | ||
1436 | + ;; | ||
1437 | + -triton*) | ||
1438 | + os=-sysv3 | ||
1439 | + ;; | ||
1440 | + -oss*) | ||
1441 | + os=-sysv3 | ||
1442 | + ;; | ||
1443 | + -svr4) | ||
1444 | + os=-sysv4 | ||
1445 | + ;; | ||
1446 | + -svr3) | ||
1447 | + os=-sysv3 | ||
1448 | + ;; | ||
1449 | + -sysvr4) | ||
1450 | + os=-sysv4 | ||
1451 | + ;; | ||
1452 | + # This must come after -sysvr4. | ||
1453 | + -sysv*) | ||
1454 | + ;; | ||
1455 | + -ose*) | ||
1456 | + os=-ose | ||
1457 | + ;; | ||
1458 | + -es1800*) | ||
1459 | + os=-ose | ||
1460 | + ;; | ||
1461 | + -xenix) | ||
1462 | + os=-xenix | ||
1463 | + ;; | ||
1464 | + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) | ||
1465 | + os=-mint | ||
1466 | + ;; | ||
1467 | + -aros*) | ||
1468 | + os=-aros | ||
1469 | + ;; | ||
1470 | + -kaos*) | ||
1471 | + os=-kaos | ||
1472 | + ;; | ||
1473 | + -zvmoe) | ||
1474 | + os=-zvmoe | ||
1475 | + ;; | ||
1476 | + -dicos*) | ||
1477 | + os=-dicos | ||
1478 | + ;; | ||
1479 | + -nacl*) | ||
1480 | + ;; | ||
1481 | + -none) | ||
1482 | + ;; | ||
1483 | + *) | ||
1484 | + # Get rid of the `-' at the beginning of $os. | ||
1485 | + os=`echo $os | sed 's/[^-]*-//'` | ||
1486 | + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 | ||
1487 | + exit 1 | ||
1488 | + ;; | ||
1489 | +esac | ||
1490 | +else | ||
1491 | + | ||
1492 | +# Here we handle the default operating systems that come with various machines. | ||
1493 | +# The value should be what the vendor currently ships out the door with their | ||
1494 | +# machine or put another way, the most popular os provided with the machine. | ||
1495 | + | ||
1496 | +# Note that if you're going to try to match "-MANUFACTURER" here (say, | ||
1497 | +# "-sun"), then you have to tell the case statement up towards the top | ||
1498 | +# that MANUFACTURER isn't an operating system. Otherwise, code above | ||
1499 | +# will signal an error saying that MANUFACTURER isn't an operating | ||
1500 | +# system, and we'll never get to this point. | ||
1501 | + | ||
1502 | +case $basic_machine in | ||
1503 | + score-*) | ||
1504 | + os=-elf | ||
1505 | + ;; | ||
1506 | + spu-*) | ||
1507 | + os=-elf | ||
1508 | + ;; | ||
1509 | + *-acorn) | ||
1510 | + os=-riscix1.2 | ||
1511 | + ;; | ||
1512 | + arm*-rebel) | ||
1513 | + os=-linux | ||
1514 | + ;; | ||
1515 | + arm*-semi) | ||
1516 | + os=-aout | ||
1517 | + ;; | ||
1518 | + c4x-* | tic4x-*) | ||
1519 | + os=-coff | ||
1520 | + ;; | ||
1521 | + tic54x-*) | ||
1522 | + os=-coff | ||
1523 | + ;; | ||
1524 | + tic55x-*) | ||
1525 | + os=-coff | ||
1526 | + ;; | ||
1527 | + tic6x-*) | ||
1528 | + os=-coff | ||
1529 | + ;; | ||
1530 | + # This must come before the *-dec entry. | ||
1531 | + pdp10-*) | ||
1532 | + os=-tops20 | ||
1533 | + ;; | ||
1534 | + pdp11-*) | ||
1535 | + os=-none | ||
1536 | + ;; | ||
1537 | + *-dec | vax-*) | ||
1538 | + os=-ultrix4.2 | ||
1539 | + ;; | ||
1540 | + m68*-apollo) | ||
1541 | + os=-domain | ||
1542 | + ;; | ||
1543 | + i386-sun) | ||
1544 | + os=-sunos4.0.2 | ||
1545 | + ;; | ||
1546 | + m68000-sun) | ||
1547 | + os=-sunos3 | ||
1548 | + # This also exists in the configure program, but was not the | ||
1549 | + # default. | ||
1550 | + # os=-sunos4 | ||
1551 | + ;; | ||
1552 | + m68*-cisco) | ||
1553 | + os=-aout | ||
1554 | + ;; | ||
1555 | + mep-*) | ||
1556 | + os=-elf | ||
1557 | + ;; | ||
1558 | + mips*-cisco) | ||
1559 | + os=-elf | ||
1560 | + ;; | ||
1561 | + mips*-*) | ||
1562 | + os=-elf | ||
1563 | + ;; | ||
1564 | + or32-*) | ||
1565 | + os=-coff | ||
1566 | + ;; | ||
1567 | + *-tti) # must be before sparc entry or we get the wrong os. | ||
1568 | + os=-sysv3 | ||
1569 | + ;; | ||
1570 | + sparc-* | *-sun) | ||
1571 | + os=-sunos4.1.1 | ||
1572 | + ;; | ||
1573 | + *-be) | ||
1574 | + os=-beos | ||
1575 | + ;; | ||
1576 | + *-haiku) | ||
1577 | + os=-haiku | ||
1578 | + ;; | ||
1579 | + *-ibm) | ||
1580 | + os=-aix | ||
1581 | + ;; | ||
1582 | + *-knuth) | ||
1583 | + os=-mmixware | ||
1584 | + ;; | ||
1585 | + *-wec) | ||
1586 | + os=-proelf | ||
1587 | + ;; | ||
1588 | + *-winbond) | ||
1589 | + os=-proelf | ||
1590 | + ;; | ||
1591 | + *-oki) | ||
1592 | + os=-proelf | ||
1593 | + ;; | ||
1594 | + *-hp) | ||
1595 | + os=-hpux | ||
1596 | + ;; | ||
1597 | + *-hitachi) | ||
1598 | + os=-hiux | ||
1599 | + ;; | ||
1600 | + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) | ||
1601 | + os=-sysv | ||
1602 | + ;; | ||
1603 | + *-cbm) | ||
1604 | + os=-amigaos | ||
1605 | + ;; | ||
1606 | + *-dg) | ||
1607 | + os=-dgux | ||
1608 | + ;; | ||
1609 | + *-dolphin) | ||
1610 | + os=-sysv3 | ||
1611 | + ;; | ||
1612 | + m68k-ccur) | ||
1613 | + os=-rtu | ||
1614 | + ;; | ||
1615 | + m88k-omron*) | ||
1616 | + os=-luna | ||
1617 | + ;; | ||
1618 | + *-next ) | ||
1619 | + os=-nextstep | ||
1620 | + ;; | ||
1621 | + *-sequent) | ||
1622 | + os=-ptx | ||
1623 | + ;; | ||
1624 | + *-crds) | ||
1625 | + os=-unos | ||
1626 | + ;; | ||
1627 | + *-ns) | ||
1628 | + os=-genix | ||
1629 | + ;; | ||
1630 | + i370-*) | ||
1631 | + os=-mvs | ||
1632 | + ;; | ||
1633 | + *-next) | ||
1634 | + os=-nextstep3 | ||
1635 | + ;; | ||
1636 | + *-gould) | ||
1637 | + os=-sysv | ||
1638 | + ;; | ||
1639 | + *-highlevel) | ||
1640 | + os=-bsd | ||
1641 | + ;; | ||
1642 | + *-encore) | ||
1643 | + os=-bsd | ||
1644 | + ;; | ||
1645 | + *-sgi) | ||
1646 | + os=-irix | ||
1647 | + ;; | ||
1648 | + *-siemens) | ||
1649 | + os=-sysv4 | ||
1650 | + ;; | ||
1651 | + *-masscomp) | ||
1652 | + os=-rtu | ||
1653 | + ;; | ||
1654 | + f30[01]-fujitsu | f700-fujitsu) | ||
1655 | + os=-uxpv | ||
1656 | + ;; | ||
1657 | + *-rom68k) | ||
1658 | + os=-coff | ||
1659 | + ;; | ||
1660 | + *-*bug) | ||
1661 | + os=-coff | ||
1662 | + ;; | ||
1663 | + *-apple) | ||
1664 | + os=-macos | ||
1665 | + ;; | ||
1666 | + *-atari*) | ||
1667 | + os=-mint | ||
1668 | + ;; | ||
1669 | + *) | ||
1670 | + os=-none | ||
1671 | + ;; | ||
1672 | +esac | ||
1673 | +fi | ||
1674 | + | ||
1675 | +# Here we handle the case where we know the os, and the CPU type, but not the | ||
1676 | +# manufacturer. We pick the logical manufacturer. | ||
1677 | +vendor=unknown | ||
1678 | +case $basic_machine in | ||
1679 | + *-unknown) | ||
1680 | + case $os in | ||
1681 | + -riscix*) | ||
1682 | + vendor=acorn | ||
1683 | + ;; | ||
1684 | + -sunos*) | ||
1685 | + vendor=sun | ||
1686 | + ;; | ||
1687 | + -cnk*|-aix*) | ||
1688 | + vendor=ibm | ||
1689 | + ;; | ||
1690 | + -beos*) | ||
1691 | + vendor=be | ||
1692 | + ;; | ||
1693 | + -hpux*) | ||
1694 | + vendor=hp | ||
1695 | + ;; | ||
1696 | + -mpeix*) | ||
1697 | + vendor=hp | ||
1698 | + ;; | ||
1699 | + -hiux*) | ||
1700 | + vendor=hitachi | ||
1701 | + ;; | ||
1702 | + -unos*) | ||
1703 | + vendor=crds | ||
1704 | + ;; | ||
1705 | + -dgux*) | ||
1706 | + vendor=dg | ||
1707 | + ;; | ||
1708 | + -luna*) | ||
1709 | + vendor=omron | ||
1710 | + ;; | ||
1711 | + -genix*) | ||
1712 | + vendor=ns | ||
1713 | + ;; | ||
1714 | + -mvs* | -opened*) | ||
1715 | + vendor=ibm | ||
1716 | + ;; | ||
1717 | + -os400*) | ||
1718 | + vendor=ibm | ||
1719 | + ;; | ||
1720 | + -ptx*) | ||
1721 | + vendor=sequent | ||
1722 | + ;; | ||
1723 | + -tpf*) | ||
1724 | + vendor=ibm | ||
1725 | + ;; | ||
1726 | + -vxsim* | -vxworks* | -windiss*) | ||
1727 | + vendor=wrs | ||
1728 | + ;; | ||
1729 | + -aux*) | ||
1730 | + vendor=apple | ||
1731 | + ;; | ||
1732 | + -hms*) | ||
1733 | + vendor=hitachi | ||
1734 | + ;; | ||
1735 | + -mpw* | -macos*) | ||
1736 | + vendor=apple | ||
1737 | + ;; | ||
1738 | + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) | ||
1739 | + vendor=atari | ||
1740 | + ;; | ||
1741 | + -vos*) | ||
1742 | + vendor=stratus | ||
1743 | + ;; | ||
1744 | + esac | ||
1745 | + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | ||
1746 | + ;; | ||
1747 | +esac | ||
1748 | + | ||
1749 | +echo $basic_machine$os | ||
1750 | +exit | ||
1751 | + | ||
1752 | +# Local variables: | ||
1753 | +# eval: (add-hook 'write-file-hooks 'time-stamp) | ||
1754 | +# time-stamp-start: "timestamp='" | ||
1755 | +# time-stamp-format: "%:y-%02m-%02d" | ||
1756 | +# time-stamp-end: "'" | ||
1757 | +# End: |
configure
0 → 100755
This diff could not be displayed because it is too large.
configure.ac
0 → 100644
1 | +# -*- Autoconf -*- | ||
2 | +# Process this file with autoconf to produce a configure script. | ||
3 | + | ||
4 | +AC_PREREQ([2.68]) | ||
5 | +AC_INIT([create_token], [0.0.1], [Georg Hopp <georg@steffers.org>]) | ||
6 | +AM_INIT_AUTOMAKE | ||
7 | +AC_COPYRIGHT([Copyright (C) 2011 Georg Hopp]) | ||
8 | +AC_REVISION([$Revision: 0.01 $]) | ||
9 | +AC_CONFIG_SRCDIR([createToken.c]) | ||
10 | +AC_CONFIG_HEADERS([config.h]) | ||
11 | +AC_CONFIG_MACRO_DIR([m4]) | ||
12 | + | ||
13 | +# Checks for programs. | ||
14 | +AC_PROG_CC | ||
15 | +AC_PROG_CC_C99 | ||
16 | +AC_PROG_LIBTOOL | ||
17 | +AM_PROG_CC_C_O | ||
18 | + | ||
19 | +# Checks for libraries. | ||
20 | +AC_CHECK_LIB([mcrypt], [mcrypt_module_open]) | ||
21 | +AC_CHECK_LIB([mhash], [mhash_keygen]) | ||
22 | +AC_CHECK_LIB([json], [json_object_new_object]) | ||
23 | + | ||
24 | +# Checks for header files. | ||
25 | +AC_CHECK_HEADERS([fcntl.h limits.h stddef.h stdlib.h string.h]) | ||
26 | + | ||
27 | +# Checks for typedefs, structures, and compiler characteristics. | ||
28 | +AC_HEADER_STDBOOL | ||
29 | +AC_C_INLINE | ||
30 | +AC_C_RESTRICT | ||
31 | +AC_TYPE_SIZE_T | ||
32 | + | ||
33 | +# Checks for library functions. | ||
34 | +AC_CHECK_FUNCS([memchr memmove memset]) | ||
35 | + | ||
36 | +AC_CONFIG_FILES([Makefile include/Makefile]) | ||
37 | +AC_OUTPUT |
@@ -5,11 +5,11 @@ | @@ -5,11 +5,11 @@ | ||
5 | #include <time.h> | 5 | #include <time.h> |
6 | #include <json/json.h> | 6 | #include <json/json.h> |
7 | 7 | ||
8 | -#include "bigpoint_cclass.h" | ||
9 | -#include "bigpoint_packet.h" | ||
10 | -#include "bigpoint_dyntype.h" | ||
11 | -#include "bigpoint_hash.h" | ||
12 | -#include "bigpoint_crypt.h" | 8 | +#include "bigpoint/bigpoint_cclass.h" |
9 | +#include "bigpoint/bigpoint_packet.h" | ||
10 | +#include "bigpoint/bigpoint_dyntype.h" | ||
11 | +#include "bigpoint/bigpoint_hash.h" | ||
12 | +#include "bigpoint/bigpoint_crypt.h" | ||
13 | #include "base64.h" | 13 | #include "base64.h" |
14 | 14 | ||
15 | 15 |
depcomp
0 → 100755
1 | +#! /bin/sh | ||
2 | +# depcomp - compile a program generating dependencies as side-effects | ||
3 | + | ||
4 | +scriptversion=2009-04-28.21; # UTC | ||
5 | + | ||
6 | +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free | ||
7 | +# Software Foundation, Inc. | ||
8 | + | ||
9 | +# This program is free software; you can redistribute it and/or modify | ||
10 | +# it under the terms of the GNU General Public License as published by | ||
11 | +# the Free Software Foundation; either version 2, or (at your option) | ||
12 | +# any later version. | ||
13 | + | ||
14 | +# This program is distributed in the hope that it will be useful, | ||
15 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | +# GNU General Public License for more details. | ||
18 | + | ||
19 | +# You should have received a copy of the GNU General Public License | ||
20 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
21 | + | ||
22 | +# As a special exception to the GNU General Public License, if you | ||
23 | +# distribute this file as part of a program that contains a | ||
24 | +# configuration script generated by Autoconf, you may include it under | ||
25 | +# the same distribution terms that you use for the rest of that program. | ||
26 | + | ||
27 | +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>. | ||
28 | + | ||
29 | +case $1 in | ||
30 | + '') | ||
31 | + echo "$0: No command. Try \`$0 --help' for more information." 1>&2 | ||
32 | + exit 1; | ||
33 | + ;; | ||
34 | + -h | --h*) | ||
35 | + cat <<\EOF | ||
36 | +Usage: depcomp [--help] [--version] PROGRAM [ARGS] | ||
37 | + | ||
38 | +Run PROGRAMS ARGS to compile a file, generating dependencies | ||
39 | +as side-effects. | ||
40 | + | ||
41 | +Environment variables: | ||
42 | + depmode Dependency tracking mode. | ||
43 | + source Source file read by `PROGRAMS ARGS'. | ||
44 | + object Object file output by `PROGRAMS ARGS'. | ||
45 | + DEPDIR directory where to store dependencies. | ||
46 | + depfile Dependency file to output. | ||
47 | + tmpdepfile Temporary file to use when outputing dependencies. | ||
48 | + libtool Whether libtool is used (yes/no). | ||
49 | + | ||
50 | +Report bugs to <bug-automake@gnu.org>. | ||
51 | +EOF | ||
52 | + exit $? | ||
53 | + ;; | ||
54 | + -v | --v*) | ||
55 | + echo "depcomp $scriptversion" | ||
56 | + exit $? | ||
57 | + ;; | ||
58 | +esac | ||
59 | + | ||
60 | +if test -z "$depmode" || test -z "$source" || test -z "$object"; then | ||
61 | + echo "depcomp: Variables source, object and depmode must be set" 1>&2 | ||
62 | + exit 1 | ||
63 | +fi | ||
64 | + | ||
65 | +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. | ||
66 | +depfile=${depfile-`echo "$object" | | ||
67 | + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} | ||
68 | +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} | ||
69 | + | ||
70 | +rm -f "$tmpdepfile" | ||
71 | + | ||
72 | +# Some modes work just like other modes, but use different flags. We | ||
73 | +# parameterize here, but still list the modes in the big case below, | ||
74 | +# to make depend.m4 easier to write. Note that we *cannot* use a case | ||
75 | +# here, because this file can only contain one case statement. | ||
76 | +if test "$depmode" = hp; then | ||
77 | + # HP compiler uses -M and no extra arg. | ||
78 | + gccflag=-M | ||
79 | + depmode=gcc | ||
80 | +fi | ||
81 | + | ||
82 | +if test "$depmode" = dashXmstdout; then | ||
83 | + # This is just like dashmstdout with a different argument. | ||
84 | + dashmflag=-xM | ||
85 | + depmode=dashmstdout | ||
86 | +fi | ||
87 | + | ||
88 | +cygpath_u="cygpath -u -f -" | ||
89 | +if test "$depmode" = msvcmsys; then | ||
90 | + # This is just like msvisualcpp but w/o cygpath translation. | ||
91 | + # Just convert the backslash-escaped backslashes to single forward | ||
92 | + # slashes to satisfy depend.m4 | ||
93 | + cygpath_u="sed s,\\\\\\\\,/,g" | ||
94 | + depmode=msvisualcpp | ||
95 | +fi | ||
96 | + | ||
97 | +case "$depmode" in | ||
98 | +gcc3) | ||
99 | +## gcc 3 implements dependency tracking that does exactly what | ||
100 | +## we want. Yay! Note: for some reason libtool 1.4 doesn't like | ||
101 | +## it if -MD -MP comes after the -MF stuff. Hmm. | ||
102 | +## Unfortunately, FreeBSD c89 acceptance of flags depends upon | ||
103 | +## the command line argument order; so add the flags where they | ||
104 | +## appear in depend2.am. Note that the slowdown incurred here | ||
105 | +## affects only configure: in makefiles, %FASTDEP% shortcuts this. | ||
106 | + for arg | ||
107 | + do | ||
108 | + case $arg in | ||
109 | + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; | ||
110 | + *) set fnord "$@" "$arg" ;; | ||
111 | + esac | ||
112 | + shift # fnord | ||
113 | + shift # $arg | ||
114 | + done | ||
115 | + "$@" | ||
116 | + stat=$? | ||
117 | + if test $stat -eq 0; then : | ||
118 | + else | ||
119 | + rm -f "$tmpdepfile" | ||
120 | + exit $stat | ||
121 | + fi | ||
122 | + mv "$tmpdepfile" "$depfile" | ||
123 | + ;; | ||
124 | + | ||
125 | +gcc) | ||
126 | +## There are various ways to get dependency output from gcc. Here's | ||
127 | +## why we pick this rather obscure method: | ||
128 | +## - Don't want to use -MD because we'd like the dependencies to end | ||
129 | +## up in a subdir. Having to rename by hand is ugly. | ||
130 | +## (We might end up doing this anyway to support other compilers.) | ||
131 | +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like | ||
132 | +## -MM, not -M (despite what the docs say). | ||
133 | +## - Using -M directly means running the compiler twice (even worse | ||
134 | +## than renaming). | ||
135 | + if test -z "$gccflag"; then | ||
136 | + gccflag=-MD, | ||
137 | + fi | ||
138 | + "$@" -Wp,"$gccflag$tmpdepfile" | ||
139 | + stat=$? | ||
140 | + if test $stat -eq 0; then : | ||
141 | + else | ||
142 | + rm -f "$tmpdepfile" | ||
143 | + exit $stat | ||
144 | + fi | ||
145 | + rm -f "$depfile" | ||
146 | + echo "$object : \\" > "$depfile" | ||
147 | + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | ||
148 | +## The second -e expression handles DOS-style file names with drive letters. | ||
149 | + sed -e 's/^[^:]*: / /' \ | ||
150 | + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" | ||
151 | +## This next piece of magic avoids the `deleted header file' problem. | ||
152 | +## The problem is that when a header file which appears in a .P file | ||
153 | +## is deleted, the dependency causes make to die (because there is | ||
154 | +## typically no way to rebuild the header). We avoid this by adding | ||
155 | +## dummy dependencies for each header file. Too bad gcc doesn't do | ||
156 | +## this for us directly. | ||
157 | + tr ' ' ' | ||
158 | +' < "$tmpdepfile" | | ||
159 | +## Some versions of gcc put a space before the `:'. On the theory | ||
160 | +## that the space means something, we add a space to the output as | ||
161 | +## well. | ||
162 | +## Some versions of the HPUX 10.20 sed can't process this invocation | ||
163 | +## correctly. Breaking it into two sed invocations is a workaround. | ||
164 | + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | ||
165 | + rm -f "$tmpdepfile" | ||
166 | + ;; | ||
167 | + | ||
168 | +hp) | ||
169 | + # This case exists only to let depend.m4 do its work. It works by | ||
170 | + # looking at the text of this script. This case will never be run, | ||
171 | + # since it is checked for above. | ||
172 | + exit 1 | ||
173 | + ;; | ||
174 | + | ||
175 | +sgi) | ||
176 | + if test "$libtool" = yes; then | ||
177 | + "$@" "-Wp,-MDupdate,$tmpdepfile" | ||
178 | + else | ||
179 | + "$@" -MDupdate "$tmpdepfile" | ||
180 | + fi | ||
181 | + stat=$? | ||
182 | + if test $stat -eq 0; then : | ||
183 | + else | ||
184 | + rm -f "$tmpdepfile" | ||
185 | + exit $stat | ||
186 | + fi | ||
187 | + rm -f "$depfile" | ||
188 | + | ||
189 | + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files | ||
190 | + echo "$object : \\" > "$depfile" | ||
191 | + | ||
192 | + # Clip off the initial element (the dependent). Don't try to be | ||
193 | + # clever and replace this with sed code, as IRIX sed won't handle | ||
194 | + # lines with more than a fixed number of characters (4096 in | ||
195 | + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; | ||
196 | + # the IRIX cc adds comments like `#:fec' to the end of the | ||
197 | + # dependency line. | ||
198 | + tr ' ' ' | ||
199 | +' < "$tmpdepfile" \ | ||
200 | + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ | ||
201 | + tr ' | ||
202 | +' ' ' >> "$depfile" | ||
203 | + echo >> "$depfile" | ||
204 | + | ||
205 | + # The second pass generates a dummy entry for each header file. | ||
206 | + tr ' ' ' | ||
207 | +' < "$tmpdepfile" \ | ||
208 | + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | ||
209 | + >> "$depfile" | ||
210 | + else | ||
211 | + # The sourcefile does not contain any dependencies, so just | ||
212 | + # store a dummy comment line, to avoid errors with the Makefile | ||
213 | + # "include basename.Plo" scheme. | ||
214 | + echo "#dummy" > "$depfile" | ||
215 | + fi | ||
216 | + rm -f "$tmpdepfile" | ||
217 | + ;; | ||
218 | + | ||
219 | +aix) | ||
220 | + # The C for AIX Compiler uses -M and outputs the dependencies | ||
221 | + # in a .u file. In older versions, this file always lives in the | ||
222 | + # current directory. Also, the AIX compiler puts `$object:' at the | ||
223 | + # start of each line; $object doesn't have directory information. | ||
224 | + # Version 6 uses the directory in both cases. | ||
225 | + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | ||
226 | + test "x$dir" = "x$object" && dir= | ||
227 | + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | ||
228 | + if test "$libtool" = yes; then | ||
229 | + tmpdepfile1=$dir$base.u | ||
230 | + tmpdepfile2=$base.u | ||
231 | + tmpdepfile3=$dir.libs/$base.u | ||
232 | + "$@" -Wc,-M | ||
233 | + else | ||
234 | + tmpdepfile1=$dir$base.u | ||
235 | + tmpdepfile2=$dir$base.u | ||
236 | + tmpdepfile3=$dir$base.u | ||
237 | + "$@" -M | ||
238 | + fi | ||
239 | + stat=$? | ||
240 | + | ||
241 | + if test $stat -eq 0; then : | ||
242 | + else | ||
243 | + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | ||
244 | + exit $stat | ||
245 | + fi | ||
246 | + | ||
247 | + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | ||
248 | + do | ||
249 | + test -f "$tmpdepfile" && break | ||
250 | + done | ||
251 | + if test -f "$tmpdepfile"; then | ||
252 | + # Each line is of the form `foo.o: dependent.h'. | ||
253 | + # Do two passes, one to just change these to | ||
254 | + # `$object: dependent.h' and one to simply `dependent.h:'. | ||
255 | + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | ||
256 | + # That's a tab and a space in the []. | ||
257 | + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | ||
258 | + else | ||
259 | + # The sourcefile does not contain any dependencies, so just | ||
260 | + # store a dummy comment line, to avoid errors with the Makefile | ||
261 | + # "include basename.Plo" scheme. | ||
262 | + echo "#dummy" > "$depfile" | ||
263 | + fi | ||
264 | + rm -f "$tmpdepfile" | ||
265 | + ;; | ||
266 | + | ||
267 | +icc) | ||
268 | + # Intel's C compiler understands `-MD -MF file'. However on | ||
269 | + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c | ||
270 | + # ICC 7.0 will fill foo.d with something like | ||
271 | + # foo.o: sub/foo.c | ||
272 | + # foo.o: sub/foo.h | ||
273 | + # which is wrong. We want: | ||
274 | + # sub/foo.o: sub/foo.c | ||
275 | + # sub/foo.o: sub/foo.h | ||
276 | + # sub/foo.c: | ||
277 | + # sub/foo.h: | ||
278 | + # ICC 7.1 will output | ||
279 | + # foo.o: sub/foo.c sub/foo.h | ||
280 | + # and will wrap long lines using \ : | ||
281 | + # foo.o: sub/foo.c ... \ | ||
282 | + # sub/foo.h ... \ | ||
283 | + # ... | ||
284 | + | ||
285 | + "$@" -MD -MF "$tmpdepfile" | ||
286 | + stat=$? | ||
287 | + if test $stat -eq 0; then : | ||
288 | + else | ||
289 | + rm -f "$tmpdepfile" | ||
290 | + exit $stat | ||
291 | + fi | ||
292 | + rm -f "$depfile" | ||
293 | + # Each line is of the form `foo.o: dependent.h', | ||
294 | + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. | ||
295 | + # Do two passes, one to just change these to | ||
296 | + # `$object: dependent.h' and one to simply `dependent.h:'. | ||
297 | + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" | ||
298 | + # Some versions of the HPUX 10.20 sed can't process this invocation | ||
299 | + # correctly. Breaking it into two sed invocations is a workaround. | ||
300 | + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | | ||
301 | + sed -e 's/$/ :/' >> "$depfile" | ||
302 | + rm -f "$tmpdepfile" | ||
303 | + ;; | ||
304 | + | ||
305 | +hp2) | ||
306 | + # The "hp" stanza above does not work with aCC (C++) and HP's ia64 | ||
307 | + # compilers, which have integrated preprocessors. The correct option | ||
308 | + # to use with these is +Maked; it writes dependencies to a file named | ||
309 | + # 'foo.d', which lands next to the object file, wherever that | ||
310 | + # happens to be. | ||
311 | + # Much of this is similar to the tru64 case; see comments there. | ||
312 | + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | ||
313 | + test "x$dir" = "x$object" && dir= | ||
314 | + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | ||
315 | + if test "$libtool" = yes; then | ||
316 | + tmpdepfile1=$dir$base.d | ||
317 | + tmpdepfile2=$dir.libs/$base.d | ||
318 | + "$@" -Wc,+Maked | ||
319 | + else | ||
320 | + tmpdepfile1=$dir$base.d | ||
321 | + tmpdepfile2=$dir$base.d | ||
322 | + "$@" +Maked | ||
323 | + fi | ||
324 | + stat=$? | ||
325 | + if test $stat -eq 0; then : | ||
326 | + else | ||
327 | + rm -f "$tmpdepfile1" "$tmpdepfile2" | ||
328 | + exit $stat | ||
329 | + fi | ||
330 | + | ||
331 | + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" | ||
332 | + do | ||
333 | + test -f "$tmpdepfile" && break | ||
334 | + done | ||
335 | + if test -f "$tmpdepfile"; then | ||
336 | + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" | ||
337 | + # Add `dependent.h:' lines. | ||
338 | + sed -ne '2,${ | ||
339 | + s/^ *// | ||
340 | + s/ \\*$// | ||
341 | + s/$/:/ | ||
342 | + p | ||
343 | + }' "$tmpdepfile" >> "$depfile" | ||
344 | + else | ||
345 | + echo "#dummy" > "$depfile" | ||
346 | + fi | ||
347 | + rm -f "$tmpdepfile" "$tmpdepfile2" | ||
348 | + ;; | ||
349 | + | ||
350 | +tru64) | ||
351 | + # The Tru64 compiler uses -MD to generate dependencies as a side | ||
352 | + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. | ||
353 | + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put | ||
354 | + # dependencies in `foo.d' instead, so we check for that too. | ||
355 | + # Subdirectories are respected. | ||
356 | + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | ||
357 | + test "x$dir" = "x$object" && dir= | ||
358 | + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | ||
359 | + | ||
360 | + if test "$libtool" = yes; then | ||
361 | + # With Tru64 cc, shared objects can also be used to make a | ||
362 | + # static library. This mechanism is used in libtool 1.4 series to | ||
363 | + # handle both shared and static libraries in a single compilation. | ||
364 | + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. | ||
365 | + # | ||
366 | + # With libtool 1.5 this exception was removed, and libtool now | ||
367 | + # generates 2 separate objects for the 2 libraries. These two | ||
368 | + # compilations output dependencies in $dir.libs/$base.o.d and | ||
369 | + # in $dir$base.o.d. We have to check for both files, because | ||
370 | + # one of the two compilations can be disabled. We should prefer | ||
371 | + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is | ||
372 | + # automatically cleaned when .libs/ is deleted, while ignoring | ||
373 | + # the former would cause a distcleancheck panic. | ||
374 | + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 | ||
375 | + tmpdepfile2=$dir$base.o.d # libtool 1.5 | ||
376 | + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 | ||
377 | + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 | ||
378 | + "$@" -Wc,-MD | ||
379 | + else | ||
380 | + tmpdepfile1=$dir$base.o.d | ||
381 | + tmpdepfile2=$dir$base.d | ||
382 | + tmpdepfile3=$dir$base.d | ||
383 | + tmpdepfile4=$dir$base.d | ||
384 | + "$@" -MD | ||
385 | + fi | ||
386 | + | ||
387 | + stat=$? | ||
388 | + if test $stat -eq 0; then : | ||
389 | + else | ||
390 | + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | ||
391 | + exit $stat | ||
392 | + fi | ||
393 | + | ||
394 | + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | ||
395 | + do | ||
396 | + test -f "$tmpdepfile" && break | ||
397 | + done | ||
398 | + if test -f "$tmpdepfile"; then | ||
399 | + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | ||
400 | + # That's a tab and a space in the []. | ||
401 | + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | ||
402 | + else | ||
403 | + echo "#dummy" > "$depfile" | ||
404 | + fi | ||
405 | + rm -f "$tmpdepfile" | ||
406 | + ;; | ||
407 | + | ||
408 | +#nosideeffect) | ||
409 | + # This comment above is used by automake to tell side-effect | ||
410 | + # dependency tracking mechanisms from slower ones. | ||
411 | + | ||
412 | +dashmstdout) | ||
413 | + # Important note: in order to support this mode, a compiler *must* | ||
414 | + # always write the preprocessed file to stdout, regardless of -o. | ||
415 | + "$@" || exit $? | ||
416 | + | ||
417 | + # Remove the call to Libtool. | ||
418 | + if test "$libtool" = yes; then | ||
419 | + while test "X$1" != 'X--mode=compile'; do | ||
420 | + shift | ||
421 | + done | ||
422 | + shift | ||
423 | + fi | ||
424 | + | ||
425 | + # Remove `-o $object'. | ||
426 | + IFS=" " | ||
427 | + for arg | ||
428 | + do | ||
429 | + case $arg in | ||
430 | + -o) | ||
431 | + shift | ||
432 | + ;; | ||
433 | + $object) | ||
434 | + shift | ||
435 | + ;; | ||
436 | + *) | ||
437 | + set fnord "$@" "$arg" | ||
438 | + shift # fnord | ||
439 | + shift # $arg | ||
440 | + ;; | ||
441 | + esac | ||
442 | + done | ||
443 | + | ||
444 | + test -z "$dashmflag" && dashmflag=-M | ||
445 | + # Require at least two characters before searching for `:' | ||
446 | + # in the target name. This is to cope with DOS-style filenames: | ||
447 | + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. | ||
448 | + "$@" $dashmflag | | ||
449 | + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" | ||
450 | + rm -f "$depfile" | ||
451 | + cat < "$tmpdepfile" > "$depfile" | ||
452 | + tr ' ' ' | ||
453 | +' < "$tmpdepfile" | \ | ||
454 | +## Some versions of the HPUX 10.20 sed can't process this invocation | ||
455 | +## correctly. Breaking it into two sed invocations is a workaround. | ||
456 | + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | ||
457 | + rm -f "$tmpdepfile" | ||
458 | + ;; | ||
459 | + | ||
460 | +dashXmstdout) | ||
461 | + # This case only exists to satisfy depend.m4. It is never actually | ||
462 | + # run, as this mode is specially recognized in the preamble. | ||
463 | + exit 1 | ||
464 | + ;; | ||
465 | + | ||
466 | +makedepend) | ||
467 | + "$@" || exit $? | ||
468 | + # Remove any Libtool call | ||
469 | + if test "$libtool" = yes; then | ||
470 | + while test "X$1" != 'X--mode=compile'; do | ||
471 | + shift | ||
472 | + done | ||
473 | + shift | ||
474 | + fi | ||
475 | + # X makedepend | ||
476 | + shift | ||
477 | + cleared=no eat=no | ||
478 | + for arg | ||
479 | + do | ||
480 | + case $cleared in | ||
481 | + no) | ||
482 | + set ""; shift | ||
483 | + cleared=yes ;; | ||
484 | + esac | ||
485 | + if test $eat = yes; then | ||
486 | + eat=no | ||
487 | + continue | ||
488 | + fi | ||
489 | + case "$arg" in | ||
490 | + -D*|-I*) | ||
491 | + set fnord "$@" "$arg"; shift ;; | ||
492 | + # Strip any option that makedepend may not understand. Remove | ||
493 | + # the object too, otherwise makedepend will parse it as a source file. | ||
494 | + -arch) | ||
495 | + eat=yes ;; | ||
496 | + -*|$object) | ||
497 | + ;; | ||
498 | + *) | ||
499 | + set fnord "$@" "$arg"; shift ;; | ||
500 | + esac | ||
501 | + done | ||
502 | + obj_suffix=`echo "$object" | sed 's/^.*\././'` | ||
503 | + touch "$tmpdepfile" | ||
504 | + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" | ||
505 | + rm -f "$depfile" | ||
506 | + cat < "$tmpdepfile" > "$depfile" | ||
507 | + sed '1,2d' "$tmpdepfile" | tr ' ' ' | ||
508 | +' | \ | ||
509 | +## Some versions of the HPUX 10.20 sed can't process this invocation | ||
510 | +## correctly. Breaking it into two sed invocations is a workaround. | ||
511 | + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | ||
512 | + rm -f "$tmpdepfile" "$tmpdepfile".bak | ||
513 | + ;; | ||
514 | + | ||
515 | +cpp) | ||
516 | + # Important note: in order to support this mode, a compiler *must* | ||
517 | + # always write the preprocessed file to stdout. | ||
518 | + "$@" || exit $? | ||
519 | + | ||
520 | + # Remove the call to Libtool. | ||
521 | + if test "$libtool" = yes; then | ||
522 | + while test "X$1" != 'X--mode=compile'; do | ||
523 | + shift | ||
524 | + done | ||
525 | + shift | ||
526 | + fi | ||
527 | + | ||
528 | + # Remove `-o $object'. | ||
529 | + IFS=" " | ||
530 | + for arg | ||
531 | + do | ||
532 | + case $arg in | ||
533 | + -o) | ||
534 | + shift | ||
535 | + ;; | ||
536 | + $object) | ||
537 | + shift | ||
538 | + ;; | ||
539 | + *) | ||
540 | + set fnord "$@" "$arg" | ||
541 | + shift # fnord | ||
542 | + shift # $arg | ||
543 | + ;; | ||
544 | + esac | ||
545 | + done | ||
546 | + | ||
547 | + "$@" -E | | ||
548 | + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | ||
549 | + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | | ||
550 | + sed '$ s: \\$::' > "$tmpdepfile" | ||
551 | + rm -f "$depfile" | ||
552 | + echo "$object : \\" > "$depfile" | ||
553 | + cat < "$tmpdepfile" >> "$depfile" | ||
554 | + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" | ||
555 | + rm -f "$tmpdepfile" | ||
556 | + ;; | ||
557 | + | ||
558 | +msvisualcpp) | ||
559 | + # Important note: in order to support this mode, a compiler *must* | ||
560 | + # always write the preprocessed file to stdout. | ||
561 | + "$@" || exit $? | ||
562 | + | ||
563 | + # Remove the call to Libtool. | ||
564 | + if test "$libtool" = yes; then | ||
565 | + while test "X$1" != 'X--mode=compile'; do | ||
566 | + shift | ||
567 | + done | ||
568 | + shift | ||
569 | + fi | ||
570 | + | ||
571 | + IFS=" " | ||
572 | + for arg | ||
573 | + do | ||
574 | + case "$arg" in | ||
575 | + -o) | ||
576 | + shift | ||
577 | + ;; | ||
578 | + $object) | ||
579 | + shift | ||
580 | + ;; | ||
581 | + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") | ||
582 | + set fnord "$@" | ||
583 | + shift | ||
584 | + shift | ||
585 | + ;; | ||
586 | + *) | ||
587 | + set fnord "$@" "$arg" | ||
588 | + shift | ||
589 | + shift | ||
590 | + ;; | ||
591 | + esac | ||
592 | + done | ||
593 | + "$@" -E 2>/dev/null | | ||
594 | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" | ||
595 | + rm -f "$depfile" | ||
596 | + echo "$object : \\" > "$depfile" | ||
597 | + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" | ||
598 | + echo " " >> "$depfile" | ||
599 | + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" | ||
600 | + rm -f "$tmpdepfile" | ||
601 | + ;; | ||
602 | + | ||
603 | +msvcmsys) | ||
604 | + # This case exists only to let depend.m4 do its work. It works by | ||
605 | + # looking at the text of this script. This case will never be run, | ||
606 | + # since it is checked for above. | ||
607 | + exit 1 | ||
608 | + ;; | ||
609 | + | ||
610 | +none) | ||
611 | + exec "$@" | ||
612 | + ;; | ||
613 | + | ||
614 | +*) | ||
615 | + echo "Unknown depmode $depmode" 1>&2 | ||
616 | + exit 1 | ||
617 | + ;; | ||
618 | +esac | ||
619 | + | ||
620 | +exit 0 | ||
621 | + | ||
622 | +# Local Variables: | ||
623 | +# mode: shell-script | ||
624 | +# sh-indentation: 2 | ||
625 | +# eval: (add-hook 'write-file-hooks 'time-stamp) | ||
626 | +# time-stamp-start: "scriptversion=" | ||
627 | +# time-stamp-format: "%:y-%02m-%02d.%02H" | ||
628 | +# time-stamp-time-zone: "UTC" | ||
629 | +# time-stamp-end: "; # UTC" | ||
630 | +# End: |
include/Makefile.am
0 → 100644
1 | +nobase_include_HEADERS = bigpoint/* |
include/Makefile.in
0 → 100644
1 | +# Makefile.in generated by automake 1.11.1 from Makefile.am. | ||
2 | +# @configure_input@ | ||
3 | + | ||
4 | +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||
5 | +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | ||
6 | +# Inc. | ||
7 | +# This Makefile.in is free software; the Free Software Foundation | ||
8 | +# gives unlimited permission to copy and/or distribute it, | ||
9 | +# with or without modifications, as long as this notice is preserved. | ||
10 | + | ||
11 | +# This program is distributed in the hope that it will be useful, | ||
12 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
13 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
14 | +# PARTICULAR PURPOSE. | ||
15 | + | ||
16 | +@SET_MAKE@ | ||
17 | + | ||
18 | +VPATH = @srcdir@ | ||
19 | +pkgdatadir = $(datadir)/@PACKAGE@ | ||
20 | +pkgincludedir = $(includedir)/@PACKAGE@ | ||
21 | +pkglibdir = $(libdir)/@PACKAGE@ | ||
22 | +pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
23 | +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
24 | +install_sh_DATA = $(install_sh) -c -m 644 | ||
25 | +install_sh_PROGRAM = $(install_sh) -c | ||
26 | +install_sh_SCRIPT = $(install_sh) -c | ||
27 | +INSTALL_HEADER = $(INSTALL_DATA) | ||
28 | +transform = $(program_transform_name) | ||
29 | +NORMAL_INSTALL = : | ||
30 | +PRE_INSTALL = : | ||
31 | +POST_INSTALL = : | ||
32 | +NORMAL_UNINSTALL = : | ||
33 | +PRE_UNINSTALL = : | ||
34 | +POST_UNINSTALL = : | ||
35 | +build_triplet = @build@ | ||
36 | +host_triplet = @host@ | ||
37 | +subdir = include | ||
38 | +DIST_COMMON = $(nobase_include_HEADERS) $(srcdir)/Makefile.am \ | ||
39 | + $(srcdir)/Makefile.in | ||
40 | +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
41 | +am__aclocal_m4_deps = $(top_srcdir)/configure.ac | ||
42 | +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
43 | + $(ACLOCAL_M4) | ||
44 | +mkinstalldirs = $(install_sh) -d | ||
45 | +CONFIG_HEADER = $(top_builddir)/config.h | ||
46 | +CONFIG_CLEAN_FILES = | ||
47 | +CONFIG_CLEAN_VPATH_FILES = | ||
48 | +SOURCES = | ||
49 | +DIST_SOURCES = | ||
50 | +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
51 | +am__vpath_adj = case $$p in \ | ||
52 | + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
53 | + *) f=$$p;; \ | ||
54 | + esac; | ||
55 | +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | ||
56 | +am__install_max = 40 | ||
57 | +am__nobase_strip_setup = \ | ||
58 | + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | ||
59 | +am__nobase_strip = \ | ||
60 | + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | ||
61 | +am__nobase_list = $(am__nobase_strip_setup); \ | ||
62 | + for p in $$list; do echo "$$p $$p"; done | \ | ||
63 | + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | ||
64 | + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | ||
65 | + if (++n[$$2] == $(am__install_max)) \ | ||
66 | + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | ||
67 | + END { for (dir in files) print dir, files[dir] }' | ||
68 | +am__base_list = \ | ||
69 | + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | ||
70 | + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | ||
71 | +am__installdirs = "$(DESTDIR)$(includedir)" | ||
72 | +HEADERS = $(nobase_include_HEADERS) | ||
73 | +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
74 | +ACLOCAL = @ACLOCAL@ | ||
75 | +AMTAR = @AMTAR@ | ||
76 | +AR = @AR@ | ||
77 | +AUTOCONF = @AUTOCONF@ | ||
78 | +AUTOHEADER = @AUTOHEADER@ | ||
79 | +AUTOMAKE = @AUTOMAKE@ | ||
80 | +AWK = @AWK@ | ||
81 | +CC = @CC@ | ||
82 | +CCDEPMODE = @CCDEPMODE@ | ||
83 | +CFLAGS = @CFLAGS@ | ||
84 | +CPP = @CPP@ | ||
85 | +CPPFLAGS = @CPPFLAGS@ | ||
86 | +CYGPATH_W = @CYGPATH_W@ | ||
87 | +DEFS = @DEFS@ | ||
88 | +DEPDIR = @DEPDIR@ | ||
89 | +DLLTOOL = @DLLTOOL@ | ||
90 | +DSYMUTIL = @DSYMUTIL@ | ||
91 | +DUMPBIN = @DUMPBIN@ | ||
92 | +ECHO_C = @ECHO_C@ | ||
93 | +ECHO_N = @ECHO_N@ | ||
94 | +ECHO_T = @ECHO_T@ | ||
95 | +EGREP = @EGREP@ | ||
96 | +EXEEXT = @EXEEXT@ | ||
97 | +FGREP = @FGREP@ | ||
98 | +GREP = @GREP@ | ||
99 | +INSTALL = @INSTALL@ | ||
100 | +INSTALL_DATA = @INSTALL_DATA@ | ||
101 | +INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
102 | +INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
103 | +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
104 | +LD = @LD@ | ||
105 | +LDFLAGS = @LDFLAGS@ | ||
106 | +LIBOBJS = @LIBOBJS@ | ||
107 | +LIBS = @LIBS@ | ||
108 | +LIBTOOL = @LIBTOOL@ | ||
109 | +LIPO = @LIPO@ | ||
110 | +LN_S = @LN_S@ | ||
111 | +LTLIBOBJS = @LTLIBOBJS@ | ||
112 | +MAKEINFO = @MAKEINFO@ | ||
113 | +MANIFEST_TOOL = @MANIFEST_TOOL@ | ||
114 | +MKDIR_P = @MKDIR_P@ | ||
115 | +NM = @NM@ | ||
116 | +NMEDIT = @NMEDIT@ | ||
117 | +OBJDUMP = @OBJDUMP@ | ||
118 | +OBJEXT = @OBJEXT@ | ||
119 | +OTOOL = @OTOOL@ | ||
120 | +OTOOL64 = @OTOOL64@ | ||
121 | +PACKAGE = @PACKAGE@ | ||
122 | +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
123 | +PACKAGE_NAME = @PACKAGE_NAME@ | ||
124 | +PACKAGE_STRING = @PACKAGE_STRING@ | ||
125 | +PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
126 | +PACKAGE_URL = @PACKAGE_URL@ | ||
127 | +PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
128 | +PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
129 | +RANLIB = @RANLIB@ | ||
130 | +SED = @SED@ | ||
131 | +SET_MAKE = @SET_MAKE@ | ||
132 | +SHELL = @SHELL@ | ||
133 | +STRIP = @STRIP@ | ||
134 | +VERSION = @VERSION@ | ||
135 | +abs_builddir = @abs_builddir@ | ||
136 | +abs_srcdir = @abs_srcdir@ | ||
137 | +abs_top_builddir = @abs_top_builddir@ | ||
138 | +abs_top_srcdir = @abs_top_srcdir@ | ||
139 | +ac_ct_AR = @ac_ct_AR@ | ||
140 | +ac_ct_CC = @ac_ct_CC@ | ||
141 | +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
142 | +am__include = @am__include@ | ||
143 | +am__leading_dot = @am__leading_dot@ | ||
144 | +am__quote = @am__quote@ | ||
145 | +am__tar = @am__tar@ | ||
146 | +am__untar = @am__untar@ | ||
147 | +bindir = @bindir@ | ||
148 | +build = @build@ | ||
149 | +build_alias = @build_alias@ | ||
150 | +build_cpu = @build_cpu@ | ||
151 | +build_os = @build_os@ | ||
152 | +build_vendor = @build_vendor@ | ||
153 | +builddir = @builddir@ | ||
154 | +datadir = @datadir@ | ||
155 | +datarootdir = @datarootdir@ | ||
156 | +docdir = @docdir@ | ||
157 | +dvidir = @dvidir@ | ||
158 | +exec_prefix = @exec_prefix@ | ||
159 | +host = @host@ | ||
160 | +host_alias = @host_alias@ | ||
161 | +host_cpu = @host_cpu@ | ||
162 | +host_os = @host_os@ | ||
163 | +host_vendor = @host_vendor@ | ||
164 | +htmldir = @htmldir@ | ||
165 | +includedir = @includedir@ | ||
166 | +infodir = @infodir@ | ||
167 | +install_sh = @install_sh@ | ||
168 | +libdir = @libdir@ | ||
169 | +libexecdir = @libexecdir@ | ||
170 | +localedir = @localedir@ | ||
171 | +localstatedir = @localstatedir@ | ||
172 | +mandir = @mandir@ | ||
173 | +mkdir_p = @mkdir_p@ | ||
174 | +oldincludedir = @oldincludedir@ | ||
175 | +pdfdir = @pdfdir@ | ||
176 | +prefix = @prefix@ | ||
177 | +program_transform_name = @program_transform_name@ | ||
178 | +psdir = @psdir@ | ||
179 | +sbindir = @sbindir@ | ||
180 | +sharedstatedir = @sharedstatedir@ | ||
181 | +srcdir = @srcdir@ | ||
182 | +sysconfdir = @sysconfdir@ | ||
183 | +target_alias = @target_alias@ | ||
184 | +top_build_prefix = @top_build_prefix@ | ||
185 | +top_builddir = @top_builddir@ | ||
186 | +top_srcdir = @top_srcdir@ | ||
187 | +nobase_include_HEADERS = bigpoint/* | ||
188 | +all: all-am | ||
189 | + | ||
190 | +.SUFFIXES: | ||
191 | +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
192 | + @for dep in $?; do \ | ||
193 | + case '$(am__configure_deps)' in \ | ||
194 | + *$$dep*) \ | ||
195 | + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
196 | + && { if test -f $@; then exit 0; else break; fi; }; \ | ||
197 | + exit 1;; \ | ||
198 | + esac; \ | ||
199 | + done; \ | ||
200 | + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/Makefile'; \ | ||
201 | + $(am__cd) $(top_srcdir) && \ | ||
202 | + $(AUTOMAKE) --gnu include/Makefile | ||
203 | +.PRECIOUS: Makefile | ||
204 | +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
205 | + @case '$?' in \ | ||
206 | + *config.status*) \ | ||
207 | + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
208 | + *) \ | ||
209 | + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
210 | + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
211 | + esac; | ||
212 | + | ||
213 | +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
214 | + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
215 | + | ||
216 | +$(top_srcdir)/configure: $(am__configure_deps) | ||
217 | + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
218 | +$(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
219 | + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
220 | +$(am__aclocal_m4_deps): | ||
221 | + | ||
222 | +mostlyclean-libtool: | ||
223 | + -rm -f *.lo | ||
224 | + | ||
225 | +clean-libtool: | ||
226 | + -rm -rf .libs _libs | ||
227 | +install-nobase_includeHEADERS: $(nobase_include_HEADERS) | ||
228 | + @$(NORMAL_INSTALL) | ||
229 | + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)" | ||
230 | + @list='$(nobase_include_HEADERS)'; test -n "$(includedir)" || list=; \ | ||
231 | + $(am__nobase_list) | while read dir files; do \ | ||
232 | + xfiles=; for file in $$files; do \ | ||
233 | + if test -f "$$file"; then xfiles="$$xfiles $$file"; \ | ||
234 | + else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \ | ||
235 | + test -z "$$xfiles" || { \ | ||
236 | + test "x$$dir" = x. || { \ | ||
237 | + echo "$(MKDIR_P) '$(DESTDIR)$(includedir)/$$dir'"; \ | ||
238 | + $(MKDIR_P) "$(DESTDIR)$(includedir)/$$dir"; }; \ | ||
239 | + echo " $(INSTALL_HEADER) $$xfiles '$(DESTDIR)$(includedir)/$$dir'"; \ | ||
240 | + $(INSTALL_HEADER) $$xfiles "$(DESTDIR)$(includedir)/$$dir" || exit $$?; }; \ | ||
241 | + done | ||
242 | + | ||
243 | +uninstall-nobase_includeHEADERS: | ||
244 | + @$(NORMAL_UNINSTALL) | ||
245 | + @list='$(nobase_include_HEADERS)'; test -n "$(includedir)" || list=; \ | ||
246 | + $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \ | ||
247 | + test -n "$$files" || exit 0; \ | ||
248 | + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \ | ||
249 | + cd "$(DESTDIR)$(includedir)" && rm -f $$files | ||
250 | +tags: TAGS | ||
251 | +TAGS: | ||
252 | + | ||
253 | +ctags: CTAGS | ||
254 | +CTAGS: | ||
255 | + | ||
256 | + | ||
257 | +distdir: $(DISTFILES) | ||
258 | + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
259 | + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
260 | + list='$(DISTFILES)'; \ | ||
261 | + dist_files=`for file in $$list; do echo $$file; done | \ | ||
262 | + sed -e "s|^$$srcdirstrip/||;t" \ | ||
263 | + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
264 | + case $$dist_files in \ | ||
265 | + */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
266 | + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
267 | + sort -u` ;; \ | ||
268 | + esac; \ | ||
269 | + for file in $$dist_files; do \ | ||
270 | + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
271 | + if test -d $$d/$$file; then \ | ||
272 | + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
273 | + if test -d "$(distdir)/$$file"; then \ | ||
274 | + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
275 | + fi; \ | ||
276 | + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
277 | + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
278 | + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
279 | + fi; \ | ||
280 | + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
281 | + else \ | ||
282 | + test -f "$(distdir)/$$file" \ | ||
283 | + || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
284 | + || exit 1; \ | ||
285 | + fi; \ | ||
286 | + done | ||
287 | +check-am: all-am | ||
288 | +check: check-am | ||
289 | +all-am: Makefile $(HEADERS) | ||
290 | +installdirs: | ||
291 | + for dir in "$(DESTDIR)$(includedir)"; do \ | ||
292 | + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
293 | + done | ||
294 | +install: install-am | ||
295 | +install-exec: install-exec-am | ||
296 | +install-data: install-data-am | ||
297 | +uninstall: uninstall-am | ||
298 | + | ||
299 | +install-am: all-am | ||
300 | + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
301 | + | ||
302 | +installcheck: installcheck-am | ||
303 | +install-strip: | ||
304 | + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
305 | + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
306 | + `test -z '$(STRIP)' || \ | ||
307 | + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
308 | +mostlyclean-generic: | ||
309 | + | ||
310 | +clean-generic: | ||
311 | + | ||
312 | +distclean-generic: | ||
313 | + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
314 | + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
315 | + | ||
316 | +maintainer-clean-generic: | ||
317 | + @echo "This command is intended for maintainers to use" | ||
318 | + @echo "it deletes files that may require special tools to rebuild." | ||
319 | +clean: clean-am | ||
320 | + | ||
321 | +clean-am: clean-generic clean-libtool mostlyclean-am | ||
322 | + | ||
323 | +distclean: distclean-am | ||
324 | + -rm -f Makefile | ||
325 | +distclean-am: clean-am distclean-generic | ||
326 | + | ||
327 | +dvi: dvi-am | ||
328 | + | ||
329 | +dvi-am: | ||
330 | + | ||
331 | +html: html-am | ||
332 | + | ||
333 | +html-am: | ||
334 | + | ||
335 | +info: info-am | ||
336 | + | ||
337 | +info-am: | ||
338 | + | ||
339 | +install-data-am: install-nobase_includeHEADERS | ||
340 | + | ||
341 | +install-dvi: install-dvi-am | ||
342 | + | ||
343 | +install-dvi-am: | ||
344 | + | ||
345 | +install-exec-am: | ||
346 | + | ||
347 | +install-html: install-html-am | ||
348 | + | ||
349 | +install-html-am: | ||
350 | + | ||
351 | +install-info: install-info-am | ||
352 | + | ||
353 | +install-info-am: | ||
354 | + | ||
355 | +install-man: | ||
356 | + | ||
357 | +install-pdf: install-pdf-am | ||
358 | + | ||
359 | +install-pdf-am: | ||
360 | + | ||
361 | +install-ps: install-ps-am | ||
362 | + | ||
363 | +install-ps-am: | ||
364 | + | ||
365 | +installcheck-am: | ||
366 | + | ||
367 | +maintainer-clean: maintainer-clean-am | ||
368 | + -rm -f Makefile | ||
369 | +maintainer-clean-am: distclean-am maintainer-clean-generic | ||
370 | + | ||
371 | +mostlyclean: mostlyclean-am | ||
372 | + | ||
373 | +mostlyclean-am: mostlyclean-generic mostlyclean-libtool | ||
374 | + | ||
375 | +pdf: pdf-am | ||
376 | + | ||
377 | +pdf-am: | ||
378 | + | ||
379 | +ps: ps-am | ||
380 | + | ||
381 | +ps-am: | ||
382 | + | ||
383 | +uninstall-am: uninstall-nobase_includeHEADERS | ||
384 | + | ||
385 | +.MAKE: install-am install-strip | ||
386 | + | ||
387 | +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ | ||
388 | + distclean distclean-generic distclean-libtool distdir dvi \ | ||
389 | + dvi-am html html-am info info-am install install-am \ | ||
390 | + install-data install-data-am install-dvi install-dvi-am \ | ||
391 | + install-exec install-exec-am install-html install-html-am \ | ||
392 | + install-info install-info-am install-man \ | ||
393 | + install-nobase_includeHEADERS install-pdf install-pdf-am \ | ||
394 | + install-ps install-ps-am install-strip installcheck \ | ||
395 | + installcheck-am installdirs maintainer-clean \ | ||
396 | + maintainer-clean-generic mostlyclean mostlyclean-generic \ | ||
397 | + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ | ||
398 | + uninstall-nobase_includeHEADERS | ||
399 | + | ||
400 | + | ||
401 | +# Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
402 | +# Otherwise a system limit (for SysV at least) may be exceeded. | ||
403 | +.NOEXPORT: |
include/bigpoint/bigpoint.h
0 → 100644
install-sh
0 → 100755
1 | +#!/bin/sh | ||
2 | +# install - install a program, script, or datafile | ||
3 | + | ||
4 | +scriptversion=2009-04-28.21; # UTC | ||
5 | + | ||
6 | +# This originates from X11R5 (mit/util/scripts/install.sh), which was | ||
7 | +# later released in X11R6 (xc/config/util/install.sh) with the | ||
8 | +# following copyright and license. | ||
9 | +# | ||
10 | +# Copyright (C) 1994 X Consortium | ||
11 | +# | ||
12 | +# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
13 | +# of this software and associated documentation files (the "Software"), to | ||
14 | +# deal in the Software without restriction, including without limitation the | ||
15 | +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
16 | +# sell copies of the Software, and to permit persons to whom the Software is | ||
17 | +# furnished to do so, subject to the following conditions: | ||
18 | +# | ||
19 | +# The above copyright notice and this permission notice shall be included in | ||
20 | +# all copies or substantial portions of the Software. | ||
21 | +# | ||
22 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
23 | +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
24 | +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
25 | +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
26 | +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- | ||
27 | +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
28 | +# | ||
29 | +# Except as contained in this notice, the name of the X Consortium shall not | ||
30 | +# be used in advertising or otherwise to promote the sale, use or other deal- | ||
31 | +# ings in this Software without prior written authorization from the X Consor- | ||
32 | +# tium. | ||
33 | +# | ||
34 | +# | ||
35 | +# FSF changes to this file are in the public domain. | ||
36 | +# | ||
37 | +# Calling this script install-sh is preferred over install.sh, to prevent | ||
38 | +# `make' implicit rules from creating a file called install from it | ||
39 | +# when there is no Makefile. | ||
40 | +# | ||
41 | +# This script is compatible with the BSD install script, but was written | ||
42 | +# from scratch. | ||
43 | + | ||
44 | +nl=' | ||
45 | +' | ||
46 | +IFS=" "" $nl" | ||
47 | + | ||
48 | +# set DOITPROG to echo to test this script | ||
49 | + | ||
50 | +# Don't use :- since 4.3BSD and earlier shells don't like it. | ||
51 | +doit=${DOITPROG-} | ||
52 | +if test -z "$doit"; then | ||
53 | + doit_exec=exec | ||
54 | +else | ||
55 | + doit_exec=$doit | ||
56 | +fi | ||
57 | + | ||
58 | +# Put in absolute file names if you don't have them in your path; | ||
59 | +# or use environment vars. | ||
60 | + | ||
61 | +chgrpprog=${CHGRPPROG-chgrp} | ||
62 | +chmodprog=${CHMODPROG-chmod} | ||
63 | +chownprog=${CHOWNPROG-chown} | ||
64 | +cmpprog=${CMPPROG-cmp} | ||
65 | +cpprog=${CPPROG-cp} | ||
66 | +mkdirprog=${MKDIRPROG-mkdir} | ||
67 | +mvprog=${MVPROG-mv} | ||
68 | +rmprog=${RMPROG-rm} | ||
69 | +stripprog=${STRIPPROG-strip} | ||
70 | + | ||
71 | +posix_glob='?' | ||
72 | +initialize_posix_glob=' | ||
73 | + test "$posix_glob" != "?" || { | ||
74 | + if (set -f) 2>/dev/null; then | ||
75 | + posix_glob= | ||
76 | + else | ||
77 | + posix_glob=: | ||
78 | + fi | ||
79 | + } | ||
80 | +' | ||
81 | + | ||
82 | +posix_mkdir= | ||
83 | + | ||
84 | +# Desired mode of installed file. | ||
85 | +mode=0755 | ||
86 | + | ||
87 | +chgrpcmd= | ||
88 | +chmodcmd=$chmodprog | ||
89 | +chowncmd= | ||
90 | +mvcmd=$mvprog | ||
91 | +rmcmd="$rmprog -f" | ||
92 | +stripcmd= | ||
93 | + | ||
94 | +src= | ||
95 | +dst= | ||
96 | +dir_arg= | ||
97 | +dst_arg= | ||
98 | + | ||
99 | +copy_on_change=false | ||
100 | +no_target_directory= | ||
101 | + | ||
102 | +usage="\ | ||
103 | +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE | ||
104 | + or: $0 [OPTION]... SRCFILES... DIRECTORY | ||
105 | + or: $0 [OPTION]... -t DIRECTORY SRCFILES... | ||
106 | + or: $0 [OPTION]... -d DIRECTORIES... | ||
107 | + | ||
108 | +In the 1st form, copy SRCFILE to DSTFILE. | ||
109 | +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. | ||
110 | +In the 4th, create DIRECTORIES. | ||
111 | + | ||
112 | +Options: | ||
113 | + --help display this help and exit. | ||
114 | + --version display version info and exit. | ||
115 | + | ||
116 | + -c (ignored) | ||
117 | + -C install only if different (preserve the last data modification time) | ||
118 | + -d create directories instead of installing files. | ||
119 | + -g GROUP $chgrpprog installed files to GROUP. | ||
120 | + -m MODE $chmodprog installed files to MODE. | ||
121 | + -o USER $chownprog installed files to USER. | ||
122 | + -s $stripprog installed files. | ||
123 | + -t DIRECTORY install into DIRECTORY. | ||
124 | + -T report an error if DSTFILE is a directory. | ||
125 | + | ||
126 | +Environment variables override the default commands: | ||
127 | + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG | ||
128 | + RMPROG STRIPPROG | ||
129 | +" | ||
130 | + | ||
131 | +while test $# -ne 0; do | ||
132 | + case $1 in | ||
133 | + -c) ;; | ||
134 | + | ||
135 | + -C) copy_on_change=true;; | ||
136 | + | ||
137 | + -d) dir_arg=true;; | ||
138 | + | ||
139 | + -g) chgrpcmd="$chgrpprog $2" | ||
140 | + shift;; | ||
141 | + | ||
142 | + --help) echo "$usage"; exit $?;; | ||
143 | + | ||
144 | + -m) mode=$2 | ||
145 | + case $mode in | ||
146 | + *' '* | *' '* | *' | ||
147 | +'* | *'*'* | *'?'* | *'['*) | ||
148 | + echo "$0: invalid mode: $mode" >&2 | ||
149 | + exit 1;; | ||
150 | + esac | ||
151 | + shift;; | ||
152 | + | ||
153 | + -o) chowncmd="$chownprog $2" | ||
154 | + shift;; | ||
155 | + | ||
156 | + -s) stripcmd=$stripprog;; | ||
157 | + | ||
158 | + -t) dst_arg=$2 | ||
159 | + shift;; | ||
160 | + | ||
161 | + -T) no_target_directory=true;; | ||
162 | + | ||
163 | + --version) echo "$0 $scriptversion"; exit $?;; | ||
164 | + | ||
165 | + --) shift | ||
166 | + break;; | ||
167 | + | ||
168 | + -*) echo "$0: invalid option: $1" >&2 | ||
169 | + exit 1;; | ||
170 | + | ||
171 | + *) break;; | ||
172 | + esac | ||
173 | + shift | ||
174 | +done | ||
175 | + | ||
176 | +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then | ||
177 | + # When -d is used, all remaining arguments are directories to create. | ||
178 | + # When -t is used, the destination is already specified. | ||
179 | + # Otherwise, the last argument is the destination. Remove it from $@. | ||
180 | + for arg | ||
181 | + do | ||
182 | + if test -n "$dst_arg"; then | ||
183 | + # $@ is not empty: it contains at least $arg. | ||
184 | + set fnord "$@" "$dst_arg" | ||
185 | + shift # fnord | ||
186 | + fi | ||
187 | + shift # arg | ||
188 | + dst_arg=$arg | ||
189 | + done | ||
190 | +fi | ||
191 | + | ||
192 | +if test $# -eq 0; then | ||
193 | + if test -z "$dir_arg"; then | ||
194 | + echo "$0: no input file specified." >&2 | ||
195 | + exit 1 | ||
196 | + fi | ||
197 | + # It's OK to call `install-sh -d' without argument. | ||
198 | + # This can happen when creating conditional directories. | ||
199 | + exit 0 | ||
200 | +fi | ||
201 | + | ||
202 | +if test -z "$dir_arg"; then | ||
203 | + trap '(exit $?); exit' 1 2 13 15 | ||
204 | + | ||
205 | + # Set umask so as not to create temps with too-generous modes. | ||
206 | + # However, 'strip' requires both read and write access to temps. | ||
207 | + case $mode in | ||
208 | + # Optimize common cases. | ||
209 | + *644) cp_umask=133;; | ||
210 | + *755) cp_umask=22;; | ||
211 | + | ||
212 | + *[0-7]) | ||
213 | + if test -z "$stripcmd"; then | ||
214 | + u_plus_rw= | ||
215 | + else | ||
216 | + u_plus_rw='% 200' | ||
217 | + fi | ||
218 | + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; | ||
219 | + *) | ||
220 | + if test -z "$stripcmd"; then | ||
221 | + u_plus_rw= | ||
222 | + else | ||
223 | + u_plus_rw=,u+rw | ||
224 | + fi | ||
225 | + cp_umask=$mode$u_plus_rw;; | ||
226 | + esac | ||
227 | +fi | ||
228 | + | ||
229 | +for src | ||
230 | +do | ||
231 | + # Protect names starting with `-'. | ||
232 | + case $src in | ||
233 | + -*) src=./$src;; | ||
234 | + esac | ||
235 | + | ||
236 | + if test -n "$dir_arg"; then | ||
237 | + dst=$src | ||
238 | + dstdir=$dst | ||
239 | + test -d "$dstdir" | ||
240 | + dstdir_status=$? | ||
241 | + else | ||
242 | + | ||
243 | + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command | ||
244 | + # might cause directories to be created, which would be especially bad | ||
245 | + # if $src (and thus $dsttmp) contains '*'. | ||
246 | + if test ! -f "$src" && test ! -d "$src"; then | ||
247 | + echo "$0: $src does not exist." >&2 | ||
248 | + exit 1 | ||
249 | + fi | ||
250 | + | ||
251 | + if test -z "$dst_arg"; then | ||
252 | + echo "$0: no destination specified." >&2 | ||
253 | + exit 1 | ||
254 | + fi | ||
255 | + | ||
256 | + dst=$dst_arg | ||
257 | + # Protect names starting with `-'. | ||
258 | + case $dst in | ||
259 | + -*) dst=./$dst;; | ||
260 | + esac | ||
261 | + | ||
262 | + # If destination is a directory, append the input filename; won't work | ||
263 | + # if double slashes aren't ignored. | ||
264 | + if test -d "$dst"; then | ||
265 | + if test -n "$no_target_directory"; then | ||
266 | + echo "$0: $dst_arg: Is a directory" >&2 | ||
267 | + exit 1 | ||
268 | + fi | ||
269 | + dstdir=$dst | ||
270 | + dst=$dstdir/`basename "$src"` | ||
271 | + dstdir_status=0 | ||
272 | + else | ||
273 | + # Prefer dirname, but fall back on a substitute if dirname fails. | ||
274 | + dstdir=` | ||
275 | + (dirname "$dst") 2>/dev/null || | ||
276 | + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
277 | + X"$dst" : 'X\(//\)[^/]' \| \ | ||
278 | + X"$dst" : 'X\(//\)$' \| \ | ||
279 | + X"$dst" : 'X\(/\)' \| . 2>/dev/null || | ||
280 | + echo X"$dst" | | ||
281 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
282 | + s//\1/ | ||
283 | + q | ||
284 | + } | ||
285 | + /^X\(\/\/\)[^/].*/{ | ||
286 | + s//\1/ | ||
287 | + q | ||
288 | + } | ||
289 | + /^X\(\/\/\)$/{ | ||
290 | + s//\1/ | ||
291 | + q | ||
292 | + } | ||
293 | + /^X\(\/\).*/{ | ||
294 | + s//\1/ | ||
295 | + q | ||
296 | + } | ||
297 | + s/.*/./; q' | ||
298 | + ` | ||
299 | + | ||
300 | + test -d "$dstdir" | ||
301 | + dstdir_status=$? | ||
302 | + fi | ||
303 | + fi | ||
304 | + | ||
305 | + obsolete_mkdir_used=false | ||
306 | + | ||
307 | + if test $dstdir_status != 0; then | ||
308 | + case $posix_mkdir in | ||
309 | + '') | ||
310 | + # Create intermediate dirs using mode 755 as modified by the umask. | ||
311 | + # This is like FreeBSD 'install' as of 1997-10-28. | ||
312 | + umask=`umask` | ||
313 | + case $stripcmd.$umask in | ||
314 | + # Optimize common cases. | ||
315 | + *[2367][2367]) mkdir_umask=$umask;; | ||
316 | + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; | ||
317 | + | ||
318 | + *[0-7]) | ||
319 | + mkdir_umask=`expr $umask + 22 \ | ||
320 | + - $umask % 100 % 40 + $umask % 20 \ | ||
321 | + - $umask % 10 % 4 + $umask % 2 | ||
322 | + `;; | ||
323 | + *) mkdir_umask=$umask,go-w;; | ||
324 | + esac | ||
325 | + | ||
326 | + # With -d, create the new directory with the user-specified mode. | ||
327 | + # Otherwise, rely on $mkdir_umask. | ||
328 | + if test -n "$dir_arg"; then | ||
329 | + mkdir_mode=-m$mode | ||
330 | + else | ||
331 | + mkdir_mode= | ||
332 | + fi | ||
333 | + | ||
334 | + posix_mkdir=false | ||
335 | + case $umask in | ||
336 | + *[123567][0-7][0-7]) | ||
337 | + # POSIX mkdir -p sets u+wx bits regardless of umask, which | ||
338 | + # is incompatible with FreeBSD 'install' when (umask & 300) != 0. | ||
339 | + ;; | ||
340 | + *) | ||
341 | + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ | ||
342 | + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 | ||
343 | + | ||
344 | + if (umask $mkdir_umask && | ||
345 | + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 | ||
346 | + then | ||
347 | + if test -z "$dir_arg" || { | ||
348 | + # Check for POSIX incompatibilities with -m. | ||
349 | + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or | ||
350 | + # other-writeable bit of parent directory when it shouldn't. | ||
351 | + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. | ||
352 | + ls_ld_tmpdir=`ls -ld "$tmpdir"` | ||
353 | + case $ls_ld_tmpdir in | ||
354 | + d????-?r-*) different_mode=700;; | ||
355 | + d????-?--*) different_mode=755;; | ||
356 | + *) false;; | ||
357 | + esac && | ||
358 | + $mkdirprog -m$different_mode -p -- "$tmpdir" && { | ||
359 | + ls_ld_tmpdir_1=`ls -ld "$tmpdir"` | ||
360 | + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" | ||
361 | + } | ||
362 | + } | ||
363 | + then posix_mkdir=: | ||
364 | + fi | ||
365 | + rmdir "$tmpdir/d" "$tmpdir" | ||
366 | + else | ||
367 | + # Remove any dirs left behind by ancient mkdir implementations. | ||
368 | + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null | ||
369 | + fi | ||
370 | + trap '' 0;; | ||
371 | + esac;; | ||
372 | + esac | ||
373 | + | ||
374 | + if | ||
375 | + $posix_mkdir && ( | ||
376 | + umask $mkdir_umask && | ||
377 | + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" | ||
378 | + ) | ||
379 | + then : | ||
380 | + else | ||
381 | + | ||
382 | + # The umask is ridiculous, or mkdir does not conform to POSIX, | ||
383 | + # or it failed possibly due to a race condition. Create the | ||
384 | + # directory the slow way, step by step, checking for races as we go. | ||
385 | + | ||
386 | + case $dstdir in | ||
387 | + /*) prefix='/';; | ||
388 | + -*) prefix='./';; | ||
389 | + *) prefix='';; | ||
390 | + esac | ||
391 | + | ||
392 | + eval "$initialize_posix_glob" | ||
393 | + | ||
394 | + oIFS=$IFS | ||
395 | + IFS=/ | ||
396 | + $posix_glob set -f | ||
397 | + set fnord $dstdir | ||
398 | + shift | ||
399 | + $posix_glob set +f | ||
400 | + IFS=$oIFS | ||
401 | + | ||
402 | + prefixes= | ||
403 | + | ||
404 | + for d | ||
405 | + do | ||
406 | + test -z "$d" && continue | ||
407 | + | ||
408 | + prefix=$prefix$d | ||
409 | + if test -d "$prefix"; then | ||
410 | + prefixes= | ||
411 | + else | ||
412 | + if $posix_mkdir; then | ||
413 | + (umask=$mkdir_umask && | ||
414 | + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break | ||
415 | + # Don't fail if two instances are running concurrently. | ||
416 | + test -d "$prefix" || exit 1 | ||
417 | + else | ||
418 | + case $prefix in | ||
419 | + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; | ||
420 | + *) qprefix=$prefix;; | ||
421 | + esac | ||
422 | + prefixes="$prefixes '$qprefix'" | ||
423 | + fi | ||
424 | + fi | ||
425 | + prefix=$prefix/ | ||
426 | + done | ||
427 | + | ||
428 | + if test -n "$prefixes"; then | ||
429 | + # Don't fail if two instances are running concurrently. | ||
430 | + (umask $mkdir_umask && | ||
431 | + eval "\$doit_exec \$mkdirprog $prefixes") || | ||
432 | + test -d "$dstdir" || exit 1 | ||
433 | + obsolete_mkdir_used=true | ||
434 | + fi | ||
435 | + fi | ||
436 | + fi | ||
437 | + | ||
438 | + if test -n "$dir_arg"; then | ||
439 | + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && | ||
440 | + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && | ||
441 | + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || | ||
442 | + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 | ||
443 | + else | ||
444 | + | ||
445 | + # Make a couple of temp file names in the proper directory. | ||
446 | + dsttmp=$dstdir/_inst.$$_ | ||
447 | + rmtmp=$dstdir/_rm.$$_ | ||
448 | + | ||
449 | + # Trap to clean up those temp files at exit. | ||
450 | + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 | ||
451 | + | ||
452 | + # Copy the file name to the temp name. | ||
453 | + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && | ||
454 | + | ||
455 | + # and set any options; do chmod last to preserve setuid bits. | ||
456 | + # | ||
457 | + # If any of these fail, we abort the whole thing. If we want to | ||
458 | + # ignore errors from any of these, just make sure not to ignore | ||
459 | + # errors from the above "$doit $cpprog $src $dsttmp" command. | ||
460 | + # | ||
461 | + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && | ||
462 | + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && | ||
463 | + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && | ||
464 | + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && | ||
465 | + | ||
466 | + # If -C, don't bother to copy if it wouldn't change the file. | ||
467 | + if $copy_on_change && | ||
468 | + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && | ||
469 | + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && | ||
470 | + | ||
471 | + eval "$initialize_posix_glob" && | ||
472 | + $posix_glob set -f && | ||
473 | + set X $old && old=:$2:$4:$5:$6 && | ||
474 | + set X $new && new=:$2:$4:$5:$6 && | ||
475 | + $posix_glob set +f && | ||
476 | + | ||
477 | + test "$old" = "$new" && | ||
478 | + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 | ||
479 | + then | ||
480 | + rm -f "$dsttmp" | ||
481 | + else | ||
482 | + # Rename the file to the real destination. | ||
483 | + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || | ||
484 | + | ||
485 | + # The rename failed, perhaps because mv can't rename something else | ||
486 | + # to itself, or perhaps because mv is so ancient that it does not | ||
487 | + # support -f. | ||
488 | + { | ||
489 | + # Now remove or move aside any old file at destination location. | ||
490 | + # We try this two ways since rm can't unlink itself on some | ||
491 | + # systems and the destination file might be busy for other | ||
492 | + # reasons. In this case, the final cleanup might fail but the new | ||
493 | + # file should still install successfully. | ||
494 | + { | ||
495 | + test ! -f "$dst" || | ||
496 | + $doit $rmcmd -f "$dst" 2>/dev/null || | ||
497 | + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && | ||
498 | + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } | ||
499 | + } || | ||
500 | + { echo "$0: cannot unlink or rename $dst" >&2 | ||
501 | + (exit 1); exit 1 | ||
502 | + } | ||
503 | + } && | ||
504 | + | ||
505 | + # Now rename the file to the real destination. | ||
506 | + $doit $mvcmd "$dsttmp" "$dst" | ||
507 | + } | ||
508 | + fi || exit 1 | ||
509 | + | ||
510 | + trap '' 0 | ||
511 | + fi | ||
512 | +done | ||
513 | + | ||
514 | +# Local variables: | ||
515 | +# eval: (add-hook 'write-file-hooks 'time-stamp) | ||
516 | +# time-stamp-start: "scriptversion=" | ||
517 | +# time-stamp-format: "%:y-%02m-%02d.%02H" | ||
518 | +# time-stamp-time-zone: "UTC" | ||
519 | +# time-stamp-end: "; # UTC" | ||
520 | +# End: |
ltmain.sh
0 → 100755
This diff could not be displayed because it is too large.
m4/libtool.m4
0 → 100644
This diff could not be displayed because it is too large.
m4/ltoptions.m4
0 → 100644
1 | +# Helper functions for option handling. -*- Autoconf -*- | ||
2 | +# | ||
3 | +# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, | ||
4 | +# Inc. | ||
5 | +# Written by Gary V. Vaughan, 2004 | ||
6 | +# | ||
7 | +# This file is free software; the Free Software Foundation gives | ||
8 | +# unlimited permission to copy and/or distribute it, with or without | ||
9 | +# modifications, as long as this notice is preserved. | ||
10 | + | ||
11 | +# serial 7 ltoptions.m4 | ||
12 | + | ||
13 | +# This is to help aclocal find these macros, as it can't see m4_define. | ||
14 | +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) | ||
15 | + | ||
16 | + | ||
17 | +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) | ||
18 | +# ------------------------------------------ | ||
19 | +m4_define([_LT_MANGLE_OPTION], | ||
20 | +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) | ||
21 | + | ||
22 | + | ||
23 | +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) | ||
24 | +# --------------------------------------- | ||
25 | +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a | ||
26 | +# matching handler defined, dispatch to it. Other OPTION-NAMEs are | ||
27 | +# saved as a flag. | ||
28 | +m4_define([_LT_SET_OPTION], | ||
29 | +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl | ||
30 | +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), | ||
31 | + _LT_MANGLE_DEFUN([$1], [$2]), | ||
32 | + [m4_warning([Unknown $1 option `$2'])])[]dnl | ||
33 | +]) | ||
34 | + | ||
35 | + | ||
36 | +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) | ||
37 | +# ------------------------------------------------------------ | ||
38 | +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | ||
39 | +m4_define([_LT_IF_OPTION], | ||
40 | +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) | ||
41 | + | ||
42 | + | ||
43 | +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) | ||
44 | +# ------------------------------------------------------- | ||
45 | +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME | ||
46 | +# are set. | ||
47 | +m4_define([_LT_UNLESS_OPTIONS], | ||
48 | +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), | ||
49 | + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), | ||
50 | + [m4_define([$0_found])])])[]dnl | ||
51 | +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 | ||
52 | +])[]dnl | ||
53 | +]) | ||
54 | + | ||
55 | + | ||
56 | +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) | ||
57 | +# ---------------------------------------- | ||
58 | +# OPTION-LIST is a space-separated list of Libtool options associated | ||
59 | +# with MACRO-NAME. If any OPTION has a matching handler declared with | ||
60 | +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about | ||
61 | +# the unknown option and exit. | ||
62 | +m4_defun([_LT_SET_OPTIONS], | ||
63 | +[# Set options | ||
64 | +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), | ||
65 | + [_LT_SET_OPTION([$1], _LT_Option)]) | ||
66 | + | ||
67 | +m4_if([$1],[LT_INIT],[ | ||
68 | + dnl | ||
69 | + dnl Simply set some default values (i.e off) if boolean options were not | ||
70 | + dnl specified: | ||
71 | + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no | ||
72 | + ]) | ||
73 | + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no | ||
74 | + ]) | ||
75 | + dnl | ||
76 | + dnl If no reference was made to various pairs of opposing options, then | ||
77 | + dnl we run the default mode handler for the pair. For example, if neither | ||
78 | + dnl `shared' nor `disable-shared' was passed, we enable building of shared | ||
79 | + dnl archives by default: | ||
80 | + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) | ||
81 | + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) | ||
82 | + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) | ||
83 | + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], | ||
84 | + [_LT_ENABLE_FAST_INSTALL]) | ||
85 | + ]) | ||
86 | +])# _LT_SET_OPTIONS | ||
87 | + | ||
88 | + | ||
89 | +## --------------------------------- ## | ||
90 | +## Macros to handle LT_INIT options. ## | ||
91 | +## --------------------------------- ## | ||
92 | + | ||
93 | +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) | ||
94 | +# ----------------------------------------- | ||
95 | +m4_define([_LT_MANGLE_DEFUN], | ||
96 | +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) | ||
97 | + | ||
98 | + | ||
99 | +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) | ||
100 | +# ----------------------------------------------- | ||
101 | +m4_define([LT_OPTION_DEFINE], | ||
102 | +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl | ||
103 | +])# LT_OPTION_DEFINE | ||
104 | + | ||
105 | + | ||
106 | +# dlopen | ||
107 | +# ------ | ||
108 | +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes | ||
109 | +]) | ||
110 | + | ||
111 | +AU_DEFUN([AC_LIBTOOL_DLOPEN], | ||
112 | +[_LT_SET_OPTION([LT_INIT], [dlopen]) | ||
113 | +AC_DIAGNOSE([obsolete], | ||
114 | +[$0: Remove this warning and the call to _LT_SET_OPTION when you | ||
115 | +put the `dlopen' option into LT_INIT's first parameter.]) | ||
116 | +]) | ||
117 | + | ||
118 | +dnl aclocal-1.4 backwards compatibility: | ||
119 | +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) | ||
120 | + | ||
121 | + | ||
122 | +# win32-dll | ||
123 | +# --------- | ||
124 | +# Declare package support for building win32 dll's. | ||
125 | +LT_OPTION_DEFINE([LT_INIT], [win32-dll], | ||
126 | +[enable_win32_dll=yes | ||
127 | + | ||
128 | +case $host in | ||
129 | +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) | ||
130 | + AC_CHECK_TOOL(AS, as, false) | ||
131 | + AC_CHECK_TOOL(DLLTOOL, dlltool, false) | ||
132 | + AC_CHECK_TOOL(OBJDUMP, objdump, false) | ||
133 | + ;; | ||
134 | +esac | ||
135 | + | ||
136 | +test -z "$AS" && AS=as | ||
137 | +_LT_DECL([], [AS], [1], [Assembler program])dnl | ||
138 | + | ||
139 | +test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
140 | +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl | ||
141 | + | ||
142 | +test -z "$OBJDUMP" && OBJDUMP=objdump | ||
143 | +_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl | ||
144 | +])# win32-dll | ||
145 | + | ||
146 | +AU_DEFUN([AC_LIBTOOL_WIN32_DLL], | ||
147 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
148 | +_LT_SET_OPTION([LT_INIT], [win32-dll]) | ||
149 | +AC_DIAGNOSE([obsolete], | ||
150 | +[$0: Remove this warning and the call to _LT_SET_OPTION when you | ||
151 | +put the `win32-dll' option into LT_INIT's first parameter.]) | ||
152 | +]) | ||
153 | + | ||
154 | +dnl aclocal-1.4 backwards compatibility: | ||
155 | +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) | ||
156 | + | ||
157 | + | ||
158 | +# _LT_ENABLE_SHARED([DEFAULT]) | ||
159 | +# ---------------------------- | ||
160 | +# implement the --enable-shared flag, and supports the `shared' and | ||
161 | +# `disable-shared' LT_INIT options. | ||
162 | +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
163 | +m4_define([_LT_ENABLE_SHARED], | ||
164 | +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl | ||
165 | +AC_ARG_ENABLE([shared], | ||
166 | + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], | ||
167 | + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], | ||
168 | + [p=${PACKAGE-default} | ||
169 | + case $enableval in | ||
170 | + yes) enable_shared=yes ;; | ||
171 | + no) enable_shared=no ;; | ||
172 | + *) | ||
173 | + enable_shared=no | ||
174 | + # Look at the argument we got. We use all the common list separators. | ||
175 | + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
176 | + for pkg in $enableval; do | ||
177 | + IFS="$lt_save_ifs" | ||
178 | + if test "X$pkg" = "X$p"; then | ||
179 | + enable_shared=yes | ||
180 | + fi | ||
181 | + done | ||
182 | + IFS="$lt_save_ifs" | ||
183 | + ;; | ||
184 | + esac], | ||
185 | + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) | ||
186 | + | ||
187 | + _LT_DECL([build_libtool_libs], [enable_shared], [0], | ||
188 | + [Whether or not to build shared libraries]) | ||
189 | +])# _LT_ENABLE_SHARED | ||
190 | + | ||
191 | +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) | ||
192 | +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) | ||
193 | + | ||
194 | +# Old names: | ||
195 | +AC_DEFUN([AC_ENABLE_SHARED], | ||
196 | +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) | ||
197 | +]) | ||
198 | + | ||
199 | +AC_DEFUN([AC_DISABLE_SHARED], | ||
200 | +[_LT_SET_OPTION([LT_INIT], [disable-shared]) | ||
201 | +]) | ||
202 | + | ||
203 | +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) | ||
204 | +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) | ||
205 | + | ||
206 | +dnl aclocal-1.4 backwards compatibility: | ||
207 | +dnl AC_DEFUN([AM_ENABLE_SHARED], []) | ||
208 | +dnl AC_DEFUN([AM_DISABLE_SHARED], []) | ||
209 | + | ||
210 | + | ||
211 | + | ||
212 | +# _LT_ENABLE_STATIC([DEFAULT]) | ||
213 | +# ---------------------------- | ||
214 | +# implement the --enable-static flag, and support the `static' and | ||
215 | +# `disable-static' LT_INIT options. | ||
216 | +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
217 | +m4_define([_LT_ENABLE_STATIC], | ||
218 | +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl | ||
219 | +AC_ARG_ENABLE([static], | ||
220 | + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], | ||
221 | + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], | ||
222 | + [p=${PACKAGE-default} | ||
223 | + case $enableval in | ||
224 | + yes) enable_static=yes ;; | ||
225 | + no) enable_static=no ;; | ||
226 | + *) | ||
227 | + enable_static=no | ||
228 | + # Look at the argument we got. We use all the common list separators. | ||
229 | + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
230 | + for pkg in $enableval; do | ||
231 | + IFS="$lt_save_ifs" | ||
232 | + if test "X$pkg" = "X$p"; then | ||
233 | + enable_static=yes | ||
234 | + fi | ||
235 | + done | ||
236 | + IFS="$lt_save_ifs" | ||
237 | + ;; | ||
238 | + esac], | ||
239 | + [enable_static=]_LT_ENABLE_STATIC_DEFAULT) | ||
240 | + | ||
241 | + _LT_DECL([build_old_libs], [enable_static], [0], | ||
242 | + [Whether or not to build static libraries]) | ||
243 | +])# _LT_ENABLE_STATIC | ||
244 | + | ||
245 | +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) | ||
246 | +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) | ||
247 | + | ||
248 | +# Old names: | ||
249 | +AC_DEFUN([AC_ENABLE_STATIC], | ||
250 | +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) | ||
251 | +]) | ||
252 | + | ||
253 | +AC_DEFUN([AC_DISABLE_STATIC], | ||
254 | +[_LT_SET_OPTION([LT_INIT], [disable-static]) | ||
255 | +]) | ||
256 | + | ||
257 | +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) | ||
258 | +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) | ||
259 | + | ||
260 | +dnl aclocal-1.4 backwards compatibility: | ||
261 | +dnl AC_DEFUN([AM_ENABLE_STATIC], []) | ||
262 | +dnl AC_DEFUN([AM_DISABLE_STATIC], []) | ||
263 | + | ||
264 | + | ||
265 | + | ||
266 | +# _LT_ENABLE_FAST_INSTALL([DEFAULT]) | ||
267 | +# ---------------------------------- | ||
268 | +# implement the --enable-fast-install flag, and support the `fast-install' | ||
269 | +# and `disable-fast-install' LT_INIT options. | ||
270 | +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
271 | +m4_define([_LT_ENABLE_FAST_INSTALL], | ||
272 | +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl | ||
273 | +AC_ARG_ENABLE([fast-install], | ||
274 | + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], | ||
275 | + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], | ||
276 | + [p=${PACKAGE-default} | ||
277 | + case $enableval in | ||
278 | + yes) enable_fast_install=yes ;; | ||
279 | + no) enable_fast_install=no ;; | ||
280 | + *) | ||
281 | + enable_fast_install=no | ||
282 | + # Look at the argument we got. We use all the common list separators. | ||
283 | + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
284 | + for pkg in $enableval; do | ||
285 | + IFS="$lt_save_ifs" | ||
286 | + if test "X$pkg" = "X$p"; then | ||
287 | + enable_fast_install=yes | ||
288 | + fi | ||
289 | + done | ||
290 | + IFS="$lt_save_ifs" | ||
291 | + ;; | ||
292 | + esac], | ||
293 | + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) | ||
294 | + | ||
295 | +_LT_DECL([fast_install], [enable_fast_install], [0], | ||
296 | + [Whether or not to optimize for fast installation])dnl | ||
297 | +])# _LT_ENABLE_FAST_INSTALL | ||
298 | + | ||
299 | +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) | ||
300 | +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) | ||
301 | + | ||
302 | +# Old names: | ||
303 | +AU_DEFUN([AC_ENABLE_FAST_INSTALL], | ||
304 | +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) | ||
305 | +AC_DIAGNOSE([obsolete], | ||
306 | +[$0: Remove this warning and the call to _LT_SET_OPTION when you put | ||
307 | +the `fast-install' option into LT_INIT's first parameter.]) | ||
308 | +]) | ||
309 | + | ||
310 | +AU_DEFUN([AC_DISABLE_FAST_INSTALL], | ||
311 | +[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) | ||
312 | +AC_DIAGNOSE([obsolete], | ||
313 | +[$0: Remove this warning and the call to _LT_SET_OPTION when you put | ||
314 | +the `disable-fast-install' option into LT_INIT's first parameter.]) | ||
315 | +]) | ||
316 | + | ||
317 | +dnl aclocal-1.4 backwards compatibility: | ||
318 | +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) | ||
319 | +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) | ||
320 | + | ||
321 | + | ||
322 | +# _LT_WITH_PIC([MODE]) | ||
323 | +# -------------------- | ||
324 | +# implement the --with-pic flag, and support the `pic-only' and `no-pic' | ||
325 | +# LT_INIT options. | ||
326 | +# MODE is either `yes' or `no'. If omitted, it defaults to `both'. | ||
327 | +m4_define([_LT_WITH_PIC], | ||
328 | +[AC_ARG_WITH([pic], | ||
329 | + [AS_HELP_STRING([--with-pic], | ||
330 | + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], | ||
331 | + [pic_mode="$withval"], | ||
332 | + [pic_mode=default]) | ||
333 | + | ||
334 | +test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) | ||
335 | + | ||
336 | +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl | ||
337 | +])# _LT_WITH_PIC | ||
338 | + | ||
339 | +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) | ||
340 | +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) | ||
341 | + | ||
342 | +# Old name: | ||
343 | +AU_DEFUN([AC_LIBTOOL_PICMODE], | ||
344 | +[_LT_SET_OPTION([LT_INIT], [pic-only]) | ||
345 | +AC_DIAGNOSE([obsolete], | ||
346 | +[$0: Remove this warning and the call to _LT_SET_OPTION when you | ||
347 | +put the `pic-only' option into LT_INIT's first parameter.]) | ||
348 | +]) | ||
349 | + | ||
350 | +dnl aclocal-1.4 backwards compatibility: | ||
351 | +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) | ||
352 | + | ||
353 | +## ----------------- ## | ||
354 | +## LTDL_INIT Options ## | ||
355 | +## ----------------- ## | ||
356 | + | ||
357 | +m4_define([_LTDL_MODE], []) | ||
358 | +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], | ||
359 | + [m4_define([_LTDL_MODE], [nonrecursive])]) | ||
360 | +LT_OPTION_DEFINE([LTDL_INIT], [recursive], | ||
361 | + [m4_define([_LTDL_MODE], [recursive])]) | ||
362 | +LT_OPTION_DEFINE([LTDL_INIT], [subproject], | ||
363 | + [m4_define([_LTDL_MODE], [subproject])]) | ||
364 | + | ||
365 | +m4_define([_LTDL_TYPE], []) | ||
366 | +LT_OPTION_DEFINE([LTDL_INIT], [installable], | ||
367 | + [m4_define([_LTDL_TYPE], [installable])]) | ||
368 | +LT_OPTION_DEFINE([LTDL_INIT], [convenience], | ||
369 | + [m4_define([_LTDL_TYPE], [convenience])]) |
m4/ltsugar.m4
0 → 100644
1 | +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- | ||
2 | +# | ||
3 | +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. | ||
4 | +# Written by Gary V. Vaughan, 2004 | ||
5 | +# | ||
6 | +# This file is free software; the Free Software Foundation gives | ||
7 | +# unlimited permission to copy and/or distribute it, with or without | ||
8 | +# modifications, as long as this notice is preserved. | ||
9 | + | ||
10 | +# serial 6 ltsugar.m4 | ||
11 | + | ||
12 | +# This is to help aclocal find these macros, as it can't see m4_define. | ||
13 | +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) | ||
14 | + | ||
15 | + | ||
16 | +# lt_join(SEP, ARG1, [ARG2...]) | ||
17 | +# ----------------------------- | ||
18 | +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their | ||
19 | +# associated separator. | ||
20 | +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier | ||
21 | +# versions in m4sugar had bugs. | ||
22 | +m4_define([lt_join], | ||
23 | +[m4_if([$#], [1], [], | ||
24 | + [$#], [2], [[$2]], | ||
25 | + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) | ||
26 | +m4_define([_lt_join], | ||
27 | +[m4_if([$#$2], [2], [], | ||
28 | + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) | ||
29 | + | ||
30 | + | ||
31 | +# lt_car(LIST) | ||
32 | +# lt_cdr(LIST) | ||
33 | +# ------------ | ||
34 | +# Manipulate m4 lists. | ||
35 | +# These macros are necessary as long as will still need to support | ||
36 | +# Autoconf-2.59 which quotes differently. | ||
37 | +m4_define([lt_car], [[$1]]) | ||
38 | +m4_define([lt_cdr], | ||
39 | +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], | ||
40 | + [$#], 1, [], | ||
41 | + [m4_dquote(m4_shift($@))])]) | ||
42 | +m4_define([lt_unquote], $1) | ||
43 | + | ||
44 | + | ||
45 | +# lt_append(MACRO-NAME, STRING, [SEPARATOR]) | ||
46 | +# ------------------------------------------ | ||
47 | +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. | ||
48 | +# Note that neither SEPARATOR nor STRING are expanded; they are appended | ||
49 | +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). | ||
50 | +# No SEPARATOR is output if MACRO-NAME was previously undefined (different | ||
51 | +# than defined and empty). | ||
52 | +# | ||
53 | +# This macro is needed until we can rely on Autoconf 2.62, since earlier | ||
54 | +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. | ||
55 | +m4_define([lt_append], | ||
56 | +[m4_define([$1], | ||
57 | + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) | ||
58 | + | ||
59 | + | ||
60 | + | ||
61 | +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) | ||
62 | +# ---------------------------------------------------------- | ||
63 | +# Produce a SEP delimited list of all paired combinations of elements of | ||
64 | +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list | ||
65 | +# has the form PREFIXmINFIXSUFFIXn. | ||
66 | +# Needed until we can rely on m4_combine added in Autoconf 2.62. | ||
67 | +m4_define([lt_combine], | ||
68 | +[m4_if(m4_eval([$# > 3]), [1], | ||
69 | + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl | ||
70 | +[[m4_foreach([_Lt_prefix], [$2], | ||
71 | + [m4_foreach([_Lt_suffix], | ||
72 | + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, | ||
73 | + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) | ||
74 | + | ||
75 | + | ||
76 | +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) | ||
77 | +# ----------------------------------------------------------------------- | ||
78 | +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited | ||
79 | +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. | ||
80 | +m4_define([lt_if_append_uniq], | ||
81 | +[m4_ifdef([$1], | ||
82 | + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], | ||
83 | + [lt_append([$1], [$2], [$3])$4], | ||
84 | + [$5])], | ||
85 | + [lt_append([$1], [$2], [$3])$4])]) | ||
86 | + | ||
87 | + | ||
88 | +# lt_dict_add(DICT, KEY, VALUE) | ||
89 | +# ----------------------------- | ||
90 | +m4_define([lt_dict_add], | ||
91 | +[m4_define([$1($2)], [$3])]) | ||
92 | + | ||
93 | + | ||
94 | +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) | ||
95 | +# -------------------------------------------- | ||
96 | +m4_define([lt_dict_add_subkey], | ||
97 | +[m4_define([$1($2:$3)], [$4])]) | ||
98 | + | ||
99 | + | ||
100 | +# lt_dict_fetch(DICT, KEY, [SUBKEY]) | ||
101 | +# ---------------------------------- | ||
102 | +m4_define([lt_dict_fetch], | ||
103 | +[m4_ifval([$3], | ||
104 | + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), | ||
105 | + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) | ||
106 | + | ||
107 | + | ||
108 | +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) | ||
109 | +# ----------------------------------------------------------------- | ||
110 | +m4_define([lt_if_dict_fetch], | ||
111 | +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], | ||
112 | + [$5], | ||
113 | + [$6])]) | ||
114 | + | ||
115 | + | ||
116 | +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) | ||
117 | +# -------------------------------------------------------------- | ||
118 | +m4_define([lt_dict_filter], | ||
119 | +[m4_if([$5], [], [], | ||
120 | + [lt_join(m4_quote(m4_default([$4], [[, ]])), | ||
121 | + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), | ||
122 | + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl | ||
123 | +]) |
m4/ltversion.m4
0 → 100644
1 | +# ltversion.m4 -- version numbers -*- Autoconf -*- | ||
2 | +# | ||
3 | +# Copyright (C) 2004 Free Software Foundation, Inc. | ||
4 | +# Written by Scott James Remnant, 2004 | ||
5 | +# | ||
6 | +# This file is free software; the Free Software Foundation gives | ||
7 | +# unlimited permission to copy and/or distribute it, with or without | ||
8 | +# modifications, as long as this notice is preserved. | ||
9 | + | ||
10 | +# @configure_input@ | ||
11 | + | ||
12 | +# serial 3293 ltversion.m4 | ||
13 | +# This file is part of GNU Libtool | ||
14 | + | ||
15 | +m4_define([LT_PACKAGE_VERSION], [2.4]) | ||
16 | +m4_define([LT_PACKAGE_REVISION], [1.3293]) | ||
17 | + | ||
18 | +AC_DEFUN([LTVERSION_VERSION], | ||
19 | +[macro_version='2.4' | ||
20 | +macro_revision='1.3293' | ||
21 | +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) | ||
22 | +_LT_DECL(, macro_revision, 0) | ||
23 | +]) |
m4/lt~obsolete.m4
0 → 100644
1 | +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- | ||
2 | +# | ||
3 | +# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. | ||
4 | +# Written by Scott James Remnant, 2004. | ||
5 | +# | ||
6 | +# This file is free software; the Free Software Foundation gives | ||
7 | +# unlimited permission to copy and/or distribute it, with or without | ||
8 | +# modifications, as long as this notice is preserved. | ||
9 | + | ||
10 | +# serial 5 lt~obsolete.m4 | ||
11 | + | ||
12 | +# These exist entirely to fool aclocal when bootstrapping libtool. | ||
13 | +# | ||
14 | +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) | ||
15 | +# which have later been changed to m4_define as they aren't part of the | ||
16 | +# exported API, or moved to Autoconf or Automake where they belong. | ||
17 | +# | ||
18 | +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN | ||
19 | +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us | ||
20 | +# using a macro with the same name in our local m4/libtool.m4 it'll | ||
21 | +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define | ||
22 | +# and doesn't know about Autoconf macros at all.) | ||
23 | +# | ||
24 | +# So we provide this file, which has a silly filename so it's always | ||
25 | +# included after everything else. This provides aclocal with the | ||
26 | +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything | ||
27 | +# because those macros already exist, or will be overwritten later. | ||
28 | +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. | ||
29 | +# | ||
30 | +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. | ||
31 | +# Yes, that means every name once taken will need to remain here until | ||
32 | +# we give up compatibility with versions before 1.7, at which point | ||
33 | +# we need to keep only those names which we still refer to. | ||
34 | + | ||
35 | +# This is to help aclocal find these macros, as it can't see m4_define. | ||
36 | +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) | ||
37 | + | ||
38 | +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) | ||
39 | +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) | ||
40 | +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) | ||
41 | +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) | ||
42 | +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) | ||
43 | +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) | ||
44 | +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) | ||
45 | +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) | ||
46 | +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) | ||
47 | +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) | ||
48 | +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) | ||
49 | +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) | ||
50 | +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) | ||
51 | +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) | ||
52 | +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) | ||
53 | +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) | ||
54 | +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) | ||
55 | +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) | ||
56 | +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) | ||
57 | +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) | ||
58 | +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) | ||
59 | +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) | ||
60 | +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) | ||
61 | +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) | ||
62 | +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) | ||
63 | +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) | ||
64 | +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) | ||
65 | +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) | ||
66 | +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) | ||
67 | +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) | ||
68 | +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) | ||
69 | +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) | ||
70 | +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) | ||
71 | +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) | ||
72 | +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) | ||
73 | +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) | ||
74 | +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) | ||
75 | +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) | ||
76 | +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) | ||
77 | +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) | ||
78 | +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) | ||
79 | +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) | ||
80 | +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) | ||
81 | +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) | ||
82 | +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) | ||
83 | +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) | ||
84 | +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) | ||
85 | +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) | ||
86 | +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) | ||
87 | +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) | ||
88 | +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) | ||
89 | +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) | ||
90 | +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) | ||
91 | +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) | ||
92 | +m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) | ||
93 | +m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) | ||
94 | +m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) | ||
95 | +m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) | ||
96 | +m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) | ||
97 | +m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) | ||
98 | +m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) |
missing
0 → 100755
1 | +#! /bin/sh | ||
2 | +# Common stub for a few missing GNU programs while installing. | ||
3 | + | ||
4 | +scriptversion=2009-04-28.21; # UTC | ||
5 | + | ||
6 | +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, | ||
7 | +# 2008, 2009 Free Software Foundation, Inc. | ||
8 | +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | ||
9 | + | ||
10 | +# This program is free software; you can redistribute it and/or modify | ||
11 | +# it under the terms of the GNU General Public License as published by | ||
12 | +# the Free Software Foundation; either version 2, or (at your option) | ||
13 | +# any later version. | ||
14 | + | ||
15 | +# This program is distributed in the hope that it will be useful, | ||
16 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
17 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
18 | +# GNU General Public License for more details. | ||
19 | + | ||
20 | +# You should have received a copy of the GNU General Public License | ||
21 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
22 | + | ||
23 | +# As a special exception to the GNU General Public License, if you | ||
24 | +# distribute this file as part of a program that contains a | ||
25 | +# configuration script generated by Autoconf, you may include it under | ||
26 | +# the same distribution terms that you use for the rest of that program. | ||
27 | + | ||
28 | +if test $# -eq 0; then | ||
29 | + echo 1>&2 "Try \`$0 --help' for more information" | ||
30 | + exit 1 | ||
31 | +fi | ||
32 | + | ||
33 | +run=: | ||
34 | +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' | ||
35 | +sed_minuso='s/.* -o \([^ ]*\).*/\1/p' | ||
36 | + | ||
37 | +# In the cases where this matters, `missing' is being run in the | ||
38 | +# srcdir already. | ||
39 | +if test -f configure.ac; then | ||
40 | + configure_ac=configure.ac | ||
41 | +else | ||
42 | + configure_ac=configure.in | ||
43 | +fi | ||
44 | + | ||
45 | +msg="missing on your system" | ||
46 | + | ||
47 | +case $1 in | ||
48 | +--run) | ||
49 | + # Try to run requested program, and just exit if it succeeds. | ||
50 | + run= | ||
51 | + shift | ||
52 | + "$@" && exit 0 | ||
53 | + # Exit code 63 means version mismatch. This often happens | ||
54 | + # when the user try to use an ancient version of a tool on | ||
55 | + # a file that requires a minimum version. In this case we | ||
56 | + # we should proceed has if the program had been absent, or | ||
57 | + # if --run hadn't been passed. | ||
58 | + if test $? = 63; then | ||
59 | + run=: | ||
60 | + msg="probably too old" | ||
61 | + fi | ||
62 | + ;; | ||
63 | + | ||
64 | + -h|--h|--he|--hel|--help) | ||
65 | + echo "\ | ||
66 | +$0 [OPTION]... PROGRAM [ARGUMENT]... | ||
67 | + | ||
68 | +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an | ||
69 | +error status if there is no known handling for PROGRAM. | ||
70 | + | ||
71 | +Options: | ||
72 | + -h, --help display this help and exit | ||
73 | + -v, --version output version information and exit | ||
74 | + --run try to run the given command, and emulate it if it fails | ||
75 | + | ||
76 | +Supported PROGRAM values: | ||
77 | + aclocal touch file \`aclocal.m4' | ||
78 | + autoconf touch file \`configure' | ||
79 | + autoheader touch file \`config.h.in' | ||
80 | + autom4te touch the output file, or create a stub one | ||
81 | + automake touch all \`Makefile.in' files | ||
82 | + bison create \`y.tab.[ch]', if possible, from existing .[ch] | ||
83 | + flex create \`lex.yy.c', if possible, from existing .c | ||
84 | + help2man touch the output file | ||
85 | + lex create \`lex.yy.c', if possible, from existing .c | ||
86 | + makeinfo touch the output file | ||
87 | + tar try tar, gnutar, gtar, then tar without non-portable flags | ||
88 | + yacc create \`y.tab.[ch]', if possible, from existing .[ch] | ||
89 | + | ||
90 | +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and | ||
91 | +\`g' are ignored when checking the name. | ||
92 | + | ||
93 | +Send bug reports to <bug-automake@gnu.org>." | ||
94 | + exit $? | ||
95 | + ;; | ||
96 | + | ||
97 | + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) | ||
98 | + echo "missing $scriptversion (GNU Automake)" | ||
99 | + exit $? | ||
100 | + ;; | ||
101 | + | ||
102 | + -*) | ||
103 | + echo 1>&2 "$0: Unknown \`$1' option" | ||
104 | + echo 1>&2 "Try \`$0 --help' for more information" | ||
105 | + exit 1 | ||
106 | + ;; | ||
107 | + | ||
108 | +esac | ||
109 | + | ||
110 | +# normalize program name to check for. | ||
111 | +program=`echo "$1" | sed ' | ||
112 | + s/^gnu-//; t | ||
113 | + s/^gnu//; t | ||
114 | + s/^g//; t'` | ||
115 | + | ||
116 | +# Now exit if we have it, but it failed. Also exit now if we | ||
117 | +# don't have it and --version was passed (most likely to detect | ||
118 | +# the program). This is about non-GNU programs, so use $1 not | ||
119 | +# $program. | ||
120 | +case $1 in | ||
121 | + lex*|yacc*) | ||
122 | + # Not GNU programs, they don't have --version. | ||
123 | + ;; | ||
124 | + | ||
125 | + tar*) | ||
126 | + if test -n "$run"; then | ||
127 | + echo 1>&2 "ERROR: \`tar' requires --run" | ||
128 | + exit 1 | ||
129 | + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then | ||
130 | + exit 1 | ||
131 | + fi | ||
132 | + ;; | ||
133 | + | ||
134 | + *) | ||
135 | + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then | ||
136 | + # We have it, but it failed. | ||
137 | + exit 1 | ||
138 | + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then | ||
139 | + # Could not run --version or --help. This is probably someone | ||
140 | + # running `$TOOL --version' or `$TOOL --help' to check whether | ||
141 | + # $TOOL exists and not knowing $TOOL uses missing. | ||
142 | + exit 1 | ||
143 | + fi | ||
144 | + ;; | ||
145 | +esac | ||
146 | + | ||
147 | +# If it does not exist, or fails to run (possibly an outdated version), | ||
148 | +# try to emulate it. | ||
149 | +case $program in | ||
150 | + aclocal*) | ||
151 | + echo 1>&2 "\ | ||
152 | +WARNING: \`$1' is $msg. You should only need it if | ||
153 | + you modified \`acinclude.m4' or \`${configure_ac}'. You might want | ||
154 | + to install the \`Automake' and \`Perl' packages. Grab them from | ||
155 | + any GNU archive site." | ||
156 | + touch aclocal.m4 | ||
157 | + ;; | ||
158 | + | ||
159 | + autoconf*) | ||
160 | + echo 1>&2 "\ | ||
161 | +WARNING: \`$1' is $msg. You should only need it if | ||
162 | + you modified \`${configure_ac}'. You might want to install the | ||
163 | + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU | ||
164 | + archive site." | ||
165 | + touch configure | ||
166 | + ;; | ||
167 | + | ||
168 | + autoheader*) | ||
169 | + echo 1>&2 "\ | ||
170 | +WARNING: \`$1' is $msg. You should only need it if | ||
171 | + you modified \`acconfig.h' or \`${configure_ac}'. You might want | ||
172 | + to install the \`Autoconf' and \`GNU m4' packages. Grab them | ||
173 | + from any GNU archive site." | ||
174 | + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` | ||
175 | + test -z "$files" && files="config.h" | ||
176 | + touch_files= | ||
177 | + for f in $files; do | ||
178 | + case $f in | ||
179 | + *:*) touch_files="$touch_files "`echo "$f" | | ||
180 | + sed -e 's/^[^:]*://' -e 's/:.*//'`;; | ||
181 | + *) touch_files="$touch_files $f.in";; | ||
182 | + esac | ||
183 | + done | ||
184 | + touch $touch_files | ||
185 | + ;; | ||
186 | + | ||
187 | + automake*) | ||
188 | + echo 1>&2 "\ | ||
189 | +WARNING: \`$1' is $msg. You should only need it if | ||
190 | + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. | ||
191 | + You might want to install the \`Automake' and \`Perl' packages. | ||
192 | + Grab them from any GNU archive site." | ||
193 | + find . -type f -name Makefile.am -print | | ||
194 | + sed 's/\.am$/.in/' | | ||
195 | + while read f; do touch "$f"; done | ||
196 | + ;; | ||
197 | + | ||
198 | + autom4te*) | ||
199 | + echo 1>&2 "\ | ||
200 | +WARNING: \`$1' is needed, but is $msg. | ||
201 | + You might have modified some files without having the | ||
202 | + proper tools for further handling them. | ||
203 | + You can get \`$1' as part of \`Autoconf' from any GNU | ||
204 | + archive site." | ||
205 | + | ||
206 | + file=`echo "$*" | sed -n "$sed_output"` | ||
207 | + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | ||
208 | + if test -f "$file"; then | ||
209 | + touch $file | ||
210 | + else | ||
211 | + test -z "$file" || exec >$file | ||
212 | + echo "#! /bin/sh" | ||
213 | + echo "# Created by GNU Automake missing as a replacement of" | ||
214 | + echo "# $ $@" | ||
215 | + echo "exit 0" | ||
216 | + chmod +x $file | ||
217 | + exit 1 | ||
218 | + fi | ||
219 | + ;; | ||
220 | + | ||
221 | + bison*|yacc*) | ||
222 | + echo 1>&2 "\ | ||
223 | +WARNING: \`$1' $msg. You should only need it if | ||
224 | + you modified a \`.y' file. You may need the \`Bison' package | ||
225 | + in order for those modifications to take effect. You can get | ||
226 | + \`Bison' from any GNU archive site." | ||
227 | + rm -f y.tab.c y.tab.h | ||
228 | + if test $# -ne 1; then | ||
229 | + eval LASTARG="\${$#}" | ||
230 | + case $LASTARG in | ||
231 | + *.y) | ||
232 | + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` | ||
233 | + if test -f "$SRCFILE"; then | ||
234 | + cp "$SRCFILE" y.tab.c | ||
235 | + fi | ||
236 | + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` | ||
237 | + if test -f "$SRCFILE"; then | ||
238 | + cp "$SRCFILE" y.tab.h | ||
239 | + fi | ||
240 | + ;; | ||
241 | + esac | ||
242 | + fi | ||
243 | + if test ! -f y.tab.h; then | ||
244 | + echo >y.tab.h | ||
245 | + fi | ||
246 | + if test ! -f y.tab.c; then | ||
247 | + echo 'main() { return 0; }' >y.tab.c | ||
248 | + fi | ||
249 | + ;; | ||
250 | + | ||
251 | + lex*|flex*) | ||
252 | + echo 1>&2 "\ | ||
253 | +WARNING: \`$1' is $msg. You should only need it if | ||
254 | + you modified a \`.l' file. You may need the \`Flex' package | ||
255 | + in order for those modifications to take effect. You can get | ||
256 | + \`Flex' from any GNU archive site." | ||
257 | + rm -f lex.yy.c | ||
258 | + if test $# -ne 1; then | ||
259 | + eval LASTARG="\${$#}" | ||
260 | + case $LASTARG in | ||
261 | + *.l) | ||
262 | + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` | ||
263 | + if test -f "$SRCFILE"; then | ||
264 | + cp "$SRCFILE" lex.yy.c | ||
265 | + fi | ||
266 | + ;; | ||
267 | + esac | ||
268 | + fi | ||
269 | + if test ! -f lex.yy.c; then | ||
270 | + echo 'main() { return 0; }' >lex.yy.c | ||
271 | + fi | ||
272 | + ;; | ||
273 | + | ||
274 | + help2man*) | ||
275 | + echo 1>&2 "\ | ||
276 | +WARNING: \`$1' is $msg. You should only need it if | ||
277 | + you modified a dependency of a manual page. You may need the | ||
278 | + \`Help2man' package in order for those modifications to take | ||
279 | + effect. You can get \`Help2man' from any GNU archive site." | ||
280 | + | ||
281 | + file=`echo "$*" | sed -n "$sed_output"` | ||
282 | + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | ||
283 | + if test -f "$file"; then | ||
284 | + touch $file | ||
285 | + else | ||
286 | + test -z "$file" || exec >$file | ||
287 | + echo ".ab help2man is required to generate this page" | ||
288 | + exit $? | ||
289 | + fi | ||
290 | + ;; | ||
291 | + | ||
292 | + makeinfo*) | ||
293 | + echo 1>&2 "\ | ||
294 | +WARNING: \`$1' is $msg. You should only need it if | ||
295 | + you modified a \`.texi' or \`.texinfo' file, or any other file | ||
296 | + indirectly affecting the aspect of the manual. The spurious | ||
297 | + call might also be the consequence of using a buggy \`make' (AIX, | ||
298 | + DU, IRIX). You might want to install the \`Texinfo' package or | ||
299 | + the \`GNU make' package. Grab either from any GNU archive site." | ||
300 | + # The file to touch is that specified with -o ... | ||
301 | + file=`echo "$*" | sed -n "$sed_output"` | ||
302 | + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | ||
303 | + if test -z "$file"; then | ||
304 | + # ... or it is the one specified with @setfilename ... | ||
305 | + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` | ||
306 | + file=`sed -n ' | ||
307 | + /^@setfilename/{ | ||
308 | + s/.* \([^ ]*\) *$/\1/ | ||
309 | + p | ||
310 | + q | ||
311 | + }' $infile` | ||
312 | + # ... or it is derived from the source name (dir/f.texi becomes f.info) | ||
313 | + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info | ||
314 | + fi | ||
315 | + # If the file does not exist, the user really needs makeinfo; | ||
316 | + # let's fail without touching anything. | ||
317 | + test -f $file || exit 1 | ||
318 | + touch $file | ||
319 | + ;; | ||
320 | + | ||
321 | + tar*) | ||
322 | + shift | ||
323 | + | ||
324 | + # We have already tried tar in the generic part. | ||
325 | + # Look for gnutar/gtar before invocation to avoid ugly error | ||
326 | + # messages. | ||
327 | + if (gnutar --version > /dev/null 2>&1); then | ||
328 | + gnutar "$@" && exit 0 | ||
329 | + fi | ||
330 | + if (gtar --version > /dev/null 2>&1); then | ||
331 | + gtar "$@" && exit 0 | ||
332 | + fi | ||
333 | + firstarg="$1" | ||
334 | + if shift; then | ||
335 | + case $firstarg in | ||
336 | + *o*) | ||
337 | + firstarg=`echo "$firstarg" | sed s/o//` | ||
338 | + tar "$firstarg" "$@" && exit 0 | ||
339 | + ;; | ||
340 | + esac | ||
341 | + case $firstarg in | ||
342 | + *h*) | ||
343 | + firstarg=`echo "$firstarg" | sed s/h//` | ||
344 | + tar "$firstarg" "$@" && exit 0 | ||
345 | + ;; | ||
346 | + esac | ||
347 | + fi | ||
348 | + | ||
349 | + echo 1>&2 "\ | ||
350 | +WARNING: I can't seem to be able to run \`tar' with the given arguments. | ||
351 | + You may want to install GNU tar or Free paxutils, or check the | ||
352 | + command line arguments." | ||
353 | + exit 1 | ||
354 | + ;; | ||
355 | + | ||
356 | + *) | ||
357 | + echo 1>&2 "\ | ||
358 | +WARNING: \`$1' is needed, and is $msg. | ||
359 | + You might have modified some files without having the | ||
360 | + proper tools for further handling them. Check the \`README' file, | ||
361 | + it often tells you about the needed prerequisites for installing | ||
362 | + this package. You may also peek at any GNU archive site, in case | ||
363 | + some other package would contain this missing \`$1' program." | ||
364 | + exit 1 | ||
365 | + ;; | ||
366 | +esac | ||
367 | + | ||
368 | +exit 0 | ||
369 | + | ||
370 | +# Local variables: | ||
371 | +# eval: (add-hook 'write-file-hooks 'time-stamp) | ||
372 | +# time-stamp-start: "scriptversion=" | ||
373 | +# time-stamp-format: "%:y-%02m-%02d.%02H" | ||
374 | +# time-stamp-time-zone: "UTC" | ||
375 | +# time-stamp-end: "; # UTC" | ||
376 | +# End: |
Please
register
or
login
to post a comment