Revisión | 6ce247d8cd8496045b116017bf7041618c27e050 (tree) |
---|---|
Tiempo | 2012-10-27 12:36:42 |
Autor | matsuand <matsuand@user...> |
Commiter | matsuand |
Added 'WithMSVC'.
@@ -0,0 +1 @@ | ||
1 | +autom4te.cache/ |
@@ -0,0 +1 @@ | ||
1 | +matsuand <matsuand AT users DT sourceforge DT jp> |
@@ -0,0 +1,674 @@ | ||
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>. |
@@ -0,0 +1,370 @@ | ||
1 | +Installation Instructions | |
2 | +************************* | |
3 | + | |
4 | +Copyright (C) 1994-1996, 1999-2002, 2004-2012 Free Software Foundation, | |
5 | +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 | + HP-UX `make' updates targets which have the same time stamps as | |
230 | +their prerequisites, which makes it generally unusable when shipped | |
231 | +generated files such as `configure' are involved. Use GNU `make' | |
232 | +instead. | |
233 | + | |
234 | + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot | |
235 | +parse its `<wchar.h>' header file. The option `-nodtk' can be used as | |
236 | +a workaround. If GNU CC is not installed, it is therefore recommended | |
237 | +to try | |
238 | + | |
239 | + ./configure CC="cc" | |
240 | + | |
241 | +and if that doesn't work, try | |
242 | + | |
243 | + ./configure CC="cc -nodtk" | |
244 | + | |
245 | + On Solaris, don't put `/usr/ucb' early in your `PATH'. This | |
246 | +directory contains several dysfunctional programs; working variants of | |
247 | +these programs are available in `/usr/bin'. So, if you need `/usr/ucb' | |
248 | +in your `PATH', put it _after_ `/usr/bin'. | |
249 | + | |
250 | + On Haiku, software installed for all users goes in `/boot/common', | |
251 | +not `/usr/local'. It is recommended to use the following options: | |
252 | + | |
253 | + ./configure --prefix=/boot/common | |
254 | + | |
255 | +Specifying the System Type | |
256 | +========================== | |
257 | + | |
258 | + There may be some features `configure' cannot figure out | |
259 | +automatically, but needs to determine by the type of machine the package | |
260 | +will run on. Usually, assuming the package is built to be run on the | |
261 | +_same_ architectures, `configure' can figure that out, but if it prints | |
262 | +a message saying it cannot guess the machine type, give it the | |
263 | +`--build=TYPE' option. TYPE can either be a short name for the system | |
264 | +type, such as `sun4', or a canonical name which has the form: | |
265 | + | |
266 | + CPU-COMPANY-SYSTEM | |
267 | + | |
268 | +where SYSTEM can have one of these forms: | |
269 | + | |
270 | + OS | |
271 | + KERNEL-OS | |
272 | + | |
273 | + See the file `config.sub' for the possible values of each field. If | |
274 | +`config.sub' isn't included in this package, then this package doesn't | |
275 | +need to know the machine type. | |
276 | + | |
277 | + If you are _building_ compiler tools for cross-compiling, you should | |
278 | +use the option `--target=TYPE' to select the type of system they will | |
279 | +produce code for. | |
280 | + | |
281 | + If you want to _use_ a cross compiler, that generates code for a | |
282 | +platform different from the build platform, you should specify the | |
283 | +"host" platform (i.e., that on which the generated programs will | |
284 | +eventually be run) with `--host=TYPE'. | |
285 | + | |
286 | +Sharing Defaults | |
287 | +================ | |
288 | + | |
289 | + If you want to set default values for `configure' scripts to share, | |
290 | +you can create a site shell script called `config.site' that gives | |
291 | +default values for variables like `CC', `cache_file', and `prefix'. | |
292 | +`configure' looks for `PREFIX/share/config.site' if it exists, then | |
293 | +`PREFIX/etc/config.site' if it exists. Or, you can set the | |
294 | +`CONFIG_SITE' environment variable to the location of the site script. | |
295 | +A warning: not all `configure' scripts look for a site script. | |
296 | + | |
297 | +Defining Variables | |
298 | +================== | |
299 | + | |
300 | + Variables not defined in a site shell script can be set in the | |
301 | +environment passed to `configure'. However, some packages may run | |
302 | +configure again during the build, and the customized values of these | |
303 | +variables may be lost. In order to avoid this problem, you should set | |
304 | +them in the `configure' command line, using `VAR=value'. For example: | |
305 | + | |
306 | + ./configure CC=/usr/local2/bin/gcc | |
307 | + | |
308 | +causes the specified `gcc' to be used as the C compiler (unless it is | |
309 | +overridden in the site shell script). | |
310 | + | |
311 | +Unfortunately, this technique does not work for `CONFIG_SHELL' due to | |
312 | +an Autoconf limitation. Until the limitation is lifted, you can use | |
313 | +this workaround: | |
314 | + | |
315 | + CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash | |
316 | + | |
317 | +`configure' Invocation | |
318 | +====================== | |
319 | + | |
320 | + `configure' recognizes the following options to control how it | |
321 | +operates. | |
322 | + | |
323 | +`--help' | |
324 | +`-h' | |
325 | + Print a summary of all of the options to `configure', and exit. | |
326 | + | |
327 | +`--help=short' | |
328 | +`--help=recursive' | |
329 | + Print a summary of the options unique to this package's | |
330 | + `configure', and exit. The `short' variant lists options used | |
331 | + only in the top level, while the `recursive' variant lists options | |
332 | + also present in any nested packages. | |
333 | + | |
334 | +`--version' | |
335 | +`-V' | |
336 | + Print the version of Autoconf used to generate the `configure' | |
337 | + script, and exit. | |
338 | + | |
339 | +`--cache-file=FILE' | |
340 | + Enable the cache: use and save the results of the tests in FILE, | |
341 | + traditionally `config.cache'. FILE defaults to `/dev/null' to | |
342 | + disable caching. | |
343 | + | |
344 | +`--config-cache' | |
345 | +`-C' | |
346 | + Alias for `--cache-file=config.cache'. | |
347 | + | |
348 | +`--quiet' | |
349 | +`--silent' | |
350 | +`-q' | |
351 | + Do not print messages saying which checks are being made. To | |
352 | + suppress all normal output, redirect it to `/dev/null' (any error | |
353 | + messages will still be shown). | |
354 | + | |
355 | +`--srcdir=DIR' | |
356 | + Look for the package's source code in directory DIR. Usually | |
357 | + `configure' can determine that directory automatically. | |
358 | + | |
359 | +`--prefix=DIR' | |
360 | + Use DIR as the installation prefix. *note Installation Names:: | |
361 | + for more details, including other options available for fine-tuning | |
362 | + the installation locations. | |
363 | + | |
364 | +`--no-create' | |
365 | +`-n' | |
366 | + Run the configure checks, but stop before creating any output | |
367 | + files. | |
368 | + | |
369 | +`configure' also accepts some other, not widely useful, options. Run | |
370 | +`configure --help' for more details. |
@@ -0,0 +1 @@ | ||
1 | +SUBDIRS = src |
@@ -0,0 +1,688 @@ | ||
1 | +# Makefile.in generated by automake 1.12.4 from Makefile.am. | |
2 | +# @configure_input@ | |
3 | + | |
4 | +# Copyright (C) 1994-2012 Free Software Foundation, Inc. | |
5 | + | |
6 | +# This Makefile.in is free software; the Free Software Foundation | |
7 | +# gives unlimited permission to copy and/or distribute it, | |
8 | +# with or without modifications, as long as this notice is preserved. | |
9 | + | |
10 | +# This program is distributed in the hope that it will be useful, | |
11 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
12 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
13 | +# PARTICULAR PURPOSE. | |
14 | + | |
15 | +@SET_MAKE@ | |
16 | +VPATH = @srcdir@ | |
17 | +am__make_dryrun = \ | |
18 | + { \ | |
19 | + am__dry=no; \ | |
20 | + case $$MAKEFLAGS in \ | |
21 | + *\\[\ \ ]*) \ | |
22 | + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | |
23 | + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ | |
24 | + *) \ | |
25 | + for am__flg in $$MAKEFLAGS; do \ | |
26 | + case $$am__flg in \ | |
27 | + *=*|--*) ;; \ | |
28 | + *n*) am__dry=yes; break;; \ | |
29 | + esac; \ | |
30 | + done;; \ | |
31 | + esac; \ | |
32 | + test $$am__dry = yes; \ | |
33 | + } | |
34 | +pkgdatadir = $(datadir)/@PACKAGE@ | |
35 | +pkgincludedir = $(includedir)/@PACKAGE@ | |
36 | +pkglibdir = $(libdir)/@PACKAGE@ | |
37 | +pkglibexecdir = $(libexecdir)/@PACKAGE@ | |
38 | +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | |
39 | +install_sh_DATA = $(install_sh) -c -m 644 | |
40 | +install_sh_PROGRAM = $(install_sh) -c | |
41 | +install_sh_SCRIPT = $(install_sh) -c | |
42 | +INSTALL_HEADER = $(INSTALL_DATA) | |
43 | +transform = $(program_transform_name) | |
44 | +NORMAL_INSTALL = : | |
45 | +PRE_INSTALL = : | |
46 | +POST_INSTALL = : | |
47 | +NORMAL_UNINSTALL = : | |
48 | +PRE_UNINSTALL = : | |
49 | +POST_UNINSTALL = : | |
50 | +subdir = . | |
51 | +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ | |
52 | + $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \ | |
53 | + ChangeLog INSTALL NEWS depcomp install-sh missing | |
54 | +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
55 | +am__aclocal_m4_deps = $(top_srcdir)/m4/cli.m4 \ | |
56 | + $(top_srcdir)/configure.ac | |
57 | +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
58 | + $(ACLOCAL_M4) | |
59 | +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | |
60 | + configure.lineno config.status.lineno | |
61 | +mkinstalldirs = $(install_sh) -d | |
62 | +CONFIG_CLEAN_FILES = | |
63 | +CONFIG_CLEAN_VPATH_FILES = | |
64 | +SOURCES = | |
65 | +DIST_SOURCES = | |
66 | +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | |
67 | + html-recursive info-recursive install-data-recursive \ | |
68 | + install-dvi-recursive install-exec-recursive \ | |
69 | + install-html-recursive install-info-recursive \ | |
70 | + install-pdf-recursive install-ps-recursive install-recursive \ | |
71 | + installcheck-recursive installdirs-recursive pdf-recursive \ | |
72 | + ps-recursive uninstall-recursive | |
73 | +am__can_run_installinfo = \ | |
74 | + case $$AM_UPDATE_INFO_DIR in \ | |
75 | + n|no|NO) false;; \ | |
76 | + *) (install-info --version) >/dev/null 2>&1;; \ | |
77 | + esac | |
78 | +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ | |
79 | + distclean-recursive maintainer-clean-recursive | |
80 | +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ | |
81 | + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ | |
82 | + cscope distdir dist dist-all distcheck | |
83 | +ETAGS = etags | |
84 | +CTAGS = ctags | |
85 | +CSCOPE = cscope | |
86 | +DIST_SUBDIRS = $(SUBDIRS) | |
87 | +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | |
88 | +distdir = $(PACKAGE)-$(VERSION) | |
89 | +top_distdir = $(distdir) | |
90 | +am__remove_distdir = \ | |
91 | + if test -d "$(distdir)"; then \ | |
92 | + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ | |
93 | + && rm -rf "$(distdir)" \ | |
94 | + || { sleep 5 && rm -rf "$(distdir)"; }; \ | |
95 | + else :; fi | |
96 | +am__post_remove_distdir = $(am__remove_distdir) | |
97 | +am__relativize = \ | |
98 | + dir0=`pwd`; \ | |
99 | + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ | |
100 | + sed_rest='s,^[^/]*/*,,'; \ | |
101 | + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ | |
102 | + sed_butlast='s,/*[^/]*$$,,'; \ | |
103 | + while test -n "$$dir1"; do \ | |
104 | + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ | |
105 | + if test "$$first" != "."; then \ | |
106 | + if test "$$first" = ".."; then \ | |
107 | + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ | |
108 | + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ | |
109 | + else \ | |
110 | + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ | |
111 | + if test "$$first2" = "$$first"; then \ | |
112 | + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ | |
113 | + else \ | |
114 | + dir2="../$$dir2"; \ | |
115 | + fi; \ | |
116 | + dir0="$$dir0"/"$$first"; \ | |
117 | + fi; \ | |
118 | + fi; \ | |
119 | + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ | |
120 | + done; \ | |
121 | + reldir="$$dir2" | |
122 | +DIST_ARCHIVES = $(distdir).tar.gz | |
123 | +GZIP_ENV = --best | |
124 | +DIST_TARGETS = dist-gzip | |
125 | +distuninstallcheck_listfiles = find . -type f -print | |
126 | +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | |
127 | + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' | |
128 | +distcleancheck_listfiles = find . -type f -print | |
129 | +ACLOCAL = @ACLOCAL@ | |
130 | +AMTAR = @AMTAR@ | |
131 | +AUTOCONF = @AUTOCONF@ | |
132 | +AUTOHEADER = @AUTOHEADER@ | |
133 | +AUTOMAKE = @AUTOMAKE@ | |
134 | +AWK = @AWK@ | |
135 | +CSC = @CSC@ | |
136 | +CYGPATH_W = @CYGPATH_W@ | |
137 | +DEFS = @DEFS@ | |
138 | +ECHO_C = @ECHO_C@ | |
139 | +ECHO_N = @ECHO_N@ | |
140 | +ECHO_T = @ECHO_T@ | |
141 | +ILASM = @ILASM@ | |
142 | +ILDISASM = @ILDISASM@ | |
143 | +INSTALL = @INSTALL@ | |
144 | +INSTALL_DATA = @INSTALL_DATA@ | |
145 | +INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
146 | +INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
147 | +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
148 | +LIBOBJS = @LIBOBJS@ | |
149 | +LIBS = @LIBS@ | |
150 | +LTLIBOBJS = @LTLIBOBJS@ | |
151 | +MAKEINFO = @MAKEINFO@ | |
152 | +MKDIR_P = @MKDIR_P@ | |
153 | +PACKAGE = @PACKAGE@ | |
154 | +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
155 | +PACKAGE_NAME = @PACKAGE_NAME@ | |
156 | +PACKAGE_STRING = @PACKAGE_STRING@ | |
157 | +PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
158 | +PACKAGE_URL = @PACKAGE_URL@ | |
159 | +PACKAGE_VERSION = @PACKAGE_VERSION@ | |
160 | +PATH_SEPARATOR = @PATH_SEPARATOR@ | |
161 | +RESGEN = @RESGEN@ | |
162 | +SET_MAKE = @SET_MAKE@ | |
163 | +SHELL = @SHELL@ | |
164 | +STRIP = @STRIP@ | |
165 | +VERSION = @VERSION@ | |
166 | +abs_builddir = @abs_builddir@ | |
167 | +abs_srcdir = @abs_srcdir@ | |
168 | +abs_top_builddir = @abs_top_builddir@ | |
169 | +abs_top_srcdir = @abs_top_srcdir@ | |
170 | +am__leading_dot = @am__leading_dot@ | |
171 | +am__tar = @am__tar@ | |
172 | +am__untar = @am__untar@ | |
173 | +bindir = @bindir@ | |
174 | +build_alias = @build_alias@ | |
175 | +builddir = @builddir@ | |
176 | +datadir = @datadir@ | |
177 | +datarootdir = @datarootdir@ | |
178 | +docdir = @docdir@ | |
179 | +dvidir = @dvidir@ | |
180 | +exec_prefix = @exec_prefix@ | |
181 | +host_alias = @host_alias@ | |
182 | +htmldir = @htmldir@ | |
183 | +includedir = @includedir@ | |
184 | +infodir = @infodir@ | |
185 | +install_sh = @install_sh@ | |
186 | +libdir = @libdir@ | |
187 | +libexecdir = @libexecdir@ | |
188 | +localedir = @localedir@ | |
189 | +localstatedir = @localstatedir@ | |
190 | +mandir = @mandir@ | |
191 | +mkdir_p = @mkdir_p@ | |
192 | +oldincludedir = @oldincludedir@ | |
193 | +pdfdir = @pdfdir@ | |
194 | +prefix = @prefix@ | |
195 | +program_transform_name = @program_transform_name@ | |
196 | +psdir = @psdir@ | |
197 | +sbindir = @sbindir@ | |
198 | +sharedstatedir = @sharedstatedir@ | |
199 | +srcdir = @srcdir@ | |
200 | +sysconfdir = @sysconfdir@ | |
201 | +target_alias = @target_alias@ | |
202 | +top_build_prefix = @top_build_prefix@ | |
203 | +top_builddir = @top_builddir@ | |
204 | +top_srcdir = @top_srcdir@ | |
205 | +SUBDIRS = src | |
206 | +all: all-recursive | |
207 | + | |
208 | +.SUFFIXES: | |
209 | +am--refresh: Makefile | |
210 | + @: | |
211 | +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | |
212 | + @for dep in $?; do \ | |
213 | + case '$(am__configure_deps)' in \ | |
214 | + *$$dep*) \ | |
215 | + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ | |
216 | + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ | |
217 | + && exit 0; \ | |
218 | + exit 1;; \ | |
219 | + esac; \ | |
220 | + done; \ | |
221 | + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ | |
222 | + $(am__cd) $(top_srcdir) && \ | |
223 | + $(AUTOMAKE) --gnu Makefile | |
224 | +.PRECIOUS: Makefile | |
225 | +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
226 | + @case '$?' in \ | |
227 | + *config.status*) \ | |
228 | + echo ' $(SHELL) ./config.status'; \ | |
229 | + $(SHELL) ./config.status;; \ | |
230 | + *) \ | |
231 | + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ | |
232 | + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ | |
233 | + esac; | |
234 | + | |
235 | +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | |
236 | + $(SHELL) ./config.status --recheck | |
237 | + | |
238 | +$(top_srcdir)/configure: $(am__configure_deps) | |
239 | + $(am__cd) $(srcdir) && $(AUTOCONF) | |
240 | +$(ACLOCAL_M4): $(am__aclocal_m4_deps) | |
241 | + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | |
242 | +$(am__aclocal_m4_deps): | |
243 | + | |
244 | +# This directory's subdirectories are mostly independent; you can cd | |
245 | +# into them and run 'make' without going through this Makefile. | |
246 | +# To change the values of 'make' variables: instead of editing Makefiles, | |
247 | +# (1) if the variable is set in 'config.status', edit 'config.status' | |
248 | +# (which will cause the Makefiles to be regenerated when you run 'make'); | |
249 | +# (2) otherwise, pass the desired values on the 'make' command line. | |
250 | +$(RECURSIVE_TARGETS) $(RECURSIVE_CLEAN_TARGETS): | |
251 | + @fail= failcom='exit 1'; \ | |
252 | + for f in x $$MAKEFLAGS; do \ | |
253 | + case $$f in \ | |
254 | + *=* | --[!k]*);; \ | |
255 | + *k*) failcom='fail=yes';; \ | |
256 | + esac; \ | |
257 | + done; \ | |
258 | + dot_seen=no; \ | |
259 | + target=`echo $@ | sed s/-recursive//`; \ | |
260 | + case "$@" in \ | |
261 | + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | |
262 | + *) list='$(SUBDIRS)' ;; \ | |
263 | + esac; \ | |
264 | + for subdir in $$list; do \ | |
265 | + echo "Making $$target in $$subdir"; \ | |
266 | + if test "$$subdir" = "."; then \ | |
267 | + dot_seen=yes; \ | |
268 | + local_target="$$target-am"; \ | |
269 | + else \ | |
270 | + local_target="$$target"; \ | |
271 | + fi; \ | |
272 | + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
273 | + || eval $$failcom; \ | |
274 | + done; \ | |
275 | + if test "$$dot_seen" = "no"; then \ | |
276 | + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | |
277 | + fi; test -z "$$fail" | |
278 | +tags-recursive: | |
279 | + list='$(SUBDIRS)'; for subdir in $$list; do \ | |
280 | + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | |
281 | + done | |
282 | +ctags-recursive: | |
283 | + list='$(SUBDIRS)'; for subdir in $$list; do \ | |
284 | + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | |
285 | + done | |
286 | +cscopelist-recursive: | |
287 | + list='$(SUBDIRS)'; for subdir in $$list; do \ | |
288 | + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \ | |
289 | + done | |
290 | + | |
291 | +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
292 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
293 | + unique=`for i in $$list; do \ | |
294 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
295 | + done | \ | |
296 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
297 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
298 | + mkid -fID $$unique | |
299 | +tags: TAGS | |
300 | + | |
301 | +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
302 | + $(TAGS_FILES) $(LISP) | |
303 | + set x; \ | |
304 | + here=`pwd`; \ | |
305 | + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ | |
306 | + include_option=--etags-include; \ | |
307 | + empty_fix=.; \ | |
308 | + else \ | |
309 | + include_option=--include; \ | |
310 | + empty_fix=; \ | |
311 | + fi; \ | |
312 | + list='$(SUBDIRS)'; for subdir in $$list; do \ | |
313 | + if test "$$subdir" = .; then :; else \ | |
314 | + test ! -f $$subdir/TAGS || \ | |
315 | + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ | |
316 | + fi; \ | |
317 | + done; \ | |
318 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
319 | + unique=`for i in $$list; do \ | |
320 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
321 | + done | \ | |
322 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
323 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
324 | + shift; \ | |
325 | + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | |
326 | + test -n "$$unique" || unique=$$empty_fix; \ | |
327 | + if test $$# -gt 0; then \ | |
328 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
329 | + "$$@" $$unique; \ | |
330 | + else \ | |
331 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
332 | + $$unique; \ | |
333 | + fi; \ | |
334 | + fi | |
335 | +ctags: CTAGS | |
336 | +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
337 | + $(TAGS_FILES) $(LISP) | |
338 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
339 | + unique=`for i in $$list; do \ | |
340 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
341 | + done | \ | |
342 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
343 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
344 | + test -z "$(CTAGS_ARGS)$$unique" \ | |
345 | + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | |
346 | + $$unique | |
347 | + | |
348 | +GTAGS: | |
349 | + here=`$(am__cd) $(top_builddir) && pwd` \ | |
350 | + && $(am__cd) $(top_srcdir) \ | |
351 | + && gtags -i $(GTAGS_ARGS) "$$here" | |
352 | + | |
353 | +cscope: cscope.files | |
354 | + test ! -s cscope.files \ | |
355 | + || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) | |
356 | + | |
357 | +clean-cscope: | |
358 | + -rm -f cscope.files | |
359 | + | |
360 | +cscope.files: clean-cscope cscopelist-recursive cscopelist | |
361 | + | |
362 | +cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP) | |
363 | + list='$(SOURCES) $(HEADERS) $(LISP)'; \ | |
364 | + case "$(srcdir)" in \ | |
365 | + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | |
366 | + *) sdir=$(subdir)/$(srcdir) ;; \ | |
367 | + esac; \ | |
368 | + for i in $$list; do \ | |
369 | + if test -f "$$i"; then \ | |
370 | + echo "$(subdir)/$$i"; \ | |
371 | + else \ | |
372 | + echo "$$sdir/$$i"; \ | |
373 | + fi; \ | |
374 | + done >> $(top_builddir)/cscope.files | |
375 | + | |
376 | +distclean-tags: | |
377 | + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | |
378 | + -rm -f cscope.out cscope.in.out cscope.po.out cscope.files | |
379 | + | |
380 | +distdir: $(DISTFILES) | |
381 | + $(am__remove_distdir) | |
382 | + test -d "$(distdir)" || mkdir "$(distdir)" | |
383 | + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
384 | + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
385 | + list='$(DISTFILES)'; \ | |
386 | + dist_files=`for file in $$list; do echo $$file; done | \ | |
387 | + sed -e "s|^$$srcdirstrip/||;t" \ | |
388 | + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | |
389 | + case $$dist_files in \ | |
390 | + */*) $(MKDIR_P) `echo "$$dist_files" | \ | |
391 | + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | |
392 | + sort -u` ;; \ | |
393 | + esac; \ | |
394 | + for file in $$dist_files; do \ | |
395 | + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | |
396 | + if test -d $$d/$$file; then \ | |
397 | + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | |
398 | + if test -d "$(distdir)/$$file"; then \ | |
399 | + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
400 | + fi; \ | |
401 | + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | |
402 | + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | |
403 | + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
404 | + fi; \ | |
405 | + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | |
406 | + else \ | |
407 | + test -f "$(distdir)/$$file" \ | |
408 | + || cp -p $$d/$$file "$(distdir)/$$file" \ | |
409 | + || exit 1; \ | |
410 | + fi; \ | |
411 | + done | |
412 | + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | |
413 | + if test "$$subdir" = .; then :; else \ | |
414 | + $(am__make_dryrun) \ | |
415 | + || test -d "$(distdir)/$$subdir" \ | |
416 | + || $(MKDIR_P) "$(distdir)/$$subdir" \ | |
417 | + || exit 1; \ | |
418 | + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ | |
419 | + $(am__relativize); \ | |
420 | + new_distdir=$$reldir; \ | |
421 | + dir1=$$subdir; dir2="$(top_distdir)"; \ | |
422 | + $(am__relativize); \ | |
423 | + new_top_distdir=$$reldir; \ | |
424 | + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ | |
425 | + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ | |
426 | + ($(am__cd) $$subdir && \ | |
427 | + $(MAKE) $(AM_MAKEFLAGS) \ | |
428 | + top_distdir="$$new_top_distdir" \ | |
429 | + distdir="$$new_distdir" \ | |
430 | + am__remove_distdir=: \ | |
431 | + am__skip_length_check=: \ | |
432 | + am__skip_mode_fix=: \ | |
433 | + distdir) \ | |
434 | + || exit 1; \ | |
435 | + fi; \ | |
436 | + done | |
437 | + -test -n "$(am__skip_mode_fix)" \ | |
438 | + || find "$(distdir)" -type d ! -perm -755 \ | |
439 | + -exec chmod u+rwx,go+rx {} \; -o \ | |
440 | + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | |
441 | + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | |
442 | + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ | |
443 | + || chmod -R a+r "$(distdir)" | |
444 | +dist-gzip: distdir | |
445 | + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
446 | + $(am__post_remove_distdir) | |
447 | + | |
448 | +dist-bzip2: distdir | |
449 | + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 | |
450 | + $(am__post_remove_distdir) | |
451 | + | |
452 | +dist-lzip: distdir | |
453 | + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz | |
454 | + $(am__post_remove_distdir) | |
455 | + | |
456 | +dist-xz: distdir | |
457 | + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz | |
458 | + $(am__post_remove_distdir) | |
459 | + | |
460 | +dist-tarZ: distdir | |
461 | + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z | |
462 | + $(am__post_remove_distdir) | |
463 | + | |
464 | +dist-shar: distdir | |
465 | + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz | |
466 | + $(am__post_remove_distdir) | |
467 | + | |
468 | +dist-zip: distdir | |
469 | + -rm -f $(distdir).zip | |
470 | + zip -rq $(distdir).zip $(distdir) | |
471 | + $(am__post_remove_distdir) | |
472 | + | |
473 | +dist dist-all: | |
474 | + $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' | |
475 | + $(am__post_remove_distdir) | |
476 | + | |
477 | +# This target untars the dist file and tries a VPATH configuration. Then | |
478 | +# it guarantees that the distribution is self-contained by making another | |
479 | +# tarfile. | |
480 | +distcheck: dist | |
481 | + case '$(DIST_ARCHIVES)' in \ | |
482 | + *.tar.gz*) \ | |
483 | + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ | |
484 | + *.tar.bz2*) \ | |
485 | + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ | |
486 | + *.tar.lz*) \ | |
487 | + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ | |
488 | + *.tar.xz*) \ | |
489 | + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ | |
490 | + *.tar.Z*) \ | |
491 | + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ | |
492 | + *.shar.gz*) \ | |
493 | + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ | |
494 | + *.zip*) \ | |
495 | + unzip $(distdir).zip ;;\ | |
496 | + esac | |
497 | + chmod -R a-w $(distdir) | |
498 | + chmod u+w $(distdir) | |
499 | + mkdir $(distdir)/_build $(distdir)/_inst | |
500 | + chmod a-w $(distdir) | |
501 | + test -d $(distdir)/_build || exit 0; \ | |
502 | + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ | |
503 | + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ | |
504 | + && am__cwd=`pwd` \ | |
505 | + && $(am__cd) $(distdir)/_build \ | |
506 | + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ | |
507 | + $(AM_DISTCHECK_CONFIGURE_FLAGS) \ | |
508 | + $(DISTCHECK_CONFIGURE_FLAGS) \ | |
509 | + && $(MAKE) $(AM_MAKEFLAGS) \ | |
510 | + && $(MAKE) $(AM_MAKEFLAGS) dvi \ | |
511 | + && $(MAKE) $(AM_MAKEFLAGS) check \ | |
512 | + && $(MAKE) $(AM_MAKEFLAGS) install \ | |
513 | + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ | |
514 | + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ | |
515 | + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ | |
516 | + distuninstallcheck \ | |
517 | + && chmod -R a-w "$$dc_install_base" \ | |
518 | + && ({ \ | |
519 | + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ | |
520 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ | |
521 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ | |
522 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ | |
523 | + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ | |
524 | + } || { rm -rf "$$dc_destdir"; exit 1; }) \ | |
525 | + && rm -rf "$$dc_destdir" \ | |
526 | + && $(MAKE) $(AM_MAKEFLAGS) dist \ | |
527 | + && rm -rf $(DIST_ARCHIVES) \ | |
528 | + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ | |
529 | + && cd "$$am__cwd" \ | |
530 | + || exit 1 | |
531 | + $(am__post_remove_distdir) | |
532 | + @(echo "$(distdir) archives ready for distribution: "; \ | |
533 | + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ | |
534 | + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' | |
535 | +distuninstallcheck: | |
536 | + @test -n '$(distuninstallcheck_dir)' || { \ | |
537 | + echo 'ERROR: trying to run $@ with an empty' \ | |
538 | + '$$(distuninstallcheck_dir)' >&2; \ | |
539 | + exit 1; \ | |
540 | + }; \ | |
541 | + $(am__cd) '$(distuninstallcheck_dir)' || { \ | |
542 | + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ | |
543 | + exit 1; \ | |
544 | + }; \ | |
545 | + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ | |
546 | + || { echo "ERROR: files left after uninstall:" ; \ | |
547 | + if test -n "$(DESTDIR)"; then \ | |
548 | + echo " (check DESTDIR support)"; \ | |
549 | + fi ; \ | |
550 | + $(distuninstallcheck_listfiles) ; \ | |
551 | + exit 1; } >&2 | |
552 | +distcleancheck: distclean | |
553 | + @if test '$(srcdir)' = . ; then \ | |
554 | + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ | |
555 | + exit 1 ; \ | |
556 | + fi | |
557 | + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ | |
558 | + || { echo "ERROR: files left in build directory after distclean:" ; \ | |
559 | + $(distcleancheck_listfiles) ; \ | |
560 | + exit 1; } >&2 | |
561 | +check-am: all-am | |
562 | +check: check-recursive | |
563 | +all-am: Makefile | |
564 | +installdirs: installdirs-recursive | |
565 | +installdirs-am: | |
566 | +install: install-recursive | |
567 | +install-exec: install-exec-recursive | |
568 | +install-data: install-data-recursive | |
569 | +uninstall: uninstall-recursive | |
570 | + | |
571 | +install-am: all-am | |
572 | + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | |
573 | + | |
574 | +installcheck: installcheck-recursive | |
575 | +install-strip: | |
576 | + if test -z '$(STRIP)'; then \ | |
577 | + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
578 | + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
579 | + install; \ | |
580 | + else \ | |
581 | + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
582 | + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
583 | + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | |
584 | + fi | |
585 | +mostlyclean-generic: | |
586 | + | |
587 | +clean-generic: | |
588 | + | |
589 | +distclean-generic: | |
590 | + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | |
591 | + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | |
592 | + | |
593 | +maintainer-clean-generic: | |
594 | + @echo "This command is intended for maintainers to use" | |
595 | + @echo "it deletes files that may require special tools to rebuild." | |
596 | +clean: clean-recursive | |
597 | + | |
598 | +clean-am: clean-generic mostlyclean-am | |
599 | + | |
600 | +distclean: distclean-recursive | |
601 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
602 | + -rm -f Makefile | |
603 | +distclean-am: clean-am distclean-generic distclean-tags | |
604 | + | |
605 | +dvi: dvi-recursive | |
606 | + | |
607 | +dvi-am: | |
608 | + | |
609 | +html: html-recursive | |
610 | + | |
611 | +html-am: | |
612 | + | |
613 | +info: info-recursive | |
614 | + | |
615 | +info-am: | |
616 | + | |
617 | +install-data-am: | |
618 | + | |
619 | +install-dvi: install-dvi-recursive | |
620 | + | |
621 | +install-dvi-am: | |
622 | + | |
623 | +install-exec-am: | |
624 | + | |
625 | +install-html: install-html-recursive | |
626 | + | |
627 | +install-html-am: | |
628 | + | |
629 | +install-info: install-info-recursive | |
630 | + | |
631 | +install-info-am: | |
632 | + | |
633 | +install-man: | |
634 | + | |
635 | +install-pdf: install-pdf-recursive | |
636 | + | |
637 | +install-pdf-am: | |
638 | + | |
639 | +install-ps: install-ps-recursive | |
640 | + | |
641 | +install-ps-am: | |
642 | + | |
643 | +installcheck-am: | |
644 | + | |
645 | +maintainer-clean: maintainer-clean-recursive | |
646 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
647 | + -rm -rf $(top_srcdir)/autom4te.cache | |
648 | + -rm -f Makefile | |
649 | +maintainer-clean-am: distclean-am maintainer-clean-generic | |
650 | + | |
651 | +mostlyclean: mostlyclean-recursive | |
652 | + | |
653 | +mostlyclean-am: mostlyclean-generic | |
654 | + | |
655 | +pdf: pdf-recursive | |
656 | + | |
657 | +pdf-am: | |
658 | + | |
659 | +ps: ps-recursive | |
660 | + | |
661 | +ps-am: | |
662 | + | |
663 | +uninstall-am: | |
664 | + | |
665 | +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) \ | |
666 | + cscopelist-recursive ctags-recursive install-am install-strip \ | |
667 | + tags-recursive | |
668 | + | |
669 | +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ | |
670 | + all all-am am--refresh check check-am clean clean-cscope \ | |
671 | + clean-generic cscope cscopelist cscopelist-recursive ctags \ | |
672 | + ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-lzip \ | |
673 | + dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \ | |
674 | + distclean-generic distclean-tags distcleancheck distdir \ | |
675 | + distuninstallcheck dvi dvi-am html html-am info info-am \ | |
676 | + install install-am install-data install-data-am install-dvi \ | |
677 | + install-dvi-am install-exec install-exec-am install-html \ | |
678 | + install-html-am install-info install-info-am install-man \ | |
679 | + install-pdf install-pdf-am install-ps install-ps-am \ | |
680 | + install-strip installcheck installcheck-am installdirs \ | |
681 | + installdirs-am maintainer-clean maintainer-clean-generic \ | |
682 | + mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \ | |
683 | + tags-recursive uninstall uninstall-am | |
684 | + | |
685 | + | |
686 | +# Tell versions [3.59,3.63) of GNU make to not export all variables. | |
687 | +# Otherwise a system limit (for SysV at least) may be exceeded. | |
688 | +.NOEXPORT: |
@@ -0,0 +1,44 @@ | ||
1 | +vi Makefile.am | |
2 | + SUBDIRS = src | |
3 | + | |
4 | +mkdir src | |
5 | + | |
6 | +vi src/Makefile.am | |
7 | + bin_PROGRAMS = hello.exe | |
8 | + hello_exe_SOURCES = hello.cs | |
9 | + | |
10 | + SUFFIXES = .cs .exe | |
11 | + .cs.exe: | |
12 | + $(CSC) $^ /out:$@ | |
13 | + | |
14 | + hello.exe: $(hello_exe_SOURCES) | |
15 | + | |
16 | +vi src/hello.cpp | |
17 | + using System; | |
18 | + | |
19 | + namespace Autotoolstest | |
20 | + { | |
21 | + public class mono01 | |
22 | + { | |
23 | + public static void Main() | |
24 | + { | |
25 | + Console.WriteLine(@"Hello, World!"); | |
26 | + } | |
27 | + } | |
28 | + } | |
29 | + | |
30 | +autoscan | |
31 | +mv configure.{scan,ac} | |
32 | + | |
33 | +vi configure.ac | |
34 | + AM_INIT_AUTOMAKE | |
35 | + m4_include([m4/cli.m4]) | |
36 | + AM_PROG_CLI | |
37 | + | |
38 | +aclocal | |
39 | +#autoheader | |
40 | + | |
41 | +touch README NEWS AUTHORS ChangeLog | |
42 | +automake -c -a | |
43 | + | |
44 | +autoconf |
@@ -0,0 +1,596 @@ | ||
1 | +# generated automatically by aclocal 1.12.4 -*- Autoconf -*- | |
2 | + | |
3 | +# Copyright (C) 1996-2012 Free Software Foundation, Inc. | |
4 | + | |
5 | +# This file is free software; the Free Software Foundation | |
6 | +# gives unlimited permission to copy and/or distribute it, | |
7 | +# with or without modifications, as long as this notice is preserved. | |
8 | + | |
9 | +# This program is distributed in the hope that it will be useful, | |
10 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
11 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
12 | +# PARTICULAR PURPOSE. | |
13 | + | |
14 | +m4_ifndef([AC_AUTOCONF_VERSION], | |
15 | + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
16 | +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, | |
17 | +[m4_warning([this file was generated for autoconf 2.69. | |
18 | +You have another version of autoconf. It may work, but is not guaranteed to. | |
19 | +If you have problems, you may need to regenerate the build system entirely. | |
20 | +To do so, use the procedure documented by the package, typically 'autoreconf'.])]) | |
21 | + | |
22 | +# Copyright (C) 2002-2012 Free Software Foundation, Inc. | |
23 | +# | |
24 | +# This file is free software; the Free Software Foundation | |
25 | +# gives unlimited permission to copy and/or distribute it, | |
26 | +# with or without modifications, as long as this notice is preserved. | |
27 | + | |
28 | +# AM_AUTOMAKE_VERSION(VERSION) | |
29 | +# ---------------------------- | |
30 | +# Automake X.Y traces this macro to ensure aclocal.m4 has been | |
31 | +# generated from the m4 files accompanying Automake X.Y. | |
32 | +# (This private macro should not be called outside this file.) | |
33 | +AC_DEFUN([AM_AUTOMAKE_VERSION], | |
34 | +[am__api_version='1.12' | |
35 | +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | |
36 | +dnl require some minimum version. Point them to the right macro. | |
37 | +m4_if([$1], [1.12.4], [], | |
38 | + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | |
39 | +]) | |
40 | + | |
41 | +# _AM_AUTOCONF_VERSION(VERSION) | |
42 | +# ----------------------------- | |
43 | +# aclocal traces this macro to find the Autoconf version. | |
44 | +# This is a private macro too. Using m4_define simplifies | |
45 | +# the logic in aclocal, which can simply ignore this definition. | |
46 | +m4_define([_AM_AUTOCONF_VERSION], []) | |
47 | + | |
48 | +# AM_SET_CURRENT_AUTOMAKE_VERSION | |
49 | +# ------------------------------- | |
50 | +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | |
51 | +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | |
52 | +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | |
53 | +[AM_AUTOMAKE_VERSION([1.12.4])dnl | |
54 | +m4_ifndef([AC_AUTOCONF_VERSION], | |
55 | + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
56 | +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | |
57 | + | |
58 | +# AM_AUX_DIR_EXPAND -*- Autoconf -*- | |
59 | + | |
60 | +# Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
61 | +# | |
62 | +# This file is free software; the Free Software Foundation | |
63 | +# gives unlimited permission to copy and/or distribute it, | |
64 | +# with or without modifications, as long as this notice is preserved. | |
65 | + | |
66 | +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | |
67 | +# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to | |
68 | +# '$srcdir', '$srcdir/..', or '$srcdir/../..'. | |
69 | +# | |
70 | +# Of course, Automake must honor this variable whenever it calls a | |
71 | +# tool from the auxiliary directory. The problem is that $srcdir (and | |
72 | +# therefore $ac_aux_dir as well) can be either absolute or relative, | |
73 | +# depending on how configure is run. This is pretty annoying, since | |
74 | +# it makes $ac_aux_dir quite unusable in subdirectories: in the top | |
75 | +# source directory, any form will work fine, but in subdirectories a | |
76 | +# relative path needs to be adjusted first. | |
77 | +# | |
78 | +# $ac_aux_dir/missing | |
79 | +# fails when called from a subdirectory if $ac_aux_dir is relative | |
80 | +# $top_srcdir/$ac_aux_dir/missing | |
81 | +# fails if $ac_aux_dir is absolute, | |
82 | +# fails when called from a subdirectory in a VPATH build with | |
83 | +# a relative $ac_aux_dir | |
84 | +# | |
85 | +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir | |
86 | +# are both prefixed by $srcdir. In an in-source build this is usually | |
87 | +# harmless because $srcdir is '.', but things will broke when you | |
88 | +# start a VPATH build or use an absolute $srcdir. | |
89 | +# | |
90 | +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | |
91 | +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: | |
92 | +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | |
93 | +# and then we would define $MISSING as | |
94 | +# MISSING="\${SHELL} $am_aux_dir/missing" | |
95 | +# This will work as long as MISSING is not called from configure, because | |
96 | +# unfortunately $(top_srcdir) has no meaning in configure. | |
97 | +# However there are other variables, like CC, which are often used in | |
98 | +# configure, and could therefore not use this "fixed" $ac_aux_dir. | |
99 | +# | |
100 | +# Another solution, used here, is to always expand $ac_aux_dir to an | |
101 | +# absolute PATH. The drawback is that using absolute paths prevent a | |
102 | +# configured tree to be moved without reconfiguration. | |
103 | + | |
104 | +AC_DEFUN([AM_AUX_DIR_EXPAND], | |
105 | +[dnl Rely on autoconf to set up CDPATH properly. | |
106 | +AC_PREREQ([2.50])dnl | |
107 | +# expand $ac_aux_dir to an absolute path | |
108 | +am_aux_dir=`cd $ac_aux_dir && pwd` | |
109 | +]) | |
110 | + | |
111 | +# Do all the work for Automake. -*- Autoconf -*- | |
112 | + | |
113 | +# Copyright (C) 1996-2012 Free Software Foundation, Inc. | |
114 | +# | |
115 | +# This file is free software; the Free Software Foundation | |
116 | +# gives unlimited permission to copy and/or distribute it, | |
117 | +# with or without modifications, as long as this notice is preserved. | |
118 | + | |
119 | +# This macro actually does too much. Some checks are only needed if | |
120 | +# your package does certain things. But this isn't really a big deal. | |
121 | + | |
122 | +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | |
123 | +# AM_INIT_AUTOMAKE([OPTIONS]) | |
124 | +# ----------------------------------------------- | |
125 | +# The call with PACKAGE and VERSION arguments is the old style | |
126 | +# call (pre autoconf-2.50), which is being phased out. PACKAGE | |
127 | +# and VERSION should now be passed to AC_INIT and removed from | |
128 | +# the call to AM_INIT_AUTOMAKE. | |
129 | +# We support both call styles for the transition. After | |
130 | +# the next Automake release, Autoconf can make the AC_INIT | |
131 | +# arguments mandatory, and then we can depend on a new Autoconf | |
132 | +# release and drop the old call support. | |
133 | +AC_DEFUN([AM_INIT_AUTOMAKE], | |
134 | +[AC_PREREQ([2.62])dnl | |
135 | +dnl Autoconf wants to disallow AM_ names. We explicitly allow | |
136 | +dnl the ones we care about. | |
137 | +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | |
138 | +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | |
139 | +AC_REQUIRE([AC_PROG_INSTALL])dnl | |
140 | +if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
141 | + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
142 | + # is not polluted with repeated "-I." | |
143 | + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl | |
144 | + # test to see if srcdir already configured | |
145 | + if test -f $srcdir/config.status; then | |
146 | + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
147 | + fi | |
148 | +fi | |
149 | + | |
150 | +# test whether we have cygpath | |
151 | +if test -z "$CYGPATH_W"; then | |
152 | + if (cygpath --version) >/dev/null 2>/dev/null; then | |
153 | + CYGPATH_W='cygpath -w' | |
154 | + else | |
155 | + CYGPATH_W=echo | |
156 | + fi | |
157 | +fi | |
158 | +AC_SUBST([CYGPATH_W]) | |
159 | + | |
160 | +# Define the identity of the package. | |
161 | +dnl Distinguish between old-style and new-style calls. | |
162 | +m4_ifval([$2], | |
163 | +[AC_DIAGNOSE([obsolete], | |
164 | +[$0: two- and three-arguments forms are deprecated. For more info, see: | |
165 | +http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation]) | |
166 | +m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
167 | + AC_SUBST([PACKAGE], [$1])dnl | |
168 | + AC_SUBST([VERSION], [$2])], | |
169 | +[_AM_SET_OPTIONS([$1])dnl | |
170 | +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | |
171 | +m4_if( | |
172 | + m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), | |
173 | + [ok:ok],, | |
174 | + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | |
175 | + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | |
176 | + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | |
177 | + | |
178 | +_AM_IF_OPTION([no-define],, | |
179 | +[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) | |
180 | + AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl | |
181 | + | |
182 | +# Some tools Automake needs. | |
183 | +AC_REQUIRE([AM_SANITY_CHECK])dnl | |
184 | +AC_REQUIRE([AC_ARG_PROGRAM])dnl | |
185 | +AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) | |
186 | +AM_MISSING_PROG([AUTOCONF], [autoconf]) | |
187 | +AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) | |
188 | +AM_MISSING_PROG([AUTOHEADER], [autoheader]) | |
189 | +AM_MISSING_PROG([MAKEINFO], [makeinfo]) | |
190 | +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
191 | +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl | |
192 | +AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
193 | +# For better backward compatibility. To be removed once Automake 1.9.x | |
194 | +# dies out for good. For more background, see: | |
195 | +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
196 | +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
197 | +AC_SUBST([mkdir_p], ['$(MKDIR_P)']) | |
198 | +# We need awk for the "check" target. The system "awk" is bad on | |
199 | +# some platforms. | |
200 | +AC_REQUIRE([AC_PROG_AWK])dnl | |
201 | +AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |
202 | +AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
203 | +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | |
204 | + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |
205 | + [_AM_PROG_TAR([v7])])]) | |
206 | +_AM_IF_OPTION([no-dependencies],, | |
207 | +[AC_PROVIDE_IFELSE([AC_PROG_CC], | |
208 | + [_AM_DEPENDENCIES([CC])], | |
209 | + [m4_define([AC_PROG_CC], | |
210 | + m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl | |
211 | +AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
212 | + [_AM_DEPENDENCIES([CXX])], | |
213 | + [m4_define([AC_PROG_CXX], | |
214 | + m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl | |
215 | +AC_PROVIDE_IFELSE([AC_PROG_OBJC], | |
216 | + [_AM_DEPENDENCIES([OBJC])], | |
217 | + [m4_define([AC_PROG_OBJC], | |
218 | + m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl | |
219 | +dnl Support for Objective C++ was only introduced in Autoconf 2.65, | |
220 | +dnl but we still cater to Autoconf 2.62. | |
221 | +m4_ifdef([AC_PROG_OBJCXX], | |
222 | +[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], | |
223 | + [_AM_DEPENDENCIES([OBJCXX])], | |
224 | + [m4_define([AC_PROG_OBJCXX], | |
225 | + m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl | |
226 | +]) | |
227 | +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl | |
228 | +dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the | |
229 | +dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro | |
230 | +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
231 | +AC_CONFIG_COMMANDS_PRE(dnl | |
232 | +[m4_provide_if([_AM_COMPILER_EXEEXT], | |
233 | + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl | |
234 | +]) | |
235 | + | |
236 | +dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
237 | +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further | |
238 | +dnl mangled by Autoconf and run in a shell conditional statement. | |
239 | +m4_define([_AC_COMPILER_EXEEXT], | |
240 | +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) | |
241 | + | |
242 | + | |
243 | +# When config.status generates a header, we must update the stamp-h file. | |
244 | +# This file resides in the same directory as the config header | |
245 | +# that is generated. The stamp files are numbered to have different names. | |
246 | + | |
247 | +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | |
248 | +# loop where config.status creates the headers, so we can generate | |
249 | +# our stamp files there. | |
250 | +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | |
251 | +[# Compute $1's index in $config_headers. | |
252 | +_am_arg=$1 | |
253 | +_am_stamp_count=1 | |
254 | +for _am_header in $config_headers :; do | |
255 | + case $_am_header in | |
256 | + $_am_arg | $_am_arg:* ) | |
257 | + break ;; | |
258 | + * ) | |
259 | + _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
260 | + esac | |
261 | +done | |
262 | +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | |
263 | + | |
264 | +# Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
265 | +# | |
266 | +# This file is free software; the Free Software Foundation | |
267 | +# gives unlimited permission to copy and/or distribute it, | |
268 | +# with or without modifications, as long as this notice is preserved. | |
269 | + | |
270 | +# AM_PROG_INSTALL_SH | |
271 | +# ------------------ | |
272 | +# Define $install_sh. | |
273 | +AC_DEFUN([AM_PROG_INSTALL_SH], | |
274 | +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
275 | +if test x"${install_sh}" != xset; then | |
276 | + case $am_aux_dir in | |
277 | + *\ * | *\ *) | |
278 | + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
279 | + *) | |
280 | + install_sh="\${SHELL} $am_aux_dir/install-sh" | |
281 | + esac | |
282 | +fi | |
283 | +AC_SUBST([install_sh])]) | |
284 | + | |
285 | +# Copyright (C) 2003-2012 Free Software Foundation, Inc. | |
286 | +# | |
287 | +# This file is free software; the Free Software Foundation | |
288 | +# gives unlimited permission to copy and/or distribute it, | |
289 | +# with or without modifications, as long as this notice is preserved. | |
290 | + | |
291 | +# Check whether the underlying file-system supports filenames | |
292 | +# with a leading dot. For instance MS-DOS doesn't. | |
293 | +AC_DEFUN([AM_SET_LEADING_DOT], | |
294 | +[rm -rf .tst 2>/dev/null | |
295 | +mkdir .tst 2>/dev/null | |
296 | +if test -d .tst; then | |
297 | + am__leading_dot=. | |
298 | +else | |
299 | + am__leading_dot=_ | |
300 | +fi | |
301 | +rmdir .tst 2>/dev/null | |
302 | +AC_SUBST([am__leading_dot])]) | |
303 | + | |
304 | +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | |
305 | + | |
306 | +# Copyright (C) 1997-2012 Free Software Foundation, Inc. | |
307 | +# | |
308 | +# This file is free software; the Free Software Foundation | |
309 | +# gives unlimited permission to copy and/or distribute it, | |
310 | +# with or without modifications, as long as this notice is preserved. | |
311 | + | |
312 | +# AM_MISSING_PROG(NAME, PROGRAM) | |
313 | +# ------------------------------ | |
314 | +AC_DEFUN([AM_MISSING_PROG], | |
315 | +[AC_REQUIRE([AM_MISSING_HAS_RUN]) | |
316 | +$1=${$1-"${am_missing_run}$2"} | |
317 | +AC_SUBST($1)]) | |
318 | + | |
319 | +# AM_MISSING_HAS_RUN | |
320 | +# ------------------ | |
321 | +# Define MISSING if not defined so far and test if it supports --run. | |
322 | +# If it does, set am_missing_run to use it, otherwise, to nothing. | |
323 | +AC_DEFUN([AM_MISSING_HAS_RUN], | |
324 | +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
325 | +AC_REQUIRE_AUX_FILE([missing])dnl | |
326 | +if test x"${MISSING+set}" != xset; then | |
327 | + case $am_aux_dir in | |
328 | + *\ * | *\ *) | |
329 | + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
330 | + *) | |
331 | + MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
332 | + esac | |
333 | +fi | |
334 | +# Use eval to expand $SHELL | |
335 | +if eval "$MISSING --run true"; then | |
336 | + am_missing_run="$MISSING --run " | |
337 | +else | |
338 | + am_missing_run= | |
339 | + AC_MSG_WARN(['missing' script is too old or missing]) | |
340 | +fi | |
341 | +]) | |
342 | + | |
343 | +# Helper functions for option handling. -*- Autoconf -*- | |
344 | + | |
345 | +# Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
346 | +# | |
347 | +# This file is free software; the Free Software Foundation | |
348 | +# gives unlimited permission to copy and/or distribute it, | |
349 | +# with or without modifications, as long as this notice is preserved. | |
350 | + | |
351 | +# _AM_MANGLE_OPTION(NAME) | |
352 | +# ----------------------- | |
353 | +AC_DEFUN([_AM_MANGLE_OPTION], | |
354 | +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
355 | + | |
356 | +# _AM_SET_OPTION(NAME) | |
357 | +# -------------------- | |
358 | +# Set option NAME. Presently that only means defining a flag for this option. | |
359 | +AC_DEFUN([_AM_SET_OPTION], | |
360 | +[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) | |
361 | + | |
362 | +# _AM_SET_OPTIONS(OPTIONS) | |
363 | +# ------------------------ | |
364 | +# OPTIONS is a space-separated list of Automake options. | |
365 | +AC_DEFUN([_AM_SET_OPTIONS], | |
366 | +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
367 | + | |
368 | +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
369 | +# ------------------------------------------- | |
370 | +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
371 | +AC_DEFUN([_AM_IF_OPTION], | |
372 | +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
373 | + | |
374 | +# Check to make sure that the build environment is sane. -*- Autoconf -*- | |
375 | + | |
376 | +# Copyright (C) 1996-2012 Free Software Foundation, Inc. | |
377 | +# | |
378 | +# This file is free software; the Free Software Foundation | |
379 | +# gives unlimited permission to copy and/or distribute it, | |
380 | +# with or without modifications, as long as this notice is preserved. | |
381 | + | |
382 | +# AM_SANITY_CHECK | |
383 | +# --------------- | |
384 | +AC_DEFUN([AM_SANITY_CHECK], | |
385 | +[AC_MSG_CHECKING([whether build environment is sane]) | |
386 | +# Reject unsafe characters in $srcdir or the absolute working directory | |
387 | +# name. Accept space and tab only in the latter. | |
388 | +am_lf=' | |
389 | +' | |
390 | +case `pwd` in | |
391 | + *[[\\\"\#\$\&\'\`$am_lf]]*) | |
392 | + AC_MSG_ERROR([unsafe absolute working directory name]);; | |
393 | +esac | |
394 | +case $srcdir in | |
395 | + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) | |
396 | + AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; | |
397 | +esac | |
398 | + | |
399 | +# Do 'set' in a subshell so we don't clobber the current shell's | |
400 | +# arguments. Must try -L first in case configure is actually a | |
401 | +# symlink; some systems play weird games with the mod time of symlinks | |
402 | +# (eg FreeBSD returns the mod time of the symlink's containing | |
403 | +# directory). | |
404 | +if ( | |
405 | + am_has_slept=no | |
406 | + for am_try in 1 2; do | |
407 | + echo "timestamp, slept: $am_has_slept" > conftest.file | |
408 | + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
409 | + if test "$[*]" = "X"; then | |
410 | + # -L didn't work. | |
411 | + set X `ls -t "$srcdir/configure" conftest.file` | |
412 | + fi | |
413 | + if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
414 | + && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
415 | + | |
416 | + # If neither matched, then we have a broken ls. This can happen | |
417 | + # if, for instance, CONFIG_SHELL is bash and it inherits a | |
418 | + # broken ls alias from the environment. This has actually | |
419 | + # happened. Such a system could not be considered "sane". | |
420 | + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
421 | + alias in your environment]) | |
422 | + fi | |
423 | + if test "$[2]" = conftest.file || test $am_try -eq 2; then | |
424 | + break | |
425 | + fi | |
426 | + # Just in case. | |
427 | + sleep 1 | |
428 | + am_has_slept=yes | |
429 | + done | |
430 | + test "$[2]" = conftest.file | |
431 | + ) | |
432 | +then | |
433 | + # Ok. | |
434 | + : | |
435 | +else | |
436 | + AC_MSG_ERROR([newly created file is older than distributed files! | |
437 | +Check your system clock]) | |
438 | +fi | |
439 | +AC_MSG_RESULT([yes]) | |
440 | +# If we didn't sleep, we still need to ensure time stamps of config.status and | |
441 | +# generated files are strictly newer. | |
442 | +am_sleep_pid= | |
443 | +if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
444 | + ( sleep 1 ) & | |
445 | + am_sleep_pid=$! | |
446 | +fi | |
447 | +AC_CONFIG_COMMANDS_PRE( | |
448 | + [AC_MSG_CHECKING([that generated files are newer than configure]) | |
449 | + if test -n "$am_sleep_pid"; then | |
450 | + # Hide warnings about reused PIDs. | |
451 | + wait $am_sleep_pid 2>/dev/null | |
452 | + fi | |
453 | + AC_MSG_RESULT([done])]) | |
454 | +rm -f conftest.file | |
455 | +]) | |
456 | + | |
457 | +# Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
458 | +# | |
459 | +# This file is free software; the Free Software Foundation | |
460 | +# gives unlimited permission to copy and/or distribute it, | |
461 | +# with or without modifications, as long as this notice is preserved. | |
462 | + | |
463 | +# AM_PROG_INSTALL_STRIP | |
464 | +# --------------------- | |
465 | +# One issue with vendor 'install' (even GNU) is that you can't | |
466 | +# specify the program used to strip binaries. This is especially | |
467 | +# annoying in cross-compiling environments, where the build's strip | |
468 | +# is unlikely to handle the host's binaries. | |
469 | +# Fortunately install-sh will honor a STRIPPROG variable, so we | |
470 | +# always use install-sh in "make install-strip", and initialize | |
471 | +# STRIPPROG with the value of the STRIP variable (set by the user). | |
472 | +AC_DEFUN([AM_PROG_INSTALL_STRIP], | |
473 | +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
474 | +# Installed binaries are usually stripped using 'strip' when the user | |
475 | +# run "make install-strip". However 'strip' might not be the right | |
476 | +# tool to use in cross-compilation environments, therefore Automake | |
477 | +# will honor the 'STRIP' environment variable to overrule this program. | |
478 | +dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. | |
479 | +if test "$cross_compiling" != no; then | |
480 | + AC_CHECK_TOOL([STRIP], [strip], :) | |
481 | +fi | |
482 | +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
483 | +AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
484 | + | |
485 | +# Copyright (C) 2006-2012 Free Software Foundation, Inc. | |
486 | +# | |
487 | +# This file is free software; the Free Software Foundation | |
488 | +# gives unlimited permission to copy and/or distribute it, | |
489 | +# with or without modifications, as long as this notice is preserved. | |
490 | + | |
491 | +# _AM_SUBST_NOTMAKE(VARIABLE) | |
492 | +# --------------------------- | |
493 | +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | |
494 | +# This macro is traced by Automake. | |
495 | +AC_DEFUN([_AM_SUBST_NOTMAKE]) | |
496 | + | |
497 | +# AM_SUBST_NOTMAKE(VARIABLE) | |
498 | +# -------------------------- | |
499 | +# Public sister of _AM_SUBST_NOTMAKE. | |
500 | +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | |
501 | + | |
502 | +# Check how to create a tarball. -*- Autoconf -*- | |
503 | + | |
504 | +# Copyright (C) 2004-2012 Free Software Foundation, Inc. | |
505 | +# | |
506 | +# This file is free software; the Free Software Foundation | |
507 | +# gives unlimited permission to copy and/or distribute it, | |
508 | +# with or without modifications, as long as this notice is preserved. | |
509 | + | |
510 | +# _AM_PROG_TAR(FORMAT) | |
511 | +# -------------------- | |
512 | +# Check how to create a tarball in format FORMAT. | |
513 | +# FORMAT should be one of 'v7', 'ustar', or 'pax'. | |
514 | +# | |
515 | +# Substitute a variable $(am__tar) that is a command | |
516 | +# writing to stdout a FORMAT-tarball containing the directory | |
517 | +# $tardir. | |
518 | +# tardir=directory && $(am__tar) > result.tar | |
519 | +# | |
520 | +# Substitute a variable $(am__untar) that extract such | |
521 | +# a tarball read from stdin. | |
522 | +# $(am__untar) < result.tar | |
523 | +AC_DEFUN([_AM_PROG_TAR], | |
524 | +[# Always define AMTAR for backward compatibility. Yes, it's still used | |
525 | +# in the wild :-( We should find a proper way to deprecate it ... | |
526 | +AC_SUBST([AMTAR], ['$${TAR-tar}']) | |
527 | +m4_if([$1], [v7], | |
528 | + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], | |
529 | + [m4_case([$1], [ustar],, [pax],, | |
530 | + [m4_fatal([Unknown tar format])]) | |
531 | +AC_MSG_CHECKING([how to create a $1 tar archive]) | |
532 | +# Loop over all known methods to create a tar archive until one works. | |
533 | +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
534 | +_am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
535 | +# Do not fold the above two line into one, because Tru64 sh and | |
536 | +# Solaris sh will not grok spaces in the rhs of '-'. | |
537 | +for _am_tool in $_am_tools | |
538 | +do | |
539 | + case $_am_tool in | |
540 | + gnutar) | |
541 | + for _am_tar in tar gnutar gtar; | |
542 | + do | |
543 | + AM_RUN_LOG([$_am_tar --version]) && break | |
544 | + done | |
545 | + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
546 | + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
547 | + am__untar="$_am_tar -xf -" | |
548 | + ;; | |
549 | + plaintar) | |
550 | + # Must skip GNU tar: if it does not support --format= it doesn't create | |
551 | + # ustar tarball either. | |
552 | + (tar --version) >/dev/null 2>&1 && continue | |
553 | + am__tar='tar chf - "$$tardir"' | |
554 | + am__tar_='tar chf - "$tardir"' | |
555 | + am__untar='tar xf -' | |
556 | + ;; | |
557 | + pax) | |
558 | + am__tar='pax -L -x $1 -w "$$tardir"' | |
559 | + am__tar_='pax -L -x $1 -w "$tardir"' | |
560 | + am__untar='pax -r' | |
561 | + ;; | |
562 | + cpio) | |
563 | + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
564 | + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
565 | + am__untar='cpio -i -H $1 -d' | |
566 | + ;; | |
567 | + none) | |
568 | + am__tar=false | |
569 | + am__tar_=false | |
570 | + am__untar=false | |
571 | + ;; | |
572 | + esac | |
573 | + | |
574 | + # If the value was cached, stop now. We just wanted to have am__tar | |
575 | + # and am__untar set. | |
576 | + test -n "${am_cv_prog_tar_$1}" && break | |
577 | + | |
578 | + # tar/untar a dummy directory, and stop if the command works | |
579 | + rm -rf conftest.dir | |
580 | + mkdir conftest.dir | |
581 | + echo GrepMe > conftest.dir/file | |
582 | + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
583 | + rm -rf conftest.dir | |
584 | + if test -s conftest.tar; then | |
585 | + AM_RUN_LOG([$am__untar <conftest.tar]) | |
586 | + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
587 | + fi | |
588 | +done | |
589 | +rm -rf conftest.dir | |
590 | + | |
591 | +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
592 | +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
593 | +AC_SUBST([am__tar]) | |
594 | +AC_SUBST([am__untar]) | |
595 | +]) # _AM_PROG_TAR | |
596 | + |
@@ -0,0 +1,3616 @@ | ||
1 | +#! /bin/sh | |
2 | +# Guess values for system-dependent variables and create Makefiles. | |
3 | +# Generated by GNU Autoconf 2.69 for autotoolstest mono.01. | |
4 | +# | |
5 | +# Report bugs to <matsuand AT users DT sourceforge DT jp>. | |
6 | +# | |
7 | +# | |
8 | +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
9 | +# | |
10 | +# | |
11 | +# This configure script is free software; the Free Software Foundation | |
12 | +# gives unlimited permission to copy, distribute and modify it. | |
13 | +## -------------------- ## | |
14 | +## M4sh Initialization. ## | |
15 | +## -------------------- ## | |
16 | + | |
17 | +# Be more Bourne compatible | |
18 | +DUALCASE=1; export DUALCASE # for MKS sh | |
19 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20 | + emulate sh | |
21 | + NULLCMD=: | |
22 | + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
23 | + # is contrary to our usage. Disable this feature. | |
24 | + alias -g '${1+"$@"}'='"$@"' | |
25 | + setopt NO_GLOB_SUBST | |
26 | +else | |
27 | + case `(set -o) 2>/dev/null` in #( | |
28 | + *posix*) : | |
29 | + set -o posix ;; #( | |
30 | + *) : | |
31 | + ;; | |
32 | +esac | |
33 | +fi | |
34 | + | |
35 | + | |
36 | +as_nl=' | |
37 | +' | |
38 | +export as_nl | |
39 | +# Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | +# Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | +# but without wasting forks for bash or zsh. | |
45 | +if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | + as_echo='print -r --' | |
48 | + as_echo_n='print -rn --' | |
49 | +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | + as_echo='printf %s\n' | |
51 | + as_echo_n='printf %s' | |
52 | +else | |
53 | + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | + as_echo_n='/usr/ucb/echo -n' | |
56 | + else | |
57 | + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | + as_echo_n_body='eval | |
59 | + arg=$1; | |
60 | + case $arg in #( | |
61 | + *"$as_nl"*) | |
62 | + expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | + esac; | |
65 | + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | + ' | |
67 | + export as_echo_n_body | |
68 | + as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | + fi | |
70 | + export as_echo_body | |
71 | + as_echo='sh -c $as_echo_body as_echo' | |
72 | +fi | |
73 | + | |
74 | +# The user is always right. | |
75 | +if test "${PATH_SEPARATOR+set}" != set; then | |
76 | + PATH_SEPARATOR=: | |
77 | + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | + PATH_SEPARATOR=';' | |
80 | + } | |
81 | +fi | |
82 | + | |
83 | + | |
84 | +# IFS | |
85 | +# We need space, tab and new line, in precisely that order. Quoting is | |
86 | +# there to prevent editors from complaining about space-tab. | |
87 | +# (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | +# splitting by setting IFS to empty value.) | |
89 | +IFS=" "" $as_nl" | |
90 | + | |
91 | +# Find who we are. Look in the path if we contain no directory separator. | |
92 | +as_myself= | |
93 | +case $0 in #(( | |
94 | + *[\\/]* ) as_myself=$0 ;; | |
95 | + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | +for as_dir in $PATH | |
97 | +do | |
98 | + IFS=$as_save_IFS | |
99 | + test -z "$as_dir" && as_dir=. | |
100 | + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 | + done | |
102 | +IFS=$as_save_IFS | |
103 | + | |
104 | + ;; | |
105 | +esac | |
106 | +# We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | +# in which case we are not to be found in the path. | |
108 | +if test "x$as_myself" = x; then | |
109 | + as_myself=$0 | |
110 | +fi | |
111 | +if test ! -f "$as_myself"; then | |
112 | + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 | + exit 1 | |
114 | +fi | |
115 | + | |
116 | +# Unset variables that we do not need and which cause bugs (e.g. in | |
117 | +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | +# suppresses any "Segmentation fault" message there. '((' could | |
119 | +# trigger a bug in pdksh 5.2.14. | |
120 | +for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | +do eval test x\${$as_var+set} = xset \ | |
122 | + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 | +done | |
124 | +PS1='$ ' | |
125 | +PS2='> ' | |
126 | +PS4='+ ' | |
127 | + | |
128 | +# NLS nuisances. | |
129 | +LC_ALL=C | |
130 | +export LC_ALL | |
131 | +LANGUAGE=C | |
132 | +export LANGUAGE | |
133 | + | |
134 | +# CDPATH. | |
135 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | + | |
137 | +# Use a proper internal environment variable to ensure we don't fall | |
138 | + # into an infinite loop, continuously re-executing ourselves. | |
139 | + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | + _as_can_reexec=no; export _as_can_reexec; | |
141 | + # We cannot yet assume a decent shell, so we have to provide a | |
142 | +# neutralization value for shells without unset; and this also | |
143 | +# works around shells that cannot unset nonexistent variables. | |
144 | +# Preserve -v and -x to the replacement shell. | |
145 | +BASH_ENV=/dev/null | |
146 | +ENV=/dev/null | |
147 | +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | +case $- in # (((( | |
149 | + *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | + *v* ) as_opts=-v ;; | |
151 | + *x* ) as_opts=-x ;; | |
152 | + * ) as_opts= ;; | |
153 | +esac | |
154 | +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | +# Admittedly, this is quite paranoid, since all the known shells bail | |
156 | +# out after a failed `exec'. | |
157 | +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | +as_fn_exit 255 | |
159 | + fi | |
160 | + # We don't want this to propagate to other subprocesses. | |
161 | + { _as_can_reexec=; unset _as_can_reexec;} | |
162 | +if test "x$CONFIG_SHELL" = x; then | |
163 | + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | + emulate sh | |
165 | + NULLCMD=: | |
166 | + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | + # is contrary to our usage. Disable this feature. | |
168 | + alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | + setopt NO_GLOB_SUBST | |
170 | +else | |
171 | + case \`(set -o) 2>/dev/null\` in #( | |
172 | + *posix*) : | |
173 | + set -o posix ;; #( | |
174 | + *) : | |
175 | + ;; | |
176 | +esac | |
177 | +fi | |
178 | +" | |
179 | + as_required="as_fn_return () { (exit \$1); } | |
180 | +as_fn_success () { as_fn_return 0; } | |
181 | +as_fn_failure () { as_fn_return 1; } | |
182 | +as_fn_ret_success () { return 0; } | |
183 | +as_fn_ret_failure () { return 1; } | |
184 | + | |
185 | +exitcode=0 | |
186 | +as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | + | |
192 | +else | |
193 | + exitcode=1; echo positional parameters were not saved. | |
194 | +fi | |
195 | +test x\$exitcode = x0 || exit 1 | |
196 | +test -x / || exit 1" | |
197 | + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
198 | + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" | |
201 | + if (eval "$as_required") 2>/dev/null; then : | |
202 | + as_have_required=yes | |
203 | +else | |
204 | + as_have_required=no | |
205 | +fi | |
206 | + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
207 | + | |
208 | +else | |
209 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
210 | +as_found=false | |
211 | +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
212 | +do | |
213 | + IFS=$as_save_IFS | |
214 | + test -z "$as_dir" && as_dir=. | |
215 | + as_found=: | |
216 | + case $as_dir in #( | |
217 | + /*) | |
218 | + for as_base in sh bash ksh sh5; do | |
219 | + # Try only shells that exist, to save several forks. | |
220 | + as_shell=$as_dir/$as_base | |
221 | + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
222 | + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
223 | + CONFIG_SHELL=$as_shell as_have_required=yes | |
224 | + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
225 | + break 2 | |
226 | +fi | |
227 | +fi | |
228 | + done;; | |
229 | + esac | |
230 | + as_found=false | |
231 | +done | |
232 | +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
233 | + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
234 | + CONFIG_SHELL=$SHELL as_have_required=yes | |
235 | +fi; } | |
236 | +IFS=$as_save_IFS | |
237 | + | |
238 | + | |
239 | + if test "x$CONFIG_SHELL" != x; then : | |
240 | + export CONFIG_SHELL | |
241 | + # We cannot yet assume a decent shell, so we have to provide a | |
242 | +# neutralization value for shells without unset; and this also | |
243 | +# works around shells that cannot unset nonexistent variables. | |
244 | +# Preserve -v and -x to the replacement shell. | |
245 | +BASH_ENV=/dev/null | |
246 | +ENV=/dev/null | |
247 | +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
248 | +case $- in # (((( | |
249 | + *v*x* | *x*v* ) as_opts=-vx ;; | |
250 | + *v* ) as_opts=-v ;; | |
251 | + *x* ) as_opts=-x ;; | |
252 | + * ) as_opts= ;; | |
253 | +esac | |
254 | +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
255 | +# Admittedly, this is quite paranoid, since all the known shells bail | |
256 | +# out after a failed `exec'. | |
257 | +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
258 | +exit 255 | |
259 | +fi | |
260 | + | |
261 | + if test x$as_have_required = xno; then : | |
262 | + $as_echo "$0: This script requires a shell more modern than all" | |
263 | + $as_echo "$0: the shells that I found on your system." | |
264 | + if test x${ZSH_VERSION+set} = xset ; then | |
265 | + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
266 | + $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
267 | + else | |
268 | + $as_echo "$0: Please tell bug-autoconf@gnu.org and matsuand AT users | |
269 | +$0: DT sourceforge DT jp about your system, including any | |
270 | +$0: error possibly output before this message. Then install | |
271 | +$0: a modern shell, or manually run the script under such a | |
272 | +$0: shell if you do have one." | |
273 | + fi | |
274 | + exit 1 | |
275 | +fi | |
276 | +fi | |
277 | +fi | |
278 | +SHELL=${CONFIG_SHELL-/bin/sh} | |
279 | +export SHELL | |
280 | +# Unset more variables known to interfere with behavior of common tools. | |
281 | +CLICOLOR_FORCE= GREP_OPTIONS= | |
282 | +unset CLICOLOR_FORCE GREP_OPTIONS | |
283 | + | |
284 | +## --------------------- ## | |
285 | +## M4sh Shell Functions. ## | |
286 | +## --------------------- ## | |
287 | +# as_fn_unset VAR | |
288 | +# --------------- | |
289 | +# Portably unset VAR. | |
290 | +as_fn_unset () | |
291 | +{ | |
292 | + { eval $1=; unset $1;} | |
293 | +} | |
294 | +as_unset=as_fn_unset | |
295 | + | |
296 | +# as_fn_set_status STATUS | |
297 | +# ----------------------- | |
298 | +# Set $? to STATUS, without forking. | |
299 | +as_fn_set_status () | |
300 | +{ | |
301 | + return $1 | |
302 | +} # as_fn_set_status | |
303 | + | |
304 | +# as_fn_exit STATUS | |
305 | +# ----------------- | |
306 | +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
307 | +as_fn_exit () | |
308 | +{ | |
309 | + set +e | |
310 | + as_fn_set_status $1 | |
311 | + exit $1 | |
312 | +} # as_fn_exit | |
313 | + | |
314 | +# as_fn_mkdir_p | |
315 | +# ------------- | |
316 | +# Create "$as_dir" as a directory, including parents if necessary. | |
317 | +as_fn_mkdir_p () | |
318 | +{ | |
319 | + | |
320 | + case $as_dir in #( | |
321 | + -*) as_dir=./$as_dir;; | |
322 | + esac | |
323 | + test -d "$as_dir" || eval $as_mkdir_p || { | |
324 | + as_dirs= | |
325 | + while :; do | |
326 | + case $as_dir in #( | |
327 | + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
328 | + *) as_qdir=$as_dir;; | |
329 | + esac | |
330 | + as_dirs="'$as_qdir' $as_dirs" | |
331 | + as_dir=`$as_dirname -- "$as_dir" || | |
332 | +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
333 | + X"$as_dir" : 'X\(//\)[^/]' \| \ | |
334 | + X"$as_dir" : 'X\(//\)$' \| \ | |
335 | + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
336 | +$as_echo X"$as_dir" | | |
337 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
338 | + s//\1/ | |
339 | + q | |
340 | + } | |
341 | + /^X\(\/\/\)[^/].*/{ | |
342 | + s//\1/ | |
343 | + q | |
344 | + } | |
345 | + /^X\(\/\/\)$/{ | |
346 | + s//\1/ | |
347 | + q | |
348 | + } | |
349 | + /^X\(\/\).*/{ | |
350 | + s//\1/ | |
351 | + q | |
352 | + } | |
353 | + s/.*/./; q'` | |
354 | + test -d "$as_dir" && break | |
355 | + done | |
356 | + test -z "$as_dirs" || eval "mkdir $as_dirs" | |
357 | + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
358 | + | |
359 | + | |
360 | +} # as_fn_mkdir_p | |
361 | + | |
362 | +# as_fn_executable_p FILE | |
363 | +# ----------------------- | |
364 | +# Test if FILE is an executable regular file. | |
365 | +as_fn_executable_p () | |
366 | +{ | |
367 | + test -f "$1" && test -x "$1" | |
368 | +} # as_fn_executable_p | |
369 | +# as_fn_append VAR VALUE | |
370 | +# ---------------------- | |
371 | +# Append the text in VALUE to the end of the definition contained in VAR. Take | |
372 | +# advantage of any shell optimizations that allow amortized linear growth over | |
373 | +# repeated appends, instead of the typical quadratic growth present in naive | |
374 | +# implementations. | |
375 | +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
376 | + eval 'as_fn_append () | |
377 | + { | |
378 | + eval $1+=\$2 | |
379 | + }' | |
380 | +else | |
381 | + as_fn_append () | |
382 | + { | |
383 | + eval $1=\$$1\$2 | |
384 | + } | |
385 | +fi # as_fn_append | |
386 | + | |
387 | +# as_fn_arith ARG... | |
388 | +# ------------------ | |
389 | +# Perform arithmetic evaluation on the ARGs, and store the result in the | |
390 | +# global $as_val. Take advantage of shells that can avoid forks. The arguments | |
391 | +# must be portable across $(()) and expr. | |
392 | +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
393 | + eval 'as_fn_arith () | |
394 | + { | |
395 | + as_val=$(( $* )) | |
396 | + }' | |
397 | +else | |
398 | + as_fn_arith () | |
399 | + { | |
400 | + as_val=`expr "$@" || test $? -eq 1` | |
401 | + } | |
402 | +fi # as_fn_arith | |
403 | + | |
404 | + | |
405 | +# as_fn_error STATUS ERROR [LINENO LOG_FD] | |
406 | +# ---------------------------------------- | |
407 | +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
408 | +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
409 | +# script with STATUS, using 1 if that was 0. | |
410 | +as_fn_error () | |
411 | +{ | |
412 | + as_status=$1; test $as_status -eq 0 && as_status=1 | |
413 | + if test "$4"; then | |
414 | + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
415 | + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
416 | + fi | |
417 | + $as_echo "$as_me: error: $2" >&2 | |
418 | + as_fn_exit $as_status | |
419 | +} # as_fn_error | |
420 | + | |
421 | +if expr a : '\(a\)' >/dev/null 2>&1 && | |
422 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
423 | + as_expr=expr | |
424 | +else | |
425 | + as_expr=false | |
426 | +fi | |
427 | + | |
428 | +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
429 | + as_basename=basename | |
430 | +else | |
431 | + as_basename=false | |
432 | +fi | |
433 | + | |
434 | +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
435 | + as_dirname=dirname | |
436 | +else | |
437 | + as_dirname=false | |
438 | +fi | |
439 | + | |
440 | +as_me=`$as_basename -- "$0" || | |
441 | +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
442 | + X"$0" : 'X\(//\)$' \| \ | |
443 | + X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
444 | +$as_echo X/"$0" | | |
445 | + sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
446 | + s//\1/ | |
447 | + q | |
448 | + } | |
449 | + /^X\/\(\/\/\)$/{ | |
450 | + s//\1/ | |
451 | + q | |
452 | + } | |
453 | + /^X\/\(\/\).*/{ | |
454 | + s//\1/ | |
455 | + q | |
456 | + } | |
457 | + s/.*/./; q'` | |
458 | + | |
459 | +# Avoid depending upon Character Ranges. | |
460 | +as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
461 | +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
462 | +as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
463 | +as_cr_digits='0123456789' | |
464 | +as_cr_alnum=$as_cr_Letters$as_cr_digits | |
465 | + | |
466 | + | |
467 | + as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
468 | + as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
469 | + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
470 | + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
471 | + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
472 | + sed -n ' | |
473 | + p | |
474 | + /[$]LINENO/= | |
475 | + ' <$as_myself | | |
476 | + sed ' | |
477 | + s/[$]LINENO.*/&-/ | |
478 | + t lineno | |
479 | + b | |
480 | + :lineno | |
481 | + N | |
482 | + :loop | |
483 | + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
484 | + t loop | |
485 | + s/-\n.*// | |
486 | + ' >$as_me.lineno && | |
487 | + chmod +x "$as_me.lineno" || | |
488 | + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
489 | + | |
490 | + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
491 | + # already done that, so ensure we don't try to do so again and fall | |
492 | + # in an infinite loop. This has already happened in practice. | |
493 | + _as_can_reexec=no; export _as_can_reexec | |
494 | + # Don't try to exec as it changes $[0], causing all sort of problems | |
495 | + # (the dirname of $[0] is not the place where we might find the | |
496 | + # original and so on. Autoconf is especially sensitive to this). | |
497 | + . "./$as_me.lineno" | |
498 | + # Exit status is that of the last command. | |
499 | + exit | |
500 | +} | |
501 | + | |
502 | +ECHO_C= ECHO_N= ECHO_T= | |
503 | +case `echo -n x` in #((((( | |
504 | +-n*) | |
505 | + case `echo 'xy\c'` in | |
506 | + *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
507 | + xy) ECHO_C='\c';; | |
508 | + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
509 | + ECHO_T=' ';; | |
510 | + esac;; | |
511 | +*) | |
512 | + ECHO_N='-n';; | |
513 | +esac | |
514 | + | |
515 | +rm -f conf$$ conf$$.exe conf$$.file | |
516 | +if test -d conf$$.dir; then | |
517 | + rm -f conf$$.dir/conf$$.file | |
518 | +else | |
519 | + rm -f conf$$.dir | |
520 | + mkdir conf$$.dir 2>/dev/null | |
521 | +fi | |
522 | +if (echo >conf$$.file) 2>/dev/null; then | |
523 | + if ln -s conf$$.file conf$$ 2>/dev/null; then | |
524 | + as_ln_s='ln -s' | |
525 | + # ... but there are two gotchas: | |
526 | + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
527 | + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
528 | + # In both cases, we have to default to `cp -pR'. | |
529 | + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
530 | + as_ln_s='cp -pR' | |
531 | + elif ln conf$$.file conf$$ 2>/dev/null; then | |
532 | + as_ln_s=ln | |
533 | + else | |
534 | + as_ln_s='cp -pR' | |
535 | + fi | |
536 | +else | |
537 | + as_ln_s='cp -pR' | |
538 | +fi | |
539 | +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
540 | +rmdir conf$$.dir 2>/dev/null | |
541 | + | |
542 | +if mkdir -p . 2>/dev/null; then | |
543 | + as_mkdir_p='mkdir -p "$as_dir"' | |
544 | +else | |
545 | + test -d ./-p && rmdir ./-p | |
546 | + as_mkdir_p=false | |
547 | +fi | |
548 | + | |
549 | +as_test_x='test -x' | |
550 | +as_executable_p=as_fn_executable_p | |
551 | + | |
552 | +# Sed expression to map a string onto a valid CPP name. | |
553 | +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
554 | + | |
555 | +# Sed expression to map a string onto a valid variable name. | |
556 | +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
557 | + | |
558 | + | |
559 | +test -n "$DJDIR" || exec 7<&0 </dev/null | |
560 | +exec 6>&1 | |
561 | + | |
562 | +# Name of the host. | |
563 | +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
564 | +# so uname gets run too. | |
565 | +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
566 | + | |
567 | +# | |
568 | +# Initializations. | |
569 | +# | |
570 | +ac_default_prefix=/usr/local | |
571 | +ac_clean_files= | |
572 | +ac_config_libobj_dir=. | |
573 | +LIBOBJS= | |
574 | +cross_compiling=no | |
575 | +subdirs= | |
576 | +MFLAGS= | |
577 | +MAKEFLAGS= | |
578 | + | |
579 | +# Identity of this package. | |
580 | +PACKAGE_NAME='autotoolstest' | |
581 | +PACKAGE_TARNAME='autotoolstest' | |
582 | +PACKAGE_VERSION='mono.01' | |
583 | +PACKAGE_STRING='autotoolstest mono.01' | |
584 | +PACKAGE_BUGREPORT='matsuand AT users DT sourceforge DT jp' | |
585 | +PACKAGE_URL='' | |
586 | + | |
587 | +ac_subst_vars='LTLIBOBJS | |
588 | +LIBOBJS | |
589 | +ILDISASM | |
590 | +ILASM | |
591 | +RESGEN | |
592 | +CSC | |
593 | +am__untar | |
594 | +am__tar | |
595 | +AMTAR | |
596 | +am__leading_dot | |
597 | +SET_MAKE | |
598 | +AWK | |
599 | +mkdir_p | |
600 | +MKDIR_P | |
601 | +INSTALL_STRIP_PROGRAM | |
602 | +STRIP | |
603 | +install_sh | |
604 | +MAKEINFO | |
605 | +AUTOHEADER | |
606 | +AUTOMAKE | |
607 | +AUTOCONF | |
608 | +ACLOCAL | |
609 | +VERSION | |
610 | +PACKAGE | |
611 | +CYGPATH_W | |
612 | +am__isrc | |
613 | +INSTALL_DATA | |
614 | +INSTALL_SCRIPT | |
615 | +INSTALL_PROGRAM | |
616 | +target_alias | |
617 | +host_alias | |
618 | +build_alias | |
619 | +LIBS | |
620 | +ECHO_T | |
621 | +ECHO_N | |
622 | +ECHO_C | |
623 | +DEFS | |
624 | +mandir | |
625 | +localedir | |
626 | +libdir | |
627 | +psdir | |
628 | +pdfdir | |
629 | +dvidir | |
630 | +htmldir | |
631 | +infodir | |
632 | +docdir | |
633 | +oldincludedir | |
634 | +includedir | |
635 | +localstatedir | |
636 | +sharedstatedir | |
637 | +sysconfdir | |
638 | +datadir | |
639 | +datarootdir | |
640 | +libexecdir | |
641 | +sbindir | |
642 | +bindir | |
643 | +program_transform_name | |
644 | +prefix | |
645 | +exec_prefix | |
646 | +PACKAGE_URL | |
647 | +PACKAGE_BUGREPORT | |
648 | +PACKAGE_STRING | |
649 | +PACKAGE_VERSION | |
650 | +PACKAGE_TARNAME | |
651 | +PACKAGE_NAME | |
652 | +PATH_SEPARATOR | |
653 | +SHELL' | |
654 | +ac_subst_files='' | |
655 | +ac_user_opts=' | |
656 | +enable_option_checking | |
657 | +' | |
658 | + ac_precious_vars='build_alias | |
659 | +host_alias | |
660 | +target_alias' | |
661 | + | |
662 | + | |
663 | +# Initialize some variables set by options. | |
664 | +ac_init_help= | |
665 | +ac_init_version=false | |
666 | +ac_unrecognized_opts= | |
667 | +ac_unrecognized_sep= | |
668 | +# The variables have the same names as the options, with | |
669 | +# dashes changed to underlines. | |
670 | +cache_file=/dev/null | |
671 | +exec_prefix=NONE | |
672 | +no_create= | |
673 | +no_recursion= | |
674 | +prefix=NONE | |
675 | +program_prefix=NONE | |
676 | +program_suffix=NONE | |
677 | +program_transform_name=s,x,x, | |
678 | +silent= | |
679 | +site= | |
680 | +srcdir= | |
681 | +verbose= | |
682 | +x_includes=NONE | |
683 | +x_libraries=NONE | |
684 | + | |
685 | +# Installation directory options. | |
686 | +# These are left unexpanded so users can "make install exec_prefix=/foo" | |
687 | +# and all the variables that are supposed to be based on exec_prefix | |
688 | +# by default will actually change. | |
689 | +# Use braces instead of parens because sh, perl, etc. also accept them. | |
690 | +# (The list follows the same order as the GNU Coding Standards.) | |
691 | +bindir='${exec_prefix}/bin' | |
692 | +sbindir='${exec_prefix}/sbin' | |
693 | +libexecdir='${exec_prefix}/libexec' | |
694 | +datarootdir='${prefix}/share' | |
695 | +datadir='${datarootdir}' | |
696 | +sysconfdir='${prefix}/etc' | |
697 | +sharedstatedir='${prefix}/com' | |
698 | +localstatedir='${prefix}/var' | |
699 | +includedir='${prefix}/include' | |
700 | +oldincludedir='/usr/include' | |
701 | +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
702 | +infodir='${datarootdir}/info' | |
703 | +htmldir='${docdir}' | |
704 | +dvidir='${docdir}' | |
705 | +pdfdir='${docdir}' | |
706 | +psdir='${docdir}' | |
707 | +libdir='${exec_prefix}/lib' | |
708 | +localedir='${datarootdir}/locale' | |
709 | +mandir='${datarootdir}/man' | |
710 | + | |
711 | +ac_prev= | |
712 | +ac_dashdash= | |
713 | +for ac_option | |
714 | +do | |
715 | + # If the previous option needs an argument, assign it. | |
716 | + if test -n "$ac_prev"; then | |
717 | + eval $ac_prev=\$ac_option | |
718 | + ac_prev= | |
719 | + continue | |
720 | + fi | |
721 | + | |
722 | + case $ac_option in | |
723 | + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
724 | + *=) ac_optarg= ;; | |
725 | + *) ac_optarg=yes ;; | |
726 | + esac | |
727 | + | |
728 | + # Accept the important Cygnus configure options, so we can diagnose typos. | |
729 | + | |
730 | + case $ac_dashdash$ac_option in | |
731 | + --) | |
732 | + ac_dashdash=yes ;; | |
733 | + | |
734 | + -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
735 | + ac_prev=bindir ;; | |
736 | + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
737 | + bindir=$ac_optarg ;; | |
738 | + | |
739 | + -build | --build | --buil | --bui | --bu) | |
740 | + ac_prev=build_alias ;; | |
741 | + -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
742 | + build_alias=$ac_optarg ;; | |
743 | + | |
744 | + -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
745 | + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
746 | + ac_prev=cache_file ;; | |
747 | + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
748 | + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
749 | + cache_file=$ac_optarg ;; | |
750 | + | |
751 | + --config-cache | -C) | |
752 | + cache_file=config.cache ;; | |
753 | + | |
754 | + -datadir | --datadir | --datadi | --datad) | |
755 | + ac_prev=datadir ;; | |
756 | + -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
757 | + datadir=$ac_optarg ;; | |
758 | + | |
759 | + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
760 | + | --dataroo | --dataro | --datar) | |
761 | + ac_prev=datarootdir ;; | |
762 | + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
763 | + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
764 | + datarootdir=$ac_optarg ;; | |
765 | + | |
766 | + -disable-* | --disable-*) | |
767 | + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
768 | + # Reject names that are not valid shell variable names. | |
769 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
770 | + as_fn_error $? "invalid feature name: $ac_useropt" | |
771 | + ac_useropt_orig=$ac_useropt | |
772 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
773 | + case $ac_user_opts in | |
774 | + *" | |
775 | +"enable_$ac_useropt" | |
776 | +"*) ;; | |
777 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
778 | + ac_unrecognized_sep=', ';; | |
779 | + esac | |
780 | + eval enable_$ac_useropt=no ;; | |
781 | + | |
782 | + -docdir | --docdir | --docdi | --doc | --do) | |
783 | + ac_prev=docdir ;; | |
784 | + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
785 | + docdir=$ac_optarg ;; | |
786 | + | |
787 | + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
788 | + ac_prev=dvidir ;; | |
789 | + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
790 | + dvidir=$ac_optarg ;; | |
791 | + | |
792 | + -enable-* | --enable-*) | |
793 | + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
794 | + # Reject names that are not valid shell variable names. | |
795 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
796 | + as_fn_error $? "invalid feature name: $ac_useropt" | |
797 | + ac_useropt_orig=$ac_useropt | |
798 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
799 | + case $ac_user_opts in | |
800 | + *" | |
801 | +"enable_$ac_useropt" | |
802 | +"*) ;; | |
803 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
804 | + ac_unrecognized_sep=', ';; | |
805 | + esac | |
806 | + eval enable_$ac_useropt=\$ac_optarg ;; | |
807 | + | |
808 | + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
809 | + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
810 | + | --exec | --exe | --ex) | |
811 | + ac_prev=exec_prefix ;; | |
812 | + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
813 | + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
814 | + | --exec=* | --exe=* | --ex=*) | |
815 | + exec_prefix=$ac_optarg ;; | |
816 | + | |
817 | + -gas | --gas | --ga | --g) | |
818 | + # Obsolete; use --with-gas. | |
819 | + with_gas=yes ;; | |
820 | + | |
821 | + -help | --help | --hel | --he | -h) | |
822 | + ac_init_help=long ;; | |
823 | + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
824 | + ac_init_help=recursive ;; | |
825 | + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
826 | + ac_init_help=short ;; | |
827 | + | |
828 | + -host | --host | --hos | --ho) | |
829 | + ac_prev=host_alias ;; | |
830 | + -host=* | --host=* | --hos=* | --ho=*) | |
831 | + host_alias=$ac_optarg ;; | |
832 | + | |
833 | + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
834 | + ac_prev=htmldir ;; | |
835 | + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
836 | + | --ht=*) | |
837 | + htmldir=$ac_optarg ;; | |
838 | + | |
839 | + -includedir | --includedir | --includedi | --included | --include \ | |
840 | + | --includ | --inclu | --incl | --inc) | |
841 | + ac_prev=includedir ;; | |
842 | + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
843 | + | --includ=* | --inclu=* | --incl=* | --inc=*) | |
844 | + includedir=$ac_optarg ;; | |
845 | + | |
846 | + -infodir | --infodir | --infodi | --infod | --info | --inf) | |
847 | + ac_prev=infodir ;; | |
848 | + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
849 | + infodir=$ac_optarg ;; | |
850 | + | |
851 | + -libdir | --libdir | --libdi | --libd) | |
852 | + ac_prev=libdir ;; | |
853 | + -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
854 | + libdir=$ac_optarg ;; | |
855 | + | |
856 | + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
857 | + | --libexe | --libex | --libe) | |
858 | + ac_prev=libexecdir ;; | |
859 | + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
860 | + | --libexe=* | --libex=* | --libe=*) | |
861 | + libexecdir=$ac_optarg ;; | |
862 | + | |
863 | + -localedir | --localedir | --localedi | --localed | --locale) | |
864 | + ac_prev=localedir ;; | |
865 | + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
866 | + localedir=$ac_optarg ;; | |
867 | + | |
868 | + -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
869 | + | --localstate | --localstat | --localsta | --localst | --locals) | |
870 | + ac_prev=localstatedir ;; | |
871 | + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
872 | + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
873 | + localstatedir=$ac_optarg ;; | |
874 | + | |
875 | + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
876 | + ac_prev=mandir ;; | |
877 | + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
878 | + mandir=$ac_optarg ;; | |
879 | + | |
880 | + -nfp | --nfp | --nf) | |
881 | + # Obsolete; use --without-fp. | |
882 | + with_fp=no ;; | |
883 | + | |
884 | + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
885 | + | --no-cr | --no-c | -n) | |
886 | + no_create=yes ;; | |
887 | + | |
888 | + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
889 | + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
890 | + no_recursion=yes ;; | |
891 | + | |
892 | + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
893 | + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
894 | + | --oldin | --oldi | --old | --ol | --o) | |
895 | + ac_prev=oldincludedir ;; | |
896 | + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
897 | + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
898 | + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
899 | + oldincludedir=$ac_optarg ;; | |
900 | + | |
901 | + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
902 | + ac_prev=prefix ;; | |
903 | + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
904 | + prefix=$ac_optarg ;; | |
905 | + | |
906 | + -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
907 | + | --program-pre | --program-pr | --program-p) | |
908 | + ac_prev=program_prefix ;; | |
909 | + -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
910 | + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
911 | + program_prefix=$ac_optarg ;; | |
912 | + | |
913 | + -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
914 | + | --program-suf | --program-su | --program-s) | |
915 | + ac_prev=program_suffix ;; | |
916 | + -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
917 | + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
918 | + program_suffix=$ac_optarg ;; | |
919 | + | |
920 | + -program-transform-name | --program-transform-name \ | |
921 | + | --program-transform-nam | --program-transform-na \ | |
922 | + | --program-transform-n | --program-transform- \ | |
923 | + | --program-transform | --program-transfor \ | |
924 | + | --program-transfo | --program-transf \ | |
925 | + | --program-trans | --program-tran \ | |
926 | + | --progr-tra | --program-tr | --program-t) | |
927 | + ac_prev=program_transform_name ;; | |
928 | + -program-transform-name=* | --program-transform-name=* \ | |
929 | + | --program-transform-nam=* | --program-transform-na=* \ | |
930 | + | --program-transform-n=* | --program-transform-=* \ | |
931 | + | --program-transform=* | --program-transfor=* \ | |
932 | + | --program-transfo=* | --program-transf=* \ | |
933 | + | --program-trans=* | --program-tran=* \ | |
934 | + | --progr-tra=* | --program-tr=* | --program-t=*) | |
935 | + program_transform_name=$ac_optarg ;; | |
936 | + | |
937 | + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
938 | + ac_prev=pdfdir ;; | |
939 | + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
940 | + pdfdir=$ac_optarg ;; | |
941 | + | |
942 | + -psdir | --psdir | --psdi | --psd | --ps) | |
943 | + ac_prev=psdir ;; | |
944 | + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
945 | + psdir=$ac_optarg ;; | |
946 | + | |
947 | + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
948 | + | -silent | --silent | --silen | --sile | --sil) | |
949 | + silent=yes ;; | |
950 | + | |
951 | + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
952 | + ac_prev=sbindir ;; | |
953 | + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
954 | + | --sbi=* | --sb=*) | |
955 | + sbindir=$ac_optarg ;; | |
956 | + | |
957 | + -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
958 | + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
959 | + | --sharedst | --shareds | --shared | --share | --shar \ | |
960 | + | --sha | --sh) | |
961 | + ac_prev=sharedstatedir ;; | |
962 | + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
963 | + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
964 | + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
965 | + | --sha=* | --sh=*) | |
966 | + sharedstatedir=$ac_optarg ;; | |
967 | + | |
968 | + -site | --site | --sit) | |
969 | + ac_prev=site ;; | |
970 | + -site=* | --site=* | --sit=*) | |
971 | + site=$ac_optarg ;; | |
972 | + | |
973 | + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
974 | + ac_prev=srcdir ;; | |
975 | + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
976 | + srcdir=$ac_optarg ;; | |
977 | + | |
978 | + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
979 | + | --syscon | --sysco | --sysc | --sys | --sy) | |
980 | + ac_prev=sysconfdir ;; | |
981 | + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
982 | + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
983 | + sysconfdir=$ac_optarg ;; | |
984 | + | |
985 | + -target | --target | --targe | --targ | --tar | --ta | --t) | |
986 | + ac_prev=target_alias ;; | |
987 | + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
988 | + target_alias=$ac_optarg ;; | |
989 | + | |
990 | + -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
991 | + verbose=yes ;; | |
992 | + | |
993 | + -version | --version | --versio | --versi | --vers | -V) | |
994 | + ac_init_version=: ;; | |
995 | + | |
996 | + -with-* | --with-*) | |
997 | + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
998 | + # Reject names that are not valid shell variable names. | |
999 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1000 | + as_fn_error $? "invalid package name: $ac_useropt" | |
1001 | + ac_useropt_orig=$ac_useropt | |
1002 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1003 | + case $ac_user_opts in | |
1004 | + *" | |
1005 | +"with_$ac_useropt" | |
1006 | +"*) ;; | |
1007 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1008 | + ac_unrecognized_sep=', ';; | |
1009 | + esac | |
1010 | + eval with_$ac_useropt=\$ac_optarg ;; | |
1011 | + | |
1012 | + -without-* | --without-*) | |
1013 | + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1014 | + # Reject names that are not valid shell variable names. | |
1015 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1016 | + as_fn_error $? "invalid package name: $ac_useropt" | |
1017 | + ac_useropt_orig=$ac_useropt | |
1018 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1019 | + case $ac_user_opts in | |
1020 | + *" | |
1021 | +"with_$ac_useropt" | |
1022 | +"*) ;; | |
1023 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1024 | + ac_unrecognized_sep=', ';; | |
1025 | + esac | |
1026 | + eval with_$ac_useropt=no ;; | |
1027 | + | |
1028 | + --x) | |
1029 | + # Obsolete; use --with-x. | |
1030 | + with_x=yes ;; | |
1031 | + | |
1032 | + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1033 | + | --x-incl | --x-inc | --x-in | --x-i) | |
1034 | + ac_prev=x_includes ;; | |
1035 | + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1036 | + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1037 | + x_includes=$ac_optarg ;; | |
1038 | + | |
1039 | + -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1040 | + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1041 | + ac_prev=x_libraries ;; | |
1042 | + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1043 | + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1044 | + x_libraries=$ac_optarg ;; | |
1045 | + | |
1046 | + -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1047 | +Try \`$0 --help' for more information" | |
1048 | + ;; | |
1049 | + | |
1050 | + *=*) | |
1051 | + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1052 | + # Reject names that are not valid shell variable names. | |
1053 | + case $ac_envvar in #( | |
1054 | + '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1055 | + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1056 | + esac | |
1057 | + eval $ac_envvar=\$ac_optarg | |
1058 | + export $ac_envvar ;; | |
1059 | + | |
1060 | + *) | |
1061 | + # FIXME: should be removed in autoconf 3.0. | |
1062 | + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1063 | + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1064 | + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1065 | + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1066 | + ;; | |
1067 | + | |
1068 | + esac | |
1069 | +done | |
1070 | + | |
1071 | +if test -n "$ac_prev"; then | |
1072 | + ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1073 | + as_fn_error $? "missing argument to $ac_option" | |
1074 | +fi | |
1075 | + | |
1076 | +if test -n "$ac_unrecognized_opts"; then | |
1077 | + case $enable_option_checking in | |
1078 | + no) ;; | |
1079 | + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1080 | + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1081 | + esac | |
1082 | +fi | |
1083 | + | |
1084 | +# Check all directory arguments for consistency. | |
1085 | +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1086 | + datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1087 | + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1088 | + libdir localedir mandir | |
1089 | +do | |
1090 | + eval ac_val=\$$ac_var | |
1091 | + # Remove trailing slashes. | |
1092 | + case $ac_val in | |
1093 | + */ ) | |
1094 | + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1095 | + eval $ac_var=\$ac_val;; | |
1096 | + esac | |
1097 | + # Be sure to have absolute directory names. | |
1098 | + case $ac_val in | |
1099 | + [\\/$]* | ?:[\\/]* ) continue;; | |
1100 | + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1101 | + esac | |
1102 | + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1103 | +done | |
1104 | + | |
1105 | +# There might be people who depend on the old broken behavior: `$host' | |
1106 | +# used to hold the argument of --host etc. | |
1107 | +# FIXME: To remove some day. | |
1108 | +build=$build_alias | |
1109 | +host=$host_alias | |
1110 | +target=$target_alias | |
1111 | + | |
1112 | +# FIXME: To remove some day. | |
1113 | +if test "x$host_alias" != x; then | |
1114 | + if test "x$build_alias" = x; then | |
1115 | + cross_compiling=maybe | |
1116 | + elif test "x$build_alias" != "x$host_alias"; then | |
1117 | + cross_compiling=yes | |
1118 | + fi | |
1119 | +fi | |
1120 | + | |
1121 | +ac_tool_prefix= | |
1122 | +test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1123 | + | |
1124 | +test "$silent" = yes && exec 6>/dev/null | |
1125 | + | |
1126 | + | |
1127 | +ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1128 | +ac_ls_di=`ls -di .` && | |
1129 | +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1130 | + as_fn_error $? "working directory cannot be determined" | |
1131 | +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1132 | + as_fn_error $? "pwd does not report name of working directory" | |
1133 | + | |
1134 | + | |
1135 | +# Find the source files, if location was not specified. | |
1136 | +if test -z "$srcdir"; then | |
1137 | + ac_srcdir_defaulted=yes | |
1138 | + # Try the directory containing this script, then the parent directory. | |
1139 | + ac_confdir=`$as_dirname -- "$as_myself" || | |
1140 | +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1141 | + X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1142 | + X"$as_myself" : 'X\(//\)$' \| \ | |
1143 | + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1144 | +$as_echo X"$as_myself" | | |
1145 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1146 | + s//\1/ | |
1147 | + q | |
1148 | + } | |
1149 | + /^X\(\/\/\)[^/].*/{ | |
1150 | + s//\1/ | |
1151 | + q | |
1152 | + } | |
1153 | + /^X\(\/\/\)$/{ | |
1154 | + s//\1/ | |
1155 | + q | |
1156 | + } | |
1157 | + /^X\(\/\).*/{ | |
1158 | + s//\1/ | |
1159 | + q | |
1160 | + } | |
1161 | + s/.*/./; q'` | |
1162 | + srcdir=$ac_confdir | |
1163 | + if test ! -r "$srcdir/$ac_unique_file"; then | |
1164 | + srcdir=.. | |
1165 | + fi | |
1166 | +else | |
1167 | + ac_srcdir_defaulted=no | |
1168 | +fi | |
1169 | +if test ! -r "$srcdir/$ac_unique_file"; then | |
1170 | + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1171 | + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1172 | +fi | |
1173 | +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1174 | +ac_abs_confdir=`( | |
1175 | + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1176 | + pwd)` | |
1177 | +# When building in place, set srcdir=. | |
1178 | +if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1179 | + srcdir=. | |
1180 | +fi | |
1181 | +# Remove unnecessary trailing slashes from srcdir. | |
1182 | +# Double slashes in file names in object file debugging info | |
1183 | +# mess up M-x gdb in Emacs. | |
1184 | +case $srcdir in | |
1185 | +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1186 | +esac | |
1187 | +for ac_var in $ac_precious_vars; do | |
1188 | + eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1189 | + eval ac_env_${ac_var}_value=\$${ac_var} | |
1190 | + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1191 | + eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1192 | +done | |
1193 | + | |
1194 | +# | |
1195 | +# Report the --help message. | |
1196 | +# | |
1197 | +if test "$ac_init_help" = "long"; then | |
1198 | + # Omit some internal or obsolete options to make the list less imposing. | |
1199 | + # This message is too long to be a string in the A/UX 3.1 sh. | |
1200 | + cat <<_ACEOF | |
1201 | +\`configure' configures autotoolstest mono.01 to adapt to many kinds of systems. | |
1202 | + | |
1203 | +Usage: $0 [OPTION]... [VAR=VALUE]... | |
1204 | + | |
1205 | +To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1206 | +VAR=VALUE. See below for descriptions of some of the useful variables. | |
1207 | + | |
1208 | +Defaults for the options are specified in brackets. | |
1209 | + | |
1210 | +Configuration: | |
1211 | + -h, --help display this help and exit | |
1212 | + --help=short display options specific to this package | |
1213 | + --help=recursive display the short help of all the included packages | |
1214 | + -V, --version display version information and exit | |
1215 | + -q, --quiet, --silent do not print \`checking ...' messages | |
1216 | + --cache-file=FILE cache test results in FILE [disabled] | |
1217 | + -C, --config-cache alias for \`--cache-file=config.cache' | |
1218 | + -n, --no-create do not create output files | |
1219 | + --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1220 | + | |
1221 | +Installation directories: | |
1222 | + --prefix=PREFIX install architecture-independent files in PREFIX | |
1223 | + [$ac_default_prefix] | |
1224 | + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1225 | + [PREFIX] | |
1226 | + | |
1227 | +By default, \`make install' will install all the files in | |
1228 | +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1229 | +an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1230 | +for instance \`--prefix=\$HOME'. | |
1231 | + | |
1232 | +For better control, use the options below. | |
1233 | + | |
1234 | +Fine tuning of the installation directories: | |
1235 | + --bindir=DIR user executables [EPREFIX/bin] | |
1236 | + --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1237 | + --libexecdir=DIR program executables [EPREFIX/libexec] | |
1238 | + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1239 | + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1240 | + --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1241 | + --libdir=DIR object code libraries [EPREFIX/lib] | |
1242 | + --includedir=DIR C header files [PREFIX/include] | |
1243 | + --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1244 | + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1245 | + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1246 | + --infodir=DIR info documentation [DATAROOTDIR/info] | |
1247 | + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1248 | + --mandir=DIR man documentation [DATAROOTDIR/man] | |
1249 | + --docdir=DIR documentation root [DATAROOTDIR/doc/autotoolstest] | |
1250 | + --htmldir=DIR html documentation [DOCDIR] | |
1251 | + --dvidir=DIR dvi documentation [DOCDIR] | |
1252 | + --pdfdir=DIR pdf documentation [DOCDIR] | |
1253 | + --psdir=DIR ps documentation [DOCDIR] | |
1254 | +_ACEOF | |
1255 | + | |
1256 | + cat <<\_ACEOF | |
1257 | + | |
1258 | +Program names: | |
1259 | + --program-prefix=PREFIX prepend PREFIX to installed program names | |
1260 | + --program-suffix=SUFFIX append SUFFIX to installed program names | |
1261 | + --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1262 | +_ACEOF | |
1263 | +fi | |
1264 | + | |
1265 | +if test -n "$ac_init_help"; then | |
1266 | + case $ac_init_help in | |
1267 | + short | recursive ) echo "Configuration of autotoolstest mono.01:";; | |
1268 | + esac | |
1269 | + cat <<\_ACEOF | |
1270 | + | |
1271 | +Report bugs to <matsuand AT users DT sourceforge DT jp>. | |
1272 | +_ACEOF | |
1273 | +ac_status=$? | |
1274 | +fi | |
1275 | + | |
1276 | +if test "$ac_init_help" = "recursive"; then | |
1277 | + # If there are subdirs, report their specific --help. | |
1278 | + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1279 | + test -d "$ac_dir" || | |
1280 | + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1281 | + continue | |
1282 | + ac_builddir=. | |
1283 | + | |
1284 | +case "$ac_dir" in | |
1285 | +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1286 | +*) | |
1287 | + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1288 | + # A ".." for each directory in $ac_dir_suffix. | |
1289 | + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1290 | + case $ac_top_builddir_sub in | |
1291 | + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1292 | + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1293 | + esac ;; | |
1294 | +esac | |
1295 | +ac_abs_top_builddir=$ac_pwd | |
1296 | +ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1297 | +# for backward compatibility: | |
1298 | +ac_top_builddir=$ac_top_build_prefix | |
1299 | + | |
1300 | +case $srcdir in | |
1301 | + .) # We are building in place. | |
1302 | + ac_srcdir=. | |
1303 | + ac_top_srcdir=$ac_top_builddir_sub | |
1304 | + ac_abs_top_srcdir=$ac_pwd ;; | |
1305 | + [\\/]* | ?:[\\/]* ) # Absolute name. | |
1306 | + ac_srcdir=$srcdir$ac_dir_suffix; | |
1307 | + ac_top_srcdir=$srcdir | |
1308 | + ac_abs_top_srcdir=$srcdir ;; | |
1309 | + *) # Relative name. | |
1310 | + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1311 | + ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1312 | + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1313 | +esac | |
1314 | +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1315 | + | |
1316 | + cd "$ac_dir" || { ac_status=$?; continue; } | |
1317 | + # Check for guested configure. | |
1318 | + if test -f "$ac_srcdir/configure.gnu"; then | |
1319 | + echo && | |
1320 | + $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1321 | + elif test -f "$ac_srcdir/configure"; then | |
1322 | + echo && | |
1323 | + $SHELL "$ac_srcdir/configure" --help=recursive | |
1324 | + else | |
1325 | + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1326 | + fi || ac_status=$? | |
1327 | + cd "$ac_pwd" || { ac_status=$?; break; } | |
1328 | + done | |
1329 | +fi | |
1330 | + | |
1331 | +test -n "$ac_init_help" && exit $ac_status | |
1332 | +if $ac_init_version; then | |
1333 | + cat <<\_ACEOF | |
1334 | +autotoolstest configure mono.01 | |
1335 | +generated by GNU Autoconf 2.69 | |
1336 | + | |
1337 | +Copyright (C) 2012 Free Software Foundation, Inc. | |
1338 | +This configure script is free software; the Free Software Foundation | |
1339 | +gives unlimited permission to copy, distribute and modify it. | |
1340 | +_ACEOF | |
1341 | + exit | |
1342 | +fi | |
1343 | + | |
1344 | +## ------------------------ ## | |
1345 | +## Autoconf initialization. ## | |
1346 | +## ------------------------ ## | |
1347 | +cat >config.log <<_ACEOF | |
1348 | +This file contains any messages produced by compilers while | |
1349 | +running configure, to aid debugging if configure makes a mistake. | |
1350 | + | |
1351 | +It was created by autotoolstest $as_me mono.01, which was | |
1352 | +generated by GNU Autoconf 2.69. Invocation command line was | |
1353 | + | |
1354 | + $ $0 $@ | |
1355 | + | |
1356 | +_ACEOF | |
1357 | +exec 5>>config.log | |
1358 | +{ | |
1359 | +cat <<_ASUNAME | |
1360 | +## --------- ## | |
1361 | +## Platform. ## | |
1362 | +## --------- ## | |
1363 | + | |
1364 | +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1365 | +uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1366 | +uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1367 | +uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1368 | +uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1369 | + | |
1370 | +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1371 | +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1372 | + | |
1373 | +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1374 | +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1375 | +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1376 | +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1377 | +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1378 | +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1379 | +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1380 | + | |
1381 | +_ASUNAME | |
1382 | + | |
1383 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1384 | +for as_dir in $PATH | |
1385 | +do | |
1386 | + IFS=$as_save_IFS | |
1387 | + test -z "$as_dir" && as_dir=. | |
1388 | + $as_echo "PATH: $as_dir" | |
1389 | + done | |
1390 | +IFS=$as_save_IFS | |
1391 | + | |
1392 | +} >&5 | |
1393 | + | |
1394 | +cat >&5 <<_ACEOF | |
1395 | + | |
1396 | + | |
1397 | +## ----------- ## | |
1398 | +## Core tests. ## | |
1399 | +## ----------- ## | |
1400 | + | |
1401 | +_ACEOF | |
1402 | + | |
1403 | + | |
1404 | +# Keep a trace of the command line. | |
1405 | +# Strip out --no-create and --no-recursion so they do not pile up. | |
1406 | +# Strip out --silent because we don't want to record it for future runs. | |
1407 | +# Also quote any args containing shell meta-characters. | |
1408 | +# Make two passes to allow for proper duplicate-argument suppression. | |
1409 | +ac_configure_args= | |
1410 | +ac_configure_args0= | |
1411 | +ac_configure_args1= | |
1412 | +ac_must_keep_next=false | |
1413 | +for ac_pass in 1 2 | |
1414 | +do | |
1415 | + for ac_arg | |
1416 | + do | |
1417 | + case $ac_arg in | |
1418 | + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1419 | + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1420 | + | -silent | --silent | --silen | --sile | --sil) | |
1421 | + continue ;; | |
1422 | + *\'*) | |
1423 | + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1424 | + esac | |
1425 | + case $ac_pass in | |
1426 | + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1427 | + 2) | |
1428 | + as_fn_append ac_configure_args1 " '$ac_arg'" | |
1429 | + if test $ac_must_keep_next = true; then | |
1430 | + ac_must_keep_next=false # Got value, back to normal. | |
1431 | + else | |
1432 | + case $ac_arg in | |
1433 | + *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1434 | + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1435 | + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1436 | + | -with-* | --with-* | -without-* | --without-* | --x) | |
1437 | + case "$ac_configure_args0 " in | |
1438 | + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1439 | + esac | |
1440 | + ;; | |
1441 | + -* ) ac_must_keep_next=true ;; | |
1442 | + esac | |
1443 | + fi | |
1444 | + as_fn_append ac_configure_args " '$ac_arg'" | |
1445 | + ;; | |
1446 | + esac | |
1447 | + done | |
1448 | +done | |
1449 | +{ ac_configure_args0=; unset ac_configure_args0;} | |
1450 | +{ ac_configure_args1=; unset ac_configure_args1;} | |
1451 | + | |
1452 | +# When interrupted or exit'd, cleanup temporary files, and complete | |
1453 | +# config.log. We remove comments because anyway the quotes in there | |
1454 | +# would cause problems or look ugly. | |
1455 | +# WARNING: Use '\'' to represent an apostrophe within the trap. | |
1456 | +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1457 | +trap 'exit_status=$? | |
1458 | + # Save into config.log some information that might help in debugging. | |
1459 | + { | |
1460 | + echo | |
1461 | + | |
1462 | + $as_echo "## ---------------- ## | |
1463 | +## Cache variables. ## | |
1464 | +## ---------------- ##" | |
1465 | + echo | |
1466 | + # The following way of writing the cache mishandles newlines in values, | |
1467 | +( | |
1468 | + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1469 | + eval ac_val=\$$ac_var | |
1470 | + case $ac_val in #( | |
1471 | + *${as_nl}*) | |
1472 | + case $ac_var in #( | |
1473 | + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1474 | +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1475 | + esac | |
1476 | + case $ac_var in #( | |
1477 | + _ | IFS | as_nl) ;; #( | |
1478 | + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1479 | + *) { eval $ac_var=; unset $ac_var;} ;; | |
1480 | + esac ;; | |
1481 | + esac | |
1482 | + done | |
1483 | + (set) 2>&1 | | |
1484 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1485 | + *${as_nl}ac_space=\ *) | |
1486 | + sed -n \ | |
1487 | + "s/'\''/'\''\\\\'\'''\''/g; | |
1488 | + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1489 | + ;; #( | |
1490 | + *) | |
1491 | + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1492 | + ;; | |
1493 | + esac | | |
1494 | + sort | |
1495 | +) | |
1496 | + echo | |
1497 | + | |
1498 | + $as_echo "## ----------------- ## | |
1499 | +## Output variables. ## | |
1500 | +## ----------------- ##" | |
1501 | + echo | |
1502 | + for ac_var in $ac_subst_vars | |
1503 | + do | |
1504 | + eval ac_val=\$$ac_var | |
1505 | + case $ac_val in | |
1506 | + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1507 | + esac | |
1508 | + $as_echo "$ac_var='\''$ac_val'\''" | |
1509 | + done | sort | |
1510 | + echo | |
1511 | + | |
1512 | + if test -n "$ac_subst_files"; then | |
1513 | + $as_echo "## ------------------- ## | |
1514 | +## File substitutions. ## | |
1515 | +## ------------------- ##" | |
1516 | + echo | |
1517 | + for ac_var in $ac_subst_files | |
1518 | + do | |
1519 | + eval ac_val=\$$ac_var | |
1520 | + case $ac_val in | |
1521 | + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1522 | + esac | |
1523 | + $as_echo "$ac_var='\''$ac_val'\''" | |
1524 | + done | sort | |
1525 | + echo | |
1526 | + fi | |
1527 | + | |
1528 | + if test -s confdefs.h; then | |
1529 | + $as_echo "## ----------- ## | |
1530 | +## confdefs.h. ## | |
1531 | +## ----------- ##" | |
1532 | + echo | |
1533 | + cat confdefs.h | |
1534 | + echo | |
1535 | + fi | |
1536 | + test "$ac_signal" != 0 && | |
1537 | + $as_echo "$as_me: caught signal $ac_signal" | |
1538 | + $as_echo "$as_me: exit $exit_status" | |
1539 | + } >&5 | |
1540 | + rm -f core *.core core.conftest.* && | |
1541 | + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1542 | + exit $exit_status | |
1543 | +' 0 | |
1544 | +for ac_signal in 1 2 13 15; do | |
1545 | + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
1546 | +done | |
1547 | +ac_signal=0 | |
1548 | + | |
1549 | +# confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1550 | +rm -f -r conftest* confdefs.h | |
1551 | + | |
1552 | +$as_echo "/* confdefs.h */" > confdefs.h | |
1553 | + | |
1554 | +# Predefined preprocessor variables. | |
1555 | + | |
1556 | +cat >>confdefs.h <<_ACEOF | |
1557 | +#define PACKAGE_NAME "$PACKAGE_NAME" | |
1558 | +_ACEOF | |
1559 | + | |
1560 | +cat >>confdefs.h <<_ACEOF | |
1561 | +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1562 | +_ACEOF | |
1563 | + | |
1564 | +cat >>confdefs.h <<_ACEOF | |
1565 | +#define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1566 | +_ACEOF | |
1567 | + | |
1568 | +cat >>confdefs.h <<_ACEOF | |
1569 | +#define PACKAGE_STRING "$PACKAGE_STRING" | |
1570 | +_ACEOF | |
1571 | + | |
1572 | +cat >>confdefs.h <<_ACEOF | |
1573 | +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1574 | +_ACEOF | |
1575 | + | |
1576 | +cat >>confdefs.h <<_ACEOF | |
1577 | +#define PACKAGE_URL "$PACKAGE_URL" | |
1578 | +_ACEOF | |
1579 | + | |
1580 | + | |
1581 | +# Let the site file select an alternate cache file if it wants to. | |
1582 | +# Prefer an explicitly selected file to automatically selected ones. | |
1583 | +ac_site_file1=NONE | |
1584 | +ac_site_file2=NONE | |
1585 | +if test -n "$CONFIG_SITE"; then | |
1586 | + # We do not want a PATH search for config.site. | |
1587 | + case $CONFIG_SITE in #(( | |
1588 | + -*) ac_site_file1=./$CONFIG_SITE;; | |
1589 | + */*) ac_site_file1=$CONFIG_SITE;; | |
1590 | + *) ac_site_file1=./$CONFIG_SITE;; | |
1591 | + esac | |
1592 | +elif test "x$prefix" != xNONE; then | |
1593 | + ac_site_file1=$prefix/share/config.site | |
1594 | + ac_site_file2=$prefix/etc/config.site | |
1595 | +else | |
1596 | + ac_site_file1=$ac_default_prefix/share/config.site | |
1597 | + ac_site_file2=$ac_default_prefix/etc/config.site | |
1598 | +fi | |
1599 | +for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1600 | +do | |
1601 | + test "x$ac_site_file" = xNONE && continue | |
1602 | + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
1603 | + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
1604 | +$as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1605 | + sed 's/^/| /' "$ac_site_file" >&5 | |
1606 | + . "$ac_site_file" \ | |
1607 | + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1608 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1609 | +as_fn_error $? "failed to load site script $ac_site_file | |
1610 | +See \`config.log' for more details" "$LINENO" 5; } | |
1611 | + fi | |
1612 | +done | |
1613 | + | |
1614 | +if test -r "$cache_file"; then | |
1615 | + # Some versions of bash will fail to source /dev/null (special files | |
1616 | + # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
1617 | + if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
1618 | + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
1619 | +$as_echo "$as_me: loading cache $cache_file" >&6;} | |
1620 | + case $cache_file in | |
1621 | + [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1622 | + *) . "./$cache_file";; | |
1623 | + esac | |
1624 | + fi | |
1625 | +else | |
1626 | + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
1627 | +$as_echo "$as_me: creating cache $cache_file" >&6;} | |
1628 | + >$cache_file | |
1629 | +fi | |
1630 | + | |
1631 | +# Check that the precious variables saved in the cache have kept the same | |
1632 | +# value. | |
1633 | +ac_cache_corrupted=false | |
1634 | +for ac_var in $ac_precious_vars; do | |
1635 | + eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1636 | + eval ac_new_set=\$ac_env_${ac_var}_set | |
1637 | + eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1638 | + eval ac_new_val=\$ac_env_${ac_var}_value | |
1639 | + case $ac_old_set,$ac_new_set in | |
1640 | + set,) | |
1641 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1642 | +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1643 | + ac_cache_corrupted=: ;; | |
1644 | + ,set) | |
1645 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
1646 | +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1647 | + ac_cache_corrupted=: ;; | |
1648 | + ,);; | |
1649 | + *) | |
1650 | + if test "x$ac_old_val" != "x$ac_new_val"; then | |
1651 | + # differences in whitespace do not lead to failure. | |
1652 | + ac_old_val_w=`echo x $ac_old_val` | |
1653 | + ac_new_val_w=`echo x $ac_new_val` | |
1654 | + if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1655 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
1656 | +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1657 | + ac_cache_corrupted=: | |
1658 | + else | |
1659 | + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1660 | +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1661 | + eval $ac_var=\$ac_old_val | |
1662 | + fi | |
1663 | + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
1664 | +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1665 | + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
1666 | +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1667 | + fi;; | |
1668 | + esac | |
1669 | + # Pass precious variables to config.status. | |
1670 | + if test "$ac_new_set" = set; then | |
1671 | + case $ac_new_val in | |
1672 | + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1673 | + *) ac_arg=$ac_var=$ac_new_val ;; | |
1674 | + esac | |
1675 | + case " $ac_configure_args " in | |
1676 | + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1677 | + *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
1678 | + esac | |
1679 | + fi | |
1680 | +done | |
1681 | +if $ac_cache_corrupted; then | |
1682 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1683 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1684 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
1685 | +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1686 | + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
1687 | +fi | |
1688 | +## -------------------- ## | |
1689 | +## Main body of script. ## | |
1690 | +## -------------------- ## | |
1691 | + | |
1692 | +ac_ext=c | |
1693 | +ac_cpp='$CPP $CPPFLAGS' | |
1694 | +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1695 | +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1696 | +ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1697 | + | |
1698 | + | |
1699 | +am__api_version='1.12' | |
1700 | + | |
1701 | +ac_aux_dir= | |
1702 | +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
1703 | + if test -f "$ac_dir/install-sh"; then | |
1704 | + ac_aux_dir=$ac_dir | |
1705 | + ac_install_sh="$ac_aux_dir/install-sh -c" | |
1706 | + break | |
1707 | + elif test -f "$ac_dir/install.sh"; then | |
1708 | + ac_aux_dir=$ac_dir | |
1709 | + ac_install_sh="$ac_aux_dir/install.sh -c" | |
1710 | + break | |
1711 | + elif test -f "$ac_dir/shtool"; then | |
1712 | + ac_aux_dir=$ac_dir | |
1713 | + ac_install_sh="$ac_aux_dir/shtool install -c" | |
1714 | + break | |
1715 | + fi | |
1716 | +done | |
1717 | +if test -z "$ac_aux_dir"; then | |
1718 | + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
1719 | +fi | |
1720 | + | |
1721 | +# These three variables are undocumented and unsupported, | |
1722 | +# and are intended to be withdrawn in a future Autoconf release. | |
1723 | +# They can cause serious problems if a builder's source tree is in a directory | |
1724 | +# whose full name contains unusual characters. | |
1725 | +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1726 | +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1727 | +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1728 | + | |
1729 | + | |
1730 | +# Find a good install program. We prefer a C program (faster), | |
1731 | +# so one script is as good as another. But avoid the broken or | |
1732 | +# incompatible versions: | |
1733 | +# SysV /etc/install, /usr/sbin/install | |
1734 | +# SunOS /usr/etc/install | |
1735 | +# IRIX /sbin/install | |
1736 | +# AIX /bin/install | |
1737 | +# AmigaOS /C/install, which installs bootblocks on floppy discs | |
1738 | +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1739 | +# AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1740 | +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1741 | +# OS/2's system install, which has a completely different semantic | |
1742 | +# ./install, which can be erroneously created by make from ./install.sh. | |
1743 | +# Reject install programs that cannot install multiple files. | |
1744 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
1745 | +$as_echo_n "checking for a BSD-compatible install... " >&6; } | |
1746 | +if test -z "$INSTALL"; then | |
1747 | +if ${ac_cv_path_install+:} false; then : | |
1748 | + $as_echo_n "(cached) " >&6 | |
1749 | +else | |
1750 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1751 | +for as_dir in $PATH | |
1752 | +do | |
1753 | + IFS=$as_save_IFS | |
1754 | + test -z "$as_dir" && as_dir=. | |
1755 | + # Account for people who put trailing slashes in PATH elements. | |
1756 | +case $as_dir/ in #(( | |
1757 | + ./ | .// | /[cC]/* | \ | |
1758 | + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1759 | + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
1760 | + /usr/ucb/* ) ;; | |
1761 | + *) | |
1762 | + # OSF1 and SCO ODT 3.0 have their own names for install. | |
1763 | + # Don't use installbsd from OSF since it installs stuff as root | |
1764 | + # by default. | |
1765 | + for ac_prog in ginstall scoinst install; do | |
1766 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
1767 | + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1768 | + if test $ac_prog = install && | |
1769 | + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1770 | + # AIX install. It has an incompatible calling convention. | |
1771 | + : | |
1772 | + elif test $ac_prog = install && | |
1773 | + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1774 | + # program-specific install script used by HP pwplus--don't use. | |
1775 | + : | |
1776 | + else | |
1777 | + rm -rf conftest.one conftest.two conftest.dir | |
1778 | + echo one > conftest.one | |
1779 | + echo two > conftest.two | |
1780 | + mkdir conftest.dir | |
1781 | + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
1782 | + test -s conftest.one && test -s conftest.two && | |
1783 | + test -s conftest.dir/conftest.one && | |
1784 | + test -s conftest.dir/conftest.two | |
1785 | + then | |
1786 | + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1787 | + break 3 | |
1788 | + fi | |
1789 | + fi | |
1790 | + fi | |
1791 | + done | |
1792 | + done | |
1793 | + ;; | |
1794 | +esac | |
1795 | + | |
1796 | + done | |
1797 | +IFS=$as_save_IFS | |
1798 | + | |
1799 | +rm -rf conftest.one conftest.two conftest.dir | |
1800 | + | |
1801 | +fi | |
1802 | + if test "${ac_cv_path_install+set}" = set; then | |
1803 | + INSTALL=$ac_cv_path_install | |
1804 | + else | |
1805 | + # As a last resort, use the slow shell script. Don't cache a | |
1806 | + # value for INSTALL within a source directory, because that will | |
1807 | + # break other packages using the cache if that directory is | |
1808 | + # removed, or if the value is a relative name. | |
1809 | + INSTALL=$ac_install_sh | |
1810 | + fi | |
1811 | +fi | |
1812 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
1813 | +$as_echo "$INSTALL" >&6; } | |
1814 | + | |
1815 | +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1816 | +# It thinks the first close brace ends the variable substitution. | |
1817 | +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1818 | + | |
1819 | +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1820 | + | |
1821 | +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1822 | + | |
1823 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
1824 | +$as_echo_n "checking whether build environment is sane... " >&6; } | |
1825 | +# Reject unsafe characters in $srcdir or the absolute working directory | |
1826 | +# name. Accept space and tab only in the latter. | |
1827 | +am_lf=' | |
1828 | +' | |
1829 | +case `pwd` in | |
1830 | + *[\\\"\#\$\&\'\`$am_lf]*) | |
1831 | + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
1832 | +esac | |
1833 | +case $srcdir in | |
1834 | + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
1835 | + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
1836 | +esac | |
1837 | + | |
1838 | +# Do 'set' in a subshell so we don't clobber the current shell's | |
1839 | +# arguments. Must try -L first in case configure is actually a | |
1840 | +# symlink; some systems play weird games with the mod time of symlinks | |
1841 | +# (eg FreeBSD returns the mod time of the symlink's containing | |
1842 | +# directory). | |
1843 | +if ( | |
1844 | + am_has_slept=no | |
1845 | + for am_try in 1 2; do | |
1846 | + echo "timestamp, slept: $am_has_slept" > conftest.file | |
1847 | + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
1848 | + if test "$*" = "X"; then | |
1849 | + # -L didn't work. | |
1850 | + set X `ls -t "$srcdir/configure" conftest.file` | |
1851 | + fi | |
1852 | + if test "$*" != "X $srcdir/configure conftest.file" \ | |
1853 | + && test "$*" != "X conftest.file $srcdir/configure"; then | |
1854 | + | |
1855 | + # If neither matched, then we have a broken ls. This can happen | |
1856 | + # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1857 | + # broken ls alias from the environment. This has actually | |
1858 | + # happened. Such a system could not be considered "sane". | |
1859 | + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
1860 | + alias in your environment" "$LINENO" 5 | |
1861 | + fi | |
1862 | + if test "$2" = conftest.file || test $am_try -eq 2; then | |
1863 | + break | |
1864 | + fi | |
1865 | + # Just in case. | |
1866 | + sleep 1 | |
1867 | + am_has_slept=yes | |
1868 | + done | |
1869 | + test "$2" = conftest.file | |
1870 | + ) | |
1871 | +then | |
1872 | + # Ok. | |
1873 | + : | |
1874 | +else | |
1875 | + as_fn_error $? "newly created file is older than distributed files! | |
1876 | +Check your system clock" "$LINENO" 5 | |
1877 | +fi | |
1878 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
1879 | +$as_echo "yes" >&6; } | |
1880 | +# If we didn't sleep, we still need to ensure time stamps of config.status and | |
1881 | +# generated files are strictly newer. | |
1882 | +am_sleep_pid= | |
1883 | +if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
1884 | + ( sleep 1 ) & | |
1885 | + am_sleep_pid=$! | |
1886 | +fi | |
1887 | + | |
1888 | +rm -f conftest.file | |
1889 | + | |
1890 | +test "$program_prefix" != NONE && | |
1891 | + program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
1892 | +# Use a double $ so make ignores it. | |
1893 | +test "$program_suffix" != NONE && | |
1894 | + program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
1895 | +# Double any \ or $. | |
1896 | +# By default was `s,x,x', remove it if useless. | |
1897 | +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
1898 | +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
1899 | + | |
1900 | +# expand $ac_aux_dir to an absolute path | |
1901 | +am_aux_dir=`cd $ac_aux_dir && pwd` | |
1902 | + | |
1903 | +if test x"${MISSING+set}" != xset; then | |
1904 | + case $am_aux_dir in | |
1905 | + *\ * | *\ *) | |
1906 | + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
1907 | + *) | |
1908 | + MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
1909 | + esac | |
1910 | +fi | |
1911 | +# Use eval to expand $SHELL | |
1912 | +if eval "$MISSING --run true"; then | |
1913 | + am_missing_run="$MISSING --run " | |
1914 | +else | |
1915 | + am_missing_run= | |
1916 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
1917 | +$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
1918 | +fi | |
1919 | + | |
1920 | +if test x"${install_sh}" != xset; then | |
1921 | + case $am_aux_dir in | |
1922 | + *\ * | *\ *) | |
1923 | + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
1924 | + *) | |
1925 | + install_sh="\${SHELL} $am_aux_dir/install-sh" | |
1926 | + esac | |
1927 | +fi | |
1928 | + | |
1929 | +# Installed binaries are usually stripped using 'strip' when the user | |
1930 | +# run "make install-strip". However 'strip' might not be the right | |
1931 | +# tool to use in cross-compilation environments, therefore Automake | |
1932 | +# will honor the 'STRIP' environment variable to overrule this program. | |
1933 | +if test "$cross_compiling" != no; then | |
1934 | + if test -n "$ac_tool_prefix"; then | |
1935 | + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1936 | +set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1937 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1938 | +$as_echo_n "checking for $ac_word... " >&6; } | |
1939 | +if ${ac_cv_prog_STRIP+:} false; then : | |
1940 | + $as_echo_n "(cached) " >&6 | |
1941 | +else | |
1942 | + if test -n "$STRIP"; then | |
1943 | + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1944 | +else | |
1945 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1946 | +for as_dir in $PATH | |
1947 | +do | |
1948 | + IFS=$as_save_IFS | |
1949 | + test -z "$as_dir" && as_dir=. | |
1950 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
1951 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1952 | + ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1953 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1954 | + break 2 | |
1955 | + fi | |
1956 | +done | |
1957 | + done | |
1958 | +IFS=$as_save_IFS | |
1959 | + | |
1960 | +fi | |
1961 | +fi | |
1962 | +STRIP=$ac_cv_prog_STRIP | |
1963 | +if test -n "$STRIP"; then | |
1964 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
1965 | +$as_echo "$STRIP" >&6; } | |
1966 | +else | |
1967 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
1968 | +$as_echo "no" >&6; } | |
1969 | +fi | |
1970 | + | |
1971 | + | |
1972 | +fi | |
1973 | +if test -z "$ac_cv_prog_STRIP"; then | |
1974 | + ac_ct_STRIP=$STRIP | |
1975 | + # Extract the first word of "strip", so it can be a program name with args. | |
1976 | +set dummy strip; ac_word=$2 | |
1977 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1978 | +$as_echo_n "checking for $ac_word... " >&6; } | |
1979 | +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
1980 | + $as_echo_n "(cached) " >&6 | |
1981 | +else | |
1982 | + if test -n "$ac_ct_STRIP"; then | |
1983 | + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1984 | +else | |
1985 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1986 | +for as_dir in $PATH | |
1987 | +do | |
1988 | + IFS=$as_save_IFS | |
1989 | + test -z "$as_dir" && as_dir=. | |
1990 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
1991 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1992 | + ac_cv_prog_ac_ct_STRIP="strip" | |
1993 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1994 | + break 2 | |
1995 | + fi | |
1996 | +done | |
1997 | + done | |
1998 | +IFS=$as_save_IFS | |
1999 | + | |
2000 | +fi | |
2001 | +fi | |
2002 | +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2003 | +if test -n "$ac_ct_STRIP"; then | |
2004 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2005 | +$as_echo "$ac_ct_STRIP" >&6; } | |
2006 | +else | |
2007 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2008 | +$as_echo "no" >&6; } | |
2009 | +fi | |
2010 | + | |
2011 | + if test "x$ac_ct_STRIP" = x; then | |
2012 | + STRIP=":" | |
2013 | + else | |
2014 | + case $cross_compiling:$ac_tool_warned in | |
2015 | +yes:) | |
2016 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2017 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2018 | +ac_tool_warned=yes ;; | |
2019 | +esac | |
2020 | + STRIP=$ac_ct_STRIP | |
2021 | + fi | |
2022 | +else | |
2023 | + STRIP="$ac_cv_prog_STRIP" | |
2024 | +fi | |
2025 | + | |
2026 | +fi | |
2027 | +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2028 | + | |
2029 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2030 | +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2031 | +if test -z "$MKDIR_P"; then | |
2032 | + if ${ac_cv_path_mkdir+:} false; then : | |
2033 | + $as_echo_n "(cached) " >&6 | |
2034 | +else | |
2035 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2036 | +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2037 | +do | |
2038 | + IFS=$as_save_IFS | |
2039 | + test -z "$as_dir" && as_dir=. | |
2040 | + for ac_prog in mkdir gmkdir; do | |
2041 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2042 | + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2043 | + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2044 | + 'mkdir (GNU coreutils) '* | \ | |
2045 | + 'mkdir (coreutils) '* | \ | |
2046 | + 'mkdir (fileutils) '4.1*) | |
2047 | + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2048 | + break 3;; | |
2049 | + esac | |
2050 | + done | |
2051 | + done | |
2052 | + done | |
2053 | +IFS=$as_save_IFS | |
2054 | + | |
2055 | +fi | |
2056 | + | |
2057 | + test -d ./--version && rmdir ./--version | |
2058 | + if test "${ac_cv_path_mkdir+set}" = set; then | |
2059 | + MKDIR_P="$ac_cv_path_mkdir -p" | |
2060 | + else | |
2061 | + # As a last resort, use the slow shell script. Don't cache a | |
2062 | + # value for MKDIR_P within a source directory, because that will | |
2063 | + # break other packages using the cache if that directory is | |
2064 | + # removed, or if the value is a relative name. | |
2065 | + MKDIR_P="$ac_install_sh -d" | |
2066 | + fi | |
2067 | +fi | |
2068 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2069 | +$as_echo "$MKDIR_P" >&6; } | |
2070 | + | |
2071 | +for ac_prog in gawk mawk nawk awk | |
2072 | +do | |
2073 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2074 | +set dummy $ac_prog; ac_word=$2 | |
2075 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2076 | +$as_echo_n "checking for $ac_word... " >&6; } | |
2077 | +if ${ac_cv_prog_AWK+:} false; then : | |
2078 | + $as_echo_n "(cached) " >&6 | |
2079 | +else | |
2080 | + if test -n "$AWK"; then | |
2081 | + ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2082 | +else | |
2083 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2084 | +for as_dir in $PATH | |
2085 | +do | |
2086 | + IFS=$as_save_IFS | |
2087 | + test -z "$as_dir" && as_dir=. | |
2088 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2089 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2090 | + ac_cv_prog_AWK="$ac_prog" | |
2091 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2092 | + break 2 | |
2093 | + fi | |
2094 | +done | |
2095 | + done | |
2096 | +IFS=$as_save_IFS | |
2097 | + | |
2098 | +fi | |
2099 | +fi | |
2100 | +AWK=$ac_cv_prog_AWK | |
2101 | +if test -n "$AWK"; then | |
2102 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2103 | +$as_echo "$AWK" >&6; } | |
2104 | +else | |
2105 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2106 | +$as_echo "no" >&6; } | |
2107 | +fi | |
2108 | + | |
2109 | + | |
2110 | + test -n "$AWK" && break | |
2111 | +done | |
2112 | + | |
2113 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2114 | +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2115 | +set x ${MAKE-make} | |
2116 | +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2117 | +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2118 | + $as_echo_n "(cached) " >&6 | |
2119 | +else | |
2120 | + cat >conftest.make <<\_ACEOF | |
2121 | +SHELL = /bin/sh | |
2122 | +all: | |
2123 | + @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2124 | +_ACEOF | |
2125 | +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2126 | +case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2127 | + *@@@%%%=?*=@@@%%%*) | |
2128 | + eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2129 | + *) | |
2130 | + eval ac_cv_prog_make_${ac_make}_set=no;; | |
2131 | +esac | |
2132 | +rm -f conftest.make | |
2133 | +fi | |
2134 | +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2135 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2136 | +$as_echo "yes" >&6; } | |
2137 | + SET_MAKE= | |
2138 | +else | |
2139 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2140 | +$as_echo "no" >&6; } | |
2141 | + SET_MAKE="MAKE=${MAKE-make}" | |
2142 | +fi | |
2143 | + | |
2144 | +rm -rf .tst 2>/dev/null | |
2145 | +mkdir .tst 2>/dev/null | |
2146 | +if test -d .tst; then | |
2147 | + am__leading_dot=. | |
2148 | +else | |
2149 | + am__leading_dot=_ | |
2150 | +fi | |
2151 | +rmdir .tst 2>/dev/null | |
2152 | + | |
2153 | +if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2154 | + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2155 | + # is not polluted with repeated "-I." | |
2156 | + am__isrc=' -I$(srcdir)' | |
2157 | + # test to see if srcdir already configured | |
2158 | + if test -f $srcdir/config.status; then | |
2159 | + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
2160 | + fi | |
2161 | +fi | |
2162 | + | |
2163 | +# test whether we have cygpath | |
2164 | +if test -z "$CYGPATH_W"; then | |
2165 | + if (cygpath --version) >/dev/null 2>/dev/null; then | |
2166 | + CYGPATH_W='cygpath -w' | |
2167 | + else | |
2168 | + CYGPATH_W=echo | |
2169 | + fi | |
2170 | +fi | |
2171 | + | |
2172 | + | |
2173 | +# Define the identity of the package. | |
2174 | + PACKAGE='autotoolstest' | |
2175 | + VERSION='mono.01' | |
2176 | + | |
2177 | + | |
2178 | +cat >>confdefs.h <<_ACEOF | |
2179 | +#define PACKAGE "$PACKAGE" | |
2180 | +_ACEOF | |
2181 | + | |
2182 | + | |
2183 | +cat >>confdefs.h <<_ACEOF | |
2184 | +#define VERSION "$VERSION" | |
2185 | +_ACEOF | |
2186 | + | |
2187 | +# Some tools Automake needs. | |
2188 | + | |
2189 | +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2190 | + | |
2191 | + | |
2192 | +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2193 | + | |
2194 | + | |
2195 | +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2196 | + | |
2197 | + | |
2198 | +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2199 | + | |
2200 | + | |
2201 | +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2202 | + | |
2203 | +# For better backward compatibility. To be removed once Automake 1.9.x | |
2204 | +# dies out for good. For more background, see: | |
2205 | +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2206 | +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2207 | +mkdir_p='$(MKDIR_P)' | |
2208 | + | |
2209 | +# We need awk for the "check" target. The system "awk" is bad on | |
2210 | +# some platforms. | |
2211 | +# Always define AMTAR for backward compatibility. Yes, it's still used | |
2212 | +# in the wild :-( We should find a proper way to deprecate it ... | |
2213 | +AMTAR='$${TAR-tar}' | |
2214 | + | |
2215 | +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
2216 | + | |
2217 | + | |
2218 | + | |
2219 | + | |
2220 | + | |
2221 | + | |
2222 | +# Check for CLI compilers. -*- Autoconf -*- | |
2223 | + | |
2224 | +# Copyright (C) 2007 Free Software Foundation, Inc. | |
2225 | +# | |
2226 | +# This file is free software; the Free Software Foundation | |
2227 | +# gives unlimited permission to copy and/or distribute it, | |
2228 | +# with or without modifications, as long as this notice is preserved. | |
2229 | + | |
2230 | +# AM_PROG_CLI([FRAMEWORK-VERSION],[LANGS]) | |
2231 | +# ---------------------------------------- | |
2232 | +# Find the compiler for each of the listed languages. If LANGS is not set, | |
2233 | +# it defaults to the list [CS]. The framework version determines if we | |
2234 | +# use 'mcs' for version 1.1 or 'gmcs' for everything else. We default to | |
2235 | +# framework version 1.1. | |
2236 | + | |
2237 | + | |
2238 | + | |
2239 | + | |
2240 | + | |
2241 | + | |
2242 | + | |
2243 | + | |
2244 | + | |
2245 | + | |
2246 | + | |
2247 | + | |
2248 | + | |
2249 | + | |
2250 | + | |
2251 | + | |
2252 | +# Checks for programs. | |
2253 | +for ac_prog in mcs csc | |
2254 | +do | |
2255 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2256 | +set dummy $ac_prog; ac_word=$2 | |
2257 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2258 | +$as_echo_n "checking for $ac_word... " >&6; } | |
2259 | +if ${ac_cv_prog_CSC+:} false; then : | |
2260 | + $as_echo_n "(cached) " >&6 | |
2261 | +else | |
2262 | + if test -n "$CSC"; then | |
2263 | + ac_cv_prog_CSC="$CSC" # Let the user override the test. | |
2264 | +else | |
2265 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2266 | +for as_dir in $PATH | |
2267 | +do | |
2268 | + IFS=$as_save_IFS | |
2269 | + test -z "$as_dir" && as_dir=. | |
2270 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2271 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2272 | + ac_cv_prog_CSC="$ac_prog" | |
2273 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2274 | + break 2 | |
2275 | + fi | |
2276 | +done | |
2277 | + done | |
2278 | +IFS=$as_save_IFS | |
2279 | + | |
2280 | +fi | |
2281 | +fi | |
2282 | +CSC=$ac_cv_prog_CSC | |
2283 | +if test -n "$CSC"; then | |
2284 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSC" >&5 | |
2285 | +$as_echo "$CSC" >&6; } | |
2286 | +else | |
2287 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2288 | +$as_echo "no" >&6; } | |
2289 | +fi | |
2290 | + | |
2291 | + | |
2292 | + test -n "$CSC" && break | |
2293 | +done | |
2294 | +test -n "$CSC" || CSC="false" | |
2295 | + | |
2296 | + | |
2297 | +for ac_prog in resgen | |
2298 | +do | |
2299 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2300 | +set dummy $ac_prog; ac_word=$2 | |
2301 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2302 | +$as_echo_n "checking for $ac_word... " >&6; } | |
2303 | +if ${ac_cv_prog_RESGEN+:} false; then : | |
2304 | + $as_echo_n "(cached) " >&6 | |
2305 | +else | |
2306 | + if test -n "$RESGEN"; then | |
2307 | + ac_cv_prog_RESGEN="$RESGEN" # Let the user override the test. | |
2308 | +else | |
2309 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2310 | +for as_dir in $PATH | |
2311 | +do | |
2312 | + IFS=$as_save_IFS | |
2313 | + test -z "$as_dir" && as_dir=. | |
2314 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2315 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2316 | + ac_cv_prog_RESGEN="$ac_prog" | |
2317 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2318 | + break 2 | |
2319 | + fi | |
2320 | +done | |
2321 | + done | |
2322 | +IFS=$as_save_IFS | |
2323 | + | |
2324 | +fi | |
2325 | +fi | |
2326 | +RESGEN=$ac_cv_prog_RESGEN | |
2327 | +if test -n "$RESGEN"; then | |
2328 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESGEN" >&5 | |
2329 | +$as_echo "$RESGEN" >&6; } | |
2330 | +else | |
2331 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2332 | +$as_echo "no" >&6; } | |
2333 | +fi | |
2334 | + | |
2335 | + | |
2336 | + test -n "$RESGEN" && break | |
2337 | +done | |
2338 | +test -n "$RESGEN" || RESGEN="false" | |
2339 | + | |
2340 | +for ac_prog in ilasm | |
2341 | +do | |
2342 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2343 | +set dummy $ac_prog; ac_word=$2 | |
2344 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2345 | +$as_echo_n "checking for $ac_word... " >&6; } | |
2346 | +if ${ac_cv_prog_ILASM+:} false; then : | |
2347 | + $as_echo_n "(cached) " >&6 | |
2348 | +else | |
2349 | + if test -n "$ILASM"; then | |
2350 | + ac_cv_prog_ILASM="$ILASM" # Let the user override the test. | |
2351 | +else | |
2352 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2353 | +for as_dir in $PATH | |
2354 | +do | |
2355 | + IFS=$as_save_IFS | |
2356 | + test -z "$as_dir" && as_dir=. | |
2357 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2358 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2359 | + ac_cv_prog_ILASM="$ac_prog" | |
2360 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2361 | + break 2 | |
2362 | + fi | |
2363 | +done | |
2364 | + done | |
2365 | +IFS=$as_save_IFS | |
2366 | + | |
2367 | +fi | |
2368 | +fi | |
2369 | +ILASM=$ac_cv_prog_ILASM | |
2370 | +if test -n "$ILASM"; then | |
2371 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILASM" >&5 | |
2372 | +$as_echo "$ILASM" >&6; } | |
2373 | +else | |
2374 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2375 | +$as_echo "no" >&6; } | |
2376 | +fi | |
2377 | + | |
2378 | + | |
2379 | + test -n "$ILASM" && break | |
2380 | +done | |
2381 | +test -n "$ILASM" || ILASM="false" | |
2382 | + | |
2383 | +for ac_prog in monodis 'ildasm -text' | |
2384 | +do | |
2385 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2386 | +set dummy $ac_prog; ac_word=$2 | |
2387 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2388 | +$as_echo_n "checking for $ac_word... " >&6; } | |
2389 | +if ${ac_cv_prog_ILDISASM+:} false; then : | |
2390 | + $as_echo_n "(cached) " >&6 | |
2391 | +else | |
2392 | + if test -n "$ILDISASM"; then | |
2393 | + ac_cv_prog_ILDISASM="$ILDISASM" # Let the user override the test. | |
2394 | +else | |
2395 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2396 | +for as_dir in $PATH | |
2397 | +do | |
2398 | + IFS=$as_save_IFS | |
2399 | + test -z "$as_dir" && as_dir=. | |
2400 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2401 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2402 | + ac_cv_prog_ILDISASM="$ac_prog" | |
2403 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2404 | + break 2 | |
2405 | + fi | |
2406 | +done | |
2407 | + done | |
2408 | +IFS=$as_save_IFS | |
2409 | + | |
2410 | +fi | |
2411 | +fi | |
2412 | +ILDISASM=$ac_cv_prog_ILDISASM | |
2413 | +if test -n "$ILDISASM"; then | |
2414 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILDISASM" >&5 | |
2415 | +$as_echo "$ILDISASM" >&6; } | |
2416 | +else | |
2417 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2418 | +$as_echo "no" >&6; } | |
2419 | +fi | |
2420 | + | |
2421 | + | |
2422 | + test -n "$ILDISASM" && break | |
2423 | +done | |
2424 | +test -n "$ILDISASM" || ILDISASM="false" | |
2425 | + | |
2426 | + | |
2427 | + | |
2428 | +# Checks for libraries. | |
2429 | + | |
2430 | +# Checks for header files. | |
2431 | + | |
2432 | +# Checks for typedefs, structures, and compiler characteristics. | |
2433 | + | |
2434 | +# Checks for library functions. | |
2435 | + | |
2436 | +ac_config_files="$ac_config_files Makefile src/Makefile" | |
2437 | + | |
2438 | +cat >confcache <<\_ACEOF | |
2439 | +# This file is a shell script that caches the results of configure | |
2440 | +# tests run on this system so they can be shared between configure | |
2441 | +# scripts and configure runs, see configure's option --config-cache. | |
2442 | +# It is not useful on other systems. If it contains results you don't | |
2443 | +# want to keep, you may remove or edit it. | |
2444 | +# | |
2445 | +# config.status only pays attention to the cache file if you give it | |
2446 | +# the --recheck option to rerun configure. | |
2447 | +# | |
2448 | +# `ac_cv_env_foo' variables (set or unset) will be overridden when | |
2449 | +# loading this file, other *unset* `ac_cv_foo' will be assigned the | |
2450 | +# following values. | |
2451 | + | |
2452 | +_ACEOF | |
2453 | + | |
2454 | +# The following way of writing the cache mishandles newlines in values, | |
2455 | +# but we know of no workaround that is simple, portable, and efficient. | |
2456 | +# So, we kill variables containing newlines. | |
2457 | +# Ultrix sh set writes to stderr and can't be redirected directly, | |
2458 | +# and sets the high bit in the cache file unless we assign to the vars. | |
2459 | +( | |
2460 | + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
2461 | + eval ac_val=\$$ac_var | |
2462 | + case $ac_val in #( | |
2463 | + *${as_nl}*) | |
2464 | + case $ac_var in #( | |
2465 | + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2466 | +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2467 | + esac | |
2468 | + case $ac_var in #( | |
2469 | + _ | IFS | as_nl) ;; #( | |
2470 | + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2471 | + *) { eval $ac_var=; unset $ac_var;} ;; | |
2472 | + esac ;; | |
2473 | + esac | |
2474 | + done | |
2475 | + | |
2476 | + (set) 2>&1 | | |
2477 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
2478 | + *${as_nl}ac_space=\ *) | |
2479 | + # `set' does not quote correctly, so add quotes: double-quote | |
2480 | + # substitution turns \\\\ into \\, and sed turns \\ into \. | |
2481 | + sed -n \ | |
2482 | + "s/'/'\\\\''/g; | |
2483 | + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
2484 | + ;; #( | |
2485 | + *) | |
2486 | + # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2487 | + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2488 | + ;; | |
2489 | + esac | | |
2490 | + sort | |
2491 | +) | | |
2492 | + sed ' | |
2493 | + /^ac_cv_env_/b end | |
2494 | + t clear | |
2495 | + :clear | |
2496 | + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
2497 | + t end | |
2498 | + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
2499 | + :end' >>confcache | |
2500 | +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
2501 | + if test -w "$cache_file"; then | |
2502 | + if test "x$cache_file" != "x/dev/null"; then | |
2503 | + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
2504 | +$as_echo "$as_me: updating cache $cache_file" >&6;} | |
2505 | + if test ! -f "$cache_file" || test -h "$cache_file"; then | |
2506 | + cat confcache >"$cache_file" | |
2507 | + else | |
2508 | + case $cache_file in #( | |
2509 | + */* | ?:*) | |
2510 | + mv -f confcache "$cache_file"$$ && | |
2511 | + mv -f "$cache_file"$$ "$cache_file" ;; #( | |
2512 | + *) | |
2513 | + mv -f confcache "$cache_file" ;; | |
2514 | + esac | |
2515 | + fi | |
2516 | + fi | |
2517 | + else | |
2518 | + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
2519 | +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
2520 | + fi | |
2521 | +fi | |
2522 | +rm -f confcache | |
2523 | + | |
2524 | +test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
2525 | +# Let make expand exec_prefix. | |
2526 | +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
2527 | + | |
2528 | +# Transform confdefs.h into DEFS. | |
2529 | +# Protect against shell expansion while executing Makefile rules. | |
2530 | +# Protect against Makefile macro expansion. | |
2531 | +# | |
2532 | +# If the first sed substitution is executed (which looks for macros that | |
2533 | +# take arguments), then branch to the quote section. Otherwise, | |
2534 | +# look for a macro that doesn't take arguments. | |
2535 | +ac_script=' | |
2536 | +:mline | |
2537 | +/\\$/{ | |
2538 | + N | |
2539 | + s,\\\n,, | |
2540 | + b mline | |
2541 | +} | |
2542 | +t clear | |
2543 | +:clear | |
2544 | +s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
2545 | +t quote | |
2546 | +s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
2547 | +t quote | |
2548 | +b any | |
2549 | +:quote | |
2550 | +s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
2551 | +s/\[/\\&/g | |
2552 | +s/\]/\\&/g | |
2553 | +s/\$/$$/g | |
2554 | +H | |
2555 | +:any | |
2556 | +${ | |
2557 | + g | |
2558 | + s/^\n// | |
2559 | + s/\n/ /g | |
2560 | + p | |
2561 | +} | |
2562 | +' | |
2563 | +DEFS=`sed -n "$ac_script" confdefs.h` | |
2564 | + | |
2565 | + | |
2566 | +ac_libobjs= | |
2567 | +ac_ltlibobjs= | |
2568 | +U= | |
2569 | +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
2570 | + # 1. Remove the extension, and $U if already installed. | |
2571 | + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
2572 | + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
2573 | + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
2574 | + # will be set to the directory where LIBOBJS objects are built. | |
2575 | + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
2576 | + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
2577 | +done | |
2578 | +LIBOBJS=$ac_libobjs | |
2579 | + | |
2580 | +LTLIBOBJS=$ac_ltlibobjs | |
2581 | + | |
2582 | + | |
2583 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
2584 | +$as_echo_n "checking that generated files are newer than configure... " >&6; } | |
2585 | + if test -n "$am_sleep_pid"; then | |
2586 | + # Hide warnings about reused PIDs. | |
2587 | + wait $am_sleep_pid 2>/dev/null | |
2588 | + fi | |
2589 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
2590 | +$as_echo "done" >&6; } | |
2591 | + | |
2592 | + | |
2593 | +: "${CONFIG_STATUS=./config.status}" | |
2594 | +ac_write_fail=0 | |
2595 | +ac_clean_files_save=$ac_clean_files | |
2596 | +ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
2597 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
2598 | +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
2599 | +as_write_fail=0 | |
2600 | +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
2601 | +#! $SHELL | |
2602 | +# Generated by $as_me. | |
2603 | +# Run this file to recreate the current configuration. | |
2604 | +# Compiler output produced by configure, useful for debugging | |
2605 | +# configure, is in config.log if it exists. | |
2606 | + | |
2607 | +debug=false | |
2608 | +ac_cs_recheck=false | |
2609 | +ac_cs_silent=false | |
2610 | + | |
2611 | +SHELL=\${CONFIG_SHELL-$SHELL} | |
2612 | +export SHELL | |
2613 | +_ASEOF | |
2614 | +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
2615 | +## -------------------- ## | |
2616 | +## M4sh Initialization. ## | |
2617 | +## -------------------- ## | |
2618 | + | |
2619 | +# Be more Bourne compatible | |
2620 | +DUALCASE=1; export DUALCASE # for MKS sh | |
2621 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
2622 | + emulate sh | |
2623 | + NULLCMD=: | |
2624 | + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
2625 | + # is contrary to our usage. Disable this feature. | |
2626 | + alias -g '${1+"$@"}'='"$@"' | |
2627 | + setopt NO_GLOB_SUBST | |
2628 | +else | |
2629 | + case `(set -o) 2>/dev/null` in #( | |
2630 | + *posix*) : | |
2631 | + set -o posix ;; #( | |
2632 | + *) : | |
2633 | + ;; | |
2634 | +esac | |
2635 | +fi | |
2636 | + | |
2637 | + | |
2638 | +as_nl=' | |
2639 | +' | |
2640 | +export as_nl | |
2641 | +# Printing a long string crashes Solaris 7 /usr/bin/printf. | |
2642 | +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
2643 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
2644 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
2645 | +# Prefer a ksh shell builtin over an external printf program on Solaris, | |
2646 | +# but without wasting forks for bash or zsh. | |
2647 | +if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
2648 | + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
2649 | + as_echo='print -r --' | |
2650 | + as_echo_n='print -rn --' | |
2651 | +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
2652 | + as_echo='printf %s\n' | |
2653 | + as_echo_n='printf %s' | |
2654 | +else | |
2655 | + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
2656 | + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
2657 | + as_echo_n='/usr/ucb/echo -n' | |
2658 | + else | |
2659 | + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
2660 | + as_echo_n_body='eval | |
2661 | + arg=$1; | |
2662 | + case $arg in #( | |
2663 | + *"$as_nl"*) | |
2664 | + expr "X$arg" : "X\\(.*\\)$as_nl"; | |
2665 | + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
2666 | + esac; | |
2667 | + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
2668 | + ' | |
2669 | + export as_echo_n_body | |
2670 | + as_echo_n='sh -c $as_echo_n_body as_echo' | |
2671 | + fi | |
2672 | + export as_echo_body | |
2673 | + as_echo='sh -c $as_echo_body as_echo' | |
2674 | +fi | |
2675 | + | |
2676 | +# The user is always right. | |
2677 | +if test "${PATH_SEPARATOR+set}" != set; then | |
2678 | + PATH_SEPARATOR=: | |
2679 | + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
2680 | + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
2681 | + PATH_SEPARATOR=';' | |
2682 | + } | |
2683 | +fi | |
2684 | + | |
2685 | + | |
2686 | +# IFS | |
2687 | +# We need space, tab and new line, in precisely that order. Quoting is | |
2688 | +# there to prevent editors from complaining about space-tab. | |
2689 | +# (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
2690 | +# splitting by setting IFS to empty value.) | |
2691 | +IFS=" "" $as_nl" | |
2692 | + | |
2693 | +# Find who we are. Look in the path if we contain no directory separator. | |
2694 | +as_myself= | |
2695 | +case $0 in #(( | |
2696 | + *[\\/]* ) as_myself=$0 ;; | |
2697 | + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2698 | +for as_dir in $PATH | |
2699 | +do | |
2700 | + IFS=$as_save_IFS | |
2701 | + test -z "$as_dir" && as_dir=. | |
2702 | + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
2703 | + done | |
2704 | +IFS=$as_save_IFS | |
2705 | + | |
2706 | + ;; | |
2707 | +esac | |
2708 | +# We did not find ourselves, most probably we were run as `sh COMMAND' | |
2709 | +# in which case we are not to be found in the path. | |
2710 | +if test "x$as_myself" = x; then | |
2711 | + as_myself=$0 | |
2712 | +fi | |
2713 | +if test ! -f "$as_myself"; then | |
2714 | + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
2715 | + exit 1 | |
2716 | +fi | |
2717 | + | |
2718 | +# Unset variables that we do not need and which cause bugs (e.g. in | |
2719 | +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
2720 | +# suppresses any "Segmentation fault" message there. '((' could | |
2721 | +# trigger a bug in pdksh 5.2.14. | |
2722 | +for as_var in BASH_ENV ENV MAIL MAILPATH | |
2723 | +do eval test x\${$as_var+set} = xset \ | |
2724 | + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
2725 | +done | |
2726 | +PS1='$ ' | |
2727 | +PS2='> ' | |
2728 | +PS4='+ ' | |
2729 | + | |
2730 | +# NLS nuisances. | |
2731 | +LC_ALL=C | |
2732 | +export LC_ALL | |
2733 | +LANGUAGE=C | |
2734 | +export LANGUAGE | |
2735 | + | |
2736 | +# CDPATH. | |
2737 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
2738 | + | |
2739 | + | |
2740 | +# as_fn_error STATUS ERROR [LINENO LOG_FD] | |
2741 | +# ---------------------------------------- | |
2742 | +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
2743 | +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
2744 | +# script with STATUS, using 1 if that was 0. | |
2745 | +as_fn_error () | |
2746 | +{ | |
2747 | + as_status=$1; test $as_status -eq 0 && as_status=1 | |
2748 | + if test "$4"; then | |
2749 | + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2750 | + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
2751 | + fi | |
2752 | + $as_echo "$as_me: error: $2" >&2 | |
2753 | + as_fn_exit $as_status | |
2754 | +} # as_fn_error | |
2755 | + | |
2756 | + | |
2757 | +# as_fn_set_status STATUS | |
2758 | +# ----------------------- | |
2759 | +# Set $? to STATUS, without forking. | |
2760 | +as_fn_set_status () | |
2761 | +{ | |
2762 | + return $1 | |
2763 | +} # as_fn_set_status | |
2764 | + | |
2765 | +# as_fn_exit STATUS | |
2766 | +# ----------------- | |
2767 | +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
2768 | +as_fn_exit () | |
2769 | +{ | |
2770 | + set +e | |
2771 | + as_fn_set_status $1 | |
2772 | + exit $1 | |
2773 | +} # as_fn_exit | |
2774 | + | |
2775 | +# as_fn_unset VAR | |
2776 | +# --------------- | |
2777 | +# Portably unset VAR. | |
2778 | +as_fn_unset () | |
2779 | +{ | |
2780 | + { eval $1=; unset $1;} | |
2781 | +} | |
2782 | +as_unset=as_fn_unset | |
2783 | +# as_fn_append VAR VALUE | |
2784 | +# ---------------------- | |
2785 | +# Append the text in VALUE to the end of the definition contained in VAR. Take | |
2786 | +# advantage of any shell optimizations that allow amortized linear growth over | |
2787 | +# repeated appends, instead of the typical quadratic growth present in naive | |
2788 | +# implementations. | |
2789 | +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
2790 | + eval 'as_fn_append () | |
2791 | + { | |
2792 | + eval $1+=\$2 | |
2793 | + }' | |
2794 | +else | |
2795 | + as_fn_append () | |
2796 | + { | |
2797 | + eval $1=\$$1\$2 | |
2798 | + } | |
2799 | +fi # as_fn_append | |
2800 | + | |
2801 | +# as_fn_arith ARG... | |
2802 | +# ------------------ | |
2803 | +# Perform arithmetic evaluation on the ARGs, and store the result in the | |
2804 | +# global $as_val. Take advantage of shells that can avoid forks. The arguments | |
2805 | +# must be portable across $(()) and expr. | |
2806 | +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
2807 | + eval 'as_fn_arith () | |
2808 | + { | |
2809 | + as_val=$(( $* )) | |
2810 | + }' | |
2811 | +else | |
2812 | + as_fn_arith () | |
2813 | + { | |
2814 | + as_val=`expr "$@" || test $? -eq 1` | |
2815 | + } | |
2816 | +fi # as_fn_arith | |
2817 | + | |
2818 | + | |
2819 | +if expr a : '\(a\)' >/dev/null 2>&1 && | |
2820 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
2821 | + as_expr=expr | |
2822 | +else | |
2823 | + as_expr=false | |
2824 | +fi | |
2825 | + | |
2826 | +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
2827 | + as_basename=basename | |
2828 | +else | |
2829 | + as_basename=false | |
2830 | +fi | |
2831 | + | |
2832 | +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
2833 | + as_dirname=dirname | |
2834 | +else | |
2835 | + as_dirname=false | |
2836 | +fi | |
2837 | + | |
2838 | +as_me=`$as_basename -- "$0" || | |
2839 | +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
2840 | + X"$0" : 'X\(//\)$' \| \ | |
2841 | + X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
2842 | +$as_echo X/"$0" | | |
2843 | + sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
2844 | + s//\1/ | |
2845 | + q | |
2846 | + } | |
2847 | + /^X\/\(\/\/\)$/{ | |
2848 | + s//\1/ | |
2849 | + q | |
2850 | + } | |
2851 | + /^X\/\(\/\).*/{ | |
2852 | + s//\1/ | |
2853 | + q | |
2854 | + } | |
2855 | + s/.*/./; q'` | |
2856 | + | |
2857 | +# Avoid depending upon Character Ranges. | |
2858 | +as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
2859 | +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
2860 | +as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
2861 | +as_cr_digits='0123456789' | |
2862 | +as_cr_alnum=$as_cr_Letters$as_cr_digits | |
2863 | + | |
2864 | +ECHO_C= ECHO_N= ECHO_T= | |
2865 | +case `echo -n x` in #((((( | |
2866 | +-n*) | |
2867 | + case `echo 'xy\c'` in | |
2868 | + *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
2869 | + xy) ECHO_C='\c';; | |
2870 | + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
2871 | + ECHO_T=' ';; | |
2872 | + esac;; | |
2873 | +*) | |
2874 | + ECHO_N='-n';; | |
2875 | +esac | |
2876 | + | |
2877 | +rm -f conf$$ conf$$.exe conf$$.file | |
2878 | +if test -d conf$$.dir; then | |
2879 | + rm -f conf$$.dir/conf$$.file | |
2880 | +else | |
2881 | + rm -f conf$$.dir | |
2882 | + mkdir conf$$.dir 2>/dev/null | |
2883 | +fi | |
2884 | +if (echo >conf$$.file) 2>/dev/null; then | |
2885 | + if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2886 | + as_ln_s='ln -s' | |
2887 | + # ... but there are two gotchas: | |
2888 | + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
2889 | + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
2890 | + # In both cases, we have to default to `cp -pR'. | |
2891 | + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
2892 | + as_ln_s='cp -pR' | |
2893 | + elif ln conf$$.file conf$$ 2>/dev/null; then | |
2894 | + as_ln_s=ln | |
2895 | + else | |
2896 | + as_ln_s='cp -pR' | |
2897 | + fi | |
2898 | +else | |
2899 | + as_ln_s='cp -pR' | |
2900 | +fi | |
2901 | +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
2902 | +rmdir conf$$.dir 2>/dev/null | |
2903 | + | |
2904 | + | |
2905 | +# as_fn_mkdir_p | |
2906 | +# ------------- | |
2907 | +# Create "$as_dir" as a directory, including parents if necessary. | |
2908 | +as_fn_mkdir_p () | |
2909 | +{ | |
2910 | + | |
2911 | + case $as_dir in #( | |
2912 | + -*) as_dir=./$as_dir;; | |
2913 | + esac | |
2914 | + test -d "$as_dir" || eval $as_mkdir_p || { | |
2915 | + as_dirs= | |
2916 | + while :; do | |
2917 | + case $as_dir in #( | |
2918 | + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
2919 | + *) as_qdir=$as_dir;; | |
2920 | + esac | |
2921 | + as_dirs="'$as_qdir' $as_dirs" | |
2922 | + as_dir=`$as_dirname -- "$as_dir" || | |
2923 | +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
2924 | + X"$as_dir" : 'X\(//\)[^/]' \| \ | |
2925 | + X"$as_dir" : 'X\(//\)$' \| \ | |
2926 | + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
2927 | +$as_echo X"$as_dir" | | |
2928 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
2929 | + s//\1/ | |
2930 | + q | |
2931 | + } | |
2932 | + /^X\(\/\/\)[^/].*/{ | |
2933 | + s//\1/ | |
2934 | + q | |
2935 | + } | |
2936 | + /^X\(\/\/\)$/{ | |
2937 | + s//\1/ | |
2938 | + q | |
2939 | + } | |
2940 | + /^X\(\/\).*/{ | |
2941 | + s//\1/ | |
2942 | + q | |
2943 | + } | |
2944 | + s/.*/./; q'` | |
2945 | + test -d "$as_dir" && break | |
2946 | + done | |
2947 | + test -z "$as_dirs" || eval "mkdir $as_dirs" | |
2948 | + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
2949 | + | |
2950 | + | |
2951 | +} # as_fn_mkdir_p | |
2952 | +if mkdir -p . 2>/dev/null; then | |
2953 | + as_mkdir_p='mkdir -p "$as_dir"' | |
2954 | +else | |
2955 | + test -d ./-p && rmdir ./-p | |
2956 | + as_mkdir_p=false | |
2957 | +fi | |
2958 | + | |
2959 | + | |
2960 | +# as_fn_executable_p FILE | |
2961 | +# ----------------------- | |
2962 | +# Test if FILE is an executable regular file. | |
2963 | +as_fn_executable_p () | |
2964 | +{ | |
2965 | + test -f "$1" && test -x "$1" | |
2966 | +} # as_fn_executable_p | |
2967 | +as_test_x='test -x' | |
2968 | +as_executable_p=as_fn_executable_p | |
2969 | + | |
2970 | +# Sed expression to map a string onto a valid CPP name. | |
2971 | +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
2972 | + | |
2973 | +# Sed expression to map a string onto a valid variable name. | |
2974 | +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
2975 | + | |
2976 | + | |
2977 | +exec 6>&1 | |
2978 | +## ----------------------------------- ## | |
2979 | +## Main body of $CONFIG_STATUS script. ## | |
2980 | +## ----------------------------------- ## | |
2981 | +_ASEOF | |
2982 | +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
2983 | + | |
2984 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
2985 | +# Save the log message, to keep $0 and so on meaningful, and to | |
2986 | +# report actual input values of CONFIG_FILES etc. instead of their | |
2987 | +# values after options handling. | |
2988 | +ac_log=" | |
2989 | +This file was extended by autotoolstest $as_me mono.01, which was | |
2990 | +generated by GNU Autoconf 2.69. Invocation command line was | |
2991 | + | |
2992 | + CONFIG_FILES = $CONFIG_FILES | |
2993 | + CONFIG_HEADERS = $CONFIG_HEADERS | |
2994 | + CONFIG_LINKS = $CONFIG_LINKS | |
2995 | + CONFIG_COMMANDS = $CONFIG_COMMANDS | |
2996 | + $ $0 $@ | |
2997 | + | |
2998 | +on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2999 | +" | |
3000 | + | |
3001 | +_ACEOF | |
3002 | + | |
3003 | +case $ac_config_files in *" | |
3004 | +"*) set x $ac_config_files; shift; ac_config_files=$*;; | |
3005 | +esac | |
3006 | + | |
3007 | + | |
3008 | + | |
3009 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3010 | +# Files that config.status was made for. | |
3011 | +config_files="$ac_config_files" | |
3012 | + | |
3013 | +_ACEOF | |
3014 | + | |
3015 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3016 | +ac_cs_usage="\ | |
3017 | +\`$as_me' instantiates files and other configuration actions | |
3018 | +from templates according to the current configuration. Unless the files | |
3019 | +and actions are specified as TAGs, all are instantiated by default. | |
3020 | + | |
3021 | +Usage: $0 [OPTION]... [TAG]... | |
3022 | + | |
3023 | + -h, --help print this help, then exit | |
3024 | + -V, --version print version number and configuration settings, then exit | |
3025 | + --config print configuration, then exit | |
3026 | + -q, --quiet, --silent | |
3027 | + do not print progress messages | |
3028 | + -d, --debug don't remove temporary files | |
3029 | + --recheck update $as_me by reconfiguring in the same conditions | |
3030 | + --file=FILE[:TEMPLATE] | |
3031 | + instantiate the configuration file FILE | |
3032 | + | |
3033 | +Configuration files: | |
3034 | +$config_files | |
3035 | + | |
3036 | +Report bugs to <matsuand AT users DT sourceforge DT jp>." | |
3037 | + | |
3038 | +_ACEOF | |
3039 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3040 | +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
3041 | +ac_cs_version="\\ | |
3042 | +autotoolstest config.status mono.01 | |
3043 | +configured by $0, generated by GNU Autoconf 2.69, | |
3044 | + with options \\"\$ac_cs_config\\" | |
3045 | + | |
3046 | +Copyright (C) 2012 Free Software Foundation, Inc. | |
3047 | +This config.status script is free software; the Free Software Foundation | |
3048 | +gives unlimited permission to copy, distribute and modify it." | |
3049 | + | |
3050 | +ac_pwd='$ac_pwd' | |
3051 | +srcdir='$srcdir' | |
3052 | +INSTALL='$INSTALL' | |
3053 | +MKDIR_P='$MKDIR_P' | |
3054 | +AWK='$AWK' | |
3055 | +test -n "\$AWK" || AWK=awk | |
3056 | +_ACEOF | |
3057 | + | |
3058 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3059 | +# The default lists apply if the user does not specify any file. | |
3060 | +ac_need_defaults=: | |
3061 | +while test $# != 0 | |
3062 | +do | |
3063 | + case $1 in | |
3064 | + --*=?*) | |
3065 | + ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
3066 | + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
3067 | + ac_shift=: | |
3068 | + ;; | |
3069 | + --*=) | |
3070 | + ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
3071 | + ac_optarg= | |
3072 | + ac_shift=: | |
3073 | + ;; | |
3074 | + *) | |
3075 | + ac_option=$1 | |
3076 | + ac_optarg=$2 | |
3077 | + ac_shift=shift | |
3078 | + ;; | |
3079 | + esac | |
3080 | + | |
3081 | + case $ac_option in | |
3082 | + # Handling of the options. | |
3083 | + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3084 | + ac_cs_recheck=: ;; | |
3085 | + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
3086 | + $as_echo "$ac_cs_version"; exit ;; | |
3087 | + --config | --confi | --conf | --con | --co | --c ) | |
3088 | + $as_echo "$ac_cs_config"; exit ;; | |
3089 | + --debug | --debu | --deb | --de | --d | -d ) | |
3090 | + debug=: ;; | |
3091 | + --file | --fil | --fi | --f ) | |
3092 | + $ac_shift | |
3093 | + case $ac_optarg in | |
3094 | + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
3095 | + '') as_fn_error $? "missing file argument" ;; | |
3096 | + esac | |
3097 | + as_fn_append CONFIG_FILES " '$ac_optarg'" | |
3098 | + ac_need_defaults=false;; | |
3099 | + --he | --h | --help | --hel | -h ) | |
3100 | + $as_echo "$ac_cs_usage"; exit ;; | |
3101 | + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
3102 | + | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
3103 | + ac_cs_silent=: ;; | |
3104 | + | |
3105 | + # This is an error. | |
3106 | + -*) as_fn_error $? "unrecognized option: \`$1' | |
3107 | +Try \`$0 --help' for more information." ;; | |
3108 | + | |
3109 | + *) as_fn_append ac_config_targets " $1" | |
3110 | + ac_need_defaults=false ;; | |
3111 | + | |
3112 | + esac | |
3113 | + shift | |
3114 | +done | |
3115 | + | |
3116 | +ac_configure_extra_args= | |
3117 | + | |
3118 | +if $ac_cs_silent; then | |
3119 | + exec 6>/dev/null | |
3120 | + ac_configure_extra_args="$ac_configure_extra_args --silent" | |
3121 | +fi | |
3122 | + | |
3123 | +_ACEOF | |
3124 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3125 | +if \$ac_cs_recheck; then | |
3126 | + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
3127 | + shift | |
3128 | + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
3129 | + CONFIG_SHELL='$SHELL' | |
3130 | + export CONFIG_SHELL | |
3131 | + exec "\$@" | |
3132 | +fi | |
3133 | + | |
3134 | +_ACEOF | |
3135 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3136 | +exec 5>>config.log | |
3137 | +{ | |
3138 | + echo | |
3139 | + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
3140 | +## Running $as_me. ## | |
3141 | +_ASBOX | |
3142 | + $as_echo "$ac_log" | |
3143 | +} >&5 | |
3144 | + | |
3145 | +_ACEOF | |
3146 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3147 | +_ACEOF | |
3148 | + | |
3149 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3150 | + | |
3151 | +# Handling of arguments. | |
3152 | +for ac_config_target in $ac_config_targets | |
3153 | +do | |
3154 | + case $ac_config_target in | |
3155 | + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
3156 | + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
3157 | + | |
3158 | + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
3159 | + esac | |
3160 | +done | |
3161 | + | |
3162 | + | |
3163 | +# If the user did not use the arguments to specify the items to instantiate, | |
3164 | +# then the envvar interface is used. Set only those that are not. | |
3165 | +# We use the long form for the default assignment because of an extremely | |
3166 | +# bizarre bug on SunOS 4.1.3. | |
3167 | +if $ac_need_defaults; then | |
3168 | + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
3169 | +fi | |
3170 | + | |
3171 | +# Have a temporary directory for convenience. Make it in the build tree | |
3172 | +# simply because there is no reason against having it here, and in addition, | |
3173 | +# creating and moving files from /tmp can sometimes cause problems. | |
3174 | +# Hook for its removal unless debugging. | |
3175 | +# Note that there is a small window in which the directory will not be cleaned: | |
3176 | +# after its creation but before its name has been assigned to `$tmp'. | |
3177 | +$debug || | |
3178 | +{ | |
3179 | + tmp= ac_tmp= | |
3180 | + trap 'exit_status=$? | |
3181 | + : "${ac_tmp:=$tmp}" | |
3182 | + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
3183 | +' 0 | |
3184 | + trap 'as_fn_exit 1' 1 2 13 15 | |
3185 | +} | |
3186 | +# Create a (secure) tmp directory for tmp files. | |
3187 | + | |
3188 | +{ | |
3189 | + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
3190 | + test -d "$tmp" | |
3191 | +} || | |
3192 | +{ | |
3193 | + tmp=./conf$$-$RANDOM | |
3194 | + (umask 077 && mkdir "$tmp") | |
3195 | +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
3196 | +ac_tmp=$tmp | |
3197 | + | |
3198 | +# Set up the scripts for CONFIG_FILES section. | |
3199 | +# No need to generate them if there are no CONFIG_FILES. | |
3200 | +# This happens for instance with `./config.status config.h'. | |
3201 | +if test -n "$CONFIG_FILES"; then | |
3202 | + | |
3203 | + | |
3204 | +ac_cr=`echo X | tr X '\015'` | |
3205 | +# On cygwin, bash can eat \r inside `` if the user requested igncr. | |
3206 | +# But we know of no other shell where ac_cr would be empty at this | |
3207 | +# point, so we can use a bashism as a fallback. | |
3208 | +if test "x$ac_cr" = x; then | |
3209 | + eval ac_cr=\$\'\\r\' | |
3210 | +fi | |
3211 | +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
3212 | +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
3213 | + ac_cs_awk_cr='\\r' | |
3214 | +else | |
3215 | + ac_cs_awk_cr=$ac_cr | |
3216 | +fi | |
3217 | + | |
3218 | +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
3219 | +_ACEOF | |
3220 | + | |
3221 | + | |
3222 | +{ | |
3223 | + echo "cat >conf$$subs.awk <<_ACEOF" && | |
3224 | + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
3225 | + echo "_ACEOF" | |
3226 | +} >conf$$subs.sh || | |
3227 | + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
3228 | +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
3229 | +ac_delim='%!_!# ' | |
3230 | +for ac_last_try in false false false false false :; do | |
3231 | + . ./conf$$subs.sh || | |
3232 | + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
3233 | + | |
3234 | + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
3235 | + if test $ac_delim_n = $ac_delim_num; then | |
3236 | + break | |
3237 | + elif $ac_last_try; then | |
3238 | + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
3239 | + else | |
3240 | + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
3241 | + fi | |
3242 | +done | |
3243 | +rm -f conf$$subs.sh | |
3244 | + | |
3245 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3246 | +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
3247 | +_ACEOF | |
3248 | +sed -n ' | |
3249 | +h | |
3250 | +s/^/S["/; s/!.*/"]=/ | |
3251 | +p | |
3252 | +g | |
3253 | +s/^[^!]*!// | |
3254 | +:repl | |
3255 | +t repl | |
3256 | +s/'"$ac_delim"'$// | |
3257 | +t delim | |
3258 | +:nl | |
3259 | +h | |
3260 | +s/\(.\{148\}\)..*/\1/ | |
3261 | +t more1 | |
3262 | +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
3263 | +p | |
3264 | +n | |
3265 | +b repl | |
3266 | +:more1 | |
3267 | +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
3268 | +p | |
3269 | +g | |
3270 | +s/.\{148\}// | |
3271 | +t nl | |
3272 | +:delim | |
3273 | +h | |
3274 | +s/\(.\{148\}\)..*/\1/ | |
3275 | +t more2 | |
3276 | +s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
3277 | +p | |
3278 | +b | |
3279 | +:more2 | |
3280 | +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
3281 | +p | |
3282 | +g | |
3283 | +s/.\{148\}// | |
3284 | +t delim | |
3285 | +' <conf$$subs.awk | sed ' | |
3286 | +/^[^""]/{ | |
3287 | + N | |
3288 | + s/\n// | |
3289 | +} | |
3290 | +' >>$CONFIG_STATUS || ac_write_fail=1 | |
3291 | +rm -f conf$$subs.awk | |
3292 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3293 | +_ACAWK | |
3294 | +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
3295 | + for (key in S) S_is_set[key] = 1 | |
3296 | + FS = "" | |
3297 | + | |
3298 | +} | |
3299 | +{ | |
3300 | + line = $ 0 | |
3301 | + nfields = split(line, field, "@") | |
3302 | + substed = 0 | |
3303 | + len = length(field[1]) | |
3304 | + for (i = 2; i < nfields; i++) { | |
3305 | + key = field[i] | |
3306 | + keylen = length(key) | |
3307 | + if (S_is_set[key]) { | |
3308 | + value = S[key] | |
3309 | + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
3310 | + len += length(value) + length(field[++i]) | |
3311 | + substed = 1 | |
3312 | + } else | |
3313 | + len += 1 + keylen | |
3314 | + } | |
3315 | + | |
3316 | + print line | |
3317 | +} | |
3318 | + | |
3319 | +_ACAWK | |
3320 | +_ACEOF | |
3321 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3322 | +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
3323 | + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
3324 | +else | |
3325 | + cat | |
3326 | +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
3327 | + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
3328 | +_ACEOF | |
3329 | + | |
3330 | +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
3331 | +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
3332 | +# trailing colons and then remove the whole line if VPATH becomes empty | |
3333 | +# (actually we leave an empty line to preserve line numbers). | |
3334 | +if test "x$srcdir" = x.; then | |
3335 | + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
3336 | +h | |
3337 | +s/// | |
3338 | +s/^/:/ | |
3339 | +s/[ ]*$/:/ | |
3340 | +s/:\$(srcdir):/:/g | |
3341 | +s/:\${srcdir}:/:/g | |
3342 | +s/:@srcdir@:/:/g | |
3343 | +s/^:*// | |
3344 | +s/:*$// | |
3345 | +x | |
3346 | +s/\(=[ ]*\).*/\1/ | |
3347 | +G | |
3348 | +s/\n// | |
3349 | +s/^[^=]*=[ ]*$// | |
3350 | +}' | |
3351 | +fi | |
3352 | + | |
3353 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3354 | +fi # test -n "$CONFIG_FILES" | |
3355 | + | |
3356 | + | |
3357 | +eval set X " :F $CONFIG_FILES " | |
3358 | +shift | |
3359 | +for ac_tag | |
3360 | +do | |
3361 | + case $ac_tag in | |
3362 | + :[FHLC]) ac_mode=$ac_tag; continue;; | |
3363 | + esac | |
3364 | + case $ac_mode$ac_tag in | |
3365 | + :[FHL]*:*);; | |
3366 | + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
3367 | + :[FH]-) ac_tag=-:-;; | |
3368 | + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
3369 | + esac | |
3370 | + ac_save_IFS=$IFS | |
3371 | + IFS=: | |
3372 | + set x $ac_tag | |
3373 | + IFS=$ac_save_IFS | |
3374 | + shift | |
3375 | + ac_file=$1 | |
3376 | + shift | |
3377 | + | |
3378 | + case $ac_mode in | |
3379 | + :L) ac_source=$1;; | |
3380 | + :[FH]) | |
3381 | + ac_file_inputs= | |
3382 | + for ac_f | |
3383 | + do | |
3384 | + case $ac_f in | |
3385 | + -) ac_f="$ac_tmp/stdin";; | |
3386 | + *) # Look for the file first in the build tree, then in the source tree | |
3387 | + # (if the path is not absolute). The absolute path cannot be DOS-style, | |
3388 | + # because $ac_f cannot contain `:'. | |
3389 | + test -f "$ac_f" || | |
3390 | + case $ac_f in | |
3391 | + [\\/$]*) false;; | |
3392 | + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
3393 | + esac || | |
3394 | + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
3395 | + esac | |
3396 | + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
3397 | + as_fn_append ac_file_inputs " '$ac_f'" | |
3398 | + done | |
3399 | + | |
3400 | + # Let's still pretend it is `configure' which instantiates (i.e., don't | |
3401 | + # use $as_me), people would be surprised to read: | |
3402 | + # /* config.h. Generated by config.status. */ | |
3403 | + configure_input='Generated from '` | |
3404 | + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
3405 | + `' by configure.' | |
3406 | + if test x"$ac_file" != x-; then | |
3407 | + configure_input="$ac_file. $configure_input" | |
3408 | + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
3409 | +$as_echo "$as_me: creating $ac_file" >&6;} | |
3410 | + fi | |
3411 | + # Neutralize special characters interpreted by sed in replacement strings. | |
3412 | + case $configure_input in #( | |
3413 | + *\&* | *\|* | *\\* ) | |
3414 | + ac_sed_conf_input=`$as_echo "$configure_input" | | |
3415 | + sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
3416 | + *) ac_sed_conf_input=$configure_input;; | |
3417 | + esac | |
3418 | + | |
3419 | + case $ac_tag in | |
3420 | + *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
3421 | + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
3422 | + esac | |
3423 | + ;; | |
3424 | + esac | |
3425 | + | |
3426 | + ac_dir=`$as_dirname -- "$ac_file" || | |
3427 | +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3428 | + X"$ac_file" : 'X\(//\)[^/]' \| \ | |
3429 | + X"$ac_file" : 'X\(//\)$' \| \ | |
3430 | + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
3431 | +$as_echo X"$ac_file" | | |
3432 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
3433 | + s//\1/ | |
3434 | + q | |
3435 | + } | |
3436 | + /^X\(\/\/\)[^/].*/{ | |
3437 | + s//\1/ | |
3438 | + q | |
3439 | + } | |
3440 | + /^X\(\/\/\)$/{ | |
3441 | + s//\1/ | |
3442 | + q | |
3443 | + } | |
3444 | + /^X\(\/\).*/{ | |
3445 | + s//\1/ | |
3446 | + q | |
3447 | + } | |
3448 | + s/.*/./; q'` | |
3449 | + as_dir="$ac_dir"; as_fn_mkdir_p | |
3450 | + ac_builddir=. | |
3451 | + | |
3452 | +case "$ac_dir" in | |
3453 | +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
3454 | +*) | |
3455 | + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
3456 | + # A ".." for each directory in $ac_dir_suffix. | |
3457 | + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
3458 | + case $ac_top_builddir_sub in | |
3459 | + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
3460 | + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
3461 | + esac ;; | |
3462 | +esac | |
3463 | +ac_abs_top_builddir=$ac_pwd | |
3464 | +ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
3465 | +# for backward compatibility: | |
3466 | +ac_top_builddir=$ac_top_build_prefix | |
3467 | + | |
3468 | +case $srcdir in | |
3469 | + .) # We are building in place. | |
3470 | + ac_srcdir=. | |
3471 | + ac_top_srcdir=$ac_top_builddir_sub | |
3472 | + ac_abs_top_srcdir=$ac_pwd ;; | |
3473 | + [\\/]* | ?:[\\/]* ) # Absolute name. | |
3474 | + ac_srcdir=$srcdir$ac_dir_suffix; | |
3475 | + ac_top_srcdir=$srcdir | |
3476 | + ac_abs_top_srcdir=$srcdir ;; | |
3477 | + *) # Relative name. | |
3478 | + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
3479 | + ac_top_srcdir=$ac_top_build_prefix$srcdir | |
3480 | + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
3481 | +esac | |
3482 | +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
3483 | + | |
3484 | + | |
3485 | + case $ac_mode in | |
3486 | + :F) | |
3487 | + # | |
3488 | + # CONFIG_FILE | |
3489 | + # | |
3490 | + | |
3491 | + case $INSTALL in | |
3492 | + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
3493 | + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
3494 | + esac | |
3495 | + ac_MKDIR_P=$MKDIR_P | |
3496 | + case $MKDIR_P in | |
3497 | + [\\/$]* | ?:[\\/]* ) ;; | |
3498 | + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
3499 | + esac | |
3500 | +_ACEOF | |
3501 | + | |
3502 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3503 | +# If the template does not know about datarootdir, expand it. | |
3504 | +# FIXME: This hack should be removed a few years after 2.60. | |
3505 | +ac_datarootdir_hack=; ac_datarootdir_seen= | |
3506 | +ac_sed_dataroot=' | |
3507 | +/datarootdir/ { | |
3508 | + p | |
3509 | + q | |
3510 | +} | |
3511 | +/@datadir@/p | |
3512 | +/@docdir@/p | |
3513 | +/@infodir@/p | |
3514 | +/@localedir@/p | |
3515 | +/@mandir@/p' | |
3516 | +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
3517 | +*datarootdir*) ac_datarootdir_seen=yes;; | |
3518 | +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
3519 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
3520 | +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
3521 | +_ACEOF | |
3522 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3523 | + ac_datarootdir_hack=' | |
3524 | + s&@datadir@&$datadir&g | |
3525 | + s&@docdir@&$docdir&g | |
3526 | + s&@infodir@&$infodir&g | |
3527 | + s&@localedir@&$localedir&g | |
3528 | + s&@mandir@&$mandir&g | |
3529 | + s&\\\${datarootdir}&$datarootdir&g' ;; | |
3530 | +esac | |
3531 | +_ACEOF | |
3532 | + | |
3533 | +# Neutralize VPATH when `$srcdir' = `.'. | |
3534 | +# Shell code in configure.ac might set extrasub. | |
3535 | +# FIXME: do we really want to maintain this feature? | |
3536 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3537 | +ac_sed_extra="$ac_vpsub | |
3538 | +$extrasub | |
3539 | +_ACEOF | |
3540 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3541 | +:t | |
3542 | +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
3543 | +s|@configure_input@|$ac_sed_conf_input|;t t | |
3544 | +s&@top_builddir@&$ac_top_builddir_sub&;t t | |
3545 | +s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
3546 | +s&@srcdir@&$ac_srcdir&;t t | |
3547 | +s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
3548 | +s&@top_srcdir@&$ac_top_srcdir&;t t | |
3549 | +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
3550 | +s&@builddir@&$ac_builddir&;t t | |
3551 | +s&@abs_builddir@&$ac_abs_builddir&;t t | |
3552 | +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
3553 | +s&@INSTALL@&$ac_INSTALL&;t t | |
3554 | +s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
3555 | +$ac_datarootdir_hack | |
3556 | +" | |
3557 | +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
3558 | + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
3559 | + | |
3560 | +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
3561 | + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
3562 | + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
3563 | + "$ac_tmp/out"`; test -z "$ac_out"; } && | |
3564 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
3565 | +which seems to be undefined. Please make sure it is defined" >&5 | |
3566 | +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
3567 | +which seems to be undefined. Please make sure it is defined" >&2;} | |
3568 | + | |
3569 | + rm -f "$ac_tmp/stdin" | |
3570 | + case $ac_file in | |
3571 | + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
3572 | + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
3573 | + esac \ | |
3574 | + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
3575 | + ;; | |
3576 | + | |
3577 | + | |
3578 | + | |
3579 | + esac | |
3580 | + | |
3581 | +done # for ac_tag | |
3582 | + | |
3583 | + | |
3584 | +as_fn_exit 0 | |
3585 | +_ACEOF | |
3586 | +ac_clean_files=$ac_clean_files_save | |
3587 | + | |
3588 | +test $ac_write_fail = 0 || | |
3589 | + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
3590 | + | |
3591 | + | |
3592 | +# configure is writing to config.log, and then calls config.status. | |
3593 | +# config.status does its own redirection, appending to config.log. | |
3594 | +# Unfortunately, on DOS this fails, as config.log is still kept open | |
3595 | +# by configure, so config.status won't be able to write to it; its | |
3596 | +# output is simply discarded. So we exec the FD to /dev/null, | |
3597 | +# effectively closing config.log, so it can be properly (re)opened and | |
3598 | +# appended to by config.status. When coming back to configure, we | |
3599 | +# need to make the FD available again. | |
3600 | +if test "$no_create" != yes; then | |
3601 | + ac_cs_success=: | |
3602 | + ac_config_status_args= | |
3603 | + test "$silent" = yes && | |
3604 | + ac_config_status_args="$ac_config_status_args --quiet" | |
3605 | + exec 5>/dev/null | |
3606 | + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
3607 | + exec 5>>config.log | |
3608 | + # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
3609 | + # would make configure fail if this is the last instruction. | |
3610 | + $ac_cs_success || as_fn_exit 1 | |
3611 | +fi | |
3612 | +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
3613 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
3614 | +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
3615 | +fi | |
3616 | + |
@@ -0,0 +1,23 @@ | ||
1 | +# -*- Autoconf -*- | |
2 | +# Process this file with autoconf to produce a configure script. | |
3 | + | |
4 | +AC_PREREQ([2.69]) | |
5 | +AC_INIT([autotoolstest], [mono.01], [matsuand AT users DT sourceforge DT jp]) | |
6 | +AM_INIT_AUTOMAKE | |
7 | + | |
8 | +m4_include([m4/cli.m4]) | |
9 | + | |
10 | +# Checks for programs. | |
11 | +AM_PROG_CLI | |
12 | + | |
13 | +# Checks for libraries. | |
14 | + | |
15 | +# Checks for header files. | |
16 | + | |
17 | +# Checks for typedefs, structures, and compiler characteristics. | |
18 | + | |
19 | +# Checks for library functions. | |
20 | + | |
21 | +AC_CONFIG_FILES([Makefile | |
22 | + src/Makefile]) | |
23 | +AC_OUTPUT |
@@ -0,0 +1,780 @@ | ||
1 | +#! /bin/sh | |
2 | +# depcomp - compile a program generating dependencies as side-effects | |
3 | + | |
4 | +scriptversion=2012-07-12.20; # UTC | |
5 | + | |
6 | +# Copyright (C) 1999-2012 Free Software Foundation, Inc. | |
7 | + | |
8 | +# This program is free software; you can redistribute it and/or modify | |
9 | +# it under the terms of the GNU General Public License as published by | |
10 | +# the Free Software Foundation; either version 2, or (at your option) | |
11 | +# any later version. | |
12 | + | |
13 | +# This program is distributed in the hope that it will be useful, | |
14 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | +# GNU General Public License for more details. | |
17 | + | |
18 | +# You should have received a copy of the GNU General Public License | |
19 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. | |
20 | + | |
21 | +# As a special exception to the GNU General Public License, if you | |
22 | +# distribute this file as part of a program that contains a | |
23 | +# configuration script generated by Autoconf, you may include it under | |
24 | +# the same distribution terms that you use for the rest of that program. | |
25 | + | |
26 | +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>. | |
27 | + | |
28 | +case $1 in | |
29 | + '') | |
30 | + echo "$0: No command. Try '$0 --help' for more information." 1>&2 | |
31 | + exit 1; | |
32 | + ;; | |
33 | + -h | --h*) | |
34 | + cat <<\EOF | |
35 | +Usage: depcomp [--help] [--version] PROGRAM [ARGS] | |
36 | + | |
37 | +Run PROGRAMS ARGS to compile a file, generating dependencies | |
38 | +as side-effects. | |
39 | + | |
40 | +Environment variables: | |
41 | + depmode Dependency tracking mode. | |
42 | + source Source file read by 'PROGRAMS ARGS'. | |
43 | + object Object file output by 'PROGRAMS ARGS'. | |
44 | + DEPDIR directory where to store dependencies. | |
45 | + depfile Dependency file to output. | |
46 | + tmpdepfile Temporary file to use when outputting dependencies. | |
47 | + libtool Whether libtool is used (yes/no). | |
48 | + | |
49 | +Report bugs to <bug-automake@gnu.org>. | |
50 | +EOF | |
51 | + exit $? | |
52 | + ;; | |
53 | + -v | --v*) | |
54 | + echo "depcomp $scriptversion" | |
55 | + exit $? | |
56 | + ;; | |
57 | +esac | |
58 | + | |
59 | +# A tabulation character. | |
60 | +tab=' ' | |
61 | +# A newline character. | |
62 | +nl=' | |
63 | +' | |
64 | + | |
65 | +if test -z "$depmode" || test -z "$source" || test -z "$object"; then | |
66 | + echo "depcomp: Variables source, object and depmode must be set" 1>&2 | |
67 | + exit 1 | |
68 | +fi | |
69 | + | |
70 | +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. | |
71 | +depfile=${depfile-`echo "$object" | | |
72 | + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} | |
73 | +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} | |
74 | + | |
75 | +rm -f "$tmpdepfile" | |
76 | + | |
77 | +# Some modes work just like other modes, but use different flags. We | |
78 | +# parameterize here, but still list the modes in the big case below, | |
79 | +# to make depend.m4 easier to write. Note that we *cannot* use a case | |
80 | +# here, because this file can only contain one case statement. | |
81 | +if test "$depmode" = hp; then | |
82 | + # HP compiler uses -M and no extra arg. | |
83 | + gccflag=-M | |
84 | + depmode=gcc | |
85 | +fi | |
86 | + | |
87 | +if test "$depmode" = dashXmstdout; then | |
88 | + # This is just like dashmstdout with a different argument. | |
89 | + dashmflag=-xM | |
90 | + depmode=dashmstdout | |
91 | +fi | |
92 | + | |
93 | +cygpath_u="cygpath -u -f -" | |
94 | +if test "$depmode" = msvcmsys; then | |
95 | + # This is just like msvisualcpp but w/o cygpath translation. | |
96 | + # Just convert the backslash-escaped backslashes to single forward | |
97 | + # slashes to satisfy depend.m4 | |
98 | + cygpath_u='sed s,\\\\,/,g' | |
99 | + depmode=msvisualcpp | |
100 | +fi | |
101 | + | |
102 | +if test "$depmode" = msvc7msys; then | |
103 | + # This is just like msvc7 but w/o cygpath translation. | |
104 | + # Just convert the backslash-escaped backslashes to single forward | |
105 | + # slashes to satisfy depend.m4 | |
106 | + cygpath_u='sed s,\\\\,/,g' | |
107 | + depmode=msvc7 | |
108 | +fi | |
109 | + | |
110 | +if test "$depmode" = xlc; then | |
111 | + # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations. | |
112 | + gccflag=-qmakedep=gcc,-MF | |
113 | + depmode=gcc | |
114 | +fi | |
115 | + | |
116 | +case "$depmode" in | |
117 | +gcc3) | |
118 | +## gcc 3 implements dependency tracking that does exactly what | |
119 | +## we want. Yay! Note: for some reason libtool 1.4 doesn't like | |
120 | +## it if -MD -MP comes after the -MF stuff. Hmm. | |
121 | +## Unfortunately, FreeBSD c89 acceptance of flags depends upon | |
122 | +## the command line argument order; so add the flags where they | |
123 | +## appear in depend2.am. Note that the slowdown incurred here | |
124 | +## affects only configure: in makefiles, %FASTDEP% shortcuts this. | |
125 | + for arg | |
126 | + do | |
127 | + case $arg in | |
128 | + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; | |
129 | + *) set fnord "$@" "$arg" ;; | |
130 | + esac | |
131 | + shift # fnord | |
132 | + shift # $arg | |
133 | + done | |
134 | + "$@" | |
135 | + stat=$? | |
136 | + if test $stat -eq 0; then : | |
137 | + else | |
138 | + rm -f "$tmpdepfile" | |
139 | + exit $stat | |
140 | + fi | |
141 | + mv "$tmpdepfile" "$depfile" | |
142 | + ;; | |
143 | + | |
144 | +gcc) | |
145 | +## There are various ways to get dependency output from gcc. Here's | |
146 | +## why we pick this rather obscure method: | |
147 | +## - Don't want to use -MD because we'd like the dependencies to end | |
148 | +## up in a subdir. Having to rename by hand is ugly. | |
149 | +## (We might end up doing this anyway to support other compilers.) | |
150 | +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like | |
151 | +## -MM, not -M (despite what the docs say). | |
152 | +## - Using -M directly means running the compiler twice (even worse | |
153 | +## than renaming). | |
154 | + if test -z "$gccflag"; then | |
155 | + gccflag=-MD, | |
156 | + fi | |
157 | + "$@" -Wp,"$gccflag$tmpdepfile" | |
158 | + stat=$? | |
159 | + if test $stat -eq 0; then : | |
160 | + else | |
161 | + rm -f "$tmpdepfile" | |
162 | + exit $stat | |
163 | + fi | |
164 | + rm -f "$depfile" | |
165 | + echo "$object : \\" > "$depfile" | |
166 | + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | |
167 | +## The second -e expression handles DOS-style file names with drive letters. | |
168 | + sed -e 's/^[^:]*: / /' \ | |
169 | + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" | |
170 | +## This next piece of magic avoids the "deleted header file" problem. | |
171 | +## The problem is that when a header file which appears in a .P file | |
172 | +## is deleted, the dependency causes make to die (because there is | |
173 | +## typically no way to rebuild the header). We avoid this by adding | |
174 | +## dummy dependencies for each header file. Too bad gcc doesn't do | |
175 | +## this for us directly. | |
176 | + tr ' ' "$nl" < "$tmpdepfile" | | |
177 | +## Some versions of gcc put a space before the ':'. On the theory | |
178 | +## that the space means something, we add a space to the output as | |
179 | +## well. hp depmode also adds that space, but also prefixes the VPATH | |
180 | +## to the object. Take care to not repeat it in the output. | |
181 | +## Some versions of the HPUX 10.20 sed can't process this invocation | |
182 | +## correctly. Breaking it into two sed invocations is a workaround. | |
183 | + sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | |
184 | + | sed -e 's/$/ :/' >> "$depfile" | |
185 | + rm -f "$tmpdepfile" | |
186 | + ;; | |
187 | + | |
188 | +hp) | |
189 | + # This case exists only to let depend.m4 do its work. It works by | |
190 | + # looking at the text of this script. This case will never be run, | |
191 | + # since it is checked for above. | |
192 | + exit 1 | |
193 | + ;; | |
194 | + | |
195 | +sgi) | |
196 | + if test "$libtool" = yes; then | |
197 | + "$@" "-Wp,-MDupdate,$tmpdepfile" | |
198 | + else | |
199 | + "$@" -MDupdate "$tmpdepfile" | |
200 | + fi | |
201 | + stat=$? | |
202 | + if test $stat -eq 0; then : | |
203 | + else | |
204 | + rm -f "$tmpdepfile" | |
205 | + exit $stat | |
206 | + fi | |
207 | + rm -f "$depfile" | |
208 | + | |
209 | + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files | |
210 | + echo "$object : \\" > "$depfile" | |
211 | + | |
212 | + # Clip off the initial element (the dependent). Don't try to be | |
213 | + # clever and replace this with sed code, as IRIX sed won't handle | |
214 | + # lines with more than a fixed number of characters (4096 in | |
215 | + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; | |
216 | + # the IRIX cc adds comments like '#:fec' to the end of the | |
217 | + # dependency line. | |
218 | + tr ' ' "$nl" < "$tmpdepfile" \ | |
219 | + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ | |
220 | + tr "$nl" ' ' >> "$depfile" | |
221 | + echo >> "$depfile" | |
222 | + | |
223 | + # The second pass generates a dummy entry for each header file. | |
224 | + tr ' ' "$nl" < "$tmpdepfile" \ | |
225 | + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | |
226 | + >> "$depfile" | |
227 | + else | |
228 | + # The sourcefile does not contain any dependencies, so just | |
229 | + # store a dummy comment line, to avoid errors with the Makefile | |
230 | + # "include basename.Plo" scheme. | |
231 | + echo "#dummy" > "$depfile" | |
232 | + fi | |
233 | + rm -f "$tmpdepfile" | |
234 | + ;; | |
235 | + | |
236 | +xlc) | |
237 | + # This case exists only to let depend.m4 do its work. It works by | |
238 | + # looking at the text of this script. This case will never be run, | |
239 | + # since it is checked for above. | |
240 | + exit 1 | |
241 | + ;; | |
242 | + | |
243 | +aix) | |
244 | + # The C for AIX Compiler uses -M and outputs the dependencies | |
245 | + # in a .u file. In older versions, this file always lives in the | |
246 | + # current directory. Also, the AIX compiler puts '$object:' at the | |
247 | + # start of each line; $object doesn't have directory information. | |
248 | + # Version 6 uses the directory in both cases. | |
249 | + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
250 | + test "x$dir" = "x$object" && dir= | |
251 | + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
252 | + if test "$libtool" = yes; then | |
253 | + tmpdepfile1=$dir$base.u | |
254 | + tmpdepfile2=$base.u | |
255 | + tmpdepfile3=$dir.libs/$base.u | |
256 | + "$@" -Wc,-M | |
257 | + else | |
258 | + tmpdepfile1=$dir$base.u | |
259 | + tmpdepfile2=$dir$base.u | |
260 | + tmpdepfile3=$dir$base.u | |
261 | + "$@" -M | |
262 | + fi | |
263 | + stat=$? | |
264 | + | |
265 | + if test $stat -eq 0; then : | |
266 | + else | |
267 | + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | |
268 | + exit $stat | |
269 | + fi | |
270 | + | |
271 | + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | |
272 | + do | |
273 | + test -f "$tmpdepfile" && break | |
274 | + done | |
275 | + if test -f "$tmpdepfile"; then | |
276 | + # Each line is of the form 'foo.o: dependent.h'. | |
277 | + # Do two passes, one to just change these to | |
278 | + # '$object: dependent.h' and one to simply 'dependent.h:'. | |
279 | + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | |
280 | + sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | |
281 | + else | |
282 | + # The sourcefile does not contain any dependencies, so just | |
283 | + # store a dummy comment line, to avoid errors with the Makefile | |
284 | + # "include basename.Plo" scheme. | |
285 | + echo "#dummy" > "$depfile" | |
286 | + fi | |
287 | + rm -f "$tmpdepfile" | |
288 | + ;; | |
289 | + | |
290 | +icc) | |
291 | + # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'. | |
292 | + # However on | |
293 | + # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c | |
294 | + # ICC 7.0 will fill foo.d with something like | |
295 | + # foo.o: sub/foo.c | |
296 | + # foo.o: sub/foo.h | |
297 | + # which is wrong. We want | |
298 | + # sub/foo.o: sub/foo.c | |
299 | + # sub/foo.o: sub/foo.h | |
300 | + # sub/foo.c: | |
301 | + # sub/foo.h: | |
302 | + # ICC 7.1 will output | |
303 | + # foo.o: sub/foo.c sub/foo.h | |
304 | + # and will wrap long lines using '\': | |
305 | + # foo.o: sub/foo.c ... \ | |
306 | + # sub/foo.h ... \ | |
307 | + # ... | |
308 | + # tcc 0.9.26 (FIXME still under development at the moment of writing) | |
309 | + # will emit a similar output, but also prepend the continuation lines | |
310 | + # with horizontal tabulation characters. | |
311 | + "$@" -MD -MF "$tmpdepfile" | |
312 | + stat=$? | |
313 | + if test $stat -eq 0; then : | |
314 | + else | |
315 | + rm -f "$tmpdepfile" | |
316 | + exit $stat | |
317 | + fi | |
318 | + rm -f "$depfile" | |
319 | + # Each line is of the form 'foo.o: dependent.h', | |
320 | + # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'. | |
321 | + # Do two passes, one to just change these to | |
322 | + # '$object: dependent.h' and one to simply 'dependent.h:'. | |
323 | + sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \ | |
324 | + < "$tmpdepfile" > "$depfile" | |
325 | + sed ' | |
326 | + s/[ '"$tab"'][ '"$tab"']*/ /g | |
327 | + s/^ *// | |
328 | + s/ *\\*$// | |
329 | + s/^[^:]*: *// | |
330 | + /^$/d | |
331 | + /:$/d | |
332 | + s/$/ :/ | |
333 | + ' < "$tmpdepfile" >> "$depfile" | |
334 | + rm -f "$tmpdepfile" | |
335 | + ;; | |
336 | + | |
337 | +## The order of this option in the case statement is important, since the | |
338 | +## shell code in configure will try each of these formats in the order | |
339 | +## listed in this file. A plain '-MD' option would be understood by many | |
340 | +## compilers, so we must ensure this comes after the gcc and icc options. | |
341 | +pgcc) | |
342 | + # Portland's C compiler understands '-MD'. | |
343 | + # Will always output deps to 'file.d' where file is the root name of the | |
344 | + # source file under compilation, even if file resides in a subdirectory. | |
345 | + # The object file name does not affect the name of the '.d' file. | |
346 | + # pgcc 10.2 will output | |
347 | + # foo.o: sub/foo.c sub/foo.h | |
348 | + # and will wrap long lines using '\' : | |
349 | + # foo.o: sub/foo.c ... \ | |
350 | + # sub/foo.h ... \ | |
351 | + # ... | |
352 | + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
353 | + test "x$dir" = "x$object" && dir= | |
354 | + # Use the source, not the object, to determine the base name, since | |
355 | + # that's sadly what pgcc will do too. | |
356 | + base=`echo "$source" | sed -e 's|^.*/||' -e 's/\.[-_a-zA-Z0-9]*$//'` | |
357 | + tmpdepfile="$base.d" | |
358 | + | |
359 | + # For projects that build the same source file twice into different object | |
360 | + # files, the pgcc approach of using the *source* file root name can cause | |
361 | + # problems in parallel builds. Use a locking strategy to avoid stomping on | |
362 | + # the same $tmpdepfile. | |
363 | + lockdir="$base.d-lock" | |
364 | + trap "echo '$0: caught signal, cleaning up...' >&2; rm -rf $lockdir" 1 2 13 15 | |
365 | + numtries=100 | |
366 | + i=$numtries | |
367 | + while test $i -gt 0 ; do | |
368 | + # mkdir is a portable test-and-set. | |
369 | + if mkdir $lockdir 2>/dev/null; then | |
370 | + # This process acquired the lock. | |
371 | + "$@" -MD | |
372 | + stat=$? | |
373 | + # Release the lock. | |
374 | + rm -rf $lockdir | |
375 | + break | |
376 | + else | |
377 | + ## the lock is being held by a different process, | |
378 | + ## wait until the winning process is done or we timeout | |
379 | + while test -d $lockdir && test $i -gt 0; do | |
380 | + sleep 1 | |
381 | + i=`expr $i - 1` | |
382 | + done | |
383 | + fi | |
384 | + i=`expr $i - 1` | |
385 | + done | |
386 | + trap - 1 2 13 15 | |
387 | + if test $i -le 0; then | |
388 | + echo "$0: failed to acquire lock after $numtries attempts" >&2 | |
389 | + echo "$0: check lockdir '$lockdir'" >&2 | |
390 | + exit 1 | |
391 | + fi | |
392 | + | |
393 | + if test $stat -ne 0; then | |
394 | + rm -f "$tmpdepfile" | |
395 | + exit $stat | |
396 | + fi | |
397 | + rm -f "$depfile" | |
398 | + # Each line is of the form `foo.o: dependent.h', | |
399 | + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. | |
400 | + # Do two passes, one to just change these to | |
401 | + # `$object: dependent.h' and one to simply `dependent.h:'. | |
402 | + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" | |
403 | + # Some versions of the HPUX 10.20 sed can't process this invocation | |
404 | + # correctly. Breaking it into two sed invocations is a workaround. | |
405 | + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | | |
406 | + sed -e 's/$/ :/' >> "$depfile" | |
407 | + rm -f "$tmpdepfile" | |
408 | + ;; | |
409 | + | |
410 | +hp2) | |
411 | + # The "hp" stanza above does not work with aCC (C++) and HP's ia64 | |
412 | + # compilers, which have integrated preprocessors. The correct option | |
413 | + # to use with these is +Maked; it writes dependencies to a file named | |
414 | + # 'foo.d', which lands next to the object file, wherever that | |
415 | + # happens to be. | |
416 | + # Much of this is similar to the tru64 case; see comments there. | |
417 | + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
418 | + test "x$dir" = "x$object" && dir= | |
419 | + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
420 | + if test "$libtool" = yes; then | |
421 | + tmpdepfile1=$dir$base.d | |
422 | + tmpdepfile2=$dir.libs/$base.d | |
423 | + "$@" -Wc,+Maked | |
424 | + else | |
425 | + tmpdepfile1=$dir$base.d | |
426 | + tmpdepfile2=$dir$base.d | |
427 | + "$@" +Maked | |
428 | + fi | |
429 | + stat=$? | |
430 | + if test $stat -eq 0; then : | |
431 | + else | |
432 | + rm -f "$tmpdepfile1" "$tmpdepfile2" | |
433 | + exit $stat | |
434 | + fi | |
435 | + | |
436 | + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" | |
437 | + do | |
438 | + test -f "$tmpdepfile" && break | |
439 | + done | |
440 | + if test -f "$tmpdepfile"; then | |
441 | + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" | |
442 | + # Add 'dependent.h:' lines. | |
443 | + sed -ne '2,${ | |
444 | + s/^ *// | |
445 | + s/ \\*$// | |
446 | + s/$/:/ | |
447 | + p | |
448 | + }' "$tmpdepfile" >> "$depfile" | |
449 | + else | |
450 | + echo "#dummy" > "$depfile" | |
451 | + fi | |
452 | + rm -f "$tmpdepfile" "$tmpdepfile2" | |
453 | + ;; | |
454 | + | |
455 | +tru64) | |
456 | + # The Tru64 compiler uses -MD to generate dependencies as a side | |
457 | + # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. | |
458 | + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put | |
459 | + # dependencies in 'foo.d' instead, so we check for that too. | |
460 | + # Subdirectories are respected. | |
461 | + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
462 | + test "x$dir" = "x$object" && dir= | |
463 | + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
464 | + | |
465 | + if test "$libtool" = yes; then | |
466 | + # With Tru64 cc, shared objects can also be used to make a | |
467 | + # static library. This mechanism is used in libtool 1.4 series to | |
468 | + # handle both shared and static libraries in a single compilation. | |
469 | + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. | |
470 | + # | |
471 | + # With libtool 1.5 this exception was removed, and libtool now | |
472 | + # generates 2 separate objects for the 2 libraries. These two | |
473 | + # compilations output dependencies in $dir.libs/$base.o.d and | |
474 | + # in $dir$base.o.d. We have to check for both files, because | |
475 | + # one of the two compilations can be disabled. We should prefer | |
476 | + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is | |
477 | + # automatically cleaned when .libs/ is deleted, while ignoring | |
478 | + # the former would cause a distcleancheck panic. | |
479 | + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 | |
480 | + tmpdepfile2=$dir$base.o.d # libtool 1.5 | |
481 | + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 | |
482 | + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 | |
483 | + "$@" -Wc,-MD | |
484 | + else | |
485 | + tmpdepfile1=$dir$base.o.d | |
486 | + tmpdepfile2=$dir$base.d | |
487 | + tmpdepfile3=$dir$base.d | |
488 | + tmpdepfile4=$dir$base.d | |
489 | + "$@" -MD | |
490 | + fi | |
491 | + | |
492 | + stat=$? | |
493 | + if test $stat -eq 0; then : | |
494 | + else | |
495 | + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | |
496 | + exit $stat | |
497 | + fi | |
498 | + | |
499 | + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | |
500 | + do | |
501 | + test -f "$tmpdepfile" && break | |
502 | + done | |
503 | + if test -f "$tmpdepfile"; then | |
504 | + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | |
505 | + sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | |
506 | + else | |
507 | + echo "#dummy" > "$depfile" | |
508 | + fi | |
509 | + rm -f "$tmpdepfile" | |
510 | + ;; | |
511 | + | |
512 | +msvc7) | |
513 | + if test "$libtool" = yes; then | |
514 | + showIncludes=-Wc,-showIncludes | |
515 | + else | |
516 | + showIncludes=-showIncludes | |
517 | + fi | |
518 | + "$@" $showIncludes > "$tmpdepfile" | |
519 | + stat=$? | |
520 | + grep -v '^Note: including file: ' "$tmpdepfile" | |
521 | + if test "$stat" = 0; then : | |
522 | + else | |
523 | + rm -f "$tmpdepfile" | |
524 | + exit $stat | |
525 | + fi | |
526 | + rm -f "$depfile" | |
527 | + echo "$object : \\" > "$depfile" | |
528 | + # The first sed program below extracts the file names and escapes | |
529 | + # backslashes for cygpath. The second sed program outputs the file | |
530 | + # name when reading, but also accumulates all include files in the | |
531 | + # hold buffer in order to output them again at the end. This only | |
532 | + # works with sed implementations that can handle large buffers. | |
533 | + sed < "$tmpdepfile" -n ' | |
534 | +/^Note: including file: *\(.*\)/ { | |
535 | + s//\1/ | |
536 | + s/\\/\\\\/g | |
537 | + p | |
538 | +}' | $cygpath_u | sort -u | sed -n ' | |
539 | +s/ /\\ /g | |
540 | +s/\(.*\)/'"$tab"'\1 \\/p | |
541 | +s/.\(.*\) \\/\1:/ | |
542 | +H | |
543 | +$ { | |
544 | + s/.*/'"$tab"'/ | |
545 | + G | |
546 | + p | |
547 | +}' >> "$depfile" | |
548 | + rm -f "$tmpdepfile" | |
549 | + ;; | |
550 | + | |
551 | +msvc7msys) | |
552 | + # This case exists only to let depend.m4 do its work. It works by | |
553 | + # looking at the text of this script. This case will never be run, | |
554 | + # since it is checked for above. | |
555 | + exit 1 | |
556 | + ;; | |
557 | + | |
558 | +#nosideeffect) | |
559 | + # This comment above is used by automake to tell side-effect | |
560 | + # dependency tracking mechanisms from slower ones. | |
561 | + | |
562 | +dashmstdout) | |
563 | + # Important note: in order to support this mode, a compiler *must* | |
564 | + # always write the preprocessed file to stdout, regardless of -o. | |
565 | + "$@" || exit $? | |
566 | + | |
567 | + # Remove the call to Libtool. | |
568 | + if test "$libtool" = yes; then | |
569 | + while test "X$1" != 'X--mode=compile'; do | |
570 | + shift | |
571 | + done | |
572 | + shift | |
573 | + fi | |
574 | + | |
575 | + # Remove '-o $object'. | |
576 | + IFS=" " | |
577 | + for arg | |
578 | + do | |
579 | + case $arg in | |
580 | + -o) | |
581 | + shift | |
582 | + ;; | |
583 | + $object) | |
584 | + shift | |
585 | + ;; | |
586 | + *) | |
587 | + set fnord "$@" "$arg" | |
588 | + shift # fnord | |
589 | + shift # $arg | |
590 | + ;; | |
591 | + esac | |
592 | + done | |
593 | + | |
594 | + test -z "$dashmflag" && dashmflag=-M | |
595 | + # Require at least two characters before searching for ':' | |
596 | + # in the target name. This is to cope with DOS-style filenames: | |
597 | + # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. | |
598 | + "$@" $dashmflag | | |
599 | + sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile" | |
600 | + rm -f "$depfile" | |
601 | + cat < "$tmpdepfile" > "$depfile" | |
602 | + tr ' ' "$nl" < "$tmpdepfile" | \ | |
603 | +## Some versions of the HPUX 10.20 sed can't process this invocation | |
604 | +## correctly. Breaking it into two sed invocations is a workaround. | |
605 | + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | |
606 | + rm -f "$tmpdepfile" | |
607 | + ;; | |
608 | + | |
609 | +dashXmstdout) | |
610 | + # This case only exists to satisfy depend.m4. It is never actually | |
611 | + # run, as this mode is specially recognized in the preamble. | |
612 | + exit 1 | |
613 | + ;; | |
614 | + | |
615 | +makedepend) | |
616 | + "$@" || exit $? | |
617 | + # Remove any Libtool call | |
618 | + if test "$libtool" = yes; then | |
619 | + while test "X$1" != 'X--mode=compile'; do | |
620 | + shift | |
621 | + done | |
622 | + shift | |
623 | + fi | |
624 | + # X makedepend | |
625 | + shift | |
626 | + cleared=no eat=no | |
627 | + for arg | |
628 | + do | |
629 | + case $cleared in | |
630 | + no) | |
631 | + set ""; shift | |
632 | + cleared=yes ;; | |
633 | + esac | |
634 | + if test $eat = yes; then | |
635 | + eat=no | |
636 | + continue | |
637 | + fi | |
638 | + case "$arg" in | |
639 | + -D*|-I*) | |
640 | + set fnord "$@" "$arg"; shift ;; | |
641 | + # Strip any option that makedepend may not understand. Remove | |
642 | + # the object too, otherwise makedepend will parse it as a source file. | |
643 | + -arch) | |
644 | + eat=yes ;; | |
645 | + -*|$object) | |
646 | + ;; | |
647 | + *) | |
648 | + set fnord "$@" "$arg"; shift ;; | |
649 | + esac | |
650 | + done | |
651 | + obj_suffix=`echo "$object" | sed 's/^.*\././'` | |
652 | + touch "$tmpdepfile" | |
653 | + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" | |
654 | + rm -f "$depfile" | |
655 | + # makedepend may prepend the VPATH from the source file name to the object. | |
656 | + # No need to regex-escape $object, excess matching of '.' is harmless. | |
657 | + sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" | |
658 | + sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \ | |
659 | +## Some versions of the HPUX 10.20 sed can't process this invocation | |
660 | +## correctly. Breaking it into two sed invocations is a workaround. | |
661 | + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | |
662 | + rm -f "$tmpdepfile" "$tmpdepfile".bak | |
663 | + ;; | |
664 | + | |
665 | +cpp) | |
666 | + # Important note: in order to support this mode, a compiler *must* | |
667 | + # always write the preprocessed file to stdout. | |
668 | + "$@" || exit $? | |
669 | + | |
670 | + # Remove the call to Libtool. | |
671 | + if test "$libtool" = yes; then | |
672 | + while test "X$1" != 'X--mode=compile'; do | |
673 | + shift | |
674 | + done | |
675 | + shift | |
676 | + fi | |
677 | + | |
678 | + # Remove '-o $object'. | |
679 | + IFS=" " | |
680 | + for arg | |
681 | + do | |
682 | + case $arg in | |
683 | + -o) | |
684 | + shift | |
685 | + ;; | |
686 | + $object) | |
687 | + shift | |
688 | + ;; | |
689 | + *) | |
690 | + set fnord "$@" "$arg" | |
691 | + shift # fnord | |
692 | + shift # $arg | |
693 | + ;; | |
694 | + esac | |
695 | + done | |
696 | + | |
697 | + "$@" -E | | |
698 | + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | |
699 | + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | | |
700 | + sed '$ s: \\$::' > "$tmpdepfile" | |
701 | + rm -f "$depfile" | |
702 | + echo "$object : \\" > "$depfile" | |
703 | + cat < "$tmpdepfile" >> "$depfile" | |
704 | + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" | |
705 | + rm -f "$tmpdepfile" | |
706 | + ;; | |
707 | + | |
708 | +msvisualcpp) | |
709 | + # Important note: in order to support this mode, a compiler *must* | |
710 | + # always write the preprocessed file to stdout. | |
711 | + "$@" || exit $? | |
712 | + | |
713 | + # Remove the call to Libtool. | |
714 | + if test "$libtool" = yes; then | |
715 | + while test "X$1" != 'X--mode=compile'; do | |
716 | + shift | |
717 | + done | |
718 | + shift | |
719 | + fi | |
720 | + | |
721 | + IFS=" " | |
722 | + for arg | |
723 | + do | |
724 | + case "$arg" in | |
725 | + -o) | |
726 | + shift | |
727 | + ;; | |
728 | + $object) | |
729 | + shift | |
730 | + ;; | |
731 | + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") | |
732 | + set fnord "$@" | |
733 | + shift | |
734 | + shift | |
735 | + ;; | |
736 | + *) | |
737 | + set fnord "$@" "$arg" | |
738 | + shift | |
739 | + shift | |
740 | + ;; | |
741 | + esac | |
742 | + done | |
743 | + "$@" -E 2>/dev/null | | |
744 | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" | |
745 | + rm -f "$depfile" | |
746 | + echo "$object : \\" > "$depfile" | |
747 | + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" | |
748 | + echo "$tab" >> "$depfile" | |
749 | + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" | |
750 | + rm -f "$tmpdepfile" | |
751 | + ;; | |
752 | + | |
753 | +msvcmsys) | |
754 | + # This case exists only to let depend.m4 do its work. It works by | |
755 | + # looking at the text of this script. This case will never be run, | |
756 | + # since it is checked for above. | |
757 | + exit 1 | |
758 | + ;; | |
759 | + | |
760 | +none) | |
761 | + exec "$@" | |
762 | + ;; | |
763 | + | |
764 | +*) | |
765 | + echo "Unknown depmode $depmode" 1>&2 | |
766 | + exit 1 | |
767 | + ;; | |
768 | +esac | |
769 | + | |
770 | +exit 0 | |
771 | + | |
772 | +# Local Variables: | |
773 | +# mode: shell-script | |
774 | +# sh-indentation: 2 | |
775 | +# eval: (add-hook 'write-file-hooks 'time-stamp) | |
776 | +# time-stamp-start: "scriptversion=" | |
777 | +# time-stamp-format: "%:y-%02m-%02d.%02H" | |
778 | +# time-stamp-time-zone: "UTC" | |
779 | +# time-stamp-end: "; # UTC" | |
780 | +# End: |
@@ -0,0 +1,527 @@ | ||
1 | +#!/bin/sh | |
2 | +# install - install a program, script, or datafile | |
3 | + | |
4 | +scriptversion=2011-11-20.07; # 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 | + # Protect names problematic for 'test' and other utilities. | |
160 | + case $dst_arg in | |
161 | + -* | [=\(\)!]) dst_arg=./$dst_arg;; | |
162 | + esac | |
163 | + shift;; | |
164 | + | |
165 | + -T) no_target_directory=true;; | |
166 | + | |
167 | + --version) echo "$0 $scriptversion"; exit $?;; | |
168 | + | |
169 | + --) shift | |
170 | + break;; | |
171 | + | |
172 | + -*) echo "$0: invalid option: $1" >&2 | |
173 | + exit 1;; | |
174 | + | |
175 | + *) break;; | |
176 | + esac | |
177 | + shift | |
178 | +done | |
179 | + | |
180 | +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then | |
181 | + # When -d is used, all remaining arguments are directories to create. | |
182 | + # When -t is used, the destination is already specified. | |
183 | + # Otherwise, the last argument is the destination. Remove it from $@. | |
184 | + for arg | |
185 | + do | |
186 | + if test -n "$dst_arg"; then | |
187 | + # $@ is not empty: it contains at least $arg. | |
188 | + set fnord "$@" "$dst_arg" | |
189 | + shift # fnord | |
190 | + fi | |
191 | + shift # arg | |
192 | + dst_arg=$arg | |
193 | + # Protect names problematic for 'test' and other utilities. | |
194 | + case $dst_arg in | |
195 | + -* | [=\(\)!]) dst_arg=./$dst_arg;; | |
196 | + esac | |
197 | + done | |
198 | +fi | |
199 | + | |
200 | +if test $# -eq 0; then | |
201 | + if test -z "$dir_arg"; then | |
202 | + echo "$0: no input file specified." >&2 | |
203 | + exit 1 | |
204 | + fi | |
205 | + # It's OK to call 'install-sh -d' without argument. | |
206 | + # This can happen when creating conditional directories. | |
207 | + exit 0 | |
208 | +fi | |
209 | + | |
210 | +if test -z "$dir_arg"; then | |
211 | + do_exit='(exit $ret); exit $ret' | |
212 | + trap "ret=129; $do_exit" 1 | |
213 | + trap "ret=130; $do_exit" 2 | |
214 | + trap "ret=141; $do_exit" 13 | |
215 | + trap "ret=143; $do_exit" 15 | |
216 | + | |
217 | + # Set umask so as not to create temps with too-generous modes. | |
218 | + # However, 'strip' requires both read and write access to temps. | |
219 | + case $mode in | |
220 | + # Optimize common cases. | |
221 | + *644) cp_umask=133;; | |
222 | + *755) cp_umask=22;; | |
223 | + | |
224 | + *[0-7]) | |
225 | + if test -z "$stripcmd"; then | |
226 | + u_plus_rw= | |
227 | + else | |
228 | + u_plus_rw='% 200' | |
229 | + fi | |
230 | + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; | |
231 | + *) | |
232 | + if test -z "$stripcmd"; then | |
233 | + u_plus_rw= | |
234 | + else | |
235 | + u_plus_rw=,u+rw | |
236 | + fi | |
237 | + cp_umask=$mode$u_plus_rw;; | |
238 | + esac | |
239 | +fi | |
240 | + | |
241 | +for src | |
242 | +do | |
243 | + # Protect names problematic for 'test' and other utilities. | |
244 | + case $src in | |
245 | + -* | [=\(\)!]) src=./$src;; | |
246 | + esac | |
247 | + | |
248 | + if test -n "$dir_arg"; then | |
249 | + dst=$src | |
250 | + dstdir=$dst | |
251 | + test -d "$dstdir" | |
252 | + dstdir_status=$? | |
253 | + else | |
254 | + | |
255 | + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command | |
256 | + # might cause directories to be created, which would be especially bad | |
257 | + # if $src (and thus $dsttmp) contains '*'. | |
258 | + if test ! -f "$src" && test ! -d "$src"; then | |
259 | + echo "$0: $src does not exist." >&2 | |
260 | + exit 1 | |
261 | + fi | |
262 | + | |
263 | + if test -z "$dst_arg"; then | |
264 | + echo "$0: no destination specified." >&2 | |
265 | + exit 1 | |
266 | + fi | |
267 | + dst=$dst_arg | |
268 | + | |
269 | + # If destination is a directory, append the input filename; won't work | |
270 | + # if double slashes aren't ignored. | |
271 | + if test -d "$dst"; then | |
272 | + if test -n "$no_target_directory"; then | |
273 | + echo "$0: $dst_arg: Is a directory" >&2 | |
274 | + exit 1 | |
275 | + fi | |
276 | + dstdir=$dst | |
277 | + dst=$dstdir/`basename "$src"` | |
278 | + dstdir_status=0 | |
279 | + else | |
280 | + # Prefer dirname, but fall back on a substitute if dirname fails. | |
281 | + dstdir=` | |
282 | + (dirname "$dst") 2>/dev/null || | |
283 | + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
284 | + X"$dst" : 'X\(//\)[^/]' \| \ | |
285 | + X"$dst" : 'X\(//\)$' \| \ | |
286 | + X"$dst" : 'X\(/\)' \| . 2>/dev/null || | |
287 | + echo X"$dst" | | |
288 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
289 | + s//\1/ | |
290 | + q | |
291 | + } | |
292 | + /^X\(\/\/\)[^/].*/{ | |
293 | + s//\1/ | |
294 | + q | |
295 | + } | |
296 | + /^X\(\/\/\)$/{ | |
297 | + s//\1/ | |
298 | + q | |
299 | + } | |
300 | + /^X\(\/\).*/{ | |
301 | + s//\1/ | |
302 | + q | |
303 | + } | |
304 | + s/.*/./; q' | |
305 | + ` | |
306 | + | |
307 | + test -d "$dstdir" | |
308 | + dstdir_status=$? | |
309 | + fi | |
310 | + fi | |
311 | + | |
312 | + obsolete_mkdir_used=false | |
313 | + | |
314 | + if test $dstdir_status != 0; then | |
315 | + case $posix_mkdir in | |
316 | + '') | |
317 | + # Create intermediate dirs using mode 755 as modified by the umask. | |
318 | + # This is like FreeBSD 'install' as of 1997-10-28. | |
319 | + umask=`umask` | |
320 | + case $stripcmd.$umask in | |
321 | + # Optimize common cases. | |
322 | + *[2367][2367]) mkdir_umask=$umask;; | |
323 | + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; | |
324 | + | |
325 | + *[0-7]) | |
326 | + mkdir_umask=`expr $umask + 22 \ | |
327 | + - $umask % 100 % 40 + $umask % 20 \ | |
328 | + - $umask % 10 % 4 + $umask % 2 | |
329 | + `;; | |
330 | + *) mkdir_umask=$umask,go-w;; | |
331 | + esac | |
332 | + | |
333 | + # With -d, create the new directory with the user-specified mode. | |
334 | + # Otherwise, rely on $mkdir_umask. | |
335 | + if test -n "$dir_arg"; then | |
336 | + mkdir_mode=-m$mode | |
337 | + else | |
338 | + mkdir_mode= | |
339 | + fi | |
340 | + | |
341 | + posix_mkdir=false | |
342 | + case $umask in | |
343 | + *[123567][0-7][0-7]) | |
344 | + # POSIX mkdir -p sets u+wx bits regardless of umask, which | |
345 | + # is incompatible with FreeBSD 'install' when (umask & 300) != 0. | |
346 | + ;; | |
347 | + *) | |
348 | + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ | |
349 | + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 | |
350 | + | |
351 | + if (umask $mkdir_umask && | |
352 | + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 | |
353 | + then | |
354 | + if test -z "$dir_arg" || { | |
355 | + # Check for POSIX incompatibilities with -m. | |
356 | + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or | |
357 | + # other-writable bit of parent directory when it shouldn't. | |
358 | + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. | |
359 | + ls_ld_tmpdir=`ls -ld "$tmpdir"` | |
360 | + case $ls_ld_tmpdir in | |
361 | + d????-?r-*) different_mode=700;; | |
362 | + d????-?--*) different_mode=755;; | |
363 | + *) false;; | |
364 | + esac && | |
365 | + $mkdirprog -m$different_mode -p -- "$tmpdir" && { | |
366 | + ls_ld_tmpdir_1=`ls -ld "$tmpdir"` | |
367 | + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" | |
368 | + } | |
369 | + } | |
370 | + then posix_mkdir=: | |
371 | + fi | |
372 | + rmdir "$tmpdir/d" "$tmpdir" | |
373 | + else | |
374 | + # Remove any dirs left behind by ancient mkdir implementations. | |
375 | + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null | |
376 | + fi | |
377 | + trap '' 0;; | |
378 | + esac;; | |
379 | + esac | |
380 | + | |
381 | + if | |
382 | + $posix_mkdir && ( | |
383 | + umask $mkdir_umask && | |
384 | + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" | |
385 | + ) | |
386 | + then : | |
387 | + else | |
388 | + | |
389 | + # The umask is ridiculous, or mkdir does not conform to POSIX, | |
390 | + # or it failed possibly due to a race condition. Create the | |
391 | + # directory the slow way, step by step, checking for races as we go. | |
392 | + | |
393 | + case $dstdir in | |
394 | + /*) prefix='/';; | |
395 | + [-=\(\)!]*) prefix='./';; | |
396 | + *) prefix='';; | |
397 | + esac | |
398 | + | |
399 | + eval "$initialize_posix_glob" | |
400 | + | |
401 | + oIFS=$IFS | |
402 | + IFS=/ | |
403 | + $posix_glob set -f | |
404 | + set fnord $dstdir | |
405 | + shift | |
406 | + $posix_glob set +f | |
407 | + IFS=$oIFS | |
408 | + | |
409 | + prefixes= | |
410 | + | |
411 | + for d | |
412 | + do | |
413 | + test X"$d" = X && continue | |
414 | + | |
415 | + prefix=$prefix$d | |
416 | + if test -d "$prefix"; then | |
417 | + prefixes= | |
418 | + else | |
419 | + if $posix_mkdir; then | |
420 | + (umask=$mkdir_umask && | |
421 | + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break | |
422 | + # Don't fail if two instances are running concurrently. | |
423 | + test -d "$prefix" || exit 1 | |
424 | + else | |
425 | + case $prefix in | |
426 | + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; | |
427 | + *) qprefix=$prefix;; | |
428 | + esac | |
429 | + prefixes="$prefixes '$qprefix'" | |
430 | + fi | |
431 | + fi | |
432 | + prefix=$prefix/ | |
433 | + done | |
434 | + | |
435 | + if test -n "$prefixes"; then | |
436 | + # Don't fail if two instances are running concurrently. | |
437 | + (umask $mkdir_umask && | |
438 | + eval "\$doit_exec \$mkdirprog $prefixes") || | |
439 | + test -d "$dstdir" || exit 1 | |
440 | + obsolete_mkdir_used=true | |
441 | + fi | |
442 | + fi | |
443 | + fi | |
444 | + | |
445 | + if test -n "$dir_arg"; then | |
446 | + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && | |
447 | + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && | |
448 | + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || | |
449 | + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 | |
450 | + else | |
451 | + | |
452 | + # Make a couple of temp file names in the proper directory. | |
453 | + dsttmp=$dstdir/_inst.$$_ | |
454 | + rmtmp=$dstdir/_rm.$$_ | |
455 | + | |
456 | + # Trap to clean up those temp files at exit. | |
457 | + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 | |
458 | + | |
459 | + # Copy the file name to the temp name. | |
460 | + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && | |
461 | + | |
462 | + # and set any options; do chmod last to preserve setuid bits. | |
463 | + # | |
464 | + # If any of these fail, we abort the whole thing. If we want to | |
465 | + # ignore errors from any of these, just make sure not to ignore | |
466 | + # errors from the above "$doit $cpprog $src $dsttmp" command. | |
467 | + # | |
468 | + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && | |
469 | + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && | |
470 | + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && | |
471 | + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && | |
472 | + | |
473 | + # If -C, don't bother to copy if it wouldn't change the file. | |
474 | + if $copy_on_change && | |
475 | + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && | |
476 | + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && | |
477 | + | |
478 | + eval "$initialize_posix_glob" && | |
479 | + $posix_glob set -f && | |
480 | + set X $old && old=:$2:$4:$5:$6 && | |
481 | + set X $new && new=:$2:$4:$5:$6 && | |
482 | + $posix_glob set +f && | |
483 | + | |
484 | + test "$old" = "$new" && | |
485 | + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 | |
486 | + then | |
487 | + rm -f "$dsttmp" | |
488 | + else | |
489 | + # Rename the file to the real destination. | |
490 | + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || | |
491 | + | |
492 | + # The rename failed, perhaps because mv can't rename something else | |
493 | + # to itself, or perhaps because mv is so ancient that it does not | |
494 | + # support -f. | |
495 | + { | |
496 | + # Now remove or move aside any old file at destination location. | |
497 | + # We try this two ways since rm can't unlink itself on some | |
498 | + # systems and the destination file might be busy for other | |
499 | + # reasons. In this case, the final cleanup might fail but the new | |
500 | + # file should still install successfully. | |
501 | + { | |
502 | + test ! -f "$dst" || | |
503 | + $doit $rmcmd -f "$dst" 2>/dev/null || | |
504 | + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && | |
505 | + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } | |
506 | + } || | |
507 | + { echo "$0: cannot unlink or rename $dst" >&2 | |
508 | + (exit 1); exit 1 | |
509 | + } | |
510 | + } && | |
511 | + | |
512 | + # Now rename the file to the real destination. | |
513 | + $doit $mvcmd "$dsttmp" "$dst" | |
514 | + } | |
515 | + fi || exit 1 | |
516 | + | |
517 | + trap '' 0 | |
518 | + fi | |
519 | +done | |
520 | + | |
521 | +# Local variables: | |
522 | +# eval: (add-hook 'write-file-hooks 'time-stamp) | |
523 | +# time-stamp-start: "scriptversion=" | |
524 | +# time-stamp-format: "%:y-%02m-%02d.%02H" | |
525 | +# time-stamp-time-zone: "UTC" | |
526 | +# time-stamp-end: "; # UTC" | |
527 | +# End: |
@@ -0,0 +1,39 @@ | ||
1 | +# Check for CLI compilers. -*- Autoconf -*- | |
2 | + | |
3 | +# Copyright (C) 2007 Free Software Foundation, Inc. | |
4 | +# | |
5 | +# This file is free software; the Free Software Foundation | |
6 | +# gives unlimited permission to copy and/or distribute it, | |
7 | +# with or without modifications, as long as this notice is preserved. | |
8 | + | |
9 | +# AM_PROG_CLI([FRAMEWORK-VERSION],[LANGS]) | |
10 | +# ---------------------------------------- | |
11 | +# Find the compiler for each of the listed languages. If LANGS is not set, | |
12 | +# it defaults to the list [CS]. The framework version determines if we | |
13 | +# use 'mcs' for version 1.1 or 'gmcs' for everything else. We default to | |
14 | +# framework version 1.1. | |
15 | +AC_DEFUN([AM_PROG_CLI], | |
16 | +[_AM_PROG_CLI(m4_ifval([$1],[$1],[1.1]), m4_ifval([$2],[$2],[CS])) | |
17 | +AC_CHECK_PROGS([RESGEN], [resgen], [false]) | |
18 | +AC_CHECK_PROGS([ILASM], [ilasm], [false]) | |
19 | +AC_CHECK_PROGS([ILDISASM], [monodis 'ildasm -text'], [false]) | |
20 | +]) | |
21 | + | |
22 | +AC_DEFUN([_AM_PROG_CLI], | |
23 | +[m4_foreach_w([l],[$2],[m4_n([_AM_PROG_CLI_LANG(l,[$1])])])]) | |
24 | + | |
25 | +AC_DEFUN([_AM_PROG_CLI_LANG], | |
26 | +[m4_ifdef([$0_$1],[$0_$1([$2])],[$0__FALLBACK([$1],[$2])])]) | |
27 | + | |
28 | +AC_DEFUN([_AM_PROG_CLI_LANG_CS], | |
29 | +[AC_CHECK_PROGS([CSC], [m4_if([$1],[1.1],[mcs],[gmcs]) csc], [false])]) | |
30 | + | |
31 | +AC_DEFUN([_AM_PROG_CLI_LANG_VB], | |
32 | +[AC_CHECK_PROGS([VBC], [vbnc vbc], [false])]) | |
33 | + | |
34 | +AC_DEFUN([_AM_PROG_CLI_LANG_NEMERLE], | |
35 | +[AC_CHECK_PROGS([NCC], [ncc], [false])]) | |
36 | + | |
37 | +AC_DEFUN([_AM_PROG_CLI_LANG__FALLBACK], | |
38 | +[AC_CHECK_PROGS([$1][C], [m4_translit([[$1]], [A-Z], [a-z])][c], [false])]) | |
39 | + |
@@ -0,0 +1,330 @@ | ||
1 | +#! /bin/sh | |
2 | +# Common stub for a few missing GNU programs while installing. | |
3 | + | |
4 | +scriptversion=2012-01-06.18; # UTC | |
5 | + | |
6 | +# Copyright (C) 1996-2012 Free Software Foundation, Inc. | |
7 | +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | |
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 | +if test $# -eq 0; then | |
28 | + echo 1>&2 "Try '$0 --help' for more information" | |
29 | + exit 1 | |
30 | +fi | |
31 | + | |
32 | +run=: | |
33 | +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' | |
34 | +sed_minuso='s/.* -o \([^ ]*\).*/\1/p' | |
35 | + | |
36 | +# In the cases where this matters, 'missing' is being run in the | |
37 | +# srcdir already. | |
38 | +if test -f configure.ac; then | |
39 | + configure_ac=configure.ac | |
40 | +else | |
41 | + configure_ac=configure.in | |
42 | +fi | |
43 | + | |
44 | +msg="missing on your system" | |
45 | + | |
46 | +case $1 in | |
47 | +--run) | |
48 | + # Try to run requested program, and just exit if it succeeds. | |
49 | + run= | |
50 | + shift | |
51 | + "$@" && exit 0 | |
52 | + # Exit code 63 means version mismatch. This often happens | |
53 | + # when the user try to use an ancient version of a tool on | |
54 | + # a file that requires a minimum version. In this case we | |
55 | + # we should proceed has if the program had been absent, or | |
56 | + # if --run hadn't been passed. | |
57 | + if test $? = 63; then | |
58 | + run=: | |
59 | + msg="probably too old" | |
60 | + fi | |
61 | + ;; | |
62 | + | |
63 | + -h|--h|--he|--hel|--help) | |
64 | + echo "\ | |
65 | +$0 [OPTION]... PROGRAM [ARGUMENT]... | |
66 | + | |
67 | +Handle 'PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an | |
68 | +error status if there is no known handling for PROGRAM. | |
69 | + | |
70 | +Options: | |
71 | + -h, --help display this help and exit | |
72 | + -v, --version output version information and exit | |
73 | + --run try to run the given command, and emulate it if it fails | |
74 | + | |
75 | +Supported PROGRAM values: | |
76 | + aclocal touch file 'aclocal.m4' | |
77 | + autoconf touch file 'configure' | |
78 | + autoheader touch file 'config.h.in' | |
79 | + autom4te touch the output file, or create a stub one | |
80 | + automake touch all 'Makefile.in' files | |
81 | + bison create 'y.tab.[ch]', if possible, from existing .[ch] | |
82 | + flex create 'lex.yy.c', if possible, from existing .c | |
83 | + help2man touch the output file | |
84 | + lex create 'lex.yy.c', if possible, from existing .c | |
85 | + makeinfo touch the output file | |
86 | + yacc create 'y.tab.[ch]', if possible, from existing .[ch] | |
87 | + | |
88 | +Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and | |
89 | +'g' are ignored when checking the name. | |
90 | + | |
91 | +Send bug reports to <bug-automake@gnu.org>." | |
92 | + exit $? | |
93 | + ;; | |
94 | + | |
95 | + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) | |
96 | + echo "missing $scriptversion (GNU Automake)" | |
97 | + exit $? | |
98 | + ;; | |
99 | + | |
100 | + -*) | |
101 | + echo 1>&2 "$0: Unknown '$1' option" | |
102 | + echo 1>&2 "Try '$0 --help' for more information" | |
103 | + exit 1 | |
104 | + ;; | |
105 | + | |
106 | +esac | |
107 | + | |
108 | +# normalize program name to check for. | |
109 | +program=`echo "$1" | sed ' | |
110 | + s/^gnu-//; t | |
111 | + s/^gnu//; t | |
112 | + s/^g//; t'` | |
113 | + | |
114 | +# Now exit if we have it, but it failed. Also exit now if we | |
115 | +# don't have it and --version was passed (most likely to detect | |
116 | +# the program). This is about non-GNU programs, so use $1 not | |
117 | +# $program. | |
118 | +case $1 in | |
119 | + lex*|yacc*) | |
120 | + # Not GNU programs, they don't have --version. | |
121 | + ;; | |
122 | + | |
123 | + *) | |
124 | + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then | |
125 | + # We have it, but it failed. | |
126 | + exit 1 | |
127 | + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then | |
128 | + # Could not run --version or --help. This is probably someone | |
129 | + # running '$TOOL --version' or '$TOOL --help' to check whether | |
130 | + # $TOOL exists and not knowing $TOOL uses missing. | |
131 | + exit 1 | |
132 | + fi | |
133 | + ;; | |
134 | +esac | |
135 | + | |
136 | +# If it does not exist, or fails to run (possibly an outdated version), | |
137 | +# try to emulate it. | |
138 | +case $program in | |
139 | + aclocal*) | |
140 | + echo 1>&2 "\ | |
141 | +WARNING: '$1' is $msg. You should only need it if | |
142 | + you modified 'acinclude.m4' or '${configure_ac}'. You might want | |
143 | + to install the Automake and Perl packages. Grab them from | |
144 | + any GNU archive site." | |
145 | + touch aclocal.m4 | |
146 | + ;; | |
147 | + | |
148 | + autoconf*) | |
149 | + echo 1>&2 "\ | |
150 | +WARNING: '$1' is $msg. You should only need it if | |
151 | + you modified '${configure_ac}'. You might want to install the | |
152 | + Autoconf and GNU m4 packages. Grab them from any GNU | |
153 | + archive site." | |
154 | + touch configure | |
155 | + ;; | |
156 | + | |
157 | + autoheader*) | |
158 | + echo 1>&2 "\ | |
159 | +WARNING: '$1' is $msg. You should only need it if | |
160 | + you modified 'acconfig.h' or '${configure_ac}'. You might want | |
161 | + to install the Autoconf and GNU m4 packages. Grab them | |
162 | + from any GNU archive site." | |
163 | + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` | |
164 | + test -z "$files" && files="config.h" | |
165 | + touch_files= | |
166 | + for f in $files; do | |
167 | + case $f in | |
168 | + *:*) touch_files="$touch_files "`echo "$f" | | |
169 | + sed -e 's/^[^:]*://' -e 's/:.*//'`;; | |
170 | + *) touch_files="$touch_files $f.in";; | |
171 | + esac | |
172 | + done | |
173 | + touch $touch_files | |
174 | + ;; | |
175 | + | |
176 | + automake*) | |
177 | + echo 1>&2 "\ | |
178 | +WARNING: '$1' is $msg. You should only need it if | |
179 | + you modified 'Makefile.am', 'acinclude.m4' or '${configure_ac}'. | |
180 | + You might want to install the Automake and Perl packages. | |
181 | + Grab them from any GNU archive site." | |
182 | + find . -type f -name Makefile.am -print | | |
183 | + sed 's/\.am$/.in/' | | |
184 | + while read f; do touch "$f"; done | |
185 | + ;; | |
186 | + | |
187 | + autom4te*) | |
188 | + echo 1>&2 "\ | |
189 | +WARNING: '$1' is needed, but is $msg. | |
190 | + You might have modified some files without having the | |
191 | + proper tools for further handling them. | |
192 | + You can get '$1' as part of Autoconf from any GNU | |
193 | + archive site." | |
194 | + | |
195 | + file=`echo "$*" | sed -n "$sed_output"` | |
196 | + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
197 | + if test -f "$file"; then | |
198 | + touch $file | |
199 | + else | |
200 | + test -z "$file" || exec >$file | |
201 | + echo "#! /bin/sh" | |
202 | + echo "# Created by GNU Automake missing as a replacement of" | |
203 | + echo "# $ $@" | |
204 | + echo "exit 0" | |
205 | + chmod +x $file | |
206 | + exit 1 | |
207 | + fi | |
208 | + ;; | |
209 | + | |
210 | + bison*|yacc*) | |
211 | + echo 1>&2 "\ | |
212 | +WARNING: '$1' $msg. You should only need it if | |
213 | + you modified a '.y' file. You may need the Bison package | |
214 | + in order for those modifications to take effect. You can get | |
215 | + Bison from any GNU archive site." | |
216 | + rm -f y.tab.c y.tab.h | |
217 | + if test $# -ne 1; then | |
218 | + eval LASTARG=\${$#} | |
219 | + case $LASTARG in | |
220 | + *.y) | |
221 | + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` | |
222 | + if test -f "$SRCFILE"; then | |
223 | + cp "$SRCFILE" y.tab.c | |
224 | + fi | |
225 | + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` | |
226 | + if test -f "$SRCFILE"; then | |
227 | + cp "$SRCFILE" y.tab.h | |
228 | + fi | |
229 | + ;; | |
230 | + esac | |
231 | + fi | |
232 | + if test ! -f y.tab.h; then | |
233 | + echo >y.tab.h | |
234 | + fi | |
235 | + if test ! -f y.tab.c; then | |
236 | + echo 'main() { return 0; }' >y.tab.c | |
237 | + fi | |
238 | + ;; | |
239 | + | |
240 | + lex*|flex*) | |
241 | + echo 1>&2 "\ | |
242 | +WARNING: '$1' is $msg. You should only need it if | |
243 | + you modified a '.l' file. You may need the Flex package | |
244 | + in order for those modifications to take effect. You can get | |
245 | + Flex from any GNU archive site." | |
246 | + rm -f lex.yy.c | |
247 | + if test $# -ne 1; then | |
248 | + eval LASTARG=\${$#} | |
249 | + case $LASTARG in | |
250 | + *.l) | |
251 | + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` | |
252 | + if test -f "$SRCFILE"; then | |
253 | + cp "$SRCFILE" lex.yy.c | |
254 | + fi | |
255 | + ;; | |
256 | + esac | |
257 | + fi | |
258 | + if test ! -f lex.yy.c; then | |
259 | + echo 'main() { return 0; }' >lex.yy.c | |
260 | + fi | |
261 | + ;; | |
262 | + | |
263 | + help2man*) | |
264 | + echo 1>&2 "\ | |
265 | +WARNING: '$1' is $msg. You should only need it if | |
266 | + you modified a dependency of a manual page. You may need the | |
267 | + Help2man package in order for those modifications to take | |
268 | + effect. You can get Help2man from any GNU archive site." | |
269 | + | |
270 | + file=`echo "$*" | sed -n "$sed_output"` | |
271 | + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
272 | + if test -f "$file"; then | |
273 | + touch $file | |
274 | + else | |
275 | + test -z "$file" || exec >$file | |
276 | + echo ".ab help2man is required to generate this page" | |
277 | + exit $? | |
278 | + fi | |
279 | + ;; | |
280 | + | |
281 | + makeinfo*) | |
282 | + echo 1>&2 "\ | |
283 | +WARNING: '$1' is $msg. You should only need it if | |
284 | + you modified a '.texi' or '.texinfo' file, or any other file | |
285 | + indirectly affecting the aspect of the manual. The spurious | |
286 | + call might also be the consequence of using a buggy 'make' (AIX, | |
287 | + DU, IRIX). You might want to install the Texinfo package or | |
288 | + the GNU make package. Grab either from any GNU archive site." | |
289 | + # The file to touch is that specified with -o ... | |
290 | + file=`echo "$*" | sed -n "$sed_output"` | |
291 | + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
292 | + if test -z "$file"; then | |
293 | + # ... or it is the one specified with @setfilename ... | |
294 | + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` | |
295 | + file=`sed -n ' | |
296 | + /^@setfilename/{ | |
297 | + s/.* \([^ ]*\) *$/\1/ | |
298 | + p | |
299 | + q | |
300 | + }' $infile` | |
301 | + # ... or it is derived from the source name (dir/f.texi becomes f.info) | |
302 | + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info | |
303 | + fi | |
304 | + # If the file does not exist, the user really needs makeinfo; | |
305 | + # let's fail without touching anything. | |
306 | + test -f $file || exit 1 | |
307 | + touch $file | |
308 | + ;; | |
309 | + | |
310 | + *) | |
311 | + echo 1>&2 "\ | |
312 | +WARNING: '$1' is needed, and is $msg. | |
313 | + You might have modified some files without having the | |
314 | + proper tools for further handling them. Check the 'README' file, | |
315 | + it often tells you about the needed prerequisites for installing | |
316 | + this package. You may also peek at any GNU archive site, in case | |
317 | + some other package would contain this missing '$1' program." | |
318 | + exit 1 | |
319 | + ;; | |
320 | +esac | |
321 | + | |
322 | +exit 0 | |
323 | + | |
324 | +# Local variables: | |
325 | +# eval: (add-hook 'write-file-hooks 'time-stamp) | |
326 | +# time-stamp-start: "scriptversion=" | |
327 | +# time-stamp-format: "%:y-%02m-%02d.%02H" | |
328 | +# time-stamp-time-zone: "UTC" | |
329 | +# time-stamp-end: "; # UTC" | |
330 | +# End: |
@@ -0,0 +1 @@ | ||
1 | +matsuand <matsuand AT users DT sourceforge DT jp> |
@@ -0,0 +1,674 @@ | ||
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>. |
@@ -0,0 +1,370 @@ | ||
1 | +Installation Instructions | |
2 | +************************* | |
3 | + | |
4 | +Copyright (C) 1994-1996, 1999-2002, 2004-2012 Free Software Foundation, | |
5 | +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 | + HP-UX `make' updates targets which have the same time stamps as | |
230 | +their prerequisites, which makes it generally unusable when shipped | |
231 | +generated files such as `configure' are involved. Use GNU `make' | |
232 | +instead. | |
233 | + | |
234 | + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot | |
235 | +parse its `<wchar.h>' header file. The option `-nodtk' can be used as | |
236 | +a workaround. If GNU CC is not installed, it is therefore recommended | |
237 | +to try | |
238 | + | |
239 | + ./configure CC="cc" | |
240 | + | |
241 | +and if that doesn't work, try | |
242 | + | |
243 | + ./configure CC="cc -nodtk" | |
244 | + | |
245 | + On Solaris, don't put `/usr/ucb' early in your `PATH'. This | |
246 | +directory contains several dysfunctional programs; working variants of | |
247 | +these programs are available in `/usr/bin'. So, if you need `/usr/ucb' | |
248 | +in your `PATH', put it _after_ `/usr/bin'. | |
249 | + | |
250 | + On Haiku, software installed for all users goes in `/boot/common', | |
251 | +not `/usr/local'. It is recommended to use the following options: | |
252 | + | |
253 | + ./configure --prefix=/boot/common | |
254 | + | |
255 | +Specifying the System Type | |
256 | +========================== | |
257 | + | |
258 | + There may be some features `configure' cannot figure out | |
259 | +automatically, but needs to determine by the type of machine the package | |
260 | +will run on. Usually, assuming the package is built to be run on the | |
261 | +_same_ architectures, `configure' can figure that out, but if it prints | |
262 | +a message saying it cannot guess the machine type, give it the | |
263 | +`--build=TYPE' option. TYPE can either be a short name for the system | |
264 | +type, such as `sun4', or a canonical name which has the form: | |
265 | + | |
266 | + CPU-COMPANY-SYSTEM | |
267 | + | |
268 | +where SYSTEM can have one of these forms: | |
269 | + | |
270 | + OS | |
271 | + KERNEL-OS | |
272 | + | |
273 | + See the file `config.sub' for the possible values of each field. If | |
274 | +`config.sub' isn't included in this package, then this package doesn't | |
275 | +need to know the machine type. | |
276 | + | |
277 | + If you are _building_ compiler tools for cross-compiling, you should | |
278 | +use the option `--target=TYPE' to select the type of system they will | |
279 | +produce code for. | |
280 | + | |
281 | + If you want to _use_ a cross compiler, that generates code for a | |
282 | +platform different from the build platform, you should specify the | |
283 | +"host" platform (i.e., that on which the generated programs will | |
284 | +eventually be run) with `--host=TYPE'. | |
285 | + | |
286 | +Sharing Defaults | |
287 | +================ | |
288 | + | |
289 | + If you want to set default values for `configure' scripts to share, | |
290 | +you can create a site shell script called `config.site' that gives | |
291 | +default values for variables like `CC', `cache_file', and `prefix'. | |
292 | +`configure' looks for `PREFIX/share/config.site' if it exists, then | |
293 | +`PREFIX/etc/config.site' if it exists. Or, you can set the | |
294 | +`CONFIG_SITE' environment variable to the location of the site script. | |
295 | +A warning: not all `configure' scripts look for a site script. | |
296 | + | |
297 | +Defining Variables | |
298 | +================== | |
299 | + | |
300 | + Variables not defined in a site shell script can be set in the | |
301 | +environment passed to `configure'. However, some packages may run | |
302 | +configure again during the build, and the customized values of these | |
303 | +variables may be lost. In order to avoid this problem, you should set | |
304 | +them in the `configure' command line, using `VAR=value'. For example: | |
305 | + | |
306 | + ./configure CC=/usr/local2/bin/gcc | |
307 | + | |
308 | +causes the specified `gcc' to be used as the C compiler (unless it is | |
309 | +overridden in the site shell script). | |
310 | + | |
311 | +Unfortunately, this technique does not work for `CONFIG_SHELL' due to | |
312 | +an Autoconf limitation. Until the limitation is lifted, you can use | |
313 | +this workaround: | |
314 | + | |
315 | + CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash | |
316 | + | |
317 | +`configure' Invocation | |
318 | +====================== | |
319 | + | |
320 | + `configure' recognizes the following options to control how it | |
321 | +operates. | |
322 | + | |
323 | +`--help' | |
324 | +`-h' | |
325 | + Print a summary of all of the options to `configure', and exit. | |
326 | + | |
327 | +`--help=short' | |
328 | +`--help=recursive' | |
329 | + Print a summary of the options unique to this package's | |
330 | + `configure', and exit. The `short' variant lists options used | |
331 | + only in the top level, while the `recursive' variant lists options | |
332 | + also present in any nested packages. | |
333 | + | |
334 | +`--version' | |
335 | +`-V' | |
336 | + Print the version of Autoconf used to generate the `configure' | |
337 | + script, and exit. | |
338 | + | |
339 | +`--cache-file=FILE' | |
340 | + Enable the cache: use and save the results of the tests in FILE, | |
341 | + traditionally `config.cache'. FILE defaults to `/dev/null' to | |
342 | + disable caching. | |
343 | + | |
344 | +`--config-cache' | |
345 | +`-C' | |
346 | + Alias for `--cache-file=config.cache'. | |
347 | + | |
348 | +`--quiet' | |
349 | +`--silent' | |
350 | +`-q' | |
351 | + Do not print messages saying which checks are being made. To | |
352 | + suppress all normal output, redirect it to `/dev/null' (any error | |
353 | + messages will still be shown). | |
354 | + | |
355 | +`--srcdir=DIR' | |
356 | + Look for the package's source code in directory DIR. Usually | |
357 | + `configure' can determine that directory automatically. | |
358 | + | |
359 | +`--prefix=DIR' | |
360 | + Use DIR as the installation prefix. *note Installation Names:: | |
361 | + for more details, including other options available for fine-tuning | |
362 | + the installation locations. | |
363 | + | |
364 | +`--no-create' | |
365 | +`-n' | |
366 | + Run the configure checks, but stop before creating any output | |
367 | + files. | |
368 | + | |
369 | +`configure' also accepts some other, not widely useful, options. Run | |
370 | +`configure --help' for more details. |
@@ -0,0 +1 @@ | ||
1 | +SUBDIRS = src |
@@ -0,0 +1,688 @@ | ||
1 | +# Makefile.in generated by automake 1.12.4 from Makefile.am. | |
2 | +# @configure_input@ | |
3 | + | |
4 | +# Copyright (C) 1994-2012 Free Software Foundation, Inc. | |
5 | + | |
6 | +# This Makefile.in is free software; the Free Software Foundation | |
7 | +# gives unlimited permission to copy and/or distribute it, | |
8 | +# with or without modifications, as long as this notice is preserved. | |
9 | + | |
10 | +# This program is distributed in the hope that it will be useful, | |
11 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
12 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
13 | +# PARTICULAR PURPOSE. | |
14 | + | |
15 | +@SET_MAKE@ | |
16 | +VPATH = @srcdir@ | |
17 | +am__make_dryrun = \ | |
18 | + { \ | |
19 | + am__dry=no; \ | |
20 | + case $$MAKEFLAGS in \ | |
21 | + *\\[\ \ ]*) \ | |
22 | + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | |
23 | + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ | |
24 | + *) \ | |
25 | + for am__flg in $$MAKEFLAGS; do \ | |
26 | + case $$am__flg in \ | |
27 | + *=*|--*) ;; \ | |
28 | + *n*) am__dry=yes; break;; \ | |
29 | + esac; \ | |
30 | + done;; \ | |
31 | + esac; \ | |
32 | + test $$am__dry = yes; \ | |
33 | + } | |
34 | +pkgdatadir = $(datadir)/@PACKAGE@ | |
35 | +pkgincludedir = $(includedir)/@PACKAGE@ | |
36 | +pkglibdir = $(libdir)/@PACKAGE@ | |
37 | +pkglibexecdir = $(libexecdir)/@PACKAGE@ | |
38 | +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | |
39 | +install_sh_DATA = $(install_sh) -c -m 644 | |
40 | +install_sh_PROGRAM = $(install_sh) -c | |
41 | +install_sh_SCRIPT = $(install_sh) -c | |
42 | +INSTALL_HEADER = $(INSTALL_DATA) | |
43 | +transform = $(program_transform_name) | |
44 | +NORMAL_INSTALL = : | |
45 | +PRE_INSTALL = : | |
46 | +POST_INSTALL = : | |
47 | +NORMAL_UNINSTALL = : | |
48 | +PRE_UNINSTALL = : | |
49 | +POST_UNINSTALL = : | |
50 | +subdir = . | |
51 | +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ | |
52 | + $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \ | |
53 | + ChangeLog INSTALL NEWS depcomp install-sh missing | |
54 | +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
55 | +am__aclocal_m4_deps = $(top_srcdir)/m4/cli.m4 \ | |
56 | + $(top_srcdir)/configure.ac | |
57 | +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
58 | + $(ACLOCAL_M4) | |
59 | +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | |
60 | + configure.lineno config.status.lineno | |
61 | +mkinstalldirs = $(install_sh) -d | |
62 | +CONFIG_CLEAN_FILES = | |
63 | +CONFIG_CLEAN_VPATH_FILES = | |
64 | +SOURCES = | |
65 | +DIST_SOURCES = | |
66 | +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | |
67 | + html-recursive info-recursive install-data-recursive \ | |
68 | + install-dvi-recursive install-exec-recursive \ | |
69 | + install-html-recursive install-info-recursive \ | |
70 | + install-pdf-recursive install-ps-recursive install-recursive \ | |
71 | + installcheck-recursive installdirs-recursive pdf-recursive \ | |
72 | + ps-recursive uninstall-recursive | |
73 | +am__can_run_installinfo = \ | |
74 | + case $$AM_UPDATE_INFO_DIR in \ | |
75 | + n|no|NO) false;; \ | |
76 | + *) (install-info --version) >/dev/null 2>&1;; \ | |
77 | + esac | |
78 | +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ | |
79 | + distclean-recursive maintainer-clean-recursive | |
80 | +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ | |
81 | + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ | |
82 | + cscope distdir dist dist-all distcheck | |
83 | +ETAGS = etags | |
84 | +CTAGS = ctags | |
85 | +CSCOPE = cscope | |
86 | +DIST_SUBDIRS = $(SUBDIRS) | |
87 | +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | |
88 | +distdir = $(PACKAGE)-$(VERSION) | |
89 | +top_distdir = $(distdir) | |
90 | +am__remove_distdir = \ | |
91 | + if test -d "$(distdir)"; then \ | |
92 | + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ | |
93 | + && rm -rf "$(distdir)" \ | |
94 | + || { sleep 5 && rm -rf "$(distdir)"; }; \ | |
95 | + else :; fi | |
96 | +am__post_remove_distdir = $(am__remove_distdir) | |
97 | +am__relativize = \ | |
98 | + dir0=`pwd`; \ | |
99 | + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ | |
100 | + sed_rest='s,^[^/]*/*,,'; \ | |
101 | + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ | |
102 | + sed_butlast='s,/*[^/]*$$,,'; \ | |
103 | + while test -n "$$dir1"; do \ | |
104 | + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ | |
105 | + if test "$$first" != "."; then \ | |
106 | + if test "$$first" = ".."; then \ | |
107 | + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ | |
108 | + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ | |
109 | + else \ | |
110 | + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ | |
111 | + if test "$$first2" = "$$first"; then \ | |
112 | + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ | |
113 | + else \ | |
114 | + dir2="../$$dir2"; \ | |
115 | + fi; \ | |
116 | + dir0="$$dir0"/"$$first"; \ | |
117 | + fi; \ | |
118 | + fi; \ | |
119 | + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ | |
120 | + done; \ | |
121 | + reldir="$$dir2" | |
122 | +DIST_ARCHIVES = $(distdir).tar.gz | |
123 | +GZIP_ENV = --best | |
124 | +DIST_TARGETS = dist-gzip | |
125 | +distuninstallcheck_listfiles = find . -type f -print | |
126 | +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | |
127 | + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' | |
128 | +distcleancheck_listfiles = find . -type f -print | |
129 | +ACLOCAL = @ACLOCAL@ | |
130 | +AMTAR = @AMTAR@ | |
131 | +AUTOCONF = @AUTOCONF@ | |
132 | +AUTOHEADER = @AUTOHEADER@ | |
133 | +AUTOMAKE = @AUTOMAKE@ | |
134 | +AWK = @AWK@ | |
135 | +CSC = @CSC@ | |
136 | +CYGPATH_W = @CYGPATH_W@ | |
137 | +DEFS = @DEFS@ | |
138 | +ECHO_C = @ECHO_C@ | |
139 | +ECHO_N = @ECHO_N@ | |
140 | +ECHO_T = @ECHO_T@ | |
141 | +ILASM = @ILASM@ | |
142 | +ILDISASM = @ILDISASM@ | |
143 | +INSTALL = @INSTALL@ | |
144 | +INSTALL_DATA = @INSTALL_DATA@ | |
145 | +INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
146 | +INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
147 | +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
148 | +LIBOBJS = @LIBOBJS@ | |
149 | +LIBS = @LIBS@ | |
150 | +LTLIBOBJS = @LTLIBOBJS@ | |
151 | +MAKEINFO = @MAKEINFO@ | |
152 | +MKDIR_P = @MKDIR_P@ | |
153 | +PACKAGE = @PACKAGE@ | |
154 | +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
155 | +PACKAGE_NAME = @PACKAGE_NAME@ | |
156 | +PACKAGE_STRING = @PACKAGE_STRING@ | |
157 | +PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
158 | +PACKAGE_URL = @PACKAGE_URL@ | |
159 | +PACKAGE_VERSION = @PACKAGE_VERSION@ | |
160 | +PATH_SEPARATOR = @PATH_SEPARATOR@ | |
161 | +RESGEN = @RESGEN@ | |
162 | +SET_MAKE = @SET_MAKE@ | |
163 | +SHELL = @SHELL@ | |
164 | +STRIP = @STRIP@ | |
165 | +VERSION = @VERSION@ | |
166 | +abs_builddir = @abs_builddir@ | |
167 | +abs_srcdir = @abs_srcdir@ | |
168 | +abs_top_builddir = @abs_top_builddir@ | |
169 | +abs_top_srcdir = @abs_top_srcdir@ | |
170 | +am__leading_dot = @am__leading_dot@ | |
171 | +am__tar = @am__tar@ | |
172 | +am__untar = @am__untar@ | |
173 | +bindir = @bindir@ | |
174 | +build_alias = @build_alias@ | |
175 | +builddir = @builddir@ | |
176 | +datadir = @datadir@ | |
177 | +datarootdir = @datarootdir@ | |
178 | +docdir = @docdir@ | |
179 | +dvidir = @dvidir@ | |
180 | +exec_prefix = @exec_prefix@ | |
181 | +host_alias = @host_alias@ | |
182 | +htmldir = @htmldir@ | |
183 | +includedir = @includedir@ | |
184 | +infodir = @infodir@ | |
185 | +install_sh = @install_sh@ | |
186 | +libdir = @libdir@ | |
187 | +libexecdir = @libexecdir@ | |
188 | +localedir = @localedir@ | |
189 | +localstatedir = @localstatedir@ | |
190 | +mandir = @mandir@ | |
191 | +mkdir_p = @mkdir_p@ | |
192 | +oldincludedir = @oldincludedir@ | |
193 | +pdfdir = @pdfdir@ | |
194 | +prefix = @prefix@ | |
195 | +program_transform_name = @program_transform_name@ | |
196 | +psdir = @psdir@ | |
197 | +sbindir = @sbindir@ | |
198 | +sharedstatedir = @sharedstatedir@ | |
199 | +srcdir = @srcdir@ | |
200 | +sysconfdir = @sysconfdir@ | |
201 | +target_alias = @target_alias@ | |
202 | +top_build_prefix = @top_build_prefix@ | |
203 | +top_builddir = @top_builddir@ | |
204 | +top_srcdir = @top_srcdir@ | |
205 | +SUBDIRS = src | |
206 | +all: all-recursive | |
207 | + | |
208 | +.SUFFIXES: | |
209 | +am--refresh: Makefile | |
210 | + @: | |
211 | +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | |
212 | + @for dep in $?; do \ | |
213 | + case '$(am__configure_deps)' in \ | |
214 | + *$$dep*) \ | |
215 | + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ | |
216 | + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ | |
217 | + && exit 0; \ | |
218 | + exit 1;; \ | |
219 | + esac; \ | |
220 | + done; \ | |
221 | + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ | |
222 | + $(am__cd) $(top_srcdir) && \ | |
223 | + $(AUTOMAKE) --gnu Makefile | |
224 | +.PRECIOUS: Makefile | |
225 | +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
226 | + @case '$?' in \ | |
227 | + *config.status*) \ | |
228 | + echo ' $(SHELL) ./config.status'; \ | |
229 | + $(SHELL) ./config.status;; \ | |
230 | + *) \ | |
231 | + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ | |
232 | + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ | |
233 | + esac; | |
234 | + | |
235 | +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | |
236 | + $(SHELL) ./config.status --recheck | |
237 | + | |
238 | +$(top_srcdir)/configure: $(am__configure_deps) | |
239 | + $(am__cd) $(srcdir) && $(AUTOCONF) | |
240 | +$(ACLOCAL_M4): $(am__aclocal_m4_deps) | |
241 | + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | |
242 | +$(am__aclocal_m4_deps): | |
243 | + | |
244 | +# This directory's subdirectories are mostly independent; you can cd | |
245 | +# into them and run 'make' without going through this Makefile. | |
246 | +# To change the values of 'make' variables: instead of editing Makefiles, | |
247 | +# (1) if the variable is set in 'config.status', edit 'config.status' | |
248 | +# (which will cause the Makefiles to be regenerated when you run 'make'); | |
249 | +# (2) otherwise, pass the desired values on the 'make' command line. | |
250 | +$(RECURSIVE_TARGETS) $(RECURSIVE_CLEAN_TARGETS): | |
251 | + @fail= failcom='exit 1'; \ | |
252 | + for f in x $$MAKEFLAGS; do \ | |
253 | + case $$f in \ | |
254 | + *=* | --[!k]*);; \ | |
255 | + *k*) failcom='fail=yes';; \ | |
256 | + esac; \ | |
257 | + done; \ | |
258 | + dot_seen=no; \ | |
259 | + target=`echo $@ | sed s/-recursive//`; \ | |
260 | + case "$@" in \ | |
261 | + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | |
262 | + *) list='$(SUBDIRS)' ;; \ | |
263 | + esac; \ | |
264 | + for subdir in $$list; do \ | |
265 | + echo "Making $$target in $$subdir"; \ | |
266 | + if test "$$subdir" = "."; then \ | |
267 | + dot_seen=yes; \ | |
268 | + local_target="$$target-am"; \ | |
269 | + else \ | |
270 | + local_target="$$target"; \ | |
271 | + fi; \ | |
272 | + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
273 | + || eval $$failcom; \ | |
274 | + done; \ | |
275 | + if test "$$dot_seen" = "no"; then \ | |
276 | + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | |
277 | + fi; test -z "$$fail" | |
278 | +tags-recursive: | |
279 | + list='$(SUBDIRS)'; for subdir in $$list; do \ | |
280 | + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | |
281 | + done | |
282 | +ctags-recursive: | |
283 | + list='$(SUBDIRS)'; for subdir in $$list; do \ | |
284 | + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | |
285 | + done | |
286 | +cscopelist-recursive: | |
287 | + list='$(SUBDIRS)'; for subdir in $$list; do \ | |
288 | + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \ | |
289 | + done | |
290 | + | |
291 | +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
292 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
293 | + unique=`for i in $$list; do \ | |
294 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
295 | + done | \ | |
296 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
297 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
298 | + mkid -fID $$unique | |
299 | +tags: TAGS | |
300 | + | |
301 | +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
302 | + $(TAGS_FILES) $(LISP) | |
303 | + set x; \ | |
304 | + here=`pwd`; \ | |
305 | + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ | |
306 | + include_option=--etags-include; \ | |
307 | + empty_fix=.; \ | |
308 | + else \ | |
309 | + include_option=--include; \ | |
310 | + empty_fix=; \ | |
311 | + fi; \ | |
312 | + list='$(SUBDIRS)'; for subdir in $$list; do \ | |
313 | + if test "$$subdir" = .; then :; else \ | |
314 | + test ! -f $$subdir/TAGS || \ | |
315 | + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ | |
316 | + fi; \ | |
317 | + done; \ | |
318 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
319 | + unique=`for i in $$list; do \ | |
320 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
321 | + done | \ | |
322 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
323 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
324 | + shift; \ | |
325 | + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | |
326 | + test -n "$$unique" || unique=$$empty_fix; \ | |
327 | + if test $$# -gt 0; then \ | |
328 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
329 | + "$$@" $$unique; \ | |
330 | + else \ | |
331 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
332 | + $$unique; \ | |
333 | + fi; \ | |
334 | + fi | |
335 | +ctags: CTAGS | |
336 | +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
337 | + $(TAGS_FILES) $(LISP) | |
338 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
339 | + unique=`for i in $$list; do \ | |
340 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
341 | + done | \ | |
342 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
343 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
344 | + test -z "$(CTAGS_ARGS)$$unique" \ | |
345 | + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | |
346 | + $$unique | |
347 | + | |
348 | +GTAGS: | |
349 | + here=`$(am__cd) $(top_builddir) && pwd` \ | |
350 | + && $(am__cd) $(top_srcdir) \ | |
351 | + && gtags -i $(GTAGS_ARGS) "$$here" | |
352 | + | |
353 | +cscope: cscope.files | |
354 | + test ! -s cscope.files \ | |
355 | + || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) | |
356 | + | |
357 | +clean-cscope: | |
358 | + -rm -f cscope.files | |
359 | + | |
360 | +cscope.files: clean-cscope cscopelist-recursive cscopelist | |
361 | + | |
362 | +cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP) | |
363 | + list='$(SOURCES) $(HEADERS) $(LISP)'; \ | |
364 | + case "$(srcdir)" in \ | |
365 | + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | |
366 | + *) sdir=$(subdir)/$(srcdir) ;; \ | |
367 | + esac; \ | |
368 | + for i in $$list; do \ | |
369 | + if test -f "$$i"; then \ | |
370 | + echo "$(subdir)/$$i"; \ | |
371 | + else \ | |
372 | + echo "$$sdir/$$i"; \ | |
373 | + fi; \ | |
374 | + done >> $(top_builddir)/cscope.files | |
375 | + | |
376 | +distclean-tags: | |
377 | + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | |
378 | + -rm -f cscope.out cscope.in.out cscope.po.out cscope.files | |
379 | + | |
380 | +distdir: $(DISTFILES) | |
381 | + $(am__remove_distdir) | |
382 | + test -d "$(distdir)" || mkdir "$(distdir)" | |
383 | + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
384 | + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
385 | + list='$(DISTFILES)'; \ | |
386 | + dist_files=`for file in $$list; do echo $$file; done | \ | |
387 | + sed -e "s|^$$srcdirstrip/||;t" \ | |
388 | + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | |
389 | + case $$dist_files in \ | |
390 | + */*) $(MKDIR_P) `echo "$$dist_files" | \ | |
391 | + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | |
392 | + sort -u` ;; \ | |
393 | + esac; \ | |
394 | + for file in $$dist_files; do \ | |
395 | + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | |
396 | + if test -d $$d/$$file; then \ | |
397 | + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | |
398 | + if test -d "$(distdir)/$$file"; then \ | |
399 | + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
400 | + fi; \ | |
401 | + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | |
402 | + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | |
403 | + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
404 | + fi; \ | |
405 | + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | |
406 | + else \ | |
407 | + test -f "$(distdir)/$$file" \ | |
408 | + || cp -p $$d/$$file "$(distdir)/$$file" \ | |
409 | + || exit 1; \ | |
410 | + fi; \ | |
411 | + done | |
412 | + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | |
413 | + if test "$$subdir" = .; then :; else \ | |
414 | + $(am__make_dryrun) \ | |
415 | + || test -d "$(distdir)/$$subdir" \ | |
416 | + || $(MKDIR_P) "$(distdir)/$$subdir" \ | |
417 | + || exit 1; \ | |
418 | + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ | |
419 | + $(am__relativize); \ | |
420 | + new_distdir=$$reldir; \ | |
421 | + dir1=$$subdir; dir2="$(top_distdir)"; \ | |
422 | + $(am__relativize); \ | |
423 | + new_top_distdir=$$reldir; \ | |
424 | + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ | |
425 | + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ | |
426 | + ($(am__cd) $$subdir && \ | |
427 | + $(MAKE) $(AM_MAKEFLAGS) \ | |
428 | + top_distdir="$$new_top_distdir" \ | |
429 | + distdir="$$new_distdir" \ | |
430 | + am__remove_distdir=: \ | |
431 | + am__skip_length_check=: \ | |
432 | + am__skip_mode_fix=: \ | |
433 | + distdir) \ | |
434 | + || exit 1; \ | |
435 | + fi; \ | |
436 | + done | |
437 | + -test -n "$(am__skip_mode_fix)" \ | |
438 | + || find "$(distdir)" -type d ! -perm -755 \ | |
439 | + -exec chmod u+rwx,go+rx {} \; -o \ | |
440 | + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | |
441 | + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | |
442 | + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ | |
443 | + || chmod -R a+r "$(distdir)" | |
444 | +dist-gzip: distdir | |
445 | + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
446 | + $(am__post_remove_distdir) | |
447 | + | |
448 | +dist-bzip2: distdir | |
449 | + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 | |
450 | + $(am__post_remove_distdir) | |
451 | + | |
452 | +dist-lzip: distdir | |
453 | + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz | |
454 | + $(am__post_remove_distdir) | |
455 | + | |
456 | +dist-xz: distdir | |
457 | + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz | |
458 | + $(am__post_remove_distdir) | |
459 | + | |
460 | +dist-tarZ: distdir | |
461 | + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z | |
462 | + $(am__post_remove_distdir) | |
463 | + | |
464 | +dist-shar: distdir | |
465 | + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz | |
466 | + $(am__post_remove_distdir) | |
467 | + | |
468 | +dist-zip: distdir | |
469 | + -rm -f $(distdir).zip | |
470 | + zip -rq $(distdir).zip $(distdir) | |
471 | + $(am__post_remove_distdir) | |
472 | + | |
473 | +dist dist-all: | |
474 | + $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' | |
475 | + $(am__post_remove_distdir) | |
476 | + | |
477 | +# This target untars the dist file and tries a VPATH configuration. Then | |
478 | +# it guarantees that the distribution is self-contained by making another | |
479 | +# tarfile. | |
480 | +distcheck: dist | |
481 | + case '$(DIST_ARCHIVES)' in \ | |
482 | + *.tar.gz*) \ | |
483 | + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ | |
484 | + *.tar.bz2*) \ | |
485 | + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ | |
486 | + *.tar.lz*) \ | |
487 | + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ | |
488 | + *.tar.xz*) \ | |
489 | + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ | |
490 | + *.tar.Z*) \ | |
491 | + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ | |
492 | + *.shar.gz*) \ | |
493 | + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ | |
494 | + *.zip*) \ | |
495 | + unzip $(distdir).zip ;;\ | |
496 | + esac | |
497 | + chmod -R a-w $(distdir) | |
498 | + chmod u+w $(distdir) | |
499 | + mkdir $(distdir)/_build $(distdir)/_inst | |
500 | + chmod a-w $(distdir) | |
501 | + test -d $(distdir)/_build || exit 0; \ | |
502 | + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ | |
503 | + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ | |
504 | + && am__cwd=`pwd` \ | |
505 | + && $(am__cd) $(distdir)/_build \ | |
506 | + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ | |
507 | + $(AM_DISTCHECK_CONFIGURE_FLAGS) \ | |
508 | + $(DISTCHECK_CONFIGURE_FLAGS) \ | |
509 | + && $(MAKE) $(AM_MAKEFLAGS) \ | |
510 | + && $(MAKE) $(AM_MAKEFLAGS) dvi \ | |
511 | + && $(MAKE) $(AM_MAKEFLAGS) check \ | |
512 | + && $(MAKE) $(AM_MAKEFLAGS) install \ | |
513 | + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ | |
514 | + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ | |
515 | + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ | |
516 | + distuninstallcheck \ | |
517 | + && chmod -R a-w "$$dc_install_base" \ | |
518 | + && ({ \ | |
519 | + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ | |
520 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ | |
521 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ | |
522 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ | |
523 | + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ | |
524 | + } || { rm -rf "$$dc_destdir"; exit 1; }) \ | |
525 | + && rm -rf "$$dc_destdir" \ | |
526 | + && $(MAKE) $(AM_MAKEFLAGS) dist \ | |
527 | + && rm -rf $(DIST_ARCHIVES) \ | |
528 | + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ | |
529 | + && cd "$$am__cwd" \ | |
530 | + || exit 1 | |
531 | + $(am__post_remove_distdir) | |
532 | + @(echo "$(distdir) archives ready for distribution: "; \ | |
533 | + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ | |
534 | + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' | |
535 | +distuninstallcheck: | |
536 | + @test -n '$(distuninstallcheck_dir)' || { \ | |
537 | + echo 'ERROR: trying to run $@ with an empty' \ | |
538 | + '$$(distuninstallcheck_dir)' >&2; \ | |
539 | + exit 1; \ | |
540 | + }; \ | |
541 | + $(am__cd) '$(distuninstallcheck_dir)' || { \ | |
542 | + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ | |
543 | + exit 1; \ | |
544 | + }; \ | |
545 | + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ | |
546 | + || { echo "ERROR: files left after uninstall:" ; \ | |
547 | + if test -n "$(DESTDIR)"; then \ | |
548 | + echo " (check DESTDIR support)"; \ | |
549 | + fi ; \ | |
550 | + $(distuninstallcheck_listfiles) ; \ | |
551 | + exit 1; } >&2 | |
552 | +distcleancheck: distclean | |
553 | + @if test '$(srcdir)' = . ; then \ | |
554 | + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ | |
555 | + exit 1 ; \ | |
556 | + fi | |
557 | + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ | |
558 | + || { echo "ERROR: files left in build directory after distclean:" ; \ | |
559 | + $(distcleancheck_listfiles) ; \ | |
560 | + exit 1; } >&2 | |
561 | +check-am: all-am | |
562 | +check: check-recursive | |
563 | +all-am: Makefile | |
564 | +installdirs: installdirs-recursive | |
565 | +installdirs-am: | |
566 | +install: install-recursive | |
567 | +install-exec: install-exec-recursive | |
568 | +install-data: install-data-recursive | |
569 | +uninstall: uninstall-recursive | |
570 | + | |
571 | +install-am: all-am | |
572 | + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | |
573 | + | |
574 | +installcheck: installcheck-recursive | |
575 | +install-strip: | |
576 | + if test -z '$(STRIP)'; then \ | |
577 | + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
578 | + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
579 | + install; \ | |
580 | + else \ | |
581 | + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
582 | + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
583 | + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | |
584 | + fi | |
585 | +mostlyclean-generic: | |
586 | + | |
587 | +clean-generic: | |
588 | + | |
589 | +distclean-generic: | |
590 | + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | |
591 | + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | |
592 | + | |
593 | +maintainer-clean-generic: | |
594 | + @echo "This command is intended for maintainers to use" | |
595 | + @echo "it deletes files that may require special tools to rebuild." | |
596 | +clean: clean-recursive | |
597 | + | |
598 | +clean-am: clean-generic mostlyclean-am | |
599 | + | |
600 | +distclean: distclean-recursive | |
601 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
602 | + -rm -f Makefile | |
603 | +distclean-am: clean-am distclean-generic distclean-tags | |
604 | + | |
605 | +dvi: dvi-recursive | |
606 | + | |
607 | +dvi-am: | |
608 | + | |
609 | +html: html-recursive | |
610 | + | |
611 | +html-am: | |
612 | + | |
613 | +info: info-recursive | |
614 | + | |
615 | +info-am: | |
616 | + | |
617 | +install-data-am: | |
618 | + | |
619 | +install-dvi: install-dvi-recursive | |
620 | + | |
621 | +install-dvi-am: | |
622 | + | |
623 | +install-exec-am: | |
624 | + | |
625 | +install-html: install-html-recursive | |
626 | + | |
627 | +install-html-am: | |
628 | + | |
629 | +install-info: install-info-recursive | |
630 | + | |
631 | +install-info-am: | |
632 | + | |
633 | +install-man: | |
634 | + | |
635 | +install-pdf: install-pdf-recursive | |
636 | + | |
637 | +install-pdf-am: | |
638 | + | |
639 | +install-ps: install-ps-recursive | |
640 | + | |
641 | +install-ps-am: | |
642 | + | |
643 | +installcheck-am: | |
644 | + | |
645 | +maintainer-clean: maintainer-clean-recursive | |
646 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
647 | + -rm -rf $(top_srcdir)/autom4te.cache | |
648 | + -rm -f Makefile | |
649 | +maintainer-clean-am: distclean-am maintainer-clean-generic | |
650 | + | |
651 | +mostlyclean: mostlyclean-recursive | |
652 | + | |
653 | +mostlyclean-am: mostlyclean-generic | |
654 | + | |
655 | +pdf: pdf-recursive | |
656 | + | |
657 | +pdf-am: | |
658 | + | |
659 | +ps: ps-recursive | |
660 | + | |
661 | +ps-am: | |
662 | + | |
663 | +uninstall-am: | |
664 | + | |
665 | +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) \ | |
666 | + cscopelist-recursive ctags-recursive install-am install-strip \ | |
667 | + tags-recursive | |
668 | + | |
669 | +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ | |
670 | + all all-am am--refresh check check-am clean clean-cscope \ | |
671 | + clean-generic cscope cscopelist cscopelist-recursive ctags \ | |
672 | + ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-lzip \ | |
673 | + dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \ | |
674 | + distclean-generic distclean-tags distcleancheck distdir \ | |
675 | + distuninstallcheck dvi dvi-am html html-am info info-am \ | |
676 | + install install-am install-data install-data-am install-dvi \ | |
677 | + install-dvi-am install-exec install-exec-am install-html \ | |
678 | + install-html-am install-info install-info-am install-man \ | |
679 | + install-pdf install-pdf-am install-ps install-ps-am \ | |
680 | + install-strip installcheck installcheck-am installdirs \ | |
681 | + installdirs-am maintainer-clean maintainer-clean-generic \ | |
682 | + mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \ | |
683 | + tags-recursive uninstall uninstall-am | |
684 | + | |
685 | + | |
686 | +# Tell versions [3.59,3.63) of GNU make to not export all variables. | |
687 | +# Otherwise a system limit (for SysV at least) may be exceeded. | |
688 | +.NOEXPORT: |
@@ -0,0 +1,44 @@ | ||
1 | +vi Makefile.am | |
2 | + SUBDIRS = src | |
3 | + | |
4 | +mkdir src | |
5 | + | |
6 | +vi src/Makefile.am | |
7 | + bin_PROGRAMS = hello.exe | |
8 | + hello_exe_SOURCES = hello.cs | |
9 | + | |
10 | + SUFFIXES = .cs .exe | |
11 | + .cs.exe: | |
12 | + $(CSC) $^ /out:$@ | |
13 | + | |
14 | + hello.exe: $(hello_exe_SOURCES) | |
15 | + | |
16 | +vi src/hello.cpp | |
17 | + using System; | |
18 | + | |
19 | + namespace Autotoolstest | |
20 | + { | |
21 | + public class mono01 | |
22 | + { | |
23 | + public static void Main() | |
24 | + { | |
25 | + Console.WriteLine(@"Hello, World!"); | |
26 | + } | |
27 | + } | |
28 | + } | |
29 | + | |
30 | +autoscan | |
31 | +mv configure.{scan,ac} | |
32 | + | |
33 | +vi configure.ac | |
34 | + AM_INIT_AUTOMAKE | |
35 | + m4_include([m4/cli.m4]) | |
36 | + AM_PROG_CLI | |
37 | + | |
38 | +aclocal | |
39 | +#autoheader | |
40 | + | |
41 | +touch README NEWS AUTHORS ChangeLog | |
42 | +automake -c -a | |
43 | + | |
44 | +autoconf |
@@ -0,0 +1,596 @@ | ||
1 | +# generated automatically by aclocal 1.12.4 -*- Autoconf -*- | |
2 | + | |
3 | +# Copyright (C) 1996-2012 Free Software Foundation, Inc. | |
4 | + | |
5 | +# This file is free software; the Free Software Foundation | |
6 | +# gives unlimited permission to copy and/or distribute it, | |
7 | +# with or without modifications, as long as this notice is preserved. | |
8 | + | |
9 | +# This program is distributed in the hope that it will be useful, | |
10 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
11 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
12 | +# PARTICULAR PURPOSE. | |
13 | + | |
14 | +m4_ifndef([AC_AUTOCONF_VERSION], | |
15 | + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
16 | +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, | |
17 | +[m4_warning([this file was generated for autoconf 2.69. | |
18 | +You have another version of autoconf. It may work, but is not guaranteed to. | |
19 | +If you have problems, you may need to regenerate the build system entirely. | |
20 | +To do so, use the procedure documented by the package, typically 'autoreconf'.])]) | |
21 | + | |
22 | +# Copyright (C) 2002-2012 Free Software Foundation, Inc. | |
23 | +# | |
24 | +# This file is free software; the Free Software Foundation | |
25 | +# gives unlimited permission to copy and/or distribute it, | |
26 | +# with or without modifications, as long as this notice is preserved. | |
27 | + | |
28 | +# AM_AUTOMAKE_VERSION(VERSION) | |
29 | +# ---------------------------- | |
30 | +# Automake X.Y traces this macro to ensure aclocal.m4 has been | |
31 | +# generated from the m4 files accompanying Automake X.Y. | |
32 | +# (This private macro should not be called outside this file.) | |
33 | +AC_DEFUN([AM_AUTOMAKE_VERSION], | |
34 | +[am__api_version='1.12' | |
35 | +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | |
36 | +dnl require some minimum version. Point them to the right macro. | |
37 | +m4_if([$1], [1.12.4], [], | |
38 | + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | |
39 | +]) | |
40 | + | |
41 | +# _AM_AUTOCONF_VERSION(VERSION) | |
42 | +# ----------------------------- | |
43 | +# aclocal traces this macro to find the Autoconf version. | |
44 | +# This is a private macro too. Using m4_define simplifies | |
45 | +# the logic in aclocal, which can simply ignore this definition. | |
46 | +m4_define([_AM_AUTOCONF_VERSION], []) | |
47 | + | |
48 | +# AM_SET_CURRENT_AUTOMAKE_VERSION | |
49 | +# ------------------------------- | |
50 | +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | |
51 | +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | |
52 | +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | |
53 | +[AM_AUTOMAKE_VERSION([1.12.4])dnl | |
54 | +m4_ifndef([AC_AUTOCONF_VERSION], | |
55 | + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
56 | +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | |
57 | + | |
58 | +# AM_AUX_DIR_EXPAND -*- Autoconf -*- | |
59 | + | |
60 | +# Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
61 | +# | |
62 | +# This file is free software; the Free Software Foundation | |
63 | +# gives unlimited permission to copy and/or distribute it, | |
64 | +# with or without modifications, as long as this notice is preserved. | |
65 | + | |
66 | +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | |
67 | +# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to | |
68 | +# '$srcdir', '$srcdir/..', or '$srcdir/../..'. | |
69 | +# | |
70 | +# Of course, Automake must honor this variable whenever it calls a | |
71 | +# tool from the auxiliary directory. The problem is that $srcdir (and | |
72 | +# therefore $ac_aux_dir as well) can be either absolute or relative, | |
73 | +# depending on how configure is run. This is pretty annoying, since | |
74 | +# it makes $ac_aux_dir quite unusable in subdirectories: in the top | |
75 | +# source directory, any form will work fine, but in subdirectories a | |
76 | +# relative path needs to be adjusted first. | |
77 | +# | |
78 | +# $ac_aux_dir/missing | |
79 | +# fails when called from a subdirectory if $ac_aux_dir is relative | |
80 | +# $top_srcdir/$ac_aux_dir/missing | |
81 | +# fails if $ac_aux_dir is absolute, | |
82 | +# fails when called from a subdirectory in a VPATH build with | |
83 | +# a relative $ac_aux_dir | |
84 | +# | |
85 | +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir | |
86 | +# are both prefixed by $srcdir. In an in-source build this is usually | |
87 | +# harmless because $srcdir is '.', but things will broke when you | |
88 | +# start a VPATH build or use an absolute $srcdir. | |
89 | +# | |
90 | +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | |
91 | +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: | |
92 | +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | |
93 | +# and then we would define $MISSING as | |
94 | +# MISSING="\${SHELL} $am_aux_dir/missing" | |
95 | +# This will work as long as MISSING is not called from configure, because | |
96 | +# unfortunately $(top_srcdir) has no meaning in configure. | |
97 | +# However there are other variables, like CC, which are often used in | |
98 | +# configure, and could therefore not use this "fixed" $ac_aux_dir. | |
99 | +# | |
100 | +# Another solution, used here, is to always expand $ac_aux_dir to an | |
101 | +# absolute PATH. The drawback is that using absolute paths prevent a | |
102 | +# configured tree to be moved without reconfiguration. | |
103 | + | |
104 | +AC_DEFUN([AM_AUX_DIR_EXPAND], | |
105 | +[dnl Rely on autoconf to set up CDPATH properly. | |
106 | +AC_PREREQ([2.50])dnl | |
107 | +# expand $ac_aux_dir to an absolute path | |
108 | +am_aux_dir=`cd $ac_aux_dir && pwd` | |
109 | +]) | |
110 | + | |
111 | +# Do all the work for Automake. -*- Autoconf -*- | |
112 | + | |
113 | +# Copyright (C) 1996-2012 Free Software Foundation, Inc. | |
114 | +# | |
115 | +# This file is free software; the Free Software Foundation | |
116 | +# gives unlimited permission to copy and/or distribute it, | |
117 | +# with or without modifications, as long as this notice is preserved. | |
118 | + | |
119 | +# This macro actually does too much. Some checks are only needed if | |
120 | +# your package does certain things. But this isn't really a big deal. | |
121 | + | |
122 | +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | |
123 | +# AM_INIT_AUTOMAKE([OPTIONS]) | |
124 | +# ----------------------------------------------- | |
125 | +# The call with PACKAGE and VERSION arguments is the old style | |
126 | +# call (pre autoconf-2.50), which is being phased out. PACKAGE | |
127 | +# and VERSION should now be passed to AC_INIT and removed from | |
128 | +# the call to AM_INIT_AUTOMAKE. | |
129 | +# We support both call styles for the transition. After | |
130 | +# the next Automake release, Autoconf can make the AC_INIT | |
131 | +# arguments mandatory, and then we can depend on a new Autoconf | |
132 | +# release and drop the old call support. | |
133 | +AC_DEFUN([AM_INIT_AUTOMAKE], | |
134 | +[AC_PREREQ([2.62])dnl | |
135 | +dnl Autoconf wants to disallow AM_ names. We explicitly allow | |
136 | +dnl the ones we care about. | |
137 | +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | |
138 | +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | |
139 | +AC_REQUIRE([AC_PROG_INSTALL])dnl | |
140 | +if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
141 | + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
142 | + # is not polluted with repeated "-I." | |
143 | + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl | |
144 | + # test to see if srcdir already configured | |
145 | + if test -f $srcdir/config.status; then | |
146 | + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
147 | + fi | |
148 | +fi | |
149 | + | |
150 | +# test whether we have cygpath | |
151 | +if test -z "$CYGPATH_W"; then | |
152 | + if (cygpath --version) >/dev/null 2>/dev/null; then | |
153 | + CYGPATH_W='cygpath -w' | |
154 | + else | |
155 | + CYGPATH_W=echo | |
156 | + fi | |
157 | +fi | |
158 | +AC_SUBST([CYGPATH_W]) | |
159 | + | |
160 | +# Define the identity of the package. | |
161 | +dnl Distinguish between old-style and new-style calls. | |
162 | +m4_ifval([$2], | |
163 | +[AC_DIAGNOSE([obsolete], | |
164 | +[$0: two- and three-arguments forms are deprecated. For more info, see: | |
165 | +http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation]) | |
166 | +m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
167 | + AC_SUBST([PACKAGE], [$1])dnl | |
168 | + AC_SUBST([VERSION], [$2])], | |
169 | +[_AM_SET_OPTIONS([$1])dnl | |
170 | +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | |
171 | +m4_if( | |
172 | + m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), | |
173 | + [ok:ok],, | |
174 | + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | |
175 | + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | |
176 | + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | |
177 | + | |
178 | +_AM_IF_OPTION([no-define],, | |
179 | +[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) | |
180 | + AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl | |
181 | + | |
182 | +# Some tools Automake needs. | |
183 | +AC_REQUIRE([AM_SANITY_CHECK])dnl | |
184 | +AC_REQUIRE([AC_ARG_PROGRAM])dnl | |
185 | +AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) | |
186 | +AM_MISSING_PROG([AUTOCONF], [autoconf]) | |
187 | +AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) | |
188 | +AM_MISSING_PROG([AUTOHEADER], [autoheader]) | |
189 | +AM_MISSING_PROG([MAKEINFO], [makeinfo]) | |
190 | +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
191 | +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl | |
192 | +AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
193 | +# For better backward compatibility. To be removed once Automake 1.9.x | |
194 | +# dies out for good. For more background, see: | |
195 | +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
196 | +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
197 | +AC_SUBST([mkdir_p], ['$(MKDIR_P)']) | |
198 | +# We need awk for the "check" target. The system "awk" is bad on | |
199 | +# some platforms. | |
200 | +AC_REQUIRE([AC_PROG_AWK])dnl | |
201 | +AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |
202 | +AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
203 | +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | |
204 | + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |
205 | + [_AM_PROG_TAR([v7])])]) | |
206 | +_AM_IF_OPTION([no-dependencies],, | |
207 | +[AC_PROVIDE_IFELSE([AC_PROG_CC], | |
208 | + [_AM_DEPENDENCIES([CC])], | |
209 | + [m4_define([AC_PROG_CC], | |
210 | + m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl | |
211 | +AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
212 | + [_AM_DEPENDENCIES([CXX])], | |
213 | + [m4_define([AC_PROG_CXX], | |
214 | + m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl | |
215 | +AC_PROVIDE_IFELSE([AC_PROG_OBJC], | |
216 | + [_AM_DEPENDENCIES([OBJC])], | |
217 | + [m4_define([AC_PROG_OBJC], | |
218 | + m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl | |
219 | +dnl Support for Objective C++ was only introduced in Autoconf 2.65, | |
220 | +dnl but we still cater to Autoconf 2.62. | |
221 | +m4_ifdef([AC_PROG_OBJCXX], | |
222 | +[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], | |
223 | + [_AM_DEPENDENCIES([OBJCXX])], | |
224 | + [m4_define([AC_PROG_OBJCXX], | |
225 | + m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl | |
226 | +]) | |
227 | +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl | |
228 | +dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the | |
229 | +dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro | |
230 | +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
231 | +AC_CONFIG_COMMANDS_PRE(dnl | |
232 | +[m4_provide_if([_AM_COMPILER_EXEEXT], | |
233 | + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl | |
234 | +]) | |
235 | + | |
236 | +dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
237 | +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further | |
238 | +dnl mangled by Autoconf and run in a shell conditional statement. | |
239 | +m4_define([_AC_COMPILER_EXEEXT], | |
240 | +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) | |
241 | + | |
242 | + | |
243 | +# When config.status generates a header, we must update the stamp-h file. | |
244 | +# This file resides in the same directory as the config header | |
245 | +# that is generated. The stamp files are numbered to have different names. | |
246 | + | |
247 | +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | |
248 | +# loop where config.status creates the headers, so we can generate | |
249 | +# our stamp files there. | |
250 | +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | |
251 | +[# Compute $1's index in $config_headers. | |
252 | +_am_arg=$1 | |
253 | +_am_stamp_count=1 | |
254 | +for _am_header in $config_headers :; do | |
255 | + case $_am_header in | |
256 | + $_am_arg | $_am_arg:* ) | |
257 | + break ;; | |
258 | + * ) | |
259 | + _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
260 | + esac | |
261 | +done | |
262 | +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | |
263 | + | |
264 | +# Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
265 | +# | |
266 | +# This file is free software; the Free Software Foundation | |
267 | +# gives unlimited permission to copy and/or distribute it, | |
268 | +# with or without modifications, as long as this notice is preserved. | |
269 | + | |
270 | +# AM_PROG_INSTALL_SH | |
271 | +# ------------------ | |
272 | +# Define $install_sh. | |
273 | +AC_DEFUN([AM_PROG_INSTALL_SH], | |
274 | +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
275 | +if test x"${install_sh}" != xset; then | |
276 | + case $am_aux_dir in | |
277 | + *\ * | *\ *) | |
278 | + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
279 | + *) | |
280 | + install_sh="\${SHELL} $am_aux_dir/install-sh" | |
281 | + esac | |
282 | +fi | |
283 | +AC_SUBST([install_sh])]) | |
284 | + | |
285 | +# Copyright (C) 2003-2012 Free Software Foundation, Inc. | |
286 | +# | |
287 | +# This file is free software; the Free Software Foundation | |
288 | +# gives unlimited permission to copy and/or distribute it, | |
289 | +# with or without modifications, as long as this notice is preserved. | |
290 | + | |
291 | +# Check whether the underlying file-system supports filenames | |
292 | +# with a leading dot. For instance MS-DOS doesn't. | |
293 | +AC_DEFUN([AM_SET_LEADING_DOT], | |
294 | +[rm -rf .tst 2>/dev/null | |
295 | +mkdir .tst 2>/dev/null | |
296 | +if test -d .tst; then | |
297 | + am__leading_dot=. | |
298 | +else | |
299 | + am__leading_dot=_ | |
300 | +fi | |
301 | +rmdir .tst 2>/dev/null | |
302 | +AC_SUBST([am__leading_dot])]) | |
303 | + | |
304 | +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | |
305 | + | |
306 | +# Copyright (C) 1997-2012 Free Software Foundation, Inc. | |
307 | +# | |
308 | +# This file is free software; the Free Software Foundation | |
309 | +# gives unlimited permission to copy and/or distribute it, | |
310 | +# with or without modifications, as long as this notice is preserved. | |
311 | + | |
312 | +# AM_MISSING_PROG(NAME, PROGRAM) | |
313 | +# ------------------------------ | |
314 | +AC_DEFUN([AM_MISSING_PROG], | |
315 | +[AC_REQUIRE([AM_MISSING_HAS_RUN]) | |
316 | +$1=${$1-"${am_missing_run}$2"} | |
317 | +AC_SUBST($1)]) | |
318 | + | |
319 | +# AM_MISSING_HAS_RUN | |
320 | +# ------------------ | |
321 | +# Define MISSING if not defined so far and test if it supports --run. | |
322 | +# If it does, set am_missing_run to use it, otherwise, to nothing. | |
323 | +AC_DEFUN([AM_MISSING_HAS_RUN], | |
324 | +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
325 | +AC_REQUIRE_AUX_FILE([missing])dnl | |
326 | +if test x"${MISSING+set}" != xset; then | |
327 | + case $am_aux_dir in | |
328 | + *\ * | *\ *) | |
329 | + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
330 | + *) | |
331 | + MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
332 | + esac | |
333 | +fi | |
334 | +# Use eval to expand $SHELL | |
335 | +if eval "$MISSING --run true"; then | |
336 | + am_missing_run="$MISSING --run " | |
337 | +else | |
338 | + am_missing_run= | |
339 | + AC_MSG_WARN(['missing' script is too old or missing]) | |
340 | +fi | |
341 | +]) | |
342 | + | |
343 | +# Helper functions for option handling. -*- Autoconf -*- | |
344 | + | |
345 | +# Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
346 | +# | |
347 | +# This file is free software; the Free Software Foundation | |
348 | +# gives unlimited permission to copy and/or distribute it, | |
349 | +# with or without modifications, as long as this notice is preserved. | |
350 | + | |
351 | +# _AM_MANGLE_OPTION(NAME) | |
352 | +# ----------------------- | |
353 | +AC_DEFUN([_AM_MANGLE_OPTION], | |
354 | +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
355 | + | |
356 | +# _AM_SET_OPTION(NAME) | |
357 | +# -------------------- | |
358 | +# Set option NAME. Presently that only means defining a flag for this option. | |
359 | +AC_DEFUN([_AM_SET_OPTION], | |
360 | +[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) | |
361 | + | |
362 | +# _AM_SET_OPTIONS(OPTIONS) | |
363 | +# ------------------------ | |
364 | +# OPTIONS is a space-separated list of Automake options. | |
365 | +AC_DEFUN([_AM_SET_OPTIONS], | |
366 | +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
367 | + | |
368 | +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
369 | +# ------------------------------------------- | |
370 | +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
371 | +AC_DEFUN([_AM_IF_OPTION], | |
372 | +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
373 | + | |
374 | +# Check to make sure that the build environment is sane. -*- Autoconf -*- | |
375 | + | |
376 | +# Copyright (C) 1996-2012 Free Software Foundation, Inc. | |
377 | +# | |
378 | +# This file is free software; the Free Software Foundation | |
379 | +# gives unlimited permission to copy and/or distribute it, | |
380 | +# with or without modifications, as long as this notice is preserved. | |
381 | + | |
382 | +# AM_SANITY_CHECK | |
383 | +# --------------- | |
384 | +AC_DEFUN([AM_SANITY_CHECK], | |
385 | +[AC_MSG_CHECKING([whether build environment is sane]) | |
386 | +# Reject unsafe characters in $srcdir or the absolute working directory | |
387 | +# name. Accept space and tab only in the latter. | |
388 | +am_lf=' | |
389 | +' | |
390 | +case `pwd` in | |
391 | + *[[\\\"\#\$\&\'\`$am_lf]]*) | |
392 | + AC_MSG_ERROR([unsafe absolute working directory name]);; | |
393 | +esac | |
394 | +case $srcdir in | |
395 | + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) | |
396 | + AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; | |
397 | +esac | |
398 | + | |
399 | +# Do 'set' in a subshell so we don't clobber the current shell's | |
400 | +# arguments. Must try -L first in case configure is actually a | |
401 | +# symlink; some systems play weird games with the mod time of symlinks | |
402 | +# (eg FreeBSD returns the mod time of the symlink's containing | |
403 | +# directory). | |
404 | +if ( | |
405 | + am_has_slept=no | |
406 | + for am_try in 1 2; do | |
407 | + echo "timestamp, slept: $am_has_slept" > conftest.file | |
408 | + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
409 | + if test "$[*]" = "X"; then | |
410 | + # -L didn't work. | |
411 | + set X `ls -t "$srcdir/configure" conftest.file` | |
412 | + fi | |
413 | + if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
414 | + && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
415 | + | |
416 | + # If neither matched, then we have a broken ls. This can happen | |
417 | + # if, for instance, CONFIG_SHELL is bash and it inherits a | |
418 | + # broken ls alias from the environment. This has actually | |
419 | + # happened. Such a system could not be considered "sane". | |
420 | + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
421 | + alias in your environment]) | |
422 | + fi | |
423 | + if test "$[2]" = conftest.file || test $am_try -eq 2; then | |
424 | + break | |
425 | + fi | |
426 | + # Just in case. | |
427 | + sleep 1 | |
428 | + am_has_slept=yes | |
429 | + done | |
430 | + test "$[2]" = conftest.file | |
431 | + ) | |
432 | +then | |
433 | + # Ok. | |
434 | + : | |
435 | +else | |
436 | + AC_MSG_ERROR([newly created file is older than distributed files! | |
437 | +Check your system clock]) | |
438 | +fi | |
439 | +AC_MSG_RESULT([yes]) | |
440 | +# If we didn't sleep, we still need to ensure time stamps of config.status and | |
441 | +# generated files are strictly newer. | |
442 | +am_sleep_pid= | |
443 | +if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
444 | + ( sleep 1 ) & | |
445 | + am_sleep_pid=$! | |
446 | +fi | |
447 | +AC_CONFIG_COMMANDS_PRE( | |
448 | + [AC_MSG_CHECKING([that generated files are newer than configure]) | |
449 | + if test -n "$am_sleep_pid"; then | |
450 | + # Hide warnings about reused PIDs. | |
451 | + wait $am_sleep_pid 2>/dev/null | |
452 | + fi | |
453 | + AC_MSG_RESULT([done])]) | |
454 | +rm -f conftest.file | |
455 | +]) | |
456 | + | |
457 | +# Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
458 | +# | |
459 | +# This file is free software; the Free Software Foundation | |
460 | +# gives unlimited permission to copy and/or distribute it, | |
461 | +# with or without modifications, as long as this notice is preserved. | |
462 | + | |
463 | +# AM_PROG_INSTALL_STRIP | |
464 | +# --------------------- | |
465 | +# One issue with vendor 'install' (even GNU) is that you can't | |
466 | +# specify the program used to strip binaries. This is especially | |
467 | +# annoying in cross-compiling environments, where the build's strip | |
468 | +# is unlikely to handle the host's binaries. | |
469 | +# Fortunately install-sh will honor a STRIPPROG variable, so we | |
470 | +# always use install-sh in "make install-strip", and initialize | |
471 | +# STRIPPROG with the value of the STRIP variable (set by the user). | |
472 | +AC_DEFUN([AM_PROG_INSTALL_STRIP], | |
473 | +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
474 | +# Installed binaries are usually stripped using 'strip' when the user | |
475 | +# run "make install-strip". However 'strip' might not be the right | |
476 | +# tool to use in cross-compilation environments, therefore Automake | |
477 | +# will honor the 'STRIP' environment variable to overrule this program. | |
478 | +dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. | |
479 | +if test "$cross_compiling" != no; then | |
480 | + AC_CHECK_TOOL([STRIP], [strip], :) | |
481 | +fi | |
482 | +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
483 | +AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
484 | + | |
485 | +# Copyright (C) 2006-2012 Free Software Foundation, Inc. | |
486 | +# | |
487 | +# This file is free software; the Free Software Foundation | |
488 | +# gives unlimited permission to copy and/or distribute it, | |
489 | +# with or without modifications, as long as this notice is preserved. | |
490 | + | |
491 | +# _AM_SUBST_NOTMAKE(VARIABLE) | |
492 | +# --------------------------- | |
493 | +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | |
494 | +# This macro is traced by Automake. | |
495 | +AC_DEFUN([_AM_SUBST_NOTMAKE]) | |
496 | + | |
497 | +# AM_SUBST_NOTMAKE(VARIABLE) | |
498 | +# -------------------------- | |
499 | +# Public sister of _AM_SUBST_NOTMAKE. | |
500 | +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | |
501 | + | |
502 | +# Check how to create a tarball. -*- Autoconf -*- | |
503 | + | |
504 | +# Copyright (C) 2004-2012 Free Software Foundation, Inc. | |
505 | +# | |
506 | +# This file is free software; the Free Software Foundation | |
507 | +# gives unlimited permission to copy and/or distribute it, | |
508 | +# with or without modifications, as long as this notice is preserved. | |
509 | + | |
510 | +# _AM_PROG_TAR(FORMAT) | |
511 | +# -------------------- | |
512 | +# Check how to create a tarball in format FORMAT. | |
513 | +# FORMAT should be one of 'v7', 'ustar', or 'pax'. | |
514 | +# | |
515 | +# Substitute a variable $(am__tar) that is a command | |
516 | +# writing to stdout a FORMAT-tarball containing the directory | |
517 | +# $tardir. | |
518 | +# tardir=directory && $(am__tar) > result.tar | |
519 | +# | |
520 | +# Substitute a variable $(am__untar) that extract such | |
521 | +# a tarball read from stdin. | |
522 | +# $(am__untar) < result.tar | |
523 | +AC_DEFUN([_AM_PROG_TAR], | |
524 | +[# Always define AMTAR for backward compatibility. Yes, it's still used | |
525 | +# in the wild :-( We should find a proper way to deprecate it ... | |
526 | +AC_SUBST([AMTAR], ['$${TAR-tar}']) | |
527 | +m4_if([$1], [v7], | |
528 | + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], | |
529 | + [m4_case([$1], [ustar],, [pax],, | |
530 | + [m4_fatal([Unknown tar format])]) | |
531 | +AC_MSG_CHECKING([how to create a $1 tar archive]) | |
532 | +# Loop over all known methods to create a tar archive until one works. | |
533 | +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
534 | +_am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
535 | +# Do not fold the above two line into one, because Tru64 sh and | |
536 | +# Solaris sh will not grok spaces in the rhs of '-'. | |
537 | +for _am_tool in $_am_tools | |
538 | +do | |
539 | + case $_am_tool in | |
540 | + gnutar) | |
541 | + for _am_tar in tar gnutar gtar; | |
542 | + do | |
543 | + AM_RUN_LOG([$_am_tar --version]) && break | |
544 | + done | |
545 | + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
546 | + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
547 | + am__untar="$_am_tar -xf -" | |
548 | + ;; | |
549 | + plaintar) | |
550 | + # Must skip GNU tar: if it does not support --format= it doesn't create | |
551 | + # ustar tarball either. | |
552 | + (tar --version) >/dev/null 2>&1 && continue | |
553 | + am__tar='tar chf - "$$tardir"' | |
554 | + am__tar_='tar chf - "$tardir"' | |
555 | + am__untar='tar xf -' | |
556 | + ;; | |
557 | + pax) | |
558 | + am__tar='pax -L -x $1 -w "$$tardir"' | |
559 | + am__tar_='pax -L -x $1 -w "$tardir"' | |
560 | + am__untar='pax -r' | |
561 | + ;; | |
562 | + cpio) | |
563 | + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
564 | + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
565 | + am__untar='cpio -i -H $1 -d' | |
566 | + ;; | |
567 | + none) | |
568 | + am__tar=false | |
569 | + am__tar_=false | |
570 | + am__untar=false | |
571 | + ;; | |
572 | + esac | |
573 | + | |
574 | + # If the value was cached, stop now. We just wanted to have am__tar | |
575 | + # and am__untar set. | |
576 | + test -n "${am_cv_prog_tar_$1}" && break | |
577 | + | |
578 | + # tar/untar a dummy directory, and stop if the command works | |
579 | + rm -rf conftest.dir | |
580 | + mkdir conftest.dir | |
581 | + echo GrepMe > conftest.dir/file | |
582 | + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
583 | + rm -rf conftest.dir | |
584 | + if test -s conftest.tar; then | |
585 | + AM_RUN_LOG([$am__untar <conftest.tar]) | |
586 | + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
587 | + fi | |
588 | +done | |
589 | +rm -rf conftest.dir | |
590 | + | |
591 | +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
592 | +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
593 | +AC_SUBST([am__tar]) | |
594 | +AC_SUBST([am__untar]) | |
595 | +]) # _AM_PROG_TAR | |
596 | + |
@@ -0,0 +1,3616 @@ | ||
1 | +#! /bin/sh | |
2 | +# Guess values for system-dependent variables and create Makefiles. | |
3 | +# Generated by GNU Autoconf 2.69 for autotoolstest mono.01. | |
4 | +# | |
5 | +# Report bugs to <matsuand AT users DT sourceforge DT jp>. | |
6 | +# | |
7 | +# | |
8 | +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
9 | +# | |
10 | +# | |
11 | +# This configure script is free software; the Free Software Foundation | |
12 | +# gives unlimited permission to copy, distribute and modify it. | |
13 | +## -------------------- ## | |
14 | +## M4sh Initialization. ## | |
15 | +## -------------------- ## | |
16 | + | |
17 | +# Be more Bourne compatible | |
18 | +DUALCASE=1; export DUALCASE # for MKS sh | |
19 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20 | + emulate sh | |
21 | + NULLCMD=: | |
22 | + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
23 | + # is contrary to our usage. Disable this feature. | |
24 | + alias -g '${1+"$@"}'='"$@"' | |
25 | + setopt NO_GLOB_SUBST | |
26 | +else | |
27 | + case `(set -o) 2>/dev/null` in #( | |
28 | + *posix*) : | |
29 | + set -o posix ;; #( | |
30 | + *) : | |
31 | + ;; | |
32 | +esac | |
33 | +fi | |
34 | + | |
35 | + | |
36 | +as_nl=' | |
37 | +' | |
38 | +export as_nl | |
39 | +# Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | +# Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | +# but without wasting forks for bash or zsh. | |
45 | +if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | + as_echo='print -r --' | |
48 | + as_echo_n='print -rn --' | |
49 | +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | + as_echo='printf %s\n' | |
51 | + as_echo_n='printf %s' | |
52 | +else | |
53 | + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | + as_echo_n='/usr/ucb/echo -n' | |
56 | + else | |
57 | + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | + as_echo_n_body='eval | |
59 | + arg=$1; | |
60 | + case $arg in #( | |
61 | + *"$as_nl"*) | |
62 | + expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | + esac; | |
65 | + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | + ' | |
67 | + export as_echo_n_body | |
68 | + as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | + fi | |
70 | + export as_echo_body | |
71 | + as_echo='sh -c $as_echo_body as_echo' | |
72 | +fi | |
73 | + | |
74 | +# The user is always right. | |
75 | +if test "${PATH_SEPARATOR+set}" != set; then | |
76 | + PATH_SEPARATOR=: | |
77 | + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | + PATH_SEPARATOR=';' | |
80 | + } | |
81 | +fi | |
82 | + | |
83 | + | |
84 | +# IFS | |
85 | +# We need space, tab and new line, in precisely that order. Quoting is | |
86 | +# there to prevent editors from complaining about space-tab. | |
87 | +# (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | +# splitting by setting IFS to empty value.) | |
89 | +IFS=" "" $as_nl" | |
90 | + | |
91 | +# Find who we are. Look in the path if we contain no directory separator. | |
92 | +as_myself= | |
93 | +case $0 in #(( | |
94 | + *[\\/]* ) as_myself=$0 ;; | |
95 | + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | +for as_dir in $PATH | |
97 | +do | |
98 | + IFS=$as_save_IFS | |
99 | + test -z "$as_dir" && as_dir=. | |
100 | + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 | + done | |
102 | +IFS=$as_save_IFS | |
103 | + | |
104 | + ;; | |
105 | +esac | |
106 | +# We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | +# in which case we are not to be found in the path. | |
108 | +if test "x$as_myself" = x; then | |
109 | + as_myself=$0 | |
110 | +fi | |
111 | +if test ! -f "$as_myself"; then | |
112 | + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 | + exit 1 | |
114 | +fi | |
115 | + | |
116 | +# Unset variables that we do not need and which cause bugs (e.g. in | |
117 | +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | +# suppresses any "Segmentation fault" message there. '((' could | |
119 | +# trigger a bug in pdksh 5.2.14. | |
120 | +for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | +do eval test x\${$as_var+set} = xset \ | |
122 | + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 | +done | |
124 | +PS1='$ ' | |
125 | +PS2='> ' | |
126 | +PS4='+ ' | |
127 | + | |
128 | +# NLS nuisances. | |
129 | +LC_ALL=C | |
130 | +export LC_ALL | |
131 | +LANGUAGE=C | |
132 | +export LANGUAGE | |
133 | + | |
134 | +# CDPATH. | |
135 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | + | |
137 | +# Use a proper internal environment variable to ensure we don't fall | |
138 | + # into an infinite loop, continuously re-executing ourselves. | |
139 | + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | + _as_can_reexec=no; export _as_can_reexec; | |
141 | + # We cannot yet assume a decent shell, so we have to provide a | |
142 | +# neutralization value for shells without unset; and this also | |
143 | +# works around shells that cannot unset nonexistent variables. | |
144 | +# Preserve -v and -x to the replacement shell. | |
145 | +BASH_ENV=/dev/null | |
146 | +ENV=/dev/null | |
147 | +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | +case $- in # (((( | |
149 | + *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | + *v* ) as_opts=-v ;; | |
151 | + *x* ) as_opts=-x ;; | |
152 | + * ) as_opts= ;; | |
153 | +esac | |
154 | +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | +# Admittedly, this is quite paranoid, since all the known shells bail | |
156 | +# out after a failed `exec'. | |
157 | +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | +as_fn_exit 255 | |
159 | + fi | |
160 | + # We don't want this to propagate to other subprocesses. | |
161 | + { _as_can_reexec=; unset _as_can_reexec;} | |
162 | +if test "x$CONFIG_SHELL" = x; then | |
163 | + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | + emulate sh | |
165 | + NULLCMD=: | |
166 | + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | + # is contrary to our usage. Disable this feature. | |
168 | + alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | + setopt NO_GLOB_SUBST | |
170 | +else | |
171 | + case \`(set -o) 2>/dev/null\` in #( | |
172 | + *posix*) : | |
173 | + set -o posix ;; #( | |
174 | + *) : | |
175 | + ;; | |
176 | +esac | |
177 | +fi | |
178 | +" | |
179 | + as_required="as_fn_return () { (exit \$1); } | |
180 | +as_fn_success () { as_fn_return 0; } | |
181 | +as_fn_failure () { as_fn_return 1; } | |
182 | +as_fn_ret_success () { return 0; } | |
183 | +as_fn_ret_failure () { return 1; } | |
184 | + | |
185 | +exitcode=0 | |
186 | +as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | + | |
192 | +else | |
193 | + exitcode=1; echo positional parameters were not saved. | |
194 | +fi | |
195 | +test x\$exitcode = x0 || exit 1 | |
196 | +test -x / || exit 1" | |
197 | + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
198 | + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" | |
201 | + if (eval "$as_required") 2>/dev/null; then : | |
202 | + as_have_required=yes | |
203 | +else | |
204 | + as_have_required=no | |
205 | +fi | |
206 | + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
207 | + | |
208 | +else | |
209 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
210 | +as_found=false | |
211 | +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
212 | +do | |
213 | + IFS=$as_save_IFS | |
214 | + test -z "$as_dir" && as_dir=. | |
215 | + as_found=: | |
216 | + case $as_dir in #( | |
217 | + /*) | |
218 | + for as_base in sh bash ksh sh5; do | |
219 | + # Try only shells that exist, to save several forks. | |
220 | + as_shell=$as_dir/$as_base | |
221 | + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
222 | + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
223 | + CONFIG_SHELL=$as_shell as_have_required=yes | |
224 | + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
225 | + break 2 | |
226 | +fi | |
227 | +fi | |
228 | + done;; | |
229 | + esac | |
230 | + as_found=false | |
231 | +done | |
232 | +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
233 | + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
234 | + CONFIG_SHELL=$SHELL as_have_required=yes | |
235 | +fi; } | |
236 | +IFS=$as_save_IFS | |
237 | + | |
238 | + | |
239 | + if test "x$CONFIG_SHELL" != x; then : | |
240 | + export CONFIG_SHELL | |
241 | + # We cannot yet assume a decent shell, so we have to provide a | |
242 | +# neutralization value for shells without unset; and this also | |
243 | +# works around shells that cannot unset nonexistent variables. | |
244 | +# Preserve -v and -x to the replacement shell. | |
245 | +BASH_ENV=/dev/null | |
246 | +ENV=/dev/null | |
247 | +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
248 | +case $- in # (((( | |
249 | + *v*x* | *x*v* ) as_opts=-vx ;; | |
250 | + *v* ) as_opts=-v ;; | |
251 | + *x* ) as_opts=-x ;; | |
252 | + * ) as_opts= ;; | |
253 | +esac | |
254 | +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
255 | +# Admittedly, this is quite paranoid, since all the known shells bail | |
256 | +# out after a failed `exec'. | |
257 | +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
258 | +exit 255 | |
259 | +fi | |
260 | + | |
261 | + if test x$as_have_required = xno; then : | |
262 | + $as_echo "$0: This script requires a shell more modern than all" | |
263 | + $as_echo "$0: the shells that I found on your system." | |
264 | + if test x${ZSH_VERSION+set} = xset ; then | |
265 | + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
266 | + $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
267 | + else | |
268 | + $as_echo "$0: Please tell bug-autoconf@gnu.org and matsuand AT users | |
269 | +$0: DT sourceforge DT jp about your system, including any | |
270 | +$0: error possibly output before this message. Then install | |
271 | +$0: a modern shell, or manually run the script under such a | |
272 | +$0: shell if you do have one." | |
273 | + fi | |
274 | + exit 1 | |
275 | +fi | |
276 | +fi | |
277 | +fi | |
278 | +SHELL=${CONFIG_SHELL-/bin/sh} | |
279 | +export SHELL | |
280 | +# Unset more variables known to interfere with behavior of common tools. | |
281 | +CLICOLOR_FORCE= GREP_OPTIONS= | |
282 | +unset CLICOLOR_FORCE GREP_OPTIONS | |
283 | + | |
284 | +## --------------------- ## | |
285 | +## M4sh Shell Functions. ## | |
286 | +## --------------------- ## | |
287 | +# as_fn_unset VAR | |
288 | +# --------------- | |
289 | +# Portably unset VAR. | |
290 | +as_fn_unset () | |
291 | +{ | |
292 | + { eval $1=; unset $1;} | |
293 | +} | |
294 | +as_unset=as_fn_unset | |
295 | + | |
296 | +# as_fn_set_status STATUS | |
297 | +# ----------------------- | |
298 | +# Set $? to STATUS, without forking. | |
299 | +as_fn_set_status () | |
300 | +{ | |
301 | + return $1 | |
302 | +} # as_fn_set_status | |
303 | + | |
304 | +# as_fn_exit STATUS | |
305 | +# ----------------- | |
306 | +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
307 | +as_fn_exit () | |
308 | +{ | |
309 | + set +e | |
310 | + as_fn_set_status $1 | |
311 | + exit $1 | |
312 | +} # as_fn_exit | |
313 | + | |
314 | +# as_fn_mkdir_p | |
315 | +# ------------- | |
316 | +# Create "$as_dir" as a directory, including parents if necessary. | |
317 | +as_fn_mkdir_p () | |
318 | +{ | |
319 | + | |
320 | + case $as_dir in #( | |
321 | + -*) as_dir=./$as_dir;; | |
322 | + esac | |
323 | + test -d "$as_dir" || eval $as_mkdir_p || { | |
324 | + as_dirs= | |
325 | + while :; do | |
326 | + case $as_dir in #( | |
327 | + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
328 | + *) as_qdir=$as_dir;; | |
329 | + esac | |
330 | + as_dirs="'$as_qdir' $as_dirs" | |
331 | + as_dir=`$as_dirname -- "$as_dir" || | |
332 | +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
333 | + X"$as_dir" : 'X\(//\)[^/]' \| \ | |
334 | + X"$as_dir" : 'X\(//\)$' \| \ | |
335 | + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
336 | +$as_echo X"$as_dir" | | |
337 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
338 | + s//\1/ | |
339 | + q | |
340 | + } | |
341 | + /^X\(\/\/\)[^/].*/{ | |
342 | + s//\1/ | |
343 | + q | |
344 | + } | |
345 | + /^X\(\/\/\)$/{ | |
346 | + s//\1/ | |
347 | + q | |
348 | + } | |
349 | + /^X\(\/\).*/{ | |
350 | + s//\1/ | |
351 | + q | |
352 | + } | |
353 | + s/.*/./; q'` | |
354 | + test -d "$as_dir" && break | |
355 | + done | |
356 | + test -z "$as_dirs" || eval "mkdir $as_dirs" | |
357 | + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
358 | + | |
359 | + | |
360 | +} # as_fn_mkdir_p | |
361 | + | |
362 | +# as_fn_executable_p FILE | |
363 | +# ----------------------- | |
364 | +# Test if FILE is an executable regular file. | |
365 | +as_fn_executable_p () | |
366 | +{ | |
367 | + test -f "$1" && test -x "$1" | |
368 | +} # as_fn_executable_p | |
369 | +# as_fn_append VAR VALUE | |
370 | +# ---------------------- | |
371 | +# Append the text in VALUE to the end of the definition contained in VAR. Take | |
372 | +# advantage of any shell optimizations that allow amortized linear growth over | |
373 | +# repeated appends, instead of the typical quadratic growth present in naive | |
374 | +# implementations. | |
375 | +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
376 | + eval 'as_fn_append () | |
377 | + { | |
378 | + eval $1+=\$2 | |
379 | + }' | |
380 | +else | |
381 | + as_fn_append () | |
382 | + { | |
383 | + eval $1=\$$1\$2 | |
384 | + } | |
385 | +fi # as_fn_append | |
386 | + | |
387 | +# as_fn_arith ARG... | |
388 | +# ------------------ | |
389 | +# Perform arithmetic evaluation on the ARGs, and store the result in the | |
390 | +# global $as_val. Take advantage of shells that can avoid forks. The arguments | |
391 | +# must be portable across $(()) and expr. | |
392 | +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
393 | + eval 'as_fn_arith () | |
394 | + { | |
395 | + as_val=$(( $* )) | |
396 | + }' | |
397 | +else | |
398 | + as_fn_arith () | |
399 | + { | |
400 | + as_val=`expr "$@" || test $? -eq 1` | |
401 | + } | |
402 | +fi # as_fn_arith | |
403 | + | |
404 | + | |
405 | +# as_fn_error STATUS ERROR [LINENO LOG_FD] | |
406 | +# ---------------------------------------- | |
407 | +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
408 | +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
409 | +# script with STATUS, using 1 if that was 0. | |
410 | +as_fn_error () | |
411 | +{ | |
412 | + as_status=$1; test $as_status -eq 0 && as_status=1 | |
413 | + if test "$4"; then | |
414 | + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
415 | + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
416 | + fi | |
417 | + $as_echo "$as_me: error: $2" >&2 | |
418 | + as_fn_exit $as_status | |
419 | +} # as_fn_error | |
420 | + | |
421 | +if expr a : '\(a\)' >/dev/null 2>&1 && | |
422 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
423 | + as_expr=expr | |
424 | +else | |
425 | + as_expr=false | |
426 | +fi | |
427 | + | |
428 | +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
429 | + as_basename=basename | |
430 | +else | |
431 | + as_basename=false | |
432 | +fi | |
433 | + | |
434 | +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
435 | + as_dirname=dirname | |
436 | +else | |
437 | + as_dirname=false | |
438 | +fi | |
439 | + | |
440 | +as_me=`$as_basename -- "$0" || | |
441 | +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
442 | + X"$0" : 'X\(//\)$' \| \ | |
443 | + X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
444 | +$as_echo X/"$0" | | |
445 | + sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
446 | + s//\1/ | |
447 | + q | |
448 | + } | |
449 | + /^X\/\(\/\/\)$/{ | |
450 | + s//\1/ | |
451 | + q | |
452 | + } | |
453 | + /^X\/\(\/\).*/{ | |
454 | + s//\1/ | |
455 | + q | |
456 | + } | |
457 | + s/.*/./; q'` | |
458 | + | |
459 | +# Avoid depending upon Character Ranges. | |
460 | +as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
461 | +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
462 | +as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
463 | +as_cr_digits='0123456789' | |
464 | +as_cr_alnum=$as_cr_Letters$as_cr_digits | |
465 | + | |
466 | + | |
467 | + as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
468 | + as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
469 | + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
470 | + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
471 | + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
472 | + sed -n ' | |
473 | + p | |
474 | + /[$]LINENO/= | |
475 | + ' <$as_myself | | |
476 | + sed ' | |
477 | + s/[$]LINENO.*/&-/ | |
478 | + t lineno | |
479 | + b | |
480 | + :lineno | |
481 | + N | |
482 | + :loop | |
483 | + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
484 | + t loop | |
485 | + s/-\n.*// | |
486 | + ' >$as_me.lineno && | |
487 | + chmod +x "$as_me.lineno" || | |
488 | + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
489 | + | |
490 | + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
491 | + # already done that, so ensure we don't try to do so again and fall | |
492 | + # in an infinite loop. This has already happened in practice. | |
493 | + _as_can_reexec=no; export _as_can_reexec | |
494 | + # Don't try to exec as it changes $[0], causing all sort of problems | |
495 | + # (the dirname of $[0] is not the place where we might find the | |
496 | + # original and so on. Autoconf is especially sensitive to this). | |
497 | + . "./$as_me.lineno" | |
498 | + # Exit status is that of the last command. | |
499 | + exit | |
500 | +} | |
501 | + | |
502 | +ECHO_C= ECHO_N= ECHO_T= | |
503 | +case `echo -n x` in #((((( | |
504 | +-n*) | |
505 | + case `echo 'xy\c'` in | |
506 | + *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
507 | + xy) ECHO_C='\c';; | |
508 | + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
509 | + ECHO_T=' ';; | |
510 | + esac;; | |
511 | +*) | |
512 | + ECHO_N='-n';; | |
513 | +esac | |
514 | + | |
515 | +rm -f conf$$ conf$$.exe conf$$.file | |
516 | +if test -d conf$$.dir; then | |
517 | + rm -f conf$$.dir/conf$$.file | |
518 | +else | |
519 | + rm -f conf$$.dir | |
520 | + mkdir conf$$.dir 2>/dev/null | |
521 | +fi | |
522 | +if (echo >conf$$.file) 2>/dev/null; then | |
523 | + if ln -s conf$$.file conf$$ 2>/dev/null; then | |
524 | + as_ln_s='ln -s' | |
525 | + # ... but there are two gotchas: | |
526 | + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
527 | + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
528 | + # In both cases, we have to default to `cp -pR'. | |
529 | + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
530 | + as_ln_s='cp -pR' | |
531 | + elif ln conf$$.file conf$$ 2>/dev/null; then | |
532 | + as_ln_s=ln | |
533 | + else | |
534 | + as_ln_s='cp -pR' | |
535 | + fi | |
536 | +else | |
537 | + as_ln_s='cp -pR' | |
538 | +fi | |
539 | +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
540 | +rmdir conf$$.dir 2>/dev/null | |
541 | + | |
542 | +if mkdir -p . 2>/dev/null; then | |
543 | + as_mkdir_p='mkdir -p "$as_dir"' | |
544 | +else | |
545 | + test -d ./-p && rmdir ./-p | |
546 | + as_mkdir_p=false | |
547 | +fi | |
548 | + | |
549 | +as_test_x='test -x' | |
550 | +as_executable_p=as_fn_executable_p | |
551 | + | |
552 | +# Sed expression to map a string onto a valid CPP name. | |
553 | +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
554 | + | |
555 | +# Sed expression to map a string onto a valid variable name. | |
556 | +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
557 | + | |
558 | + | |
559 | +test -n "$DJDIR" || exec 7<&0 </dev/null | |
560 | +exec 6>&1 | |
561 | + | |
562 | +# Name of the host. | |
563 | +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
564 | +# so uname gets run too. | |
565 | +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
566 | + | |
567 | +# | |
568 | +# Initializations. | |
569 | +# | |
570 | +ac_default_prefix=/usr/local | |
571 | +ac_clean_files= | |
572 | +ac_config_libobj_dir=. | |
573 | +LIBOBJS= | |
574 | +cross_compiling=no | |
575 | +subdirs= | |
576 | +MFLAGS= | |
577 | +MAKEFLAGS= | |
578 | + | |
579 | +# Identity of this package. | |
580 | +PACKAGE_NAME='autotoolstest' | |
581 | +PACKAGE_TARNAME='autotoolstest' | |
582 | +PACKAGE_VERSION='mono.01' | |
583 | +PACKAGE_STRING='autotoolstest mono.01' | |
584 | +PACKAGE_BUGREPORT='matsuand AT users DT sourceforge DT jp' | |
585 | +PACKAGE_URL='' | |
586 | + | |
587 | +ac_subst_vars='LTLIBOBJS | |
588 | +LIBOBJS | |
589 | +ILDISASM | |
590 | +ILASM | |
591 | +RESGEN | |
592 | +CSC | |
593 | +am__untar | |
594 | +am__tar | |
595 | +AMTAR | |
596 | +am__leading_dot | |
597 | +SET_MAKE | |
598 | +AWK | |
599 | +mkdir_p | |
600 | +MKDIR_P | |
601 | +INSTALL_STRIP_PROGRAM | |
602 | +STRIP | |
603 | +install_sh | |
604 | +MAKEINFO | |
605 | +AUTOHEADER | |
606 | +AUTOMAKE | |
607 | +AUTOCONF | |
608 | +ACLOCAL | |
609 | +VERSION | |
610 | +PACKAGE | |
611 | +CYGPATH_W | |
612 | +am__isrc | |
613 | +INSTALL_DATA | |
614 | +INSTALL_SCRIPT | |
615 | +INSTALL_PROGRAM | |
616 | +target_alias | |
617 | +host_alias | |
618 | +build_alias | |
619 | +LIBS | |
620 | +ECHO_T | |
621 | +ECHO_N | |
622 | +ECHO_C | |
623 | +DEFS | |
624 | +mandir | |
625 | +localedir | |
626 | +libdir | |
627 | +psdir | |
628 | +pdfdir | |
629 | +dvidir | |
630 | +htmldir | |
631 | +infodir | |
632 | +docdir | |
633 | +oldincludedir | |
634 | +includedir | |
635 | +localstatedir | |
636 | +sharedstatedir | |
637 | +sysconfdir | |
638 | +datadir | |
639 | +datarootdir | |
640 | +libexecdir | |
641 | +sbindir | |
642 | +bindir | |
643 | +program_transform_name | |
644 | +prefix | |
645 | +exec_prefix | |
646 | +PACKAGE_URL | |
647 | +PACKAGE_BUGREPORT | |
648 | +PACKAGE_STRING | |
649 | +PACKAGE_VERSION | |
650 | +PACKAGE_TARNAME | |
651 | +PACKAGE_NAME | |
652 | +PATH_SEPARATOR | |
653 | +SHELL' | |
654 | +ac_subst_files='' | |
655 | +ac_user_opts=' | |
656 | +enable_option_checking | |
657 | +' | |
658 | + ac_precious_vars='build_alias | |
659 | +host_alias | |
660 | +target_alias' | |
661 | + | |
662 | + | |
663 | +# Initialize some variables set by options. | |
664 | +ac_init_help= | |
665 | +ac_init_version=false | |
666 | +ac_unrecognized_opts= | |
667 | +ac_unrecognized_sep= | |
668 | +# The variables have the same names as the options, with | |
669 | +# dashes changed to underlines. | |
670 | +cache_file=/dev/null | |
671 | +exec_prefix=NONE | |
672 | +no_create= | |
673 | +no_recursion= | |
674 | +prefix=NONE | |
675 | +program_prefix=NONE | |
676 | +program_suffix=NONE | |
677 | +program_transform_name=s,x,x, | |
678 | +silent= | |
679 | +site= | |
680 | +srcdir= | |
681 | +verbose= | |
682 | +x_includes=NONE | |
683 | +x_libraries=NONE | |
684 | + | |
685 | +# Installation directory options. | |
686 | +# These are left unexpanded so users can "make install exec_prefix=/foo" | |
687 | +# and all the variables that are supposed to be based on exec_prefix | |
688 | +# by default will actually change. | |
689 | +# Use braces instead of parens because sh, perl, etc. also accept them. | |
690 | +# (The list follows the same order as the GNU Coding Standards.) | |
691 | +bindir='${exec_prefix}/bin' | |
692 | +sbindir='${exec_prefix}/sbin' | |
693 | +libexecdir='${exec_prefix}/libexec' | |
694 | +datarootdir='${prefix}/share' | |
695 | +datadir='${datarootdir}' | |
696 | +sysconfdir='${prefix}/etc' | |
697 | +sharedstatedir='${prefix}/com' | |
698 | +localstatedir='${prefix}/var' | |
699 | +includedir='${prefix}/include' | |
700 | +oldincludedir='/usr/include' | |
701 | +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
702 | +infodir='${datarootdir}/info' | |
703 | +htmldir='${docdir}' | |
704 | +dvidir='${docdir}' | |
705 | +pdfdir='${docdir}' | |
706 | +psdir='${docdir}' | |
707 | +libdir='${exec_prefix}/lib' | |
708 | +localedir='${datarootdir}/locale' | |
709 | +mandir='${datarootdir}/man' | |
710 | + | |
711 | +ac_prev= | |
712 | +ac_dashdash= | |
713 | +for ac_option | |
714 | +do | |
715 | + # If the previous option needs an argument, assign it. | |
716 | + if test -n "$ac_prev"; then | |
717 | + eval $ac_prev=\$ac_option | |
718 | + ac_prev= | |
719 | + continue | |
720 | + fi | |
721 | + | |
722 | + case $ac_option in | |
723 | + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
724 | + *=) ac_optarg= ;; | |
725 | + *) ac_optarg=yes ;; | |
726 | + esac | |
727 | + | |
728 | + # Accept the important Cygnus configure options, so we can diagnose typos. | |
729 | + | |
730 | + case $ac_dashdash$ac_option in | |
731 | + --) | |
732 | + ac_dashdash=yes ;; | |
733 | + | |
734 | + -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
735 | + ac_prev=bindir ;; | |
736 | + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
737 | + bindir=$ac_optarg ;; | |
738 | + | |
739 | + -build | --build | --buil | --bui | --bu) | |
740 | + ac_prev=build_alias ;; | |
741 | + -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
742 | + build_alias=$ac_optarg ;; | |
743 | + | |
744 | + -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
745 | + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
746 | + ac_prev=cache_file ;; | |
747 | + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
748 | + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
749 | + cache_file=$ac_optarg ;; | |
750 | + | |
751 | + --config-cache | -C) | |
752 | + cache_file=config.cache ;; | |
753 | + | |
754 | + -datadir | --datadir | --datadi | --datad) | |
755 | + ac_prev=datadir ;; | |
756 | + -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
757 | + datadir=$ac_optarg ;; | |
758 | + | |
759 | + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
760 | + | --dataroo | --dataro | --datar) | |
761 | + ac_prev=datarootdir ;; | |
762 | + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
763 | + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
764 | + datarootdir=$ac_optarg ;; | |
765 | + | |
766 | + -disable-* | --disable-*) | |
767 | + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
768 | + # Reject names that are not valid shell variable names. | |
769 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
770 | + as_fn_error $? "invalid feature name: $ac_useropt" | |
771 | + ac_useropt_orig=$ac_useropt | |
772 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
773 | + case $ac_user_opts in | |
774 | + *" | |
775 | +"enable_$ac_useropt" | |
776 | +"*) ;; | |
777 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
778 | + ac_unrecognized_sep=', ';; | |
779 | + esac | |
780 | + eval enable_$ac_useropt=no ;; | |
781 | + | |
782 | + -docdir | --docdir | --docdi | --doc | --do) | |
783 | + ac_prev=docdir ;; | |
784 | + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
785 | + docdir=$ac_optarg ;; | |
786 | + | |
787 | + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
788 | + ac_prev=dvidir ;; | |
789 | + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
790 | + dvidir=$ac_optarg ;; | |
791 | + | |
792 | + -enable-* | --enable-*) | |
793 | + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
794 | + # Reject names that are not valid shell variable names. | |
795 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
796 | + as_fn_error $? "invalid feature name: $ac_useropt" | |
797 | + ac_useropt_orig=$ac_useropt | |
798 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
799 | + case $ac_user_opts in | |
800 | + *" | |
801 | +"enable_$ac_useropt" | |
802 | +"*) ;; | |
803 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
804 | + ac_unrecognized_sep=', ';; | |
805 | + esac | |
806 | + eval enable_$ac_useropt=\$ac_optarg ;; | |
807 | + | |
808 | + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
809 | + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
810 | + | --exec | --exe | --ex) | |
811 | + ac_prev=exec_prefix ;; | |
812 | + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
813 | + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
814 | + | --exec=* | --exe=* | --ex=*) | |
815 | + exec_prefix=$ac_optarg ;; | |
816 | + | |
817 | + -gas | --gas | --ga | --g) | |
818 | + # Obsolete; use --with-gas. | |
819 | + with_gas=yes ;; | |
820 | + | |
821 | + -help | --help | --hel | --he | -h) | |
822 | + ac_init_help=long ;; | |
823 | + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
824 | + ac_init_help=recursive ;; | |
825 | + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
826 | + ac_init_help=short ;; | |
827 | + | |
828 | + -host | --host | --hos | --ho) | |
829 | + ac_prev=host_alias ;; | |
830 | + -host=* | --host=* | --hos=* | --ho=*) | |
831 | + host_alias=$ac_optarg ;; | |
832 | + | |
833 | + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
834 | + ac_prev=htmldir ;; | |
835 | + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
836 | + | --ht=*) | |
837 | + htmldir=$ac_optarg ;; | |
838 | + | |
839 | + -includedir | --includedir | --includedi | --included | --include \ | |
840 | + | --includ | --inclu | --incl | --inc) | |
841 | + ac_prev=includedir ;; | |
842 | + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
843 | + | --includ=* | --inclu=* | --incl=* | --inc=*) | |
844 | + includedir=$ac_optarg ;; | |
845 | + | |
846 | + -infodir | --infodir | --infodi | --infod | --info | --inf) | |
847 | + ac_prev=infodir ;; | |
848 | + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
849 | + infodir=$ac_optarg ;; | |
850 | + | |
851 | + -libdir | --libdir | --libdi | --libd) | |
852 | + ac_prev=libdir ;; | |
853 | + -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
854 | + libdir=$ac_optarg ;; | |
855 | + | |
856 | + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
857 | + | --libexe | --libex | --libe) | |
858 | + ac_prev=libexecdir ;; | |
859 | + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
860 | + | --libexe=* | --libex=* | --libe=*) | |
861 | + libexecdir=$ac_optarg ;; | |
862 | + | |
863 | + -localedir | --localedir | --localedi | --localed | --locale) | |
864 | + ac_prev=localedir ;; | |
865 | + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
866 | + localedir=$ac_optarg ;; | |
867 | + | |
868 | + -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
869 | + | --localstate | --localstat | --localsta | --localst | --locals) | |
870 | + ac_prev=localstatedir ;; | |
871 | + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
872 | + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
873 | + localstatedir=$ac_optarg ;; | |
874 | + | |
875 | + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
876 | + ac_prev=mandir ;; | |
877 | + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
878 | + mandir=$ac_optarg ;; | |
879 | + | |
880 | + -nfp | --nfp | --nf) | |
881 | + # Obsolete; use --without-fp. | |
882 | + with_fp=no ;; | |
883 | + | |
884 | + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
885 | + | --no-cr | --no-c | -n) | |
886 | + no_create=yes ;; | |
887 | + | |
888 | + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
889 | + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
890 | + no_recursion=yes ;; | |
891 | + | |
892 | + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
893 | + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
894 | + | --oldin | --oldi | --old | --ol | --o) | |
895 | + ac_prev=oldincludedir ;; | |
896 | + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
897 | + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
898 | + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
899 | + oldincludedir=$ac_optarg ;; | |
900 | + | |
901 | + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
902 | + ac_prev=prefix ;; | |
903 | + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
904 | + prefix=$ac_optarg ;; | |
905 | + | |
906 | + -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
907 | + | --program-pre | --program-pr | --program-p) | |
908 | + ac_prev=program_prefix ;; | |
909 | + -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
910 | + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
911 | + program_prefix=$ac_optarg ;; | |
912 | + | |
913 | + -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
914 | + | --program-suf | --program-su | --program-s) | |
915 | + ac_prev=program_suffix ;; | |
916 | + -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
917 | + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
918 | + program_suffix=$ac_optarg ;; | |
919 | + | |
920 | + -program-transform-name | --program-transform-name \ | |
921 | + | --program-transform-nam | --program-transform-na \ | |
922 | + | --program-transform-n | --program-transform- \ | |
923 | + | --program-transform | --program-transfor \ | |
924 | + | --program-transfo | --program-transf \ | |
925 | + | --program-trans | --program-tran \ | |
926 | + | --progr-tra | --program-tr | --program-t) | |
927 | + ac_prev=program_transform_name ;; | |
928 | + -program-transform-name=* | --program-transform-name=* \ | |
929 | + | --program-transform-nam=* | --program-transform-na=* \ | |
930 | + | --program-transform-n=* | --program-transform-=* \ | |
931 | + | --program-transform=* | --program-transfor=* \ | |
932 | + | --program-transfo=* | --program-transf=* \ | |
933 | + | --program-trans=* | --program-tran=* \ | |
934 | + | --progr-tra=* | --program-tr=* | --program-t=*) | |
935 | + program_transform_name=$ac_optarg ;; | |
936 | + | |
937 | + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
938 | + ac_prev=pdfdir ;; | |
939 | + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
940 | + pdfdir=$ac_optarg ;; | |
941 | + | |
942 | + -psdir | --psdir | --psdi | --psd | --ps) | |
943 | + ac_prev=psdir ;; | |
944 | + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
945 | + psdir=$ac_optarg ;; | |
946 | + | |
947 | + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
948 | + | -silent | --silent | --silen | --sile | --sil) | |
949 | + silent=yes ;; | |
950 | + | |
951 | + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
952 | + ac_prev=sbindir ;; | |
953 | + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
954 | + | --sbi=* | --sb=*) | |
955 | + sbindir=$ac_optarg ;; | |
956 | + | |
957 | + -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
958 | + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
959 | + | --sharedst | --shareds | --shared | --share | --shar \ | |
960 | + | --sha | --sh) | |
961 | + ac_prev=sharedstatedir ;; | |
962 | + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
963 | + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
964 | + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
965 | + | --sha=* | --sh=*) | |
966 | + sharedstatedir=$ac_optarg ;; | |
967 | + | |
968 | + -site | --site | --sit) | |
969 | + ac_prev=site ;; | |
970 | + -site=* | --site=* | --sit=*) | |
971 | + site=$ac_optarg ;; | |
972 | + | |
973 | + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
974 | + ac_prev=srcdir ;; | |
975 | + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
976 | + srcdir=$ac_optarg ;; | |
977 | + | |
978 | + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
979 | + | --syscon | --sysco | --sysc | --sys | --sy) | |
980 | + ac_prev=sysconfdir ;; | |
981 | + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
982 | + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
983 | + sysconfdir=$ac_optarg ;; | |
984 | + | |
985 | + -target | --target | --targe | --targ | --tar | --ta | --t) | |
986 | + ac_prev=target_alias ;; | |
987 | + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
988 | + target_alias=$ac_optarg ;; | |
989 | + | |
990 | + -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
991 | + verbose=yes ;; | |
992 | + | |
993 | + -version | --version | --versio | --versi | --vers | -V) | |
994 | + ac_init_version=: ;; | |
995 | + | |
996 | + -with-* | --with-*) | |
997 | + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
998 | + # Reject names that are not valid shell variable names. | |
999 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1000 | + as_fn_error $? "invalid package name: $ac_useropt" | |
1001 | + ac_useropt_orig=$ac_useropt | |
1002 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1003 | + case $ac_user_opts in | |
1004 | + *" | |
1005 | +"with_$ac_useropt" | |
1006 | +"*) ;; | |
1007 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1008 | + ac_unrecognized_sep=', ';; | |
1009 | + esac | |
1010 | + eval with_$ac_useropt=\$ac_optarg ;; | |
1011 | + | |
1012 | + -without-* | --without-*) | |
1013 | + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1014 | + # Reject names that are not valid shell variable names. | |
1015 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1016 | + as_fn_error $? "invalid package name: $ac_useropt" | |
1017 | + ac_useropt_orig=$ac_useropt | |
1018 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1019 | + case $ac_user_opts in | |
1020 | + *" | |
1021 | +"with_$ac_useropt" | |
1022 | +"*) ;; | |
1023 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1024 | + ac_unrecognized_sep=', ';; | |
1025 | + esac | |
1026 | + eval with_$ac_useropt=no ;; | |
1027 | + | |
1028 | + --x) | |
1029 | + # Obsolete; use --with-x. | |
1030 | + with_x=yes ;; | |
1031 | + | |
1032 | + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1033 | + | --x-incl | --x-inc | --x-in | --x-i) | |
1034 | + ac_prev=x_includes ;; | |
1035 | + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1036 | + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1037 | + x_includes=$ac_optarg ;; | |
1038 | + | |
1039 | + -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1040 | + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1041 | + ac_prev=x_libraries ;; | |
1042 | + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1043 | + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1044 | + x_libraries=$ac_optarg ;; | |
1045 | + | |
1046 | + -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1047 | +Try \`$0 --help' for more information" | |
1048 | + ;; | |
1049 | + | |
1050 | + *=*) | |
1051 | + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1052 | + # Reject names that are not valid shell variable names. | |
1053 | + case $ac_envvar in #( | |
1054 | + '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1055 | + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1056 | + esac | |
1057 | + eval $ac_envvar=\$ac_optarg | |
1058 | + export $ac_envvar ;; | |
1059 | + | |
1060 | + *) | |
1061 | + # FIXME: should be removed in autoconf 3.0. | |
1062 | + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1063 | + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1064 | + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1065 | + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1066 | + ;; | |
1067 | + | |
1068 | + esac | |
1069 | +done | |
1070 | + | |
1071 | +if test -n "$ac_prev"; then | |
1072 | + ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1073 | + as_fn_error $? "missing argument to $ac_option" | |
1074 | +fi | |
1075 | + | |
1076 | +if test -n "$ac_unrecognized_opts"; then | |
1077 | + case $enable_option_checking in | |
1078 | + no) ;; | |
1079 | + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1080 | + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1081 | + esac | |
1082 | +fi | |
1083 | + | |
1084 | +# Check all directory arguments for consistency. | |
1085 | +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1086 | + datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1087 | + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1088 | + libdir localedir mandir | |
1089 | +do | |
1090 | + eval ac_val=\$$ac_var | |
1091 | + # Remove trailing slashes. | |
1092 | + case $ac_val in | |
1093 | + */ ) | |
1094 | + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1095 | + eval $ac_var=\$ac_val;; | |
1096 | + esac | |
1097 | + # Be sure to have absolute directory names. | |
1098 | + case $ac_val in | |
1099 | + [\\/$]* | ?:[\\/]* ) continue;; | |
1100 | + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1101 | + esac | |
1102 | + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1103 | +done | |
1104 | + | |
1105 | +# There might be people who depend on the old broken behavior: `$host' | |
1106 | +# used to hold the argument of --host etc. | |
1107 | +# FIXME: To remove some day. | |
1108 | +build=$build_alias | |
1109 | +host=$host_alias | |
1110 | +target=$target_alias | |
1111 | + | |
1112 | +# FIXME: To remove some day. | |
1113 | +if test "x$host_alias" != x; then | |
1114 | + if test "x$build_alias" = x; then | |
1115 | + cross_compiling=maybe | |
1116 | + elif test "x$build_alias" != "x$host_alias"; then | |
1117 | + cross_compiling=yes | |
1118 | + fi | |
1119 | +fi | |
1120 | + | |
1121 | +ac_tool_prefix= | |
1122 | +test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1123 | + | |
1124 | +test "$silent" = yes && exec 6>/dev/null | |
1125 | + | |
1126 | + | |
1127 | +ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1128 | +ac_ls_di=`ls -di .` && | |
1129 | +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1130 | + as_fn_error $? "working directory cannot be determined" | |
1131 | +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1132 | + as_fn_error $? "pwd does not report name of working directory" | |
1133 | + | |
1134 | + | |
1135 | +# Find the source files, if location was not specified. | |
1136 | +if test -z "$srcdir"; then | |
1137 | + ac_srcdir_defaulted=yes | |
1138 | + # Try the directory containing this script, then the parent directory. | |
1139 | + ac_confdir=`$as_dirname -- "$as_myself" || | |
1140 | +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1141 | + X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1142 | + X"$as_myself" : 'X\(//\)$' \| \ | |
1143 | + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1144 | +$as_echo X"$as_myself" | | |
1145 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1146 | + s//\1/ | |
1147 | + q | |
1148 | + } | |
1149 | + /^X\(\/\/\)[^/].*/{ | |
1150 | + s//\1/ | |
1151 | + q | |
1152 | + } | |
1153 | + /^X\(\/\/\)$/{ | |
1154 | + s//\1/ | |
1155 | + q | |
1156 | + } | |
1157 | + /^X\(\/\).*/{ | |
1158 | + s//\1/ | |
1159 | + q | |
1160 | + } | |
1161 | + s/.*/./; q'` | |
1162 | + srcdir=$ac_confdir | |
1163 | + if test ! -r "$srcdir/$ac_unique_file"; then | |
1164 | + srcdir=.. | |
1165 | + fi | |
1166 | +else | |
1167 | + ac_srcdir_defaulted=no | |
1168 | +fi | |
1169 | +if test ! -r "$srcdir/$ac_unique_file"; then | |
1170 | + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1171 | + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1172 | +fi | |
1173 | +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1174 | +ac_abs_confdir=`( | |
1175 | + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1176 | + pwd)` | |
1177 | +# When building in place, set srcdir=. | |
1178 | +if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1179 | + srcdir=. | |
1180 | +fi | |
1181 | +# Remove unnecessary trailing slashes from srcdir. | |
1182 | +# Double slashes in file names in object file debugging info | |
1183 | +# mess up M-x gdb in Emacs. | |
1184 | +case $srcdir in | |
1185 | +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1186 | +esac | |
1187 | +for ac_var in $ac_precious_vars; do | |
1188 | + eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1189 | + eval ac_env_${ac_var}_value=\$${ac_var} | |
1190 | + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1191 | + eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1192 | +done | |
1193 | + | |
1194 | +# | |
1195 | +# Report the --help message. | |
1196 | +# | |
1197 | +if test "$ac_init_help" = "long"; then | |
1198 | + # Omit some internal or obsolete options to make the list less imposing. | |
1199 | + # This message is too long to be a string in the A/UX 3.1 sh. | |
1200 | + cat <<_ACEOF | |
1201 | +\`configure' configures autotoolstest mono.01 to adapt to many kinds of systems. | |
1202 | + | |
1203 | +Usage: $0 [OPTION]... [VAR=VALUE]... | |
1204 | + | |
1205 | +To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1206 | +VAR=VALUE. See below for descriptions of some of the useful variables. | |
1207 | + | |
1208 | +Defaults for the options are specified in brackets. | |
1209 | + | |
1210 | +Configuration: | |
1211 | + -h, --help display this help and exit | |
1212 | + --help=short display options specific to this package | |
1213 | + --help=recursive display the short help of all the included packages | |
1214 | + -V, --version display version information and exit | |
1215 | + -q, --quiet, --silent do not print \`checking ...' messages | |
1216 | + --cache-file=FILE cache test results in FILE [disabled] | |
1217 | + -C, --config-cache alias for \`--cache-file=config.cache' | |
1218 | + -n, --no-create do not create output files | |
1219 | + --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1220 | + | |
1221 | +Installation directories: | |
1222 | + --prefix=PREFIX install architecture-independent files in PREFIX | |
1223 | + [$ac_default_prefix] | |
1224 | + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1225 | + [PREFIX] | |
1226 | + | |
1227 | +By default, \`make install' will install all the files in | |
1228 | +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1229 | +an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1230 | +for instance \`--prefix=\$HOME'. | |
1231 | + | |
1232 | +For better control, use the options below. | |
1233 | + | |
1234 | +Fine tuning of the installation directories: | |
1235 | + --bindir=DIR user executables [EPREFIX/bin] | |
1236 | + --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1237 | + --libexecdir=DIR program executables [EPREFIX/libexec] | |
1238 | + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1239 | + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1240 | + --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1241 | + --libdir=DIR object code libraries [EPREFIX/lib] | |
1242 | + --includedir=DIR C header files [PREFIX/include] | |
1243 | + --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1244 | + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1245 | + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1246 | + --infodir=DIR info documentation [DATAROOTDIR/info] | |
1247 | + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1248 | + --mandir=DIR man documentation [DATAROOTDIR/man] | |
1249 | + --docdir=DIR documentation root [DATAROOTDIR/doc/autotoolstest] | |
1250 | + --htmldir=DIR html documentation [DOCDIR] | |
1251 | + --dvidir=DIR dvi documentation [DOCDIR] | |
1252 | + --pdfdir=DIR pdf documentation [DOCDIR] | |
1253 | + --psdir=DIR ps documentation [DOCDIR] | |
1254 | +_ACEOF | |
1255 | + | |
1256 | + cat <<\_ACEOF | |
1257 | + | |
1258 | +Program names: | |
1259 | + --program-prefix=PREFIX prepend PREFIX to installed program names | |
1260 | + --program-suffix=SUFFIX append SUFFIX to installed program names | |
1261 | + --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1262 | +_ACEOF | |
1263 | +fi | |
1264 | + | |
1265 | +if test -n "$ac_init_help"; then | |
1266 | + case $ac_init_help in | |
1267 | + short | recursive ) echo "Configuration of autotoolstest mono.01:";; | |
1268 | + esac | |
1269 | + cat <<\_ACEOF | |
1270 | + | |
1271 | +Report bugs to <matsuand AT users DT sourceforge DT jp>. | |
1272 | +_ACEOF | |
1273 | +ac_status=$? | |
1274 | +fi | |
1275 | + | |
1276 | +if test "$ac_init_help" = "recursive"; then | |
1277 | + # If there are subdirs, report their specific --help. | |
1278 | + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1279 | + test -d "$ac_dir" || | |
1280 | + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1281 | + continue | |
1282 | + ac_builddir=. | |
1283 | + | |
1284 | +case "$ac_dir" in | |
1285 | +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1286 | +*) | |
1287 | + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1288 | + # A ".." for each directory in $ac_dir_suffix. | |
1289 | + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1290 | + case $ac_top_builddir_sub in | |
1291 | + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1292 | + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1293 | + esac ;; | |
1294 | +esac | |
1295 | +ac_abs_top_builddir=$ac_pwd | |
1296 | +ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1297 | +# for backward compatibility: | |
1298 | +ac_top_builddir=$ac_top_build_prefix | |
1299 | + | |
1300 | +case $srcdir in | |
1301 | + .) # We are building in place. | |
1302 | + ac_srcdir=. | |
1303 | + ac_top_srcdir=$ac_top_builddir_sub | |
1304 | + ac_abs_top_srcdir=$ac_pwd ;; | |
1305 | + [\\/]* | ?:[\\/]* ) # Absolute name. | |
1306 | + ac_srcdir=$srcdir$ac_dir_suffix; | |
1307 | + ac_top_srcdir=$srcdir | |
1308 | + ac_abs_top_srcdir=$srcdir ;; | |
1309 | + *) # Relative name. | |
1310 | + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1311 | + ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1312 | + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1313 | +esac | |
1314 | +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1315 | + | |
1316 | + cd "$ac_dir" || { ac_status=$?; continue; } | |
1317 | + # Check for guested configure. | |
1318 | + if test -f "$ac_srcdir/configure.gnu"; then | |
1319 | + echo && | |
1320 | + $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1321 | + elif test -f "$ac_srcdir/configure"; then | |
1322 | + echo && | |
1323 | + $SHELL "$ac_srcdir/configure" --help=recursive | |
1324 | + else | |
1325 | + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1326 | + fi || ac_status=$? | |
1327 | + cd "$ac_pwd" || { ac_status=$?; break; } | |
1328 | + done | |
1329 | +fi | |
1330 | + | |
1331 | +test -n "$ac_init_help" && exit $ac_status | |
1332 | +if $ac_init_version; then | |
1333 | + cat <<\_ACEOF | |
1334 | +autotoolstest configure mono.01 | |
1335 | +generated by GNU Autoconf 2.69 | |
1336 | + | |
1337 | +Copyright (C) 2012 Free Software Foundation, Inc. | |
1338 | +This configure script is free software; the Free Software Foundation | |
1339 | +gives unlimited permission to copy, distribute and modify it. | |
1340 | +_ACEOF | |
1341 | + exit | |
1342 | +fi | |
1343 | + | |
1344 | +## ------------------------ ## | |
1345 | +## Autoconf initialization. ## | |
1346 | +## ------------------------ ## | |
1347 | +cat >config.log <<_ACEOF | |
1348 | +This file contains any messages produced by compilers while | |
1349 | +running configure, to aid debugging if configure makes a mistake. | |
1350 | + | |
1351 | +It was created by autotoolstest $as_me mono.01, which was | |
1352 | +generated by GNU Autoconf 2.69. Invocation command line was | |
1353 | + | |
1354 | + $ $0 $@ | |
1355 | + | |
1356 | +_ACEOF | |
1357 | +exec 5>>config.log | |
1358 | +{ | |
1359 | +cat <<_ASUNAME | |
1360 | +## --------- ## | |
1361 | +## Platform. ## | |
1362 | +## --------- ## | |
1363 | + | |
1364 | +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1365 | +uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1366 | +uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1367 | +uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1368 | +uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1369 | + | |
1370 | +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1371 | +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1372 | + | |
1373 | +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1374 | +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1375 | +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1376 | +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1377 | +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1378 | +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1379 | +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1380 | + | |
1381 | +_ASUNAME | |
1382 | + | |
1383 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1384 | +for as_dir in $PATH | |
1385 | +do | |
1386 | + IFS=$as_save_IFS | |
1387 | + test -z "$as_dir" && as_dir=. | |
1388 | + $as_echo "PATH: $as_dir" | |
1389 | + done | |
1390 | +IFS=$as_save_IFS | |
1391 | + | |
1392 | +} >&5 | |
1393 | + | |
1394 | +cat >&5 <<_ACEOF | |
1395 | + | |
1396 | + | |
1397 | +## ----------- ## | |
1398 | +## Core tests. ## | |
1399 | +## ----------- ## | |
1400 | + | |
1401 | +_ACEOF | |
1402 | + | |
1403 | + | |
1404 | +# Keep a trace of the command line. | |
1405 | +# Strip out --no-create and --no-recursion so they do not pile up. | |
1406 | +# Strip out --silent because we don't want to record it for future runs. | |
1407 | +# Also quote any args containing shell meta-characters. | |
1408 | +# Make two passes to allow for proper duplicate-argument suppression. | |
1409 | +ac_configure_args= | |
1410 | +ac_configure_args0= | |
1411 | +ac_configure_args1= | |
1412 | +ac_must_keep_next=false | |
1413 | +for ac_pass in 1 2 | |
1414 | +do | |
1415 | + for ac_arg | |
1416 | + do | |
1417 | + case $ac_arg in | |
1418 | + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1419 | + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1420 | + | -silent | --silent | --silen | --sile | --sil) | |
1421 | + continue ;; | |
1422 | + *\'*) | |
1423 | + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1424 | + esac | |
1425 | + case $ac_pass in | |
1426 | + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1427 | + 2) | |
1428 | + as_fn_append ac_configure_args1 " '$ac_arg'" | |
1429 | + if test $ac_must_keep_next = true; then | |
1430 | + ac_must_keep_next=false # Got value, back to normal. | |
1431 | + else | |
1432 | + case $ac_arg in | |
1433 | + *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1434 | + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1435 | + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1436 | + | -with-* | --with-* | -without-* | --without-* | --x) | |
1437 | + case "$ac_configure_args0 " in | |
1438 | + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1439 | + esac | |
1440 | + ;; | |
1441 | + -* ) ac_must_keep_next=true ;; | |
1442 | + esac | |
1443 | + fi | |
1444 | + as_fn_append ac_configure_args " '$ac_arg'" | |
1445 | + ;; | |
1446 | + esac | |
1447 | + done | |
1448 | +done | |
1449 | +{ ac_configure_args0=; unset ac_configure_args0;} | |
1450 | +{ ac_configure_args1=; unset ac_configure_args1;} | |
1451 | + | |
1452 | +# When interrupted or exit'd, cleanup temporary files, and complete | |
1453 | +# config.log. We remove comments because anyway the quotes in there | |
1454 | +# would cause problems or look ugly. | |
1455 | +# WARNING: Use '\'' to represent an apostrophe within the trap. | |
1456 | +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1457 | +trap 'exit_status=$? | |
1458 | + # Save into config.log some information that might help in debugging. | |
1459 | + { | |
1460 | + echo | |
1461 | + | |
1462 | + $as_echo "## ---------------- ## | |
1463 | +## Cache variables. ## | |
1464 | +## ---------------- ##" | |
1465 | + echo | |
1466 | + # The following way of writing the cache mishandles newlines in values, | |
1467 | +( | |
1468 | + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1469 | + eval ac_val=\$$ac_var | |
1470 | + case $ac_val in #( | |
1471 | + *${as_nl}*) | |
1472 | + case $ac_var in #( | |
1473 | + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1474 | +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1475 | + esac | |
1476 | + case $ac_var in #( | |
1477 | + _ | IFS | as_nl) ;; #( | |
1478 | + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1479 | + *) { eval $ac_var=; unset $ac_var;} ;; | |
1480 | + esac ;; | |
1481 | + esac | |
1482 | + done | |
1483 | + (set) 2>&1 | | |
1484 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1485 | + *${as_nl}ac_space=\ *) | |
1486 | + sed -n \ | |
1487 | + "s/'\''/'\''\\\\'\'''\''/g; | |
1488 | + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1489 | + ;; #( | |
1490 | + *) | |
1491 | + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1492 | + ;; | |
1493 | + esac | | |
1494 | + sort | |
1495 | +) | |
1496 | + echo | |
1497 | + | |
1498 | + $as_echo "## ----------------- ## | |
1499 | +## Output variables. ## | |
1500 | +## ----------------- ##" | |
1501 | + echo | |
1502 | + for ac_var in $ac_subst_vars | |
1503 | + do | |
1504 | + eval ac_val=\$$ac_var | |
1505 | + case $ac_val in | |
1506 | + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1507 | + esac | |
1508 | + $as_echo "$ac_var='\''$ac_val'\''" | |
1509 | + done | sort | |
1510 | + echo | |
1511 | + | |
1512 | + if test -n "$ac_subst_files"; then | |
1513 | + $as_echo "## ------------------- ## | |
1514 | +## File substitutions. ## | |
1515 | +## ------------------- ##" | |
1516 | + echo | |
1517 | + for ac_var in $ac_subst_files | |
1518 | + do | |
1519 | + eval ac_val=\$$ac_var | |
1520 | + case $ac_val in | |
1521 | + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1522 | + esac | |
1523 | + $as_echo "$ac_var='\''$ac_val'\''" | |
1524 | + done | sort | |
1525 | + echo | |
1526 | + fi | |
1527 | + | |
1528 | + if test -s confdefs.h; then | |
1529 | + $as_echo "## ----------- ## | |
1530 | +## confdefs.h. ## | |
1531 | +## ----------- ##" | |
1532 | + echo | |
1533 | + cat confdefs.h | |
1534 | + echo | |
1535 | + fi | |
1536 | + test "$ac_signal" != 0 && | |
1537 | + $as_echo "$as_me: caught signal $ac_signal" | |
1538 | + $as_echo "$as_me: exit $exit_status" | |
1539 | + } >&5 | |
1540 | + rm -f core *.core core.conftest.* && | |
1541 | + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1542 | + exit $exit_status | |
1543 | +' 0 | |
1544 | +for ac_signal in 1 2 13 15; do | |
1545 | + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
1546 | +done | |
1547 | +ac_signal=0 | |
1548 | + | |
1549 | +# confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1550 | +rm -f -r conftest* confdefs.h | |
1551 | + | |
1552 | +$as_echo "/* confdefs.h */" > confdefs.h | |
1553 | + | |
1554 | +# Predefined preprocessor variables. | |
1555 | + | |
1556 | +cat >>confdefs.h <<_ACEOF | |
1557 | +#define PACKAGE_NAME "$PACKAGE_NAME" | |
1558 | +_ACEOF | |
1559 | + | |
1560 | +cat >>confdefs.h <<_ACEOF | |
1561 | +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1562 | +_ACEOF | |
1563 | + | |
1564 | +cat >>confdefs.h <<_ACEOF | |
1565 | +#define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1566 | +_ACEOF | |
1567 | + | |
1568 | +cat >>confdefs.h <<_ACEOF | |
1569 | +#define PACKAGE_STRING "$PACKAGE_STRING" | |
1570 | +_ACEOF | |
1571 | + | |
1572 | +cat >>confdefs.h <<_ACEOF | |
1573 | +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1574 | +_ACEOF | |
1575 | + | |
1576 | +cat >>confdefs.h <<_ACEOF | |
1577 | +#define PACKAGE_URL "$PACKAGE_URL" | |
1578 | +_ACEOF | |
1579 | + | |
1580 | + | |
1581 | +# Let the site file select an alternate cache file if it wants to. | |
1582 | +# Prefer an explicitly selected file to automatically selected ones. | |
1583 | +ac_site_file1=NONE | |
1584 | +ac_site_file2=NONE | |
1585 | +if test -n "$CONFIG_SITE"; then | |
1586 | + # We do not want a PATH search for config.site. | |
1587 | + case $CONFIG_SITE in #(( | |
1588 | + -*) ac_site_file1=./$CONFIG_SITE;; | |
1589 | + */*) ac_site_file1=$CONFIG_SITE;; | |
1590 | + *) ac_site_file1=./$CONFIG_SITE;; | |
1591 | + esac | |
1592 | +elif test "x$prefix" != xNONE; then | |
1593 | + ac_site_file1=$prefix/share/config.site | |
1594 | + ac_site_file2=$prefix/etc/config.site | |
1595 | +else | |
1596 | + ac_site_file1=$ac_default_prefix/share/config.site | |
1597 | + ac_site_file2=$ac_default_prefix/etc/config.site | |
1598 | +fi | |
1599 | +for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1600 | +do | |
1601 | + test "x$ac_site_file" = xNONE && continue | |
1602 | + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
1603 | + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
1604 | +$as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1605 | + sed 's/^/| /' "$ac_site_file" >&5 | |
1606 | + . "$ac_site_file" \ | |
1607 | + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1608 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1609 | +as_fn_error $? "failed to load site script $ac_site_file | |
1610 | +See \`config.log' for more details" "$LINENO" 5; } | |
1611 | + fi | |
1612 | +done | |
1613 | + | |
1614 | +if test -r "$cache_file"; then | |
1615 | + # Some versions of bash will fail to source /dev/null (special files | |
1616 | + # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
1617 | + if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
1618 | + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
1619 | +$as_echo "$as_me: loading cache $cache_file" >&6;} | |
1620 | + case $cache_file in | |
1621 | + [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1622 | + *) . "./$cache_file";; | |
1623 | + esac | |
1624 | + fi | |
1625 | +else | |
1626 | + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
1627 | +$as_echo "$as_me: creating cache $cache_file" >&6;} | |
1628 | + >$cache_file | |
1629 | +fi | |
1630 | + | |
1631 | +# Check that the precious variables saved in the cache have kept the same | |
1632 | +# value. | |
1633 | +ac_cache_corrupted=false | |
1634 | +for ac_var in $ac_precious_vars; do | |
1635 | + eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1636 | + eval ac_new_set=\$ac_env_${ac_var}_set | |
1637 | + eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1638 | + eval ac_new_val=\$ac_env_${ac_var}_value | |
1639 | + case $ac_old_set,$ac_new_set in | |
1640 | + set,) | |
1641 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1642 | +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1643 | + ac_cache_corrupted=: ;; | |
1644 | + ,set) | |
1645 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
1646 | +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1647 | + ac_cache_corrupted=: ;; | |
1648 | + ,);; | |
1649 | + *) | |
1650 | + if test "x$ac_old_val" != "x$ac_new_val"; then | |
1651 | + # differences in whitespace do not lead to failure. | |
1652 | + ac_old_val_w=`echo x $ac_old_val` | |
1653 | + ac_new_val_w=`echo x $ac_new_val` | |
1654 | + if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1655 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
1656 | +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1657 | + ac_cache_corrupted=: | |
1658 | + else | |
1659 | + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1660 | +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1661 | + eval $ac_var=\$ac_old_val | |
1662 | + fi | |
1663 | + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
1664 | +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1665 | + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
1666 | +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1667 | + fi;; | |
1668 | + esac | |
1669 | + # Pass precious variables to config.status. | |
1670 | + if test "$ac_new_set" = set; then | |
1671 | + case $ac_new_val in | |
1672 | + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1673 | + *) ac_arg=$ac_var=$ac_new_val ;; | |
1674 | + esac | |
1675 | + case " $ac_configure_args " in | |
1676 | + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1677 | + *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
1678 | + esac | |
1679 | + fi | |
1680 | +done | |
1681 | +if $ac_cache_corrupted; then | |
1682 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1683 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1684 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
1685 | +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1686 | + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
1687 | +fi | |
1688 | +## -------------------- ## | |
1689 | +## Main body of script. ## | |
1690 | +## -------------------- ## | |
1691 | + | |
1692 | +ac_ext=c | |
1693 | +ac_cpp='$CPP $CPPFLAGS' | |
1694 | +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1695 | +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1696 | +ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1697 | + | |
1698 | + | |
1699 | +am__api_version='1.12' | |
1700 | + | |
1701 | +ac_aux_dir= | |
1702 | +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
1703 | + if test -f "$ac_dir/install-sh"; then | |
1704 | + ac_aux_dir=$ac_dir | |
1705 | + ac_install_sh="$ac_aux_dir/install-sh -c" | |
1706 | + break | |
1707 | + elif test -f "$ac_dir/install.sh"; then | |
1708 | + ac_aux_dir=$ac_dir | |
1709 | + ac_install_sh="$ac_aux_dir/install.sh -c" | |
1710 | + break | |
1711 | + elif test -f "$ac_dir/shtool"; then | |
1712 | + ac_aux_dir=$ac_dir | |
1713 | + ac_install_sh="$ac_aux_dir/shtool install -c" | |
1714 | + break | |
1715 | + fi | |
1716 | +done | |
1717 | +if test -z "$ac_aux_dir"; then | |
1718 | + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
1719 | +fi | |
1720 | + | |
1721 | +# These three variables are undocumented and unsupported, | |
1722 | +# and are intended to be withdrawn in a future Autoconf release. | |
1723 | +# They can cause serious problems if a builder's source tree is in a directory | |
1724 | +# whose full name contains unusual characters. | |
1725 | +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1726 | +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1727 | +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1728 | + | |
1729 | + | |
1730 | +# Find a good install program. We prefer a C program (faster), | |
1731 | +# so one script is as good as another. But avoid the broken or | |
1732 | +# incompatible versions: | |
1733 | +# SysV /etc/install, /usr/sbin/install | |
1734 | +# SunOS /usr/etc/install | |
1735 | +# IRIX /sbin/install | |
1736 | +# AIX /bin/install | |
1737 | +# AmigaOS /C/install, which installs bootblocks on floppy discs | |
1738 | +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1739 | +# AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1740 | +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1741 | +# OS/2's system install, which has a completely different semantic | |
1742 | +# ./install, which can be erroneously created by make from ./install.sh. | |
1743 | +# Reject install programs that cannot install multiple files. | |
1744 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
1745 | +$as_echo_n "checking for a BSD-compatible install... " >&6; } | |
1746 | +if test -z "$INSTALL"; then | |
1747 | +if ${ac_cv_path_install+:} false; then : | |
1748 | + $as_echo_n "(cached) " >&6 | |
1749 | +else | |
1750 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1751 | +for as_dir in $PATH | |
1752 | +do | |
1753 | + IFS=$as_save_IFS | |
1754 | + test -z "$as_dir" && as_dir=. | |
1755 | + # Account for people who put trailing slashes in PATH elements. | |
1756 | +case $as_dir/ in #(( | |
1757 | + ./ | .// | /[cC]/* | \ | |
1758 | + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1759 | + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
1760 | + /usr/ucb/* ) ;; | |
1761 | + *) | |
1762 | + # OSF1 and SCO ODT 3.0 have their own names for install. | |
1763 | + # Don't use installbsd from OSF since it installs stuff as root | |
1764 | + # by default. | |
1765 | + for ac_prog in ginstall scoinst install; do | |
1766 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
1767 | + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1768 | + if test $ac_prog = install && | |
1769 | + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1770 | + # AIX install. It has an incompatible calling convention. | |
1771 | + : | |
1772 | + elif test $ac_prog = install && | |
1773 | + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1774 | + # program-specific install script used by HP pwplus--don't use. | |
1775 | + : | |
1776 | + else | |
1777 | + rm -rf conftest.one conftest.two conftest.dir | |
1778 | + echo one > conftest.one | |
1779 | + echo two > conftest.two | |
1780 | + mkdir conftest.dir | |
1781 | + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
1782 | + test -s conftest.one && test -s conftest.two && | |
1783 | + test -s conftest.dir/conftest.one && | |
1784 | + test -s conftest.dir/conftest.two | |
1785 | + then | |
1786 | + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1787 | + break 3 | |
1788 | + fi | |
1789 | + fi | |
1790 | + fi | |
1791 | + done | |
1792 | + done | |
1793 | + ;; | |
1794 | +esac | |
1795 | + | |
1796 | + done | |
1797 | +IFS=$as_save_IFS | |
1798 | + | |
1799 | +rm -rf conftest.one conftest.two conftest.dir | |
1800 | + | |
1801 | +fi | |
1802 | + if test "${ac_cv_path_install+set}" = set; then | |
1803 | + INSTALL=$ac_cv_path_install | |
1804 | + else | |
1805 | + # As a last resort, use the slow shell script. Don't cache a | |
1806 | + # value for INSTALL within a source directory, because that will | |
1807 | + # break other packages using the cache if that directory is | |
1808 | + # removed, or if the value is a relative name. | |
1809 | + INSTALL=$ac_install_sh | |
1810 | + fi | |
1811 | +fi | |
1812 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
1813 | +$as_echo "$INSTALL" >&6; } | |
1814 | + | |
1815 | +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1816 | +# It thinks the first close brace ends the variable substitution. | |
1817 | +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1818 | + | |
1819 | +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1820 | + | |
1821 | +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1822 | + | |
1823 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
1824 | +$as_echo_n "checking whether build environment is sane... " >&6; } | |
1825 | +# Reject unsafe characters in $srcdir or the absolute working directory | |
1826 | +# name. Accept space and tab only in the latter. | |
1827 | +am_lf=' | |
1828 | +' | |
1829 | +case `pwd` in | |
1830 | + *[\\\"\#\$\&\'\`$am_lf]*) | |
1831 | + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
1832 | +esac | |
1833 | +case $srcdir in | |
1834 | + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
1835 | + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
1836 | +esac | |
1837 | + | |
1838 | +# Do 'set' in a subshell so we don't clobber the current shell's | |
1839 | +# arguments. Must try -L first in case configure is actually a | |
1840 | +# symlink; some systems play weird games with the mod time of symlinks | |
1841 | +# (eg FreeBSD returns the mod time of the symlink's containing | |
1842 | +# directory). | |
1843 | +if ( | |
1844 | + am_has_slept=no | |
1845 | + for am_try in 1 2; do | |
1846 | + echo "timestamp, slept: $am_has_slept" > conftest.file | |
1847 | + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
1848 | + if test "$*" = "X"; then | |
1849 | + # -L didn't work. | |
1850 | + set X `ls -t "$srcdir/configure" conftest.file` | |
1851 | + fi | |
1852 | + if test "$*" != "X $srcdir/configure conftest.file" \ | |
1853 | + && test "$*" != "X conftest.file $srcdir/configure"; then | |
1854 | + | |
1855 | + # If neither matched, then we have a broken ls. This can happen | |
1856 | + # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1857 | + # broken ls alias from the environment. This has actually | |
1858 | + # happened. Such a system could not be considered "sane". | |
1859 | + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
1860 | + alias in your environment" "$LINENO" 5 | |
1861 | + fi | |
1862 | + if test "$2" = conftest.file || test $am_try -eq 2; then | |
1863 | + break | |
1864 | + fi | |
1865 | + # Just in case. | |
1866 | + sleep 1 | |
1867 | + am_has_slept=yes | |
1868 | + done | |
1869 | + test "$2" = conftest.file | |
1870 | + ) | |
1871 | +then | |
1872 | + # Ok. | |
1873 | + : | |
1874 | +else | |
1875 | + as_fn_error $? "newly created file is older than distributed files! | |
1876 | +Check your system clock" "$LINENO" 5 | |
1877 | +fi | |
1878 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
1879 | +$as_echo "yes" >&6; } | |
1880 | +# If we didn't sleep, we still need to ensure time stamps of config.status and | |
1881 | +# generated files are strictly newer. | |
1882 | +am_sleep_pid= | |
1883 | +if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
1884 | + ( sleep 1 ) & | |
1885 | + am_sleep_pid=$! | |
1886 | +fi | |
1887 | + | |
1888 | +rm -f conftest.file | |
1889 | + | |
1890 | +test "$program_prefix" != NONE && | |
1891 | + program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
1892 | +# Use a double $ so make ignores it. | |
1893 | +test "$program_suffix" != NONE && | |
1894 | + program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
1895 | +# Double any \ or $. | |
1896 | +# By default was `s,x,x', remove it if useless. | |
1897 | +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
1898 | +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
1899 | + | |
1900 | +# expand $ac_aux_dir to an absolute path | |
1901 | +am_aux_dir=`cd $ac_aux_dir && pwd` | |
1902 | + | |
1903 | +if test x"${MISSING+set}" != xset; then | |
1904 | + case $am_aux_dir in | |
1905 | + *\ * | *\ *) | |
1906 | + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
1907 | + *) | |
1908 | + MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
1909 | + esac | |
1910 | +fi | |
1911 | +# Use eval to expand $SHELL | |
1912 | +if eval "$MISSING --run true"; then | |
1913 | + am_missing_run="$MISSING --run " | |
1914 | +else | |
1915 | + am_missing_run= | |
1916 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
1917 | +$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
1918 | +fi | |
1919 | + | |
1920 | +if test x"${install_sh}" != xset; then | |
1921 | + case $am_aux_dir in | |
1922 | + *\ * | *\ *) | |
1923 | + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
1924 | + *) | |
1925 | + install_sh="\${SHELL} $am_aux_dir/install-sh" | |
1926 | + esac | |
1927 | +fi | |
1928 | + | |
1929 | +# Installed binaries are usually stripped using 'strip' when the user | |
1930 | +# run "make install-strip". However 'strip' might not be the right | |
1931 | +# tool to use in cross-compilation environments, therefore Automake | |
1932 | +# will honor the 'STRIP' environment variable to overrule this program. | |
1933 | +if test "$cross_compiling" != no; then | |
1934 | + if test -n "$ac_tool_prefix"; then | |
1935 | + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1936 | +set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1937 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1938 | +$as_echo_n "checking for $ac_word... " >&6; } | |
1939 | +if ${ac_cv_prog_STRIP+:} false; then : | |
1940 | + $as_echo_n "(cached) " >&6 | |
1941 | +else | |
1942 | + if test -n "$STRIP"; then | |
1943 | + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1944 | +else | |
1945 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1946 | +for as_dir in $PATH | |
1947 | +do | |
1948 | + IFS=$as_save_IFS | |
1949 | + test -z "$as_dir" && as_dir=. | |
1950 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
1951 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1952 | + ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1953 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1954 | + break 2 | |
1955 | + fi | |
1956 | +done | |
1957 | + done | |
1958 | +IFS=$as_save_IFS | |
1959 | + | |
1960 | +fi | |
1961 | +fi | |
1962 | +STRIP=$ac_cv_prog_STRIP | |
1963 | +if test -n "$STRIP"; then | |
1964 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
1965 | +$as_echo "$STRIP" >&6; } | |
1966 | +else | |
1967 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
1968 | +$as_echo "no" >&6; } | |
1969 | +fi | |
1970 | + | |
1971 | + | |
1972 | +fi | |
1973 | +if test -z "$ac_cv_prog_STRIP"; then | |
1974 | + ac_ct_STRIP=$STRIP | |
1975 | + # Extract the first word of "strip", so it can be a program name with args. | |
1976 | +set dummy strip; ac_word=$2 | |
1977 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1978 | +$as_echo_n "checking for $ac_word... " >&6; } | |
1979 | +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
1980 | + $as_echo_n "(cached) " >&6 | |
1981 | +else | |
1982 | + if test -n "$ac_ct_STRIP"; then | |
1983 | + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1984 | +else | |
1985 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1986 | +for as_dir in $PATH | |
1987 | +do | |
1988 | + IFS=$as_save_IFS | |
1989 | + test -z "$as_dir" && as_dir=. | |
1990 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
1991 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1992 | + ac_cv_prog_ac_ct_STRIP="strip" | |
1993 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1994 | + break 2 | |
1995 | + fi | |
1996 | +done | |
1997 | + done | |
1998 | +IFS=$as_save_IFS | |
1999 | + | |
2000 | +fi | |
2001 | +fi | |
2002 | +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2003 | +if test -n "$ac_ct_STRIP"; then | |
2004 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2005 | +$as_echo "$ac_ct_STRIP" >&6; } | |
2006 | +else | |
2007 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2008 | +$as_echo "no" >&6; } | |
2009 | +fi | |
2010 | + | |
2011 | + if test "x$ac_ct_STRIP" = x; then | |
2012 | + STRIP=":" | |
2013 | + else | |
2014 | + case $cross_compiling:$ac_tool_warned in | |
2015 | +yes:) | |
2016 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2017 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2018 | +ac_tool_warned=yes ;; | |
2019 | +esac | |
2020 | + STRIP=$ac_ct_STRIP | |
2021 | + fi | |
2022 | +else | |
2023 | + STRIP="$ac_cv_prog_STRIP" | |
2024 | +fi | |
2025 | + | |
2026 | +fi | |
2027 | +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2028 | + | |
2029 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2030 | +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2031 | +if test -z "$MKDIR_P"; then | |
2032 | + if ${ac_cv_path_mkdir+:} false; then : | |
2033 | + $as_echo_n "(cached) " >&6 | |
2034 | +else | |
2035 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2036 | +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2037 | +do | |
2038 | + IFS=$as_save_IFS | |
2039 | + test -z "$as_dir" && as_dir=. | |
2040 | + for ac_prog in mkdir gmkdir; do | |
2041 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2042 | + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2043 | + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2044 | + 'mkdir (GNU coreutils) '* | \ | |
2045 | + 'mkdir (coreutils) '* | \ | |
2046 | + 'mkdir (fileutils) '4.1*) | |
2047 | + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2048 | + break 3;; | |
2049 | + esac | |
2050 | + done | |
2051 | + done | |
2052 | + done | |
2053 | +IFS=$as_save_IFS | |
2054 | + | |
2055 | +fi | |
2056 | + | |
2057 | + test -d ./--version && rmdir ./--version | |
2058 | + if test "${ac_cv_path_mkdir+set}" = set; then | |
2059 | + MKDIR_P="$ac_cv_path_mkdir -p" | |
2060 | + else | |
2061 | + # As a last resort, use the slow shell script. Don't cache a | |
2062 | + # value for MKDIR_P within a source directory, because that will | |
2063 | + # break other packages using the cache if that directory is | |
2064 | + # removed, or if the value is a relative name. | |
2065 | + MKDIR_P="$ac_install_sh -d" | |
2066 | + fi | |
2067 | +fi | |
2068 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2069 | +$as_echo "$MKDIR_P" >&6; } | |
2070 | + | |
2071 | +for ac_prog in gawk mawk nawk awk | |
2072 | +do | |
2073 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2074 | +set dummy $ac_prog; ac_word=$2 | |
2075 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2076 | +$as_echo_n "checking for $ac_word... " >&6; } | |
2077 | +if ${ac_cv_prog_AWK+:} false; then : | |
2078 | + $as_echo_n "(cached) " >&6 | |
2079 | +else | |
2080 | + if test -n "$AWK"; then | |
2081 | + ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2082 | +else | |
2083 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2084 | +for as_dir in $PATH | |
2085 | +do | |
2086 | + IFS=$as_save_IFS | |
2087 | + test -z "$as_dir" && as_dir=. | |
2088 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2089 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2090 | + ac_cv_prog_AWK="$ac_prog" | |
2091 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2092 | + break 2 | |
2093 | + fi | |
2094 | +done | |
2095 | + done | |
2096 | +IFS=$as_save_IFS | |
2097 | + | |
2098 | +fi | |
2099 | +fi | |
2100 | +AWK=$ac_cv_prog_AWK | |
2101 | +if test -n "$AWK"; then | |
2102 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2103 | +$as_echo "$AWK" >&6; } | |
2104 | +else | |
2105 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2106 | +$as_echo "no" >&6; } | |
2107 | +fi | |
2108 | + | |
2109 | + | |
2110 | + test -n "$AWK" && break | |
2111 | +done | |
2112 | + | |
2113 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2114 | +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2115 | +set x ${MAKE-make} | |
2116 | +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2117 | +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2118 | + $as_echo_n "(cached) " >&6 | |
2119 | +else | |
2120 | + cat >conftest.make <<\_ACEOF | |
2121 | +SHELL = /bin/sh | |
2122 | +all: | |
2123 | + @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2124 | +_ACEOF | |
2125 | +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2126 | +case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2127 | + *@@@%%%=?*=@@@%%%*) | |
2128 | + eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2129 | + *) | |
2130 | + eval ac_cv_prog_make_${ac_make}_set=no;; | |
2131 | +esac | |
2132 | +rm -f conftest.make | |
2133 | +fi | |
2134 | +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2135 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2136 | +$as_echo "yes" >&6; } | |
2137 | + SET_MAKE= | |
2138 | +else | |
2139 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2140 | +$as_echo "no" >&6; } | |
2141 | + SET_MAKE="MAKE=${MAKE-make}" | |
2142 | +fi | |
2143 | + | |
2144 | +rm -rf .tst 2>/dev/null | |
2145 | +mkdir .tst 2>/dev/null | |
2146 | +if test -d .tst; then | |
2147 | + am__leading_dot=. | |
2148 | +else | |
2149 | + am__leading_dot=_ | |
2150 | +fi | |
2151 | +rmdir .tst 2>/dev/null | |
2152 | + | |
2153 | +if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2154 | + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2155 | + # is not polluted with repeated "-I." | |
2156 | + am__isrc=' -I$(srcdir)' | |
2157 | + # test to see if srcdir already configured | |
2158 | + if test -f $srcdir/config.status; then | |
2159 | + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
2160 | + fi | |
2161 | +fi | |
2162 | + | |
2163 | +# test whether we have cygpath | |
2164 | +if test -z "$CYGPATH_W"; then | |
2165 | + if (cygpath --version) >/dev/null 2>/dev/null; then | |
2166 | + CYGPATH_W='cygpath -w' | |
2167 | + else | |
2168 | + CYGPATH_W=echo | |
2169 | + fi | |
2170 | +fi | |
2171 | + | |
2172 | + | |
2173 | +# Define the identity of the package. | |
2174 | + PACKAGE='autotoolstest' | |
2175 | + VERSION='mono.01' | |
2176 | + | |
2177 | + | |
2178 | +cat >>confdefs.h <<_ACEOF | |
2179 | +#define PACKAGE "$PACKAGE" | |
2180 | +_ACEOF | |
2181 | + | |
2182 | + | |
2183 | +cat >>confdefs.h <<_ACEOF | |
2184 | +#define VERSION "$VERSION" | |
2185 | +_ACEOF | |
2186 | + | |
2187 | +# Some tools Automake needs. | |
2188 | + | |
2189 | +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2190 | + | |
2191 | + | |
2192 | +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2193 | + | |
2194 | + | |
2195 | +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2196 | + | |
2197 | + | |
2198 | +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2199 | + | |
2200 | + | |
2201 | +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2202 | + | |
2203 | +# For better backward compatibility. To be removed once Automake 1.9.x | |
2204 | +# dies out for good. For more background, see: | |
2205 | +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2206 | +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2207 | +mkdir_p='$(MKDIR_P)' | |
2208 | + | |
2209 | +# We need awk for the "check" target. The system "awk" is bad on | |
2210 | +# some platforms. | |
2211 | +# Always define AMTAR for backward compatibility. Yes, it's still used | |
2212 | +# in the wild :-( We should find a proper way to deprecate it ... | |
2213 | +AMTAR='$${TAR-tar}' | |
2214 | + | |
2215 | +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
2216 | + | |
2217 | + | |
2218 | + | |
2219 | + | |
2220 | + | |
2221 | + | |
2222 | +# Check for CLI compilers. -*- Autoconf -*- | |
2223 | + | |
2224 | +# Copyright (C) 2007 Free Software Foundation, Inc. | |
2225 | +# | |
2226 | +# This file is free software; the Free Software Foundation | |
2227 | +# gives unlimited permission to copy and/or distribute it, | |
2228 | +# with or without modifications, as long as this notice is preserved. | |
2229 | + | |
2230 | +# AM_PROG_CLI([FRAMEWORK-VERSION],[LANGS]) | |
2231 | +# ---------------------------------------- | |
2232 | +# Find the compiler for each of the listed languages. If LANGS is not set, | |
2233 | +# it defaults to the list [CS]. The framework version determines if we | |
2234 | +# use 'mcs' for version 1.1 or 'gmcs' for everything else. We default to | |
2235 | +# framework version 1.1. | |
2236 | + | |
2237 | + | |
2238 | + | |
2239 | + | |
2240 | + | |
2241 | + | |
2242 | + | |
2243 | + | |
2244 | + | |
2245 | + | |
2246 | + | |
2247 | + | |
2248 | + | |
2249 | + | |
2250 | + | |
2251 | + | |
2252 | +# Checks for programs. | |
2253 | +for ac_prog in mcs csc | |
2254 | +do | |
2255 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2256 | +set dummy $ac_prog; ac_word=$2 | |
2257 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2258 | +$as_echo_n "checking for $ac_word... " >&6; } | |
2259 | +if ${ac_cv_prog_CSC+:} false; then : | |
2260 | + $as_echo_n "(cached) " >&6 | |
2261 | +else | |
2262 | + if test -n "$CSC"; then | |
2263 | + ac_cv_prog_CSC="$CSC" # Let the user override the test. | |
2264 | +else | |
2265 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2266 | +for as_dir in $PATH | |
2267 | +do | |
2268 | + IFS=$as_save_IFS | |
2269 | + test -z "$as_dir" && as_dir=. | |
2270 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2271 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2272 | + ac_cv_prog_CSC="$ac_prog" | |
2273 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2274 | + break 2 | |
2275 | + fi | |
2276 | +done | |
2277 | + done | |
2278 | +IFS=$as_save_IFS | |
2279 | + | |
2280 | +fi | |
2281 | +fi | |
2282 | +CSC=$ac_cv_prog_CSC | |
2283 | +if test -n "$CSC"; then | |
2284 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSC" >&5 | |
2285 | +$as_echo "$CSC" >&6; } | |
2286 | +else | |
2287 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2288 | +$as_echo "no" >&6; } | |
2289 | +fi | |
2290 | + | |
2291 | + | |
2292 | + test -n "$CSC" && break | |
2293 | +done | |
2294 | +test -n "$CSC" || CSC="false" | |
2295 | + | |
2296 | + | |
2297 | +for ac_prog in resgen | |
2298 | +do | |
2299 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2300 | +set dummy $ac_prog; ac_word=$2 | |
2301 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2302 | +$as_echo_n "checking for $ac_word... " >&6; } | |
2303 | +if ${ac_cv_prog_RESGEN+:} false; then : | |
2304 | + $as_echo_n "(cached) " >&6 | |
2305 | +else | |
2306 | + if test -n "$RESGEN"; then | |
2307 | + ac_cv_prog_RESGEN="$RESGEN" # Let the user override the test. | |
2308 | +else | |
2309 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2310 | +for as_dir in $PATH | |
2311 | +do | |
2312 | + IFS=$as_save_IFS | |
2313 | + test -z "$as_dir" && as_dir=. | |
2314 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2315 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2316 | + ac_cv_prog_RESGEN="$ac_prog" | |
2317 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2318 | + break 2 | |
2319 | + fi | |
2320 | +done | |
2321 | + done | |
2322 | +IFS=$as_save_IFS | |
2323 | + | |
2324 | +fi | |
2325 | +fi | |
2326 | +RESGEN=$ac_cv_prog_RESGEN | |
2327 | +if test -n "$RESGEN"; then | |
2328 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESGEN" >&5 | |
2329 | +$as_echo "$RESGEN" >&6; } | |
2330 | +else | |
2331 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2332 | +$as_echo "no" >&6; } | |
2333 | +fi | |
2334 | + | |
2335 | + | |
2336 | + test -n "$RESGEN" && break | |
2337 | +done | |
2338 | +test -n "$RESGEN" || RESGEN="false" | |
2339 | + | |
2340 | +for ac_prog in ilasm | |
2341 | +do | |
2342 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2343 | +set dummy $ac_prog; ac_word=$2 | |
2344 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2345 | +$as_echo_n "checking for $ac_word... " >&6; } | |
2346 | +if ${ac_cv_prog_ILASM+:} false; then : | |
2347 | + $as_echo_n "(cached) " >&6 | |
2348 | +else | |
2349 | + if test -n "$ILASM"; then | |
2350 | + ac_cv_prog_ILASM="$ILASM" # Let the user override the test. | |
2351 | +else | |
2352 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2353 | +for as_dir in $PATH | |
2354 | +do | |
2355 | + IFS=$as_save_IFS | |
2356 | + test -z "$as_dir" && as_dir=. | |
2357 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2358 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2359 | + ac_cv_prog_ILASM="$ac_prog" | |
2360 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2361 | + break 2 | |
2362 | + fi | |
2363 | +done | |
2364 | + done | |
2365 | +IFS=$as_save_IFS | |
2366 | + | |
2367 | +fi | |
2368 | +fi | |
2369 | +ILASM=$ac_cv_prog_ILASM | |
2370 | +if test -n "$ILASM"; then | |
2371 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILASM" >&5 | |
2372 | +$as_echo "$ILASM" >&6; } | |
2373 | +else | |
2374 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2375 | +$as_echo "no" >&6; } | |
2376 | +fi | |
2377 | + | |
2378 | + | |
2379 | + test -n "$ILASM" && break | |
2380 | +done | |
2381 | +test -n "$ILASM" || ILASM="false" | |
2382 | + | |
2383 | +for ac_prog in monodis 'ildasm -text' | |
2384 | +do | |
2385 | + # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2386 | +set dummy $ac_prog; ac_word=$2 | |
2387 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2388 | +$as_echo_n "checking for $ac_word... " >&6; } | |
2389 | +if ${ac_cv_prog_ILDISASM+:} false; then : | |
2390 | + $as_echo_n "(cached) " >&6 | |
2391 | +else | |
2392 | + if test -n "$ILDISASM"; then | |
2393 | + ac_cv_prog_ILDISASM="$ILDISASM" # Let the user override the test. | |
2394 | +else | |
2395 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2396 | +for as_dir in $PATH | |
2397 | +do | |
2398 | + IFS=$as_save_IFS | |
2399 | + test -z "$as_dir" && as_dir=. | |
2400 | + for ac_exec_ext in '' $ac_executable_extensions; do | |
2401 | + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2402 | + ac_cv_prog_ILDISASM="$ac_prog" | |
2403 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2404 | + break 2 | |
2405 | + fi | |
2406 | +done | |
2407 | + done | |
2408 | +IFS=$as_save_IFS | |
2409 | + | |
2410 | +fi | |
2411 | +fi | |
2412 | +ILDISASM=$ac_cv_prog_ILDISASM | |
2413 | +if test -n "$ILDISASM"; then | |
2414 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILDISASM" >&5 | |
2415 | +$as_echo "$ILDISASM" >&6; } | |
2416 | +else | |
2417 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2418 | +$as_echo "no" >&6; } | |
2419 | +fi | |
2420 | + | |
2421 | + | |
2422 | + test -n "$ILDISASM" && break | |
2423 | +done | |
2424 | +test -n "$ILDISASM" || ILDISASM="false" | |
2425 | + | |
2426 | + | |
2427 | + | |
2428 | +# Checks for libraries. | |
2429 | + | |
2430 | +# Checks for header files. | |
2431 | + | |
2432 | +# Checks for typedefs, structures, and compiler characteristics. | |
2433 | + | |
2434 | +# Checks for library functions. | |
2435 | + | |
2436 | +ac_config_files="$ac_config_files Makefile src/Makefile" | |
2437 | + | |
2438 | +cat >confcache <<\_ACEOF | |
2439 | +# This file is a shell script that caches the results of configure | |
2440 | +# tests run on this system so they can be shared between configure | |
2441 | +# scripts and configure runs, see configure's option --config-cache. | |
2442 | +# It is not useful on other systems. If it contains results you don't | |
2443 | +# want to keep, you may remove or edit it. | |
2444 | +# | |
2445 | +# config.status only pays attention to the cache file if you give it | |
2446 | +# the --recheck option to rerun configure. | |
2447 | +# | |
2448 | +# `ac_cv_env_foo' variables (set or unset) will be overridden when | |
2449 | +# loading this file, other *unset* `ac_cv_foo' will be assigned the | |
2450 | +# following values. | |
2451 | + | |
2452 | +_ACEOF | |
2453 | + | |
2454 | +# The following way of writing the cache mishandles newlines in values, | |
2455 | +# but we know of no workaround that is simple, portable, and efficient. | |
2456 | +# So, we kill variables containing newlines. | |
2457 | +# Ultrix sh set writes to stderr and can't be redirected directly, | |
2458 | +# and sets the high bit in the cache file unless we assign to the vars. | |
2459 | +( | |
2460 | + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
2461 | + eval ac_val=\$$ac_var | |
2462 | + case $ac_val in #( | |
2463 | + *${as_nl}*) | |
2464 | + case $ac_var in #( | |
2465 | + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2466 | +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2467 | + esac | |
2468 | + case $ac_var in #( | |
2469 | + _ | IFS | as_nl) ;; #( | |
2470 | + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2471 | + *) { eval $ac_var=; unset $ac_var;} ;; | |
2472 | + esac ;; | |
2473 | + esac | |
2474 | + done | |
2475 | + | |
2476 | + (set) 2>&1 | | |
2477 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
2478 | + *${as_nl}ac_space=\ *) | |
2479 | + # `set' does not quote correctly, so add quotes: double-quote | |
2480 | + # substitution turns \\\\ into \\, and sed turns \\ into \. | |
2481 | + sed -n \ | |
2482 | + "s/'/'\\\\''/g; | |
2483 | + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
2484 | + ;; #( | |
2485 | + *) | |
2486 | + # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2487 | + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2488 | + ;; | |
2489 | + esac | | |
2490 | + sort | |
2491 | +) | | |
2492 | + sed ' | |
2493 | + /^ac_cv_env_/b end | |
2494 | + t clear | |
2495 | + :clear | |
2496 | + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
2497 | + t end | |
2498 | + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
2499 | + :end' >>confcache | |
2500 | +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
2501 | + if test -w "$cache_file"; then | |
2502 | + if test "x$cache_file" != "x/dev/null"; then | |
2503 | + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
2504 | +$as_echo "$as_me: updating cache $cache_file" >&6;} | |
2505 | + if test ! -f "$cache_file" || test -h "$cache_file"; then | |
2506 | + cat confcache >"$cache_file" | |
2507 | + else | |
2508 | + case $cache_file in #( | |
2509 | + */* | ?:*) | |
2510 | + mv -f confcache "$cache_file"$$ && | |
2511 | + mv -f "$cache_file"$$ "$cache_file" ;; #( | |
2512 | + *) | |
2513 | + mv -f confcache "$cache_file" ;; | |
2514 | + esac | |
2515 | + fi | |
2516 | + fi | |
2517 | + else | |
2518 | + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
2519 | +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
2520 | + fi | |
2521 | +fi | |
2522 | +rm -f confcache | |
2523 | + | |
2524 | +test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
2525 | +# Let make expand exec_prefix. | |
2526 | +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
2527 | + | |
2528 | +# Transform confdefs.h into DEFS. | |
2529 | +# Protect against shell expansion while executing Makefile rules. | |
2530 | +# Protect against Makefile macro expansion. | |
2531 | +# | |
2532 | +# If the first sed substitution is executed (which looks for macros that | |
2533 | +# take arguments), then branch to the quote section. Otherwise, | |
2534 | +# look for a macro that doesn't take arguments. | |
2535 | +ac_script=' | |
2536 | +:mline | |
2537 | +/\\$/{ | |
2538 | + N | |
2539 | + s,\\\n,, | |
2540 | + b mline | |
2541 | +} | |
2542 | +t clear | |
2543 | +:clear | |
2544 | +s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
2545 | +t quote | |
2546 | +s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
2547 | +t quote | |
2548 | +b any | |
2549 | +:quote | |
2550 | +s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
2551 | +s/\[/\\&/g | |
2552 | +s/\]/\\&/g | |
2553 | +s/\$/$$/g | |
2554 | +H | |
2555 | +:any | |
2556 | +${ | |
2557 | + g | |
2558 | + s/^\n// | |
2559 | + s/\n/ /g | |
2560 | + p | |
2561 | +} | |
2562 | +' | |
2563 | +DEFS=`sed -n "$ac_script" confdefs.h` | |
2564 | + | |
2565 | + | |
2566 | +ac_libobjs= | |
2567 | +ac_ltlibobjs= | |
2568 | +U= | |
2569 | +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
2570 | + # 1. Remove the extension, and $U if already installed. | |
2571 | + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
2572 | + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
2573 | + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
2574 | + # will be set to the directory where LIBOBJS objects are built. | |
2575 | + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
2576 | + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
2577 | +done | |
2578 | +LIBOBJS=$ac_libobjs | |
2579 | + | |
2580 | +LTLIBOBJS=$ac_ltlibobjs | |
2581 | + | |
2582 | + | |
2583 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
2584 | +$as_echo_n "checking that generated files are newer than configure... " >&6; } | |
2585 | + if test -n "$am_sleep_pid"; then | |
2586 | + # Hide warnings about reused PIDs. | |
2587 | + wait $am_sleep_pid 2>/dev/null | |
2588 | + fi | |
2589 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
2590 | +$as_echo "done" >&6; } | |
2591 | + | |
2592 | + | |
2593 | +: "${CONFIG_STATUS=./config.status}" | |
2594 | +ac_write_fail=0 | |
2595 | +ac_clean_files_save=$ac_clean_files | |
2596 | +ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
2597 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
2598 | +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
2599 | +as_write_fail=0 | |
2600 | +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
2601 | +#! $SHELL | |
2602 | +# Generated by $as_me. | |
2603 | +# Run this file to recreate the current configuration. | |
2604 | +# Compiler output produced by configure, useful for debugging | |
2605 | +# configure, is in config.log if it exists. | |
2606 | + | |
2607 | +debug=false | |
2608 | +ac_cs_recheck=false | |
2609 | +ac_cs_silent=false | |
2610 | + | |
2611 | +SHELL=\${CONFIG_SHELL-$SHELL} | |
2612 | +export SHELL | |
2613 | +_ASEOF | |
2614 | +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
2615 | +## -------------------- ## | |
2616 | +## M4sh Initialization. ## | |
2617 | +## -------------------- ## | |
2618 | + | |
2619 | +# Be more Bourne compatible | |
2620 | +DUALCASE=1; export DUALCASE # for MKS sh | |
2621 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
2622 | + emulate sh | |
2623 | + NULLCMD=: | |
2624 | + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
2625 | + # is contrary to our usage. Disable this feature. | |
2626 | + alias -g '${1+"$@"}'='"$@"' | |
2627 | + setopt NO_GLOB_SUBST | |
2628 | +else | |
2629 | + case `(set -o) 2>/dev/null` in #( | |
2630 | + *posix*) : | |
2631 | + set -o posix ;; #( | |
2632 | + *) : | |
2633 | + ;; | |
2634 | +esac | |
2635 | +fi | |
2636 | + | |
2637 | + | |
2638 | +as_nl=' | |
2639 | +' | |
2640 | +export as_nl | |
2641 | +# Printing a long string crashes Solaris 7 /usr/bin/printf. | |
2642 | +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
2643 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
2644 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
2645 | +# Prefer a ksh shell builtin over an external printf program on Solaris, | |
2646 | +# but without wasting forks for bash or zsh. | |
2647 | +if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
2648 | + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
2649 | + as_echo='print -r --' | |
2650 | + as_echo_n='print -rn --' | |
2651 | +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
2652 | + as_echo='printf %s\n' | |
2653 | + as_echo_n='printf %s' | |
2654 | +else | |
2655 | + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
2656 | + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
2657 | + as_echo_n='/usr/ucb/echo -n' | |
2658 | + else | |
2659 | + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
2660 | + as_echo_n_body='eval | |
2661 | + arg=$1; | |
2662 | + case $arg in #( | |
2663 | + *"$as_nl"*) | |
2664 | + expr "X$arg" : "X\\(.*\\)$as_nl"; | |
2665 | + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
2666 | + esac; | |
2667 | + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
2668 | + ' | |
2669 | + export as_echo_n_body | |
2670 | + as_echo_n='sh -c $as_echo_n_body as_echo' | |
2671 | + fi | |
2672 | + export as_echo_body | |
2673 | + as_echo='sh -c $as_echo_body as_echo' | |
2674 | +fi | |
2675 | + | |
2676 | +# The user is always right. | |
2677 | +if test "${PATH_SEPARATOR+set}" != set; then | |
2678 | + PATH_SEPARATOR=: | |
2679 | + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
2680 | + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
2681 | + PATH_SEPARATOR=';' | |
2682 | + } | |
2683 | +fi | |
2684 | + | |
2685 | + | |
2686 | +# IFS | |
2687 | +# We need space, tab and new line, in precisely that order. Quoting is | |
2688 | +# there to prevent editors from complaining about space-tab. | |
2689 | +# (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
2690 | +# splitting by setting IFS to empty value.) | |
2691 | +IFS=" "" $as_nl" | |
2692 | + | |
2693 | +# Find who we are. Look in the path if we contain no directory separator. | |
2694 | +as_myself= | |
2695 | +case $0 in #(( | |
2696 | + *[\\/]* ) as_myself=$0 ;; | |
2697 | + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2698 | +for as_dir in $PATH | |
2699 | +do | |
2700 | + IFS=$as_save_IFS | |
2701 | + test -z "$as_dir" && as_dir=. | |
2702 | + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
2703 | + done | |
2704 | +IFS=$as_save_IFS | |
2705 | + | |
2706 | + ;; | |
2707 | +esac | |
2708 | +# We did not find ourselves, most probably we were run as `sh COMMAND' | |
2709 | +# in which case we are not to be found in the path. | |
2710 | +if test "x$as_myself" = x; then | |
2711 | + as_myself=$0 | |
2712 | +fi | |
2713 | +if test ! -f "$as_myself"; then | |
2714 | + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
2715 | + exit 1 | |
2716 | +fi | |
2717 | + | |
2718 | +# Unset variables that we do not need and which cause bugs (e.g. in | |
2719 | +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
2720 | +# suppresses any "Segmentation fault" message there. '((' could | |
2721 | +# trigger a bug in pdksh 5.2.14. | |
2722 | +for as_var in BASH_ENV ENV MAIL MAILPATH | |
2723 | +do eval test x\${$as_var+set} = xset \ | |
2724 | + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
2725 | +done | |
2726 | +PS1='$ ' | |
2727 | +PS2='> ' | |
2728 | +PS4='+ ' | |
2729 | + | |
2730 | +# NLS nuisances. | |
2731 | +LC_ALL=C | |
2732 | +export LC_ALL | |
2733 | +LANGUAGE=C | |
2734 | +export LANGUAGE | |
2735 | + | |
2736 | +# CDPATH. | |
2737 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
2738 | + | |
2739 | + | |
2740 | +# as_fn_error STATUS ERROR [LINENO LOG_FD] | |
2741 | +# ---------------------------------------- | |
2742 | +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
2743 | +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
2744 | +# script with STATUS, using 1 if that was 0. | |
2745 | +as_fn_error () | |
2746 | +{ | |
2747 | + as_status=$1; test $as_status -eq 0 && as_status=1 | |
2748 | + if test "$4"; then | |
2749 | + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2750 | + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
2751 | + fi | |
2752 | + $as_echo "$as_me: error: $2" >&2 | |
2753 | + as_fn_exit $as_status | |
2754 | +} # as_fn_error | |
2755 | + | |
2756 | + | |
2757 | +# as_fn_set_status STATUS | |
2758 | +# ----------------------- | |
2759 | +# Set $? to STATUS, without forking. | |
2760 | +as_fn_set_status () | |
2761 | +{ | |
2762 | + return $1 | |
2763 | +} # as_fn_set_status | |
2764 | + | |
2765 | +# as_fn_exit STATUS | |
2766 | +# ----------------- | |
2767 | +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
2768 | +as_fn_exit () | |
2769 | +{ | |
2770 | + set +e | |
2771 | + as_fn_set_status $1 | |
2772 | + exit $1 | |
2773 | +} # as_fn_exit | |
2774 | + | |
2775 | +# as_fn_unset VAR | |
2776 | +# --------------- | |
2777 | +# Portably unset VAR. | |
2778 | +as_fn_unset () | |
2779 | +{ | |
2780 | + { eval $1=; unset $1;} | |
2781 | +} | |
2782 | +as_unset=as_fn_unset | |
2783 | +# as_fn_append VAR VALUE | |
2784 | +# ---------------------- | |
2785 | +# Append the text in VALUE to the end of the definition contained in VAR. Take | |
2786 | +# advantage of any shell optimizations that allow amortized linear growth over | |
2787 | +# repeated appends, instead of the typical quadratic growth present in naive | |
2788 | +# implementations. | |
2789 | +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
2790 | + eval 'as_fn_append () | |
2791 | + { | |
2792 | + eval $1+=\$2 | |
2793 | + }' | |
2794 | +else | |
2795 | + as_fn_append () | |
2796 | + { | |
2797 | + eval $1=\$$1\$2 | |
2798 | + } | |
2799 | +fi # as_fn_append | |
2800 | + | |
2801 | +# as_fn_arith ARG... | |
2802 | +# ------------------ | |
2803 | +# Perform arithmetic evaluation on the ARGs, and store the result in the | |
2804 | +# global $as_val. Take advantage of shells that can avoid forks. The arguments | |
2805 | +# must be portable across $(()) and expr. | |
2806 | +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
2807 | + eval 'as_fn_arith () | |
2808 | + { | |
2809 | + as_val=$(( $* )) | |
2810 | + }' | |
2811 | +else | |
2812 | + as_fn_arith () | |
2813 | + { | |
2814 | + as_val=`expr "$@" || test $? -eq 1` | |
2815 | + } | |
2816 | +fi # as_fn_arith | |
2817 | + | |
2818 | + | |
2819 | +if expr a : '\(a\)' >/dev/null 2>&1 && | |
2820 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
2821 | + as_expr=expr | |
2822 | +else | |
2823 | + as_expr=false | |
2824 | +fi | |
2825 | + | |
2826 | +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
2827 | + as_basename=basename | |
2828 | +else | |
2829 | + as_basename=false | |
2830 | +fi | |
2831 | + | |
2832 | +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
2833 | + as_dirname=dirname | |
2834 | +else | |
2835 | + as_dirname=false | |
2836 | +fi | |
2837 | + | |
2838 | +as_me=`$as_basename -- "$0" || | |
2839 | +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
2840 | + X"$0" : 'X\(//\)$' \| \ | |
2841 | + X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
2842 | +$as_echo X/"$0" | | |
2843 | + sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
2844 | + s//\1/ | |
2845 | + q | |
2846 | + } | |
2847 | + /^X\/\(\/\/\)$/{ | |
2848 | + s//\1/ | |
2849 | + q | |
2850 | + } | |
2851 | + /^X\/\(\/\).*/{ | |
2852 | + s//\1/ | |
2853 | + q | |
2854 | + } | |
2855 | + s/.*/./; q'` | |
2856 | + | |
2857 | +# Avoid depending upon Character Ranges. | |
2858 | +as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
2859 | +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
2860 | +as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
2861 | +as_cr_digits='0123456789' | |
2862 | +as_cr_alnum=$as_cr_Letters$as_cr_digits | |
2863 | + | |
2864 | +ECHO_C= ECHO_N= ECHO_T= | |
2865 | +case `echo -n x` in #((((( | |
2866 | +-n*) | |
2867 | + case `echo 'xy\c'` in | |
2868 | + *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
2869 | + xy) ECHO_C='\c';; | |
2870 | + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
2871 | + ECHO_T=' ';; | |
2872 | + esac;; | |
2873 | +*) | |
2874 | + ECHO_N='-n';; | |
2875 | +esac | |
2876 | + | |
2877 | +rm -f conf$$ conf$$.exe conf$$.file | |
2878 | +if test -d conf$$.dir; then | |
2879 | + rm -f conf$$.dir/conf$$.file | |
2880 | +else | |
2881 | + rm -f conf$$.dir | |
2882 | + mkdir conf$$.dir 2>/dev/null | |
2883 | +fi | |
2884 | +if (echo >conf$$.file) 2>/dev/null; then | |
2885 | + if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2886 | + as_ln_s='ln -s' | |
2887 | + # ... but there are two gotchas: | |
2888 | + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
2889 | + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
2890 | + # In both cases, we have to default to `cp -pR'. | |
2891 | + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
2892 | + as_ln_s='cp -pR' | |
2893 | + elif ln conf$$.file conf$$ 2>/dev/null; then | |
2894 | + as_ln_s=ln | |
2895 | + else | |
2896 | + as_ln_s='cp -pR' | |
2897 | + fi | |
2898 | +else | |
2899 | + as_ln_s='cp -pR' | |
2900 | +fi | |
2901 | +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
2902 | +rmdir conf$$.dir 2>/dev/null | |
2903 | + | |
2904 | + | |
2905 | +# as_fn_mkdir_p | |
2906 | +# ------------- | |
2907 | +# Create "$as_dir" as a directory, including parents if necessary. | |
2908 | +as_fn_mkdir_p () | |
2909 | +{ | |
2910 | + | |
2911 | + case $as_dir in #( | |
2912 | + -*) as_dir=./$as_dir;; | |
2913 | + esac | |
2914 | + test -d "$as_dir" || eval $as_mkdir_p || { | |
2915 | + as_dirs= | |
2916 | + while :; do | |
2917 | + case $as_dir in #( | |
2918 | + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
2919 | + *) as_qdir=$as_dir;; | |
2920 | + esac | |
2921 | + as_dirs="'$as_qdir' $as_dirs" | |
2922 | + as_dir=`$as_dirname -- "$as_dir" || | |
2923 | +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
2924 | + X"$as_dir" : 'X\(//\)[^/]' \| \ | |
2925 | + X"$as_dir" : 'X\(//\)$' \| \ | |
2926 | + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
2927 | +$as_echo X"$as_dir" | | |
2928 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
2929 | + s//\1/ | |
2930 | + q | |
2931 | + } | |
2932 | + /^X\(\/\/\)[^/].*/{ | |
2933 | + s//\1/ | |
2934 | + q | |
2935 | + } | |
2936 | + /^X\(\/\/\)$/{ | |
2937 | + s//\1/ | |
2938 | + q | |
2939 | + } | |
2940 | + /^X\(\/\).*/{ | |
2941 | + s//\1/ | |
2942 | + q | |
2943 | + } | |
2944 | + s/.*/./; q'` | |
2945 | + test -d "$as_dir" && break | |
2946 | + done | |
2947 | + test -z "$as_dirs" || eval "mkdir $as_dirs" | |
2948 | + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
2949 | + | |
2950 | + | |
2951 | +} # as_fn_mkdir_p | |
2952 | +if mkdir -p . 2>/dev/null; then | |
2953 | + as_mkdir_p='mkdir -p "$as_dir"' | |
2954 | +else | |
2955 | + test -d ./-p && rmdir ./-p | |
2956 | + as_mkdir_p=false | |
2957 | +fi | |
2958 | + | |
2959 | + | |
2960 | +# as_fn_executable_p FILE | |
2961 | +# ----------------------- | |
2962 | +# Test if FILE is an executable regular file. | |
2963 | +as_fn_executable_p () | |
2964 | +{ | |
2965 | + test -f "$1" && test -x "$1" | |
2966 | +} # as_fn_executable_p | |
2967 | +as_test_x='test -x' | |
2968 | +as_executable_p=as_fn_executable_p | |
2969 | + | |
2970 | +# Sed expression to map a string onto a valid CPP name. | |
2971 | +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
2972 | + | |
2973 | +# Sed expression to map a string onto a valid variable name. | |
2974 | +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
2975 | + | |
2976 | + | |
2977 | +exec 6>&1 | |
2978 | +## ----------------------------------- ## | |
2979 | +## Main body of $CONFIG_STATUS script. ## | |
2980 | +## ----------------------------------- ## | |
2981 | +_ASEOF | |
2982 | +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
2983 | + | |
2984 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
2985 | +# Save the log message, to keep $0 and so on meaningful, and to | |
2986 | +# report actual input values of CONFIG_FILES etc. instead of their | |
2987 | +# values after options handling. | |
2988 | +ac_log=" | |
2989 | +This file was extended by autotoolstest $as_me mono.01, which was | |
2990 | +generated by GNU Autoconf 2.69. Invocation command line was | |
2991 | + | |
2992 | + CONFIG_FILES = $CONFIG_FILES | |
2993 | + CONFIG_HEADERS = $CONFIG_HEADERS | |
2994 | + CONFIG_LINKS = $CONFIG_LINKS | |
2995 | + CONFIG_COMMANDS = $CONFIG_COMMANDS | |
2996 | + $ $0 $@ | |
2997 | + | |
2998 | +on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2999 | +" | |
3000 | + | |
3001 | +_ACEOF | |
3002 | + | |
3003 | +case $ac_config_files in *" | |
3004 | +"*) set x $ac_config_files; shift; ac_config_files=$*;; | |
3005 | +esac | |
3006 | + | |
3007 | + | |
3008 | + | |
3009 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3010 | +# Files that config.status was made for. | |
3011 | +config_files="$ac_config_files" | |
3012 | + | |
3013 | +_ACEOF | |
3014 | + | |
3015 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3016 | +ac_cs_usage="\ | |
3017 | +\`$as_me' instantiates files and other configuration actions | |
3018 | +from templates according to the current configuration. Unless the files | |
3019 | +and actions are specified as TAGs, all are instantiated by default. | |
3020 | + | |
3021 | +Usage: $0 [OPTION]... [TAG]... | |
3022 | + | |
3023 | + -h, --help print this help, then exit | |
3024 | + -V, --version print version number and configuration settings, then exit | |
3025 | + --config print configuration, then exit | |
3026 | + -q, --quiet, --silent | |
3027 | + do not print progress messages | |
3028 | + -d, --debug don't remove temporary files | |
3029 | + --recheck update $as_me by reconfiguring in the same conditions | |
3030 | + --file=FILE[:TEMPLATE] | |
3031 | + instantiate the configuration file FILE | |
3032 | + | |
3033 | +Configuration files: | |
3034 | +$config_files | |
3035 | + | |
3036 | +Report bugs to <matsuand AT users DT sourceforge DT jp>." | |
3037 | + | |
3038 | +_ACEOF | |
3039 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3040 | +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
3041 | +ac_cs_version="\\ | |
3042 | +autotoolstest config.status mono.01 | |
3043 | +configured by $0, generated by GNU Autoconf 2.69, | |
3044 | + with options \\"\$ac_cs_config\\" | |
3045 | + | |
3046 | +Copyright (C) 2012 Free Software Foundation, Inc. | |
3047 | +This config.status script is free software; the Free Software Foundation | |
3048 | +gives unlimited permission to copy, distribute and modify it." | |
3049 | + | |
3050 | +ac_pwd='$ac_pwd' | |
3051 | +srcdir='$srcdir' | |
3052 | +INSTALL='$INSTALL' | |
3053 | +MKDIR_P='$MKDIR_P' | |
3054 | +AWK='$AWK' | |
3055 | +test -n "\$AWK" || AWK=awk | |
3056 | +_ACEOF | |
3057 | + | |
3058 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3059 | +# The default lists apply if the user does not specify any file. | |
3060 | +ac_need_defaults=: | |
3061 | +while test $# != 0 | |
3062 | +do | |
3063 | + case $1 in | |
3064 | + --*=?*) | |
3065 | + ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
3066 | + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
3067 | + ac_shift=: | |
3068 | + ;; | |
3069 | + --*=) | |
3070 | + ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
3071 | + ac_optarg= | |
3072 | + ac_shift=: | |
3073 | + ;; | |
3074 | + *) | |
3075 | + ac_option=$1 | |
3076 | + ac_optarg=$2 | |
3077 | + ac_shift=shift | |
3078 | + ;; | |
3079 | + esac | |
3080 | + | |
3081 | + case $ac_option in | |
3082 | + # Handling of the options. | |
3083 | + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3084 | + ac_cs_recheck=: ;; | |
3085 | + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
3086 | + $as_echo "$ac_cs_version"; exit ;; | |
3087 | + --config | --confi | --conf | --con | --co | --c ) | |
3088 | + $as_echo "$ac_cs_config"; exit ;; | |
3089 | + --debug | --debu | --deb | --de | --d | -d ) | |
3090 | + debug=: ;; | |
3091 | + --file | --fil | --fi | --f ) | |
3092 | + $ac_shift | |
3093 | + case $ac_optarg in | |
3094 | + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
3095 | + '') as_fn_error $? "missing file argument" ;; | |
3096 | + esac | |
3097 | + as_fn_append CONFIG_FILES " '$ac_optarg'" | |
3098 | + ac_need_defaults=false;; | |
3099 | + --he | --h | --help | --hel | -h ) | |
3100 | + $as_echo "$ac_cs_usage"; exit ;; | |
3101 | + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
3102 | + | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
3103 | + ac_cs_silent=: ;; | |
3104 | + | |
3105 | + # This is an error. | |
3106 | + -*) as_fn_error $? "unrecognized option: \`$1' | |
3107 | +Try \`$0 --help' for more information." ;; | |
3108 | + | |
3109 | + *) as_fn_append ac_config_targets " $1" | |
3110 | + ac_need_defaults=false ;; | |
3111 | + | |
3112 | + esac | |
3113 | + shift | |
3114 | +done | |
3115 | + | |
3116 | +ac_configure_extra_args= | |
3117 | + | |
3118 | +if $ac_cs_silent; then | |
3119 | + exec 6>/dev/null | |
3120 | + ac_configure_extra_args="$ac_configure_extra_args --silent" | |
3121 | +fi | |
3122 | + | |
3123 | +_ACEOF | |
3124 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3125 | +if \$ac_cs_recheck; then | |
3126 | + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
3127 | + shift | |
3128 | + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
3129 | + CONFIG_SHELL='$SHELL' | |
3130 | + export CONFIG_SHELL | |
3131 | + exec "\$@" | |
3132 | +fi | |
3133 | + | |
3134 | +_ACEOF | |
3135 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3136 | +exec 5>>config.log | |
3137 | +{ | |
3138 | + echo | |
3139 | + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
3140 | +## Running $as_me. ## | |
3141 | +_ASBOX | |
3142 | + $as_echo "$ac_log" | |
3143 | +} >&5 | |
3144 | + | |
3145 | +_ACEOF | |
3146 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3147 | +_ACEOF | |
3148 | + | |
3149 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3150 | + | |
3151 | +# Handling of arguments. | |
3152 | +for ac_config_target in $ac_config_targets | |
3153 | +do | |
3154 | + case $ac_config_target in | |
3155 | + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
3156 | + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
3157 | + | |
3158 | + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
3159 | + esac | |
3160 | +done | |
3161 | + | |
3162 | + | |
3163 | +# If the user did not use the arguments to specify the items to instantiate, | |
3164 | +# then the envvar interface is used. Set only those that are not. | |
3165 | +# We use the long form for the default assignment because of an extremely | |
3166 | +# bizarre bug on SunOS 4.1.3. | |
3167 | +if $ac_need_defaults; then | |
3168 | + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
3169 | +fi | |
3170 | + | |
3171 | +# Have a temporary directory for convenience. Make it in the build tree | |
3172 | +# simply because there is no reason against having it here, and in addition, | |
3173 | +# creating and moving files from /tmp can sometimes cause problems. | |
3174 | +# Hook for its removal unless debugging. | |
3175 | +# Note that there is a small window in which the directory will not be cleaned: | |
3176 | +# after its creation but before its name has been assigned to `$tmp'. | |
3177 | +$debug || | |
3178 | +{ | |
3179 | + tmp= ac_tmp= | |
3180 | + trap 'exit_status=$? | |
3181 | + : "${ac_tmp:=$tmp}" | |
3182 | + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
3183 | +' 0 | |
3184 | + trap 'as_fn_exit 1' 1 2 13 15 | |
3185 | +} | |
3186 | +# Create a (secure) tmp directory for tmp files. | |
3187 | + | |
3188 | +{ | |
3189 | + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
3190 | + test -d "$tmp" | |
3191 | +} || | |
3192 | +{ | |
3193 | + tmp=./conf$$-$RANDOM | |
3194 | + (umask 077 && mkdir "$tmp") | |
3195 | +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
3196 | +ac_tmp=$tmp | |
3197 | + | |
3198 | +# Set up the scripts for CONFIG_FILES section. | |
3199 | +# No need to generate them if there are no CONFIG_FILES. | |
3200 | +# This happens for instance with `./config.status config.h'. | |
3201 | +if test -n "$CONFIG_FILES"; then | |
3202 | + | |
3203 | + | |
3204 | +ac_cr=`echo X | tr X '\015'` | |
3205 | +# On cygwin, bash can eat \r inside `` if the user requested igncr. | |
3206 | +# But we know of no other shell where ac_cr would be empty at this | |
3207 | +# point, so we can use a bashism as a fallback. | |
3208 | +if test "x$ac_cr" = x; then | |
3209 | + eval ac_cr=\$\'\\r\' | |
3210 | +fi | |
3211 | +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
3212 | +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
3213 | + ac_cs_awk_cr='\\r' | |
3214 | +else | |
3215 | + ac_cs_awk_cr=$ac_cr | |
3216 | +fi | |
3217 | + | |
3218 | +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
3219 | +_ACEOF | |
3220 | + | |
3221 | + | |
3222 | +{ | |
3223 | + echo "cat >conf$$subs.awk <<_ACEOF" && | |
3224 | + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
3225 | + echo "_ACEOF" | |
3226 | +} >conf$$subs.sh || | |
3227 | + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
3228 | +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
3229 | +ac_delim='%!_!# ' | |
3230 | +for ac_last_try in false false false false false :; do | |
3231 | + . ./conf$$subs.sh || | |
3232 | + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
3233 | + | |
3234 | + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
3235 | + if test $ac_delim_n = $ac_delim_num; then | |
3236 | + break | |
3237 | + elif $ac_last_try; then | |
3238 | + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
3239 | + else | |
3240 | + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
3241 | + fi | |
3242 | +done | |
3243 | +rm -f conf$$subs.sh | |
3244 | + | |
3245 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3246 | +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
3247 | +_ACEOF | |
3248 | +sed -n ' | |
3249 | +h | |
3250 | +s/^/S["/; s/!.*/"]=/ | |
3251 | +p | |
3252 | +g | |
3253 | +s/^[^!]*!// | |
3254 | +:repl | |
3255 | +t repl | |
3256 | +s/'"$ac_delim"'$// | |
3257 | +t delim | |
3258 | +:nl | |
3259 | +h | |
3260 | +s/\(.\{148\}\)..*/\1/ | |
3261 | +t more1 | |
3262 | +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
3263 | +p | |
3264 | +n | |
3265 | +b repl | |
3266 | +:more1 | |
3267 | +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
3268 | +p | |
3269 | +g | |
3270 | +s/.\{148\}// | |
3271 | +t nl | |
3272 | +:delim | |
3273 | +h | |
3274 | +s/\(.\{148\}\)..*/\1/ | |
3275 | +t more2 | |
3276 | +s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
3277 | +p | |
3278 | +b | |
3279 | +:more2 | |
3280 | +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
3281 | +p | |
3282 | +g | |
3283 | +s/.\{148\}// | |
3284 | +t delim | |
3285 | +' <conf$$subs.awk | sed ' | |
3286 | +/^[^""]/{ | |
3287 | + N | |
3288 | + s/\n// | |
3289 | +} | |
3290 | +' >>$CONFIG_STATUS || ac_write_fail=1 | |
3291 | +rm -f conf$$subs.awk | |
3292 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3293 | +_ACAWK | |
3294 | +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
3295 | + for (key in S) S_is_set[key] = 1 | |
3296 | + FS = "" | |
3297 | + | |
3298 | +} | |
3299 | +{ | |
3300 | + line = $ 0 | |
3301 | + nfields = split(line, field, "@") | |
3302 | + substed = 0 | |
3303 | + len = length(field[1]) | |
3304 | + for (i = 2; i < nfields; i++) { | |
3305 | + key = field[i] | |
3306 | + keylen = length(key) | |
3307 | + if (S_is_set[key]) { | |
3308 | + value = S[key] | |
3309 | + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
3310 | + len += length(value) + length(field[++i]) | |
3311 | + substed = 1 | |
3312 | + } else | |
3313 | + len += 1 + keylen | |
3314 | + } | |
3315 | + | |
3316 | + print line | |
3317 | +} | |
3318 | + | |
3319 | +_ACAWK | |
3320 | +_ACEOF | |
3321 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3322 | +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
3323 | + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
3324 | +else | |
3325 | + cat | |
3326 | +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
3327 | + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
3328 | +_ACEOF | |
3329 | + | |
3330 | +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
3331 | +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
3332 | +# trailing colons and then remove the whole line if VPATH becomes empty | |
3333 | +# (actually we leave an empty line to preserve line numbers). | |
3334 | +if test "x$srcdir" = x.; then | |
3335 | + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
3336 | +h | |
3337 | +s/// | |
3338 | +s/^/:/ | |
3339 | +s/[ ]*$/:/ | |
3340 | +s/:\$(srcdir):/:/g | |
3341 | +s/:\${srcdir}:/:/g | |
3342 | +s/:@srcdir@:/:/g | |
3343 | +s/^:*// | |
3344 | +s/:*$// | |
3345 | +x | |
3346 | +s/\(=[ ]*\).*/\1/ | |
3347 | +G | |
3348 | +s/\n// | |
3349 | +s/^[^=]*=[ ]*$// | |
3350 | +}' | |
3351 | +fi | |
3352 | + | |
3353 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3354 | +fi # test -n "$CONFIG_FILES" | |
3355 | + | |
3356 | + | |
3357 | +eval set X " :F $CONFIG_FILES " | |
3358 | +shift | |
3359 | +for ac_tag | |
3360 | +do | |
3361 | + case $ac_tag in | |
3362 | + :[FHLC]) ac_mode=$ac_tag; continue;; | |
3363 | + esac | |
3364 | + case $ac_mode$ac_tag in | |
3365 | + :[FHL]*:*);; | |
3366 | + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
3367 | + :[FH]-) ac_tag=-:-;; | |
3368 | + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
3369 | + esac | |
3370 | + ac_save_IFS=$IFS | |
3371 | + IFS=: | |
3372 | + set x $ac_tag | |
3373 | + IFS=$ac_save_IFS | |
3374 | + shift | |
3375 | + ac_file=$1 | |
3376 | + shift | |
3377 | + | |
3378 | + case $ac_mode in | |
3379 | + :L) ac_source=$1;; | |
3380 | + :[FH]) | |
3381 | + ac_file_inputs= | |
3382 | + for ac_f | |
3383 | + do | |
3384 | + case $ac_f in | |
3385 | + -) ac_f="$ac_tmp/stdin";; | |
3386 | + *) # Look for the file first in the build tree, then in the source tree | |
3387 | + # (if the path is not absolute). The absolute path cannot be DOS-style, | |
3388 | + # because $ac_f cannot contain `:'. | |
3389 | + test -f "$ac_f" || | |
3390 | + case $ac_f in | |
3391 | + [\\/$]*) false;; | |
3392 | + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
3393 | + esac || | |
3394 | + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
3395 | + esac | |
3396 | + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
3397 | + as_fn_append ac_file_inputs " '$ac_f'" | |
3398 | + done | |
3399 | + | |
3400 | + # Let's still pretend it is `configure' which instantiates (i.e., don't | |
3401 | + # use $as_me), people would be surprised to read: | |
3402 | + # /* config.h. Generated by config.status. */ | |
3403 | + configure_input='Generated from '` | |
3404 | + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
3405 | + `' by configure.' | |
3406 | + if test x"$ac_file" != x-; then | |
3407 | + configure_input="$ac_file. $configure_input" | |
3408 | + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
3409 | +$as_echo "$as_me: creating $ac_file" >&6;} | |
3410 | + fi | |
3411 | + # Neutralize special characters interpreted by sed in replacement strings. | |
3412 | + case $configure_input in #( | |
3413 | + *\&* | *\|* | *\\* ) | |
3414 | + ac_sed_conf_input=`$as_echo "$configure_input" | | |
3415 | + sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
3416 | + *) ac_sed_conf_input=$configure_input;; | |
3417 | + esac | |
3418 | + | |
3419 | + case $ac_tag in | |
3420 | + *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
3421 | + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
3422 | + esac | |
3423 | + ;; | |
3424 | + esac | |
3425 | + | |
3426 | + ac_dir=`$as_dirname -- "$ac_file" || | |
3427 | +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3428 | + X"$ac_file" : 'X\(//\)[^/]' \| \ | |
3429 | + X"$ac_file" : 'X\(//\)$' \| \ | |
3430 | + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
3431 | +$as_echo X"$ac_file" | | |
3432 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
3433 | + s//\1/ | |
3434 | + q | |
3435 | + } | |
3436 | + /^X\(\/\/\)[^/].*/{ | |
3437 | + s//\1/ | |
3438 | + q | |
3439 | + } | |
3440 | + /^X\(\/\/\)$/{ | |
3441 | + s//\1/ | |
3442 | + q | |
3443 | + } | |
3444 | + /^X\(\/\).*/{ | |
3445 | + s//\1/ | |
3446 | + q | |
3447 | + } | |
3448 | + s/.*/./; q'` | |
3449 | + as_dir="$ac_dir"; as_fn_mkdir_p | |
3450 | + ac_builddir=. | |
3451 | + | |
3452 | +case "$ac_dir" in | |
3453 | +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
3454 | +*) | |
3455 | + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
3456 | + # A ".." for each directory in $ac_dir_suffix. | |
3457 | + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
3458 | + case $ac_top_builddir_sub in | |
3459 | + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
3460 | + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
3461 | + esac ;; | |
3462 | +esac | |
3463 | +ac_abs_top_builddir=$ac_pwd | |
3464 | +ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
3465 | +# for backward compatibility: | |
3466 | +ac_top_builddir=$ac_top_build_prefix | |
3467 | + | |
3468 | +case $srcdir in | |
3469 | + .) # We are building in place. | |
3470 | + ac_srcdir=. | |
3471 | + ac_top_srcdir=$ac_top_builddir_sub | |
3472 | + ac_abs_top_srcdir=$ac_pwd ;; | |
3473 | + [\\/]* | ?:[\\/]* ) # Absolute name. | |
3474 | + ac_srcdir=$srcdir$ac_dir_suffix; | |
3475 | + ac_top_srcdir=$srcdir | |
3476 | + ac_abs_top_srcdir=$srcdir ;; | |
3477 | + *) # Relative name. | |
3478 | + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
3479 | + ac_top_srcdir=$ac_top_build_prefix$srcdir | |
3480 | + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
3481 | +esac | |
3482 | +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
3483 | + | |
3484 | + | |
3485 | + case $ac_mode in | |
3486 | + :F) | |
3487 | + # | |
3488 | + # CONFIG_FILE | |
3489 | + # | |
3490 | + | |
3491 | + case $INSTALL in | |
3492 | + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
3493 | + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
3494 | + esac | |
3495 | + ac_MKDIR_P=$MKDIR_P | |
3496 | + case $MKDIR_P in | |
3497 | + [\\/$]* | ?:[\\/]* ) ;; | |
3498 | + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
3499 | + esac | |
3500 | +_ACEOF | |
3501 | + | |
3502 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3503 | +# If the template does not know about datarootdir, expand it. | |
3504 | +# FIXME: This hack should be removed a few years after 2.60. | |
3505 | +ac_datarootdir_hack=; ac_datarootdir_seen= | |
3506 | +ac_sed_dataroot=' | |
3507 | +/datarootdir/ { | |
3508 | + p | |
3509 | + q | |
3510 | +} | |
3511 | +/@datadir@/p | |
3512 | +/@docdir@/p | |
3513 | +/@infodir@/p | |
3514 | +/@localedir@/p | |
3515 | +/@mandir@/p' | |
3516 | +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
3517 | +*datarootdir*) ac_datarootdir_seen=yes;; | |
3518 | +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
3519 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
3520 | +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
3521 | +_ACEOF | |
3522 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3523 | + ac_datarootdir_hack=' | |
3524 | + s&@datadir@&$datadir&g | |
3525 | + s&@docdir@&$docdir&g | |
3526 | + s&@infodir@&$infodir&g | |
3527 | + s&@localedir@&$localedir&g | |
3528 | + s&@mandir@&$mandir&g | |
3529 | + s&\\\${datarootdir}&$datarootdir&g' ;; | |
3530 | +esac | |
3531 | +_ACEOF | |
3532 | + | |
3533 | +# Neutralize VPATH when `$srcdir' = `.'. | |
3534 | +# Shell code in configure.ac might set extrasub. | |
3535 | +# FIXME: do we really want to maintain this feature? | |
3536 | +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3537 | +ac_sed_extra="$ac_vpsub | |
3538 | +$extrasub | |
3539 | +_ACEOF | |
3540 | +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3541 | +:t | |
3542 | +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
3543 | +s|@configure_input@|$ac_sed_conf_input|;t t | |
3544 | +s&@top_builddir@&$ac_top_builddir_sub&;t t | |
3545 | +s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
3546 | +s&@srcdir@&$ac_srcdir&;t t | |
3547 | +s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
3548 | +s&@top_srcdir@&$ac_top_srcdir&;t t | |
3549 | +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
3550 | +s&@builddir@&$ac_builddir&;t t | |
3551 | +s&@abs_builddir@&$ac_abs_builddir&;t t | |
3552 | +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
3553 | +s&@INSTALL@&$ac_INSTALL&;t t | |
3554 | +s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
3555 | +$ac_datarootdir_hack | |
3556 | +" | |
3557 | +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
3558 | + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
3559 | + | |
3560 | +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
3561 | + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
3562 | + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
3563 | + "$ac_tmp/out"`; test -z "$ac_out"; } && | |
3564 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
3565 | +which seems to be undefined. Please make sure it is defined" >&5 | |
3566 | +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
3567 | +which seems to be undefined. Please make sure it is defined" >&2;} | |
3568 | + | |
3569 | + rm -f "$ac_tmp/stdin" | |
3570 | + case $ac_file in | |
3571 | + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
3572 | + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
3573 | + esac \ | |
3574 | + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
3575 | + ;; | |
3576 | + | |
3577 | + | |
3578 | + | |
3579 | + esac | |
3580 | + | |
3581 | +done # for ac_tag | |
3582 | + | |
3583 | + | |
3584 | +as_fn_exit 0 | |
3585 | +_ACEOF | |
3586 | +ac_clean_files=$ac_clean_files_save | |
3587 | + | |
3588 | +test $ac_write_fail = 0 || | |
3589 | + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
3590 | + | |
3591 | + | |
3592 | +# configure is writing to config.log, and then calls config.status. | |
3593 | +# config.status does its own redirection, appending to config.log. | |
3594 | +# Unfortunately, on DOS this fails, as config.log is still kept open | |
3595 | +# by configure, so config.status won't be able to write to it; its | |
3596 | +# output is simply discarded. So we exec the FD to /dev/null, | |
3597 | +# effectively closing config.log, so it can be properly (re)opened and | |
3598 | +# appended to by config.status. When coming back to configure, we | |
3599 | +# need to make the FD available again. | |
3600 | +if test "$no_create" != yes; then | |
3601 | + ac_cs_success=: | |
3602 | + ac_config_status_args= | |
3603 | + test "$silent" = yes && | |
3604 | + ac_config_status_args="$ac_config_status_args --quiet" | |
3605 | + exec 5>/dev/null | |
3606 | + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
3607 | + exec 5>>config.log | |
3608 | + # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
3609 | + # would make configure fail if this is the last instruction. | |
3610 | + $ac_cs_success || as_fn_exit 1 | |
3611 | +fi | |
3612 | +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
3613 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
3614 | +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
3615 | +fi | |
3616 | + |
@@ -0,0 +1,23 @@ | ||
1 | +# -*- Autoconf -*- | |
2 | +# Process this file with autoconf to produce a configure script. | |
3 | + | |
4 | +AC_PREREQ([2.69]) | |
5 | +AC_INIT([autotoolstest], [mono.01], [matsuand AT users DT sourceforge DT jp]) | |
6 | +AM_INIT_AUTOMAKE | |
7 | + | |
8 | +m4_include([m4/cli.m4]) | |
9 | + | |
10 | +# Checks for programs. | |
11 | +AM_PROG_CLI | |
12 | + | |
13 | +# Checks for libraries. | |
14 | + | |
15 | +# Checks for header files. | |
16 | + | |
17 | +# Checks for typedefs, structures, and compiler characteristics. | |
18 | + | |
19 | +# Checks for library functions. | |
20 | + | |
21 | +AC_CONFIG_FILES([Makefile | |
22 | + src/Makefile]) | |
23 | +AC_OUTPUT |
@@ -0,0 +1,780 @@ | ||
1 | +#! /bin/sh | |
2 | +# depcomp - compile a program generating dependencies as side-effects | |
3 | + | |
4 | +scriptversion=2012-07-12.20; # UTC | |
5 | + | |
6 | +# Copyright (C) 1999-2012 Free Software Foundation, Inc. | |
7 | + | |
8 | +# This program is free software; you can redistribute it and/or modify | |
9 | +# it under the terms of the GNU General Public License as published by | |
10 | +# the Free Software Foundation; either version 2, or (at your option) | |
11 | +# any later version. | |
12 | + | |
13 | +# This program is distributed in the hope that it will be useful, | |
14 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | +# GNU General Public License for more details. | |
17 | + | |
18 | +# You should have received a copy of the GNU General Public License | |
19 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. | |
20 | + | |
21 | +# As a special exception to the GNU General Public License, if you | |
22 | +# distribute this file as part of a program that contains a | |
23 | +# configuration script generated by Autoconf, you may include it under | |
24 | +# the same distribution terms that you use for the rest of that program. | |
25 | + | |
26 | +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>. | |
27 | + | |
28 | +case $1 in | |
29 | + '') | |
30 | + echo "$0: No command. Try '$0 --help' for more information." 1>&2 | |
31 | + exit 1; | |
32 | + ;; | |
33 | + -h | --h*) | |
34 | + cat <<\EOF | |
35 | +Usage: depcomp [--help] [--version] PROGRAM [ARGS] | |
36 | + | |
37 | +Run PROGRAMS ARGS to compile a file, generating dependencies | |
38 | +as side-effects. | |
39 | + | |
40 | +Environment variables: | |
41 | + depmode Dependency tracking mode. | |
42 | + source Source file read by 'PROGRAMS ARGS'. | |
43 | + object Object file output by 'PROGRAMS ARGS'. | |
44 | + DEPDIR directory where to store dependencies. | |
45 | + depfile Dependency file to output. | |
46 | + tmpdepfile Temporary file to use when outputting dependencies. | |
47 | + libtool Whether libtool is used (yes/no). | |
48 | + | |
49 | +Report bugs to <bug-automake@gnu.org>. | |
50 | +EOF | |
51 | + exit $? | |
52 | + ;; | |
53 | + -v | --v*) | |
54 | + echo "depcomp $scriptversion" | |
55 | + exit $? | |
56 | + ;; | |
57 | +esac | |
58 | + | |
59 | +# A tabulation character. | |
60 | +tab=' ' | |
61 | +# A newline character. | |
62 | +nl=' | |
63 | +' | |
64 | + | |
65 | +if test -z "$depmode" || test -z "$source" || test -z "$object"; then | |
66 | + echo "depcomp: Variables source, object and depmode must be set" 1>&2 | |
67 | + exit 1 | |
68 | +fi | |
69 | + | |
70 | +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. | |
71 | +depfile=${depfile-`echo "$object" | | |
72 | + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} | |
73 | +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} | |
74 | + | |
75 | +rm -f "$tmpdepfile" | |
76 | + | |
77 | +# Some modes work just like other modes, but use different flags. We | |
78 | +# parameterize here, but still list the modes in the big case below, | |
79 | +# to make depend.m4 easier to write. Note that we *cannot* use a case | |
80 | +# here, because this file can only contain one case statement. | |
81 | +if test "$depmode" = hp; then | |
82 | + # HP compiler uses -M and no extra arg. | |
83 | + gccflag=-M | |
84 | + depmode=gcc | |
85 | +fi | |
86 | + | |
87 | +if test "$depmode" = dashXmstdout; then | |
88 | + # This is just like dashmstdout with a different argument. | |
89 | + dashmflag=-xM | |
90 | + depmode=dashmstdout | |
91 | +fi | |
92 | + | |
93 | +cygpath_u="cygpath -u -f -" | |
94 | +if test "$depmode" = msvcmsys; then | |
95 | + # This is just like msvisualcpp but w/o cygpath translation. | |
96 | + # Just convert the backslash-escaped backslashes to single forward | |
97 | + # slashes to satisfy depend.m4 | |
98 | + cygpath_u='sed s,\\\\,/,g' | |
99 | + depmode=msvisualcpp | |
100 | +fi | |
101 | + | |
102 | +if test "$depmode" = msvc7msys; then | |
103 | + # This is just like msvc7 but w/o cygpath translation. | |
104 | + # Just convert the backslash-escaped backslashes to single forward | |
105 | + # slashes to satisfy depend.m4 | |
106 | + cygpath_u='sed s,\\\\,/,g' | |
107 | + depmode=msvc7 | |
108 | +fi | |
109 | + | |
110 | +if test "$depmode" = xlc; then | |
111 | + # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations. | |
112 | + gccflag=-qmakedep=gcc,-MF | |
113 | + depmode=gcc | |
114 | +fi | |
115 | + | |
116 | +case "$depmode" in | |
117 | +gcc3) | |
118 | +## gcc 3 implements dependency tracking that does exactly what | |
119 | +## we want. Yay! Note: for some reason libtool 1.4 doesn't like | |
120 | +## it if -MD -MP comes after the -MF stuff. Hmm. | |
121 | +## Unfortunately, FreeBSD c89 acceptance of flags depends upon | |
122 | +## the command line argument order; so add the flags where they | |
123 | +## appear in depend2.am. Note that the slowdown incurred here | |
124 | +## affects only configure: in makefiles, %FASTDEP% shortcuts this. | |
125 | + for arg | |
126 | + do | |
127 | + case $arg in | |
128 | + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; | |
129 | + *) set fnord "$@" "$arg" ;; | |
130 | + esac | |
131 | + shift # fnord | |
132 | + shift # $arg | |
133 | + done | |
134 | + "$@" | |
135 | + stat=$? | |
136 | + if test $stat -eq 0; then : | |
137 | + else | |
138 | + rm -f "$tmpdepfile" | |
139 | + exit $stat | |
140 | + fi | |
141 | + mv "$tmpdepfile" "$depfile" | |
142 | + ;; | |
143 | + | |
144 | +gcc) | |
145 | +## There are various ways to get dependency output from gcc. Here's | |
146 | +## why we pick this rather obscure method: | |
147 | +## - Don't want to use -MD because we'd like the dependencies to end | |
148 | +## up in a subdir. Having to rename by hand is ugly. | |
149 | +## (We might end up doing this anyway to support other compilers.) | |
150 | +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like | |
151 | +## -MM, not -M (despite what the docs say). | |
152 | +## - Using -M directly means running the compiler twice (even worse | |
153 | +## than renaming). | |
154 | + if test -z "$gccflag"; then | |
155 | + gccflag=-MD, | |
156 | + fi | |
157 | + "$@" -Wp,"$gccflag$tmpdepfile" | |
158 | + stat=$? | |
159 | + if test $stat -eq 0; then : | |
160 | + else | |
161 | + rm -f "$tmpdepfile" | |
162 | + exit $stat | |
163 | + fi | |
164 | + rm -f "$depfile" | |
165 | + echo "$object : \\" > "$depfile" | |
166 | + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | |
167 | +## The second -e expression handles DOS-style file names with drive letters. | |
168 | + sed -e 's/^[^:]*: / /' \ | |
169 | + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" | |
170 | +## This next piece of magic avoids the "deleted header file" problem. | |
171 | +## The problem is that when a header file which appears in a .P file | |
172 | +## is deleted, the dependency causes make to die (because there is | |
173 | +## typically no way to rebuild the header). We avoid this by adding | |
174 | +## dummy dependencies for each header file. Too bad gcc doesn't do | |
175 | +## this for us directly. | |
176 | + tr ' ' "$nl" < "$tmpdepfile" | | |
177 | +## Some versions of gcc put a space before the ':'. On the theory | |
178 | +## that the space means something, we add a space to the output as | |
179 | +## well. hp depmode also adds that space, but also prefixes the VPATH | |
180 | +## to the object. Take care to not repeat it in the output. | |
181 | +## Some versions of the HPUX 10.20 sed can't process this invocation | |
182 | +## correctly. Breaking it into two sed invocations is a workaround. | |
183 | + sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | |
184 | + | sed -e 's/$/ :/' >> "$depfile" | |
185 | + rm -f "$tmpdepfile" | |
186 | + ;; | |
187 | + | |
188 | +hp) | |
189 | + # This case exists only to let depend.m4 do its work. It works by | |
190 | + # looking at the text of this script. This case will never be run, | |
191 | + # since it is checked for above. | |
192 | + exit 1 | |
193 | + ;; | |
194 | + | |
195 | +sgi) | |
196 | + if test "$libtool" = yes; then | |
197 | + "$@" "-Wp,-MDupdate,$tmpdepfile" | |
198 | + else | |
199 | + "$@" -MDupdate "$tmpdepfile" | |
200 | + fi | |
201 | + stat=$? | |
202 | + if test $stat -eq 0; then : | |
203 | + else | |
204 | + rm -f "$tmpdepfile" | |
205 | + exit $stat | |
206 | + fi | |
207 | + rm -f "$depfile" | |
208 | + | |
209 | + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files | |
210 | + echo "$object : \\" > "$depfile" | |
211 | + | |
212 | + # Clip off the initial element (the dependent). Don't try to be | |
213 | + # clever and replace this with sed code, as IRIX sed won't handle | |
214 | + # lines with more than a fixed number of characters (4096 in | |
215 | + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; | |
216 | + # the IRIX cc adds comments like '#:fec' to the end of the | |
217 | + # dependency line. | |
218 | + tr ' ' "$nl" < "$tmpdepfile" \ | |
219 | + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ | |
220 | + tr "$nl" ' ' >> "$depfile" | |
221 | + echo >> "$depfile" | |
222 | + | |
223 | + # The second pass generates a dummy entry for each header file. | |
224 | + tr ' ' "$nl" < "$tmpdepfile" \ | |
225 | + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | |
226 | + >> "$depfile" | |
227 | + else | |
228 | + # The sourcefile does not contain any dependencies, so just | |
229 | + # store a dummy comment line, to avoid errors with the Makefile | |
230 | + # "include basename.Plo" scheme. | |
231 | + echo "#dummy" > "$depfile" | |
232 | + fi | |
233 | + rm -f "$tmpdepfile" | |
234 | + ;; | |
235 | + | |
236 | +xlc) | |
237 | + # This case exists only to let depend.m4 do its work. It works by | |
238 | + # looking at the text of this script. This case will never be run, | |
239 | + # since it is checked for above. | |
240 | + exit 1 | |
241 | + ;; | |
242 | + | |
243 | +aix) | |
244 | + # The C for AIX Compiler uses -M and outputs the dependencies | |
245 | + # in a .u file. In older versions, this file always lives in the | |
246 | + # current directory. Also, the AIX compiler puts '$object:' at the | |
247 | + # start of each line; $object doesn't have directory information. | |
248 | + # Version 6 uses the directory in both cases. | |
249 | + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
250 | + test "x$dir" = "x$object" && dir= | |
251 | + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
252 | + if test "$libtool" = yes; then | |
253 | + tmpdepfile1=$dir$base.u | |
254 | + tmpdepfile2=$base.u | |
255 | + tmpdepfile3=$dir.libs/$base.u | |
256 | + "$@" -Wc,-M | |
257 | + else | |
258 | + tmpdepfile1=$dir$base.u | |
259 | + tmpdepfile2=$dir$base.u | |
260 | + tmpdepfile3=$dir$base.u | |
261 | + "$@" -M | |
262 | + fi | |
263 | + stat=$? | |
264 | + | |
265 | + if test $stat -eq 0; then : | |
266 | + else | |
267 | + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | |
268 | + exit $stat | |
269 | + fi | |
270 | + | |
271 | + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | |
272 | + do | |
273 | + test -f "$tmpdepfile" && break | |
274 | + done | |
275 | + if test -f "$tmpdepfile"; then | |
276 | + # Each line is of the form 'foo.o: dependent.h'. | |
277 | + # Do two passes, one to just change these to | |
278 | + # '$object: dependent.h' and one to simply 'dependent.h:'. | |
279 | + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | |
280 | + sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | |
281 | + else | |
282 | + # The sourcefile does not contain any dependencies, so just | |
283 | + # store a dummy comment line, to avoid errors with the Makefile | |
284 | + # "include basename.Plo" scheme. | |
285 | + echo "#dummy" > "$depfile" | |
286 | + fi | |
287 | + rm -f "$tmpdepfile" | |
288 | + ;; | |
289 | + | |
290 | +icc) | |
291 | + # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'. | |
292 | + # However on | |
293 | + # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c | |
294 | + # ICC 7.0 will fill foo.d with something like | |
295 | + # foo.o: sub/foo.c | |
296 | + # foo.o: sub/foo.h | |
297 | + # which is wrong. We want | |
298 | + # sub/foo.o: sub/foo.c | |
299 | + # sub/foo.o: sub/foo.h | |
300 | + # sub/foo.c: | |
301 | + # sub/foo.h: | |
302 | + # ICC 7.1 will output | |
303 | + # foo.o: sub/foo.c sub/foo.h | |
304 | + # and will wrap long lines using '\': | |
305 | + # foo.o: sub/foo.c ... \ | |
306 | + # sub/foo.h ... \ | |
307 | + # ... | |
308 | + # tcc 0.9.26 (FIXME still under development at the moment of writing) | |
309 | + # will emit a similar output, but also prepend the continuation lines | |
310 | + # with horizontal tabulation characters. | |
311 | + "$@" -MD -MF "$tmpdepfile" | |
312 | + stat=$? | |
313 | + if test $stat -eq 0; then : | |
314 | + else | |
315 | + rm -f "$tmpdepfile" | |
316 | + exit $stat | |
317 | + fi | |
318 | + rm -f "$depfile" | |
319 | + # Each line is of the form 'foo.o: dependent.h', | |
320 | + # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'. | |
321 | + # Do two passes, one to just change these to | |
322 | + # '$object: dependent.h' and one to simply 'dependent.h:'. | |
323 | + sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \ | |
324 | + < "$tmpdepfile" > "$depfile" | |
325 | + sed ' | |
326 | + s/[ '"$tab"'][ '"$tab"']*/ /g | |
327 | + s/^ *// | |
328 | + s/ *\\*$// | |
329 | + s/^[^:]*: *// | |
330 | + /^$/d | |
331 | + /:$/d | |
332 | + s/$/ :/ | |
333 | + ' < "$tmpdepfile" >> "$depfile" | |
334 | + rm -f "$tmpdepfile" | |
335 | + ;; | |
336 | + | |
337 | +## The order of this option in the case statement is important, since the | |
338 | +## shell code in configure will try each of these formats in the order | |
339 | +## listed in this file. A plain '-MD' option would be understood by many | |
340 | +## compilers, so we must ensure this comes after the gcc and icc options. | |
341 | +pgcc) | |
342 | + # Portland's C compiler understands '-MD'. | |
343 | + # Will always output deps to 'file.d' where file is the root name of the | |
344 | + # source file under compilation, even if file resides in a subdirectory. | |
345 | + # The object file name does not affect the name of the '.d' file. | |
346 | + # pgcc 10.2 will output | |
347 | + # foo.o: sub/foo.c sub/foo.h | |
348 | + # and will wrap long lines using '\' : | |
349 | + # foo.o: sub/foo.c ... \ | |
350 | + # sub/foo.h ... \ | |
351 | + # ... | |
352 | + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
353 | + test "x$dir" = "x$object" && dir= | |
354 | + # Use the source, not the object, to determine the base name, since | |
355 | + # that's sadly what pgcc will do too. | |
356 | + base=`echo "$source" | sed -e 's|^.*/||' -e 's/\.[-_a-zA-Z0-9]*$//'` | |
357 | + tmpdepfile="$base.d" | |
358 | + | |
359 | + # For projects that build the same source file twice into different object | |
360 | + # files, the pgcc approach of using the *source* file root name can cause | |
361 | + # problems in parallel builds. Use a locking strategy to avoid stomping on | |
362 | + # the same $tmpdepfile. | |
363 | + lockdir="$base.d-lock" | |
364 | + trap "echo '$0: caught signal, cleaning up...' >&2; rm -rf $lockdir" 1 2 13 15 | |
365 | + numtries=100 | |
366 | + i=$numtries | |
367 | + while test $i -gt 0 ; do | |
368 | + # mkdir is a portable test-and-set. | |
369 | + if mkdir $lockdir 2>/dev/null; then | |
370 | + # This process acquired the lock. | |
371 | + "$@" -MD | |
372 | + stat=$? | |
373 | + # Release the lock. | |
374 | + rm -rf $lockdir | |
375 | + break | |
376 | + else | |
377 | + ## the lock is being held by a different process, | |
378 | + ## wait until the winning process is done or we timeout | |
379 | + while test -d $lockdir && test $i -gt 0; do | |
380 | + sleep 1 | |
381 | + i=`expr $i - 1` | |
382 | + done | |
383 | + fi | |
384 | + i=`expr $i - 1` | |
385 | + done | |
386 | + trap - 1 2 13 15 | |
387 | + if test $i -le 0; then | |
388 | + echo "$0: failed to acquire lock after $numtries attempts" >&2 | |
389 | + echo "$0: check lockdir '$lockdir'" >&2 | |
390 | + exit 1 | |
391 | + fi | |
392 | + | |
393 | + if test $stat -ne 0; then | |
394 | + rm -f "$tmpdepfile" | |
395 | + exit $stat | |
396 | + fi | |
397 | + rm -f "$depfile" | |
398 | + # Each line is of the form `foo.o: dependent.h', | |
399 | + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. | |
400 | + # Do two passes, one to just change these to | |
401 | + # `$object: dependent.h' and one to simply `dependent.h:'. | |
402 | + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" | |
403 | + # Some versions of the HPUX 10.20 sed can't process this invocation | |
404 | + # correctly. Breaking it into two sed invocations is a workaround. | |
405 | + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | | |
406 | + sed -e 's/$/ :/' >> "$depfile" | |
407 | + rm -f "$tmpdepfile" | |
408 | + ;; | |
409 | + | |
410 | +hp2) | |
411 | + # The "hp" stanza above does not work with aCC (C++) and HP's ia64 | |
412 | + # compilers, which have integrated preprocessors. The correct option | |
413 | + # to use with these is +Maked; it writes dependencies to a file named | |
414 | + # 'foo.d', which lands next to the object file, wherever that | |
415 | + # happens to be. | |
416 | + # Much of this is similar to the tru64 case; see comments there. | |
417 | + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
418 | + test "x$dir" = "x$object" && dir= | |
419 | + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
420 | + if test "$libtool" = yes; then | |
421 | + tmpdepfile1=$dir$base.d | |
422 | + tmpdepfile2=$dir.libs/$base.d | |
423 | + "$@" -Wc,+Maked | |
424 | + else | |
425 | + tmpdepfile1=$dir$base.d | |
426 | + tmpdepfile2=$dir$base.d | |
427 | + "$@" +Maked | |
428 | + fi | |
429 | + stat=$? | |
430 | + if test $stat -eq 0; then : | |
431 | + else | |
432 | + rm -f "$tmpdepfile1" "$tmpdepfile2" | |
433 | + exit $stat | |
434 | + fi | |
435 | + | |
436 | + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" | |
437 | + do | |
438 | + test -f "$tmpdepfile" && break | |
439 | + done | |
440 | + if test -f "$tmpdepfile"; then | |
441 | + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" | |
442 | + # Add 'dependent.h:' lines. | |
443 | + sed -ne '2,${ | |
444 | + s/^ *// | |
445 | + s/ \\*$// | |
446 | + s/$/:/ | |
447 | + p | |
448 | + }' "$tmpdepfile" >> "$depfile" | |
449 | + else | |
450 | + echo "#dummy" > "$depfile" | |
451 | + fi | |
452 | + rm -f "$tmpdepfile" "$tmpdepfile2" | |
453 | + ;; | |
454 | + | |
455 | +tru64) | |
456 | + # The Tru64 compiler uses -MD to generate dependencies as a side | |
457 | + # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. | |
458 | + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put | |
459 | + # dependencies in 'foo.d' instead, so we check for that too. | |
460 | + # Subdirectories are respected. | |
461 | + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
462 | + test "x$dir" = "x$object" && dir= | |
463 | + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
464 | + | |
465 | + if test "$libtool" = yes; then | |
466 | + # With Tru64 cc, shared objects can also be used to make a | |
467 | + # static library. This mechanism is used in libtool 1.4 series to | |
468 | + # handle both shared and static libraries in a single compilation. | |
469 | + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. | |
470 | + # | |
471 | + # With libtool 1.5 this exception was removed, and libtool now | |
472 | + # generates 2 separate objects for the 2 libraries. These two | |
473 | + # compilations output dependencies in $dir.libs/$base.o.d and | |
474 | + # in $dir$base.o.d. We have to check for both files, because | |
475 | + # one of the two compilations can be disabled. We should prefer | |
476 | + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is | |
477 | + # automatically cleaned when .libs/ is deleted, while ignoring | |
478 | + # the former would cause a distcleancheck panic. | |
479 | + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 | |
480 | + tmpdepfile2=$dir$base.o.d # libtool 1.5 | |
481 | + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 | |
482 | + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 | |
483 | + "$@" -Wc,-MD | |
484 | + else | |
485 | + tmpdepfile1=$dir$base.o.d | |
486 | + tmpdepfile2=$dir$base.d | |
487 | + tmpdepfile3=$dir$base.d | |
488 | + tmpdepfile4=$dir$base.d | |
489 | + "$@" -MD | |
490 | + fi | |
491 | + | |
492 | + stat=$? | |
493 | + if test $stat -eq 0; then : | |
494 | + else | |
495 | + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | |
496 | + exit $stat | |
497 | + fi | |
498 | + | |
499 | + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | |
500 | + do | |
501 | + test -f "$tmpdepfile" && break | |
502 | + done | |
503 | + if test -f "$tmpdepfile"; then | |
504 | + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | |
505 | + sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | |
506 | + else | |
507 | + echo "#dummy" > "$depfile" | |
508 | + fi | |
509 | + rm -f "$tmpdepfile" | |
510 | + ;; | |
511 | + | |
512 | +msvc7) | |
513 | + if test "$libtool" = yes; then | |
514 | + showIncludes=-Wc,-showIncludes | |
515 | + else | |
516 | + showIncludes=-showIncludes | |
517 | + fi | |
518 | + "$@" $showIncludes > "$tmpdepfile" | |
519 | + stat=$? | |
520 | + grep -v '^Note: including file: ' "$tmpdepfile" | |
521 | + if test "$stat" = 0; then : | |
522 | + else | |
523 | + rm -f "$tmpdepfile" | |
524 | + exit $stat | |
525 | + fi | |
526 | + rm -f "$depfile" | |
527 | + echo "$object : \\" > "$depfile" | |
528 | + # The first sed program below extracts the file names and escapes | |
529 | + # backslashes for cygpath. The second sed program outputs the file | |
530 | + # name when reading, but also accumulates all include files in the | |
531 | + # hold buffer in order to output them again at the end. This only | |
532 | + # works with sed implementations that can handle large buffers. | |
533 | + sed < "$tmpdepfile" -n ' | |
534 | +/^Note: including file: *\(.*\)/ { | |
535 | + s//\1/ | |
536 | + s/\\/\\\\/g | |
537 | + p | |
538 | +}' | $cygpath_u | sort -u | sed -n ' | |
539 | +s/ /\\ /g | |
540 | +s/\(.*\)/'"$tab"'\1 \\/p | |
541 | +s/.\(.*\) \\/\1:/ | |
542 | +H | |
543 | +$ { | |
544 | + s/.*/'"$tab"'/ | |
545 | + G | |
546 | + p | |
547 | +}' >> "$depfile" | |
548 | + rm -f "$tmpdepfile" | |
549 | + ;; | |
550 | + | |
551 | +msvc7msys) | |
552 | + # This case exists only to let depend.m4 do its work. It works by | |
553 | + # looking at the text of this script. This case will never be run, | |
554 | + # since it is checked for above. | |
555 | + exit 1 | |
556 | + ;; | |
557 | + | |
558 | +#nosideeffect) | |
559 | + # This comment above is used by automake to tell side-effect | |
560 | + # dependency tracking mechanisms from slower ones. | |
561 | + | |
562 | +dashmstdout) | |
563 | + # Important note: in order to support this mode, a compiler *must* | |
564 | + # always write the preprocessed file to stdout, regardless of -o. | |
565 | + "$@" || exit $? | |
566 | + | |
567 | + # Remove the call to Libtool. | |
568 | + if test "$libtool" = yes; then | |
569 | + while test "X$1" != 'X--mode=compile'; do | |
570 | + shift | |
571 | + done | |
572 | + shift | |
573 | + fi | |
574 | + | |
575 | + # Remove '-o $object'. | |
576 | + IFS=" " | |
577 | + for arg | |
578 | + do | |
579 | + case $arg in | |
580 | + -o) | |
581 | + shift | |
582 | + ;; | |
583 | + $object) | |
584 | + shift | |
585 | + ;; | |
586 | + *) | |
587 | + set fnord "$@" "$arg" | |
588 | + shift # fnord | |
589 | + shift # $arg | |
590 | + ;; | |
591 | + esac | |
592 | + done | |
593 | + | |
594 | + test -z "$dashmflag" && dashmflag=-M | |
595 | + # Require at least two characters before searching for ':' | |
596 | + # in the target name. This is to cope with DOS-style filenames: | |
597 | + # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. | |
598 | + "$@" $dashmflag | | |
599 | + sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile" | |
600 | + rm -f "$depfile" | |
601 | + cat < "$tmpdepfile" > "$depfile" | |
602 | + tr ' ' "$nl" < "$tmpdepfile" | \ | |
603 | +## Some versions of the HPUX 10.20 sed can't process this invocation | |
604 | +## correctly. Breaking it into two sed invocations is a workaround. | |
605 | + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | |
606 | + rm -f "$tmpdepfile" | |
607 | + ;; | |
608 | + | |
609 | +dashXmstdout) | |
610 | + # This case only exists to satisfy depend.m4. It is never actually | |
611 | + # run, as this mode is specially recognized in the preamble. | |
612 | + exit 1 | |
613 | + ;; | |
614 | + | |
615 | +makedepend) | |
616 | + "$@" || exit $? | |
617 | + # Remove any Libtool call | |
618 | + if test "$libtool" = yes; then | |
619 | + while test "X$1" != 'X--mode=compile'; do | |
620 | + shift | |
621 | + done | |
622 | + shift | |
623 | + fi | |
624 | + # X makedepend | |
625 | + shift | |
626 | + cleared=no eat=no | |
627 | + for arg | |
628 | + do | |
629 | + case $cleared in | |
630 | + no) | |
631 | + set ""; shift | |
632 | + cleared=yes ;; | |
633 | + esac | |
634 | + if test $eat = yes; then | |
635 | + eat=no | |
636 | + continue | |
637 | + fi | |
638 | + case "$arg" in | |
639 | + -D*|-I*) | |
640 | + set fnord "$@" "$arg"; shift ;; | |
641 | + # Strip any option that makedepend may not understand. Remove | |
642 | + # the object too, otherwise makedepend will parse it as a source file. | |
643 | + -arch) | |
644 | + eat=yes ;; | |
645 | + -*|$object) | |
646 | + ;; | |
647 | + *) | |
648 | + set fnord "$@" "$arg"; shift ;; | |
649 | + esac | |
650 | + done | |
651 | + obj_suffix=`echo "$object" | sed 's/^.*\././'` | |
652 | + touch "$tmpdepfile" | |
653 | + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" | |
654 | + rm -f "$depfile" | |
655 | + # makedepend may prepend the VPATH from the source file name to the object. | |
656 | + # No need to regex-escape $object, excess matching of '.' is harmless. | |
657 | + sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" | |
658 | + sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \ | |
659 | +## Some versions of the HPUX 10.20 sed can't process this invocation | |
660 | +## correctly. Breaking it into two sed invocations is a workaround. | |
661 | + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | |
662 | + rm -f "$tmpdepfile" "$tmpdepfile".bak | |
663 | + ;; | |
664 | + | |
665 | +cpp) | |
666 | + # Important note: in order to support this mode, a compiler *must* | |
667 | + # always write the preprocessed file to stdout. | |
668 | + "$@" || exit $? | |
669 | + | |
670 | + # Remove the call to Libtool. | |
671 | + if test "$libtool" = yes; then | |
672 | + while test "X$1" != 'X--mode=compile'; do | |
673 | + shift | |
674 | + done | |
675 | + shift | |
676 | + fi | |
677 | + | |
678 | + # Remove '-o $object'. | |
679 | + IFS=" " | |
680 | + for arg | |
681 | + do | |
682 | + case $arg in | |
683 | + -o) | |
684 | + shift | |
685 | + ;; | |
686 | + $object) | |
687 | + shift | |
688 | + ;; | |
689 | + *) | |
690 | + set fnord "$@" "$arg" | |
691 | + shift # fnord | |
692 | + shift # $arg | |
693 | + ;; | |
694 | + esac | |
695 | + done | |
696 | + | |
697 | + "$@" -E | | |
698 | + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | |
699 | + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | | |
700 | + sed '$ s: \\$::' > "$tmpdepfile" | |
701 | + rm -f "$depfile" | |
702 | + echo "$object : \\" > "$depfile" | |
703 | + cat < "$tmpdepfile" >> "$depfile" | |
704 | + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" | |
705 | + rm -f "$tmpdepfile" | |
706 | + ;; | |
707 | + | |
708 | +msvisualcpp) | |
709 | + # Important note: in order to support this mode, a compiler *must* | |
710 | + # always write the preprocessed file to stdout. | |
711 | + "$@" || exit $? | |
712 | + | |
713 | + # Remove the call to Libtool. | |
714 | + if test "$libtool" = yes; then | |
715 | + while test "X$1" != 'X--mode=compile'; do | |
716 | + shift | |
717 | + done | |
718 | + shift | |
719 | + fi | |
720 | + | |
721 | + IFS=" " | |
722 | + for arg | |
723 | + do | |
724 | + case "$arg" in | |
725 | + -o) | |
726 | + shift | |
727 | + ;; | |
728 | + $object) | |
729 | + shift | |
730 | + ;; | |
731 | + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") | |
732 | + set fnord "$@" | |
733 | + shift | |
734 | + shift | |
735 | + ;; | |
736 | + *) | |
737 | + set fnord "$@" "$arg" | |
738 | + shift | |
739 | + shift | |
740 | + ;; | |
741 | + esac | |
742 | + done | |
743 | + "$@" -E 2>/dev/null | | |
744 | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" | |
745 | + rm -f "$depfile" | |
746 | + echo "$object : \\" > "$depfile" | |
747 | + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" | |
748 | + echo "$tab" >> "$depfile" | |
749 | + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" | |
750 | + rm -f "$tmpdepfile" | |
751 | + ;; | |
752 | + | |
753 | +msvcmsys) | |
754 | + # This case exists only to let depend.m4 do its work. It works by | |
755 | + # looking at the text of this script. This case will never be run, | |
756 | + # since it is checked for above. | |
757 | + exit 1 | |
758 | + ;; | |
759 | + | |
760 | +none) | |
761 | + exec "$@" | |
762 | + ;; | |
763 | + | |
764 | +*) | |
765 | + echo "Unknown depmode $depmode" 1>&2 | |
766 | + exit 1 | |
767 | + ;; | |
768 | +esac | |
769 | + | |
770 | +exit 0 | |
771 | + | |
772 | +# Local Variables: | |
773 | +# mode: shell-script | |
774 | +# sh-indentation: 2 | |
775 | +# eval: (add-hook 'write-file-hooks 'time-stamp) | |
776 | +# time-stamp-start: "scriptversion=" | |
777 | +# time-stamp-format: "%:y-%02m-%02d.%02H" | |
778 | +# time-stamp-time-zone: "UTC" | |
779 | +# time-stamp-end: "; # UTC" | |
780 | +# End: |
@@ -0,0 +1,13 @@ | ||
1 | +using System; | |
2 | + | |
3 | +namespace Autotoolstest | |
4 | +{ | |
5 | + public class mono01 | |
6 | + { | |
7 | + public static void Main() | |
8 | + { | |
9 | + Console.WriteLine(@"Hello, World!"); | |
10 | + } | |
11 | + } | |
12 | +} | |
13 | + |
@@ -0,0 +1,527 @@ | ||
1 | +#!/bin/sh | |
2 | +# install - install a program, script, or datafile | |
3 | + | |
4 | +scriptversion=2011-11-20.07; # 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 | + # Protect names problematic for 'test' and other utilities. | |
160 | + case $dst_arg in | |
161 | + -* | [=\(\)!]) dst_arg=./$dst_arg;; | |
162 | + esac | |
163 | + shift;; | |
164 | + | |
165 | + -T) no_target_directory=true;; | |
166 | + | |
167 | + --version) echo "$0 $scriptversion"; exit $?;; | |
168 | + | |
169 | + --) shift | |
170 | + break;; | |
171 | + | |
172 | + -*) echo "$0: invalid option: $1" >&2 | |
173 | + exit 1;; | |
174 | + | |
175 | + *) break;; | |
176 | + esac | |
177 | + shift | |
178 | +done | |
179 | + | |
180 | +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then | |
181 | + # When -d is used, all remaining arguments are directories to create. | |
182 | + # When -t is used, the destination is already specified. | |
183 | + # Otherwise, the last argument is the destination. Remove it from $@. | |
184 | + for arg | |
185 | + do | |
186 | + if test -n "$dst_arg"; then | |
187 | + # $@ is not empty: it contains at least $arg. | |
188 | + set fnord "$@" "$dst_arg" | |
189 | + shift # fnord | |
190 | + fi | |
191 | + shift # arg | |
192 | + dst_arg=$arg | |
193 | + # Protect names problematic for 'test' and other utilities. | |
194 | + case $dst_arg in | |
195 | + -* | [=\(\)!]) dst_arg=./$dst_arg;; | |
196 | + esac | |
197 | + done | |
198 | +fi | |
199 | + | |
200 | +if test $# -eq 0; then | |
201 | + if test -z "$dir_arg"; then | |
202 | + echo "$0: no input file specified." >&2 | |
203 | + exit 1 | |
204 | + fi | |
205 | + # It's OK to call 'install-sh -d' without argument. | |
206 | + # This can happen when creating conditional directories. | |
207 | + exit 0 | |
208 | +fi | |
209 | + | |
210 | +if test -z "$dir_arg"; then | |
211 | + do_exit='(exit $ret); exit $ret' | |
212 | + trap "ret=129; $do_exit" 1 | |
213 | + trap "ret=130; $do_exit" 2 | |
214 | + trap "ret=141; $do_exit" 13 | |
215 | + trap "ret=143; $do_exit" 15 | |
216 | + | |
217 | + # Set umask so as not to create temps with too-generous modes. | |
218 | + # However, 'strip' requires both read and write access to temps. | |
219 | + case $mode in | |
220 | + # Optimize common cases. | |
221 | + *644) cp_umask=133;; | |
222 | + *755) cp_umask=22;; | |
223 | + | |
224 | + *[0-7]) | |
225 | + if test -z "$stripcmd"; then | |
226 | + u_plus_rw= | |
227 | + else | |
228 | + u_plus_rw='% 200' | |
229 | + fi | |
230 | + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; | |
231 | + *) | |
232 | + if test -z "$stripcmd"; then | |
233 | + u_plus_rw= | |
234 | + else | |
235 | + u_plus_rw=,u+rw | |
236 | + fi | |
237 | + cp_umask=$mode$u_plus_rw;; | |
238 | + esac | |
239 | +fi | |
240 | + | |
241 | +for src | |
242 | +do | |
243 | + # Protect names problematic for 'test' and other utilities. | |
244 | + case $src in | |
245 | + -* | [=\(\)!]) src=./$src;; | |
246 | + esac | |
247 | + | |
248 | + if test -n "$dir_arg"; then | |
249 | + dst=$src | |
250 | + dstdir=$dst | |
251 | + test -d "$dstdir" | |
252 | + dstdir_status=$? | |
253 | + else | |
254 | + | |
255 | + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command | |
256 | + # might cause directories to be created, which would be especially bad | |
257 | + # if $src (and thus $dsttmp) contains '*'. | |
258 | + if test ! -f "$src" && test ! -d "$src"; then | |
259 | + echo "$0: $src does not exist." >&2 | |
260 | + exit 1 | |
261 | + fi | |
262 | + | |
263 | + if test -z "$dst_arg"; then | |
264 | + echo "$0: no destination specified." >&2 | |
265 | + exit 1 | |
266 | + fi | |
267 | + dst=$dst_arg | |
268 | + | |
269 | + # If destination is a directory, append the input filename; won't work | |
270 | + # if double slashes aren't ignored. | |
271 | + if test -d "$dst"; then | |
272 | + if test -n "$no_target_directory"; then | |
273 | + echo "$0: $dst_arg: Is a directory" >&2 | |
274 | + exit 1 | |
275 | + fi | |
276 | + dstdir=$dst | |
277 | + dst=$dstdir/`basename "$src"` | |
278 | + dstdir_status=0 | |
279 | + else | |
280 | + # Prefer dirname, but fall back on a substitute if dirname fails. | |
281 | + dstdir=` | |
282 | + (dirname "$dst") 2>/dev/null || | |
283 | + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
284 | + X"$dst" : 'X\(//\)[^/]' \| \ | |
285 | + X"$dst" : 'X\(//\)$' \| \ | |
286 | + X"$dst" : 'X\(/\)' \| . 2>/dev/null || | |
287 | + echo X"$dst" | | |
288 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
289 | + s//\1/ | |
290 | + q | |
291 | + } | |
292 | + /^X\(\/\/\)[^/].*/{ | |
293 | + s//\1/ | |
294 | + q | |
295 | + } | |
296 | + /^X\(\/\/\)$/{ | |
297 | + s//\1/ | |
298 | + q | |
299 | + } | |
300 | + /^X\(\/\).*/{ | |
301 | + s//\1/ | |
302 | + q | |
303 | + } | |
304 | + s/.*/./; q' | |
305 | + ` | |
306 | + | |
307 | + test -d "$dstdir" | |
308 | + dstdir_status=$? | |
309 | + fi | |
310 | + fi | |
311 | + | |
312 | + obsolete_mkdir_used=false | |
313 | + | |
314 | + if test $dstdir_status != 0; then | |
315 | + case $posix_mkdir in | |
316 | + '') | |
317 | + # Create intermediate dirs using mode 755 as modified by the umask. | |
318 | + # This is like FreeBSD 'install' as of 1997-10-28. | |
319 | + umask=`umask` | |
320 | + case $stripcmd.$umask in | |
321 | + # Optimize common cases. | |
322 | + *[2367][2367]) mkdir_umask=$umask;; | |
323 | + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; | |
324 | + | |
325 | + *[0-7]) | |
326 | + mkdir_umask=`expr $umask + 22 \ | |
327 | + - $umask % 100 % 40 + $umask % 20 \ | |
328 | + - $umask % 10 % 4 + $umask % 2 | |
329 | + `;; | |
330 | + *) mkdir_umask=$umask,go-w;; | |
331 | + esac | |
332 | + | |
333 | + # With -d, create the new directory with the user-specified mode. | |
334 | + # Otherwise, rely on $mkdir_umask. | |
335 | + if test -n "$dir_arg"; then | |
336 | + mkdir_mode=-m$mode | |
337 | + else | |
338 | + mkdir_mode= | |
339 | + fi | |
340 | + | |
341 | + posix_mkdir=false | |
342 | + case $umask in | |
343 | + *[123567][0-7][0-7]) | |
344 | + # POSIX mkdir -p sets u+wx bits regardless of umask, which | |
345 | + # is incompatible with FreeBSD 'install' when (umask & 300) != 0. | |
346 | + ;; | |
347 | + *) | |
348 | + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ | |
349 | + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 | |
350 | + | |
351 | + if (umask $mkdir_umask && | |
352 | + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 | |
353 | + then | |
354 | + if test -z "$dir_arg" || { | |
355 | + # Check for POSIX incompatibilities with -m. | |
356 | + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or | |
357 | + # other-writable bit of parent directory when it shouldn't. | |
358 | + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. | |
359 | + ls_ld_tmpdir=`ls -ld "$tmpdir"` | |
360 | + case $ls_ld_tmpdir in | |
361 | + d????-?r-*) different_mode=700;; | |
362 | + d????-?--*) different_mode=755;; | |
363 | + *) false;; | |
364 | + esac && | |
365 | + $mkdirprog -m$different_mode -p -- "$tmpdir" && { | |
366 | + ls_ld_tmpdir_1=`ls -ld "$tmpdir"` | |
367 | + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" | |
368 | + } | |
369 | + } | |
370 | + then posix_mkdir=: | |
371 | + fi | |
372 | + rmdir "$tmpdir/d" "$tmpdir" | |
373 | + else | |
374 | + # Remove any dirs left behind by ancient mkdir implementations. | |
375 | + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null | |
376 | + fi | |
377 | + trap '' 0;; | |
378 | + esac;; | |
379 | + esac | |
380 | + | |
381 | + if | |
382 | + $posix_mkdir && ( | |
383 | + umask $mkdir_umask && | |
384 | + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" | |
385 | + ) | |
386 | + then : | |
387 | + else | |
388 | + | |
389 | + # The umask is ridiculous, or mkdir does not conform to POSIX, | |
390 | + # or it failed possibly due to a race condition. Create the | |
391 | + # directory the slow way, step by step, checking for races as we go. | |
392 | + | |
393 | + case $dstdir in | |
394 | + /*) prefix='/';; | |
395 | + [-=\(\)!]*) prefix='./';; | |
396 | + *) prefix='';; | |
397 | + esac | |
398 | + | |
399 | + eval "$initialize_posix_glob" | |
400 | + | |
401 | + oIFS=$IFS | |
402 | + IFS=/ | |
403 | + $posix_glob set -f | |
404 | + set fnord $dstdir | |
405 | + shift | |
406 | + $posix_glob set +f | |
407 | + IFS=$oIFS | |
408 | + | |
409 | + prefixes= | |
410 | + | |
411 | + for d | |
412 | + do | |
413 | + test X"$d" = X && continue | |
414 | + | |
415 | + prefix=$prefix$d | |
416 | + if test -d "$prefix"; then | |
417 | + prefixes= | |
418 | + else | |
419 | + if $posix_mkdir; then | |
420 | + (umask=$mkdir_umask && | |
421 | + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break | |
422 | + # Don't fail if two instances are running concurrently. | |
423 | + test -d "$prefix" || exit 1 | |
424 | + else | |
425 | + case $prefix in | |
426 | + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; | |
427 | + *) qprefix=$prefix;; | |
428 | + esac | |
429 | + prefixes="$prefixes '$qprefix'" | |
430 | + fi | |
431 | + fi | |
432 | + prefix=$prefix/ | |
433 | + done | |
434 | + | |
435 | + if test -n "$prefixes"; then | |
436 | + # Don't fail if two instances are running concurrently. | |
437 | + (umask $mkdir_umask && | |
438 | + eval "\$doit_exec \$mkdirprog $prefixes") || | |
439 | + test -d "$dstdir" || exit 1 | |
440 | + obsolete_mkdir_used=true | |
441 | + fi | |
442 | + fi | |
443 | + fi | |
444 | + | |
445 | + if test -n "$dir_arg"; then | |
446 | + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && | |
447 | + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && | |
448 | + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || | |
449 | + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 | |
450 | + else | |
451 | + | |
452 | + # Make a couple of temp file names in the proper directory. | |
453 | + dsttmp=$dstdir/_inst.$$_ | |
454 | + rmtmp=$dstdir/_rm.$$_ | |
455 | + | |
456 | + # Trap to clean up those temp files at exit. | |
457 | + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 | |
458 | + | |
459 | + # Copy the file name to the temp name. | |
460 | + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && | |
461 | + | |
462 | + # and set any options; do chmod last to preserve setuid bits. | |
463 | + # | |
464 | + # If any of these fail, we abort the whole thing. If we want to | |
465 | + # ignore errors from any of these, just make sure not to ignore | |
466 | + # errors from the above "$doit $cpprog $src $dsttmp" command. | |
467 | + # | |
468 | + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && | |
469 | + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && | |
470 | + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && | |
471 | + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && | |
472 | + | |
473 | + # If -C, don't bother to copy if it wouldn't change the file. | |
474 | + if $copy_on_change && | |
475 | + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && | |
476 | + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && | |
477 | + | |
478 | + eval "$initialize_posix_glob" && | |
479 | + $posix_glob set -f && | |
480 | + set X $old && old=:$2:$4:$5:$6 && | |
481 | + set X $new && new=:$2:$4:$5:$6 && | |
482 | + $posix_glob set +f && | |
483 | + | |
484 | + test "$old" = "$new" && | |
485 | + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 | |
486 | + then | |
487 | + rm -f "$dsttmp" | |
488 | + else | |
489 | + # Rename the file to the real destination. | |
490 | + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || | |
491 | + | |
492 | + # The rename failed, perhaps because mv can't rename something else | |
493 | + # to itself, or perhaps because mv is so ancient that it does not | |
494 | + # support -f. | |
495 | + { | |
496 | + # Now remove or move aside any old file at destination location. | |
497 | + # We try this two ways since rm can't unlink itself on some | |
498 | + # systems and the destination file might be busy for other | |
499 | + # reasons. In this case, the final cleanup might fail but the new | |
500 | + # file should still install successfully. | |
501 | + { | |
502 | + test ! -f "$dst" || | |
503 | + $doit $rmcmd -f "$dst" 2>/dev/null || | |
504 | + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && | |
505 | + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } | |
506 | + } || | |
507 | + { echo "$0: cannot unlink or rename $dst" >&2 | |
508 | + (exit 1); exit 1 | |
509 | + } | |
510 | + } && | |
511 | + | |
512 | + # Now rename the file to the real destination. | |
513 | + $doit $mvcmd "$dsttmp" "$dst" | |
514 | + } | |
515 | + fi || exit 1 | |
516 | + | |
517 | + trap '' 0 | |
518 | + fi | |
519 | +done | |
520 | + | |
521 | +# Local variables: | |
522 | +# eval: (add-hook 'write-file-hooks 'time-stamp) | |
523 | +# time-stamp-start: "scriptversion=" | |
524 | +# time-stamp-format: "%:y-%02m-%02d.%02H" | |
525 | +# time-stamp-time-zone: "UTC" | |
526 | +# time-stamp-end: "; # UTC" | |
527 | +# End: |
@@ -0,0 +1,39 @@ | ||
1 | +# Check for CLI compilers. -*- Autoconf -*- | |
2 | + | |
3 | +# Copyright (C) 2007 Free Software Foundation, Inc. | |
4 | +# | |
5 | +# This file is free software; the Free Software Foundation | |
6 | +# gives unlimited permission to copy and/or distribute it, | |
7 | +# with or without modifications, as long as this notice is preserved. | |
8 | + | |
9 | +# AM_PROG_CLI([FRAMEWORK-VERSION],[LANGS]) | |
10 | +# ---------------------------------------- | |
11 | +# Find the compiler for each of the listed languages. If LANGS is not set, | |
12 | +# it defaults to the list [CS]. The framework version determines if we | |
13 | +# use 'mcs' for version 1.1 or 'gmcs' for everything else. We default to | |
14 | +# framework version 1.1. | |
15 | +AC_DEFUN([AM_PROG_CLI], | |
16 | +[_AM_PROG_CLI(m4_ifval([$1],[$1],[1.1]), m4_ifval([$2],[$2],[CS])) | |
17 | +AC_CHECK_PROGS([RESGEN], [resgen], [false]) | |
18 | +AC_CHECK_PROGS([ILASM], [ilasm], [false]) | |
19 | +AC_CHECK_PROGS([ILDISASM], [monodis 'ildasm -text'], [false]) | |
20 | +]) | |
21 | + | |
22 | +AC_DEFUN([_AM_PROG_CLI], | |
23 | +[m4_foreach_w([l],[$2],[m4_n([_AM_PROG_CLI_LANG(l,[$1])])])]) | |
24 | + | |
25 | +AC_DEFUN([_AM_PROG_CLI_LANG], | |
26 | +[m4_ifdef([$0_$1],[$0_$1([$2])],[$0__FALLBACK([$1],[$2])])]) | |
27 | + | |
28 | +AC_DEFUN([_AM_PROG_CLI_LANG_CS], | |
29 | +[AC_CHECK_PROGS([CSC], [m4_if([$1],[1.1],[mcs],[gmcs]) csc], [false])]) | |
30 | + | |
31 | +AC_DEFUN([_AM_PROG_CLI_LANG_VB], | |
32 | +[AC_CHECK_PROGS([VBC], [vbnc vbc], [false])]) | |
33 | + | |
34 | +AC_DEFUN([_AM_PROG_CLI_LANG_NEMERLE], | |
35 | +[AC_CHECK_PROGS([NCC], [ncc], [false])]) | |
36 | + | |
37 | +AC_DEFUN([_AM_PROG_CLI_LANG__FALLBACK], | |
38 | +[AC_CHECK_PROGS([$1][C], [m4_translit([[$1]], [A-Z], [a-z])][c], [false])]) | |
39 | + |
@@ -0,0 +1,330 @@ | ||
1 | +#! /bin/sh | |
2 | +# Common stub for a few missing GNU programs while installing. | |
3 | + | |
4 | +scriptversion=2012-01-06.18; # UTC | |
5 | + | |
6 | +# Copyright (C) 1996-2012 Free Software Foundation, Inc. | |
7 | +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | |
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 | +if test $# -eq 0; then | |
28 | + echo 1>&2 "Try '$0 --help' for more information" | |
29 | + exit 1 | |
30 | +fi | |
31 | + | |
32 | +run=: | |
33 | +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' | |
34 | +sed_minuso='s/.* -o \([^ ]*\).*/\1/p' | |
35 | + | |
36 | +# In the cases where this matters, 'missing' is being run in the | |
37 | +# srcdir already. | |
38 | +if test -f configure.ac; then | |
39 | + configure_ac=configure.ac | |
40 | +else | |
41 | + configure_ac=configure.in | |
42 | +fi | |
43 | + | |
44 | +msg="missing on your system" | |
45 | + | |
46 | +case $1 in | |
47 | +--run) | |
48 | + # Try to run requested program, and just exit if it succeeds. | |
49 | + run= | |
50 | + shift | |
51 | + "$@" && exit 0 | |
52 | + # Exit code 63 means version mismatch. This often happens | |
53 | + # when the user try to use an ancient version of a tool on | |
54 | + # a file that requires a minimum version. In this case we | |
55 | + # we should proceed has if the program had been absent, or | |
56 | + # if --run hadn't been passed. | |
57 | + if test $? = 63; then | |
58 | + run=: | |
59 | + msg="probably too old" | |
60 | + fi | |
61 | + ;; | |
62 | + | |
63 | + -h|--h|--he|--hel|--help) | |
64 | + echo "\ | |
65 | +$0 [OPTION]... PROGRAM [ARGUMENT]... | |
66 | + | |
67 | +Handle 'PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an | |
68 | +error status if there is no known handling for PROGRAM. | |
69 | + | |
70 | +Options: | |
71 | + -h, --help display this help and exit | |
72 | + -v, --version output version information and exit | |
73 | + --run try to run the given command, and emulate it if it fails | |
74 | + | |
75 | +Supported PROGRAM values: | |
76 | + aclocal touch file 'aclocal.m4' | |
77 | + autoconf touch file 'configure' | |
78 | + autoheader touch file 'config.h.in' | |
79 | + autom4te touch the output file, or create a stub one | |
80 | + automake touch all 'Makefile.in' files | |
81 | + bison create 'y.tab.[ch]', if possible, from existing .[ch] | |
82 | + flex create 'lex.yy.c', if possible, from existing .c | |
83 | + help2man touch the output file | |
84 | + lex create 'lex.yy.c', if possible, from existing .c | |
85 | + makeinfo touch the output file | |
86 | + yacc create 'y.tab.[ch]', if possible, from existing .[ch] | |
87 | + | |
88 | +Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and | |
89 | +'g' are ignored when checking the name. | |
90 | + | |
91 | +Send bug reports to <bug-automake@gnu.org>." | |
92 | + exit $? | |
93 | + ;; | |
94 | + | |
95 | + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) | |
96 | + echo "missing $scriptversion (GNU Automake)" | |
97 | + exit $? | |
98 | + ;; | |
99 | + | |
100 | + -*) | |
101 | + echo 1>&2 "$0: Unknown '$1' option" | |
102 | + echo 1>&2 "Try '$0 --help' for more information" | |
103 | + exit 1 | |
104 | + ;; | |
105 | + | |
106 | +esac | |
107 | + | |
108 | +# normalize program name to check for. | |
109 | +program=`echo "$1" | sed ' | |
110 | + s/^gnu-//; t | |
111 | + s/^gnu//; t | |
112 | + s/^g//; t'` | |
113 | + | |
114 | +# Now exit if we have it, but it failed. Also exit now if we | |
115 | +# don't have it and --version was passed (most likely to detect | |
116 | +# the program). This is about non-GNU programs, so use $1 not | |
117 | +# $program. | |
118 | +case $1 in | |
119 | + lex*|yacc*) | |
120 | + # Not GNU programs, they don't have --version. | |
121 | + ;; | |
122 | + | |
123 | + *) | |
124 | + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then | |
125 | + # We have it, but it failed. | |
126 | + exit 1 | |
127 | + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then | |
128 | + # Could not run --version or --help. This is probably someone | |
129 | + # running '$TOOL --version' or '$TOOL --help' to check whether | |
130 | + # $TOOL exists and not knowing $TOOL uses missing. | |
131 | + exit 1 | |
132 | + fi | |
133 | + ;; | |
134 | +esac | |
135 | + | |
136 | +# If it does not exist, or fails to run (possibly an outdated version), | |
137 | +# try to emulate it. | |
138 | +case $program in | |
139 | + aclocal*) | |
140 | + echo 1>&2 "\ | |
141 | +WARNING: '$1' is $msg. You should only need it if | |
142 | + you modified 'acinclude.m4' or '${configure_ac}'. You might want | |
143 | + to install the Automake and Perl packages. Grab them from | |
144 | + any GNU archive site." | |
145 | + touch aclocal.m4 | |
146 | + ;; | |
147 | + | |
148 | + autoconf*) | |
149 | + echo 1>&2 "\ | |
150 | +WARNING: '$1' is $msg. You should only need it if | |
151 | + you modified '${configure_ac}'. You might want to install the | |
152 | + Autoconf and GNU m4 packages. Grab them from any GNU | |
153 | + archive site." | |
154 | + touch configure | |
155 | + ;; | |
156 | + | |
157 | + autoheader*) | |
158 | + echo 1>&2 "\ | |
159 | +WARNING: '$1' is $msg. You should only need it if | |
160 | + you modified 'acconfig.h' or '${configure_ac}'. You might want | |
161 | + to install the Autoconf and GNU m4 packages. Grab them | |
162 | + from any GNU archive site." | |
163 | + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` | |
164 | + test -z "$files" && files="config.h" | |
165 | + touch_files= | |
166 | + for f in $files; do | |
167 | + case $f in | |
168 | + *:*) touch_files="$touch_files "`echo "$f" | | |
169 | + sed -e 's/^[^:]*://' -e 's/:.*//'`;; | |
170 | + *) touch_files="$touch_files $f.in";; | |
171 | + esac | |
172 | + done | |
173 | + touch $touch_files | |
174 | + ;; | |
175 | + | |
176 | + automake*) | |
177 | + echo 1>&2 "\ | |
178 | +WARNING: '$1' is $msg. You should only need it if | |
179 | + you modified 'Makefile.am', 'acinclude.m4' or '${configure_ac}'. | |
180 | + You might want to install the Automake and Perl packages. | |
181 | + Grab them from any GNU archive site." | |
182 | + find . -type f -name Makefile.am -print | | |
183 | + sed 's/\.am$/.in/' | | |
184 | + while read f; do touch "$f"; done | |
185 | + ;; | |
186 | + | |
187 | + autom4te*) | |
188 | + echo 1>&2 "\ | |
189 | +WARNING: '$1' is needed, but is $msg. | |
190 | + You might have modified some files without having the | |
191 | + proper tools for further handling them. | |
192 | + You can get '$1' as part of Autoconf from any GNU | |
193 | + archive site." | |
194 | + | |
195 | + file=`echo "$*" | sed -n "$sed_output"` | |
196 | + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
197 | + if test -f "$file"; then | |
198 | + touch $file | |
199 | + else | |
200 | + test -z "$file" || exec >$file | |
201 | + echo "#! /bin/sh" | |
202 | + echo "# Created by GNU Automake missing as a replacement of" | |
203 | + echo "# $ $@" | |
204 | + echo "exit 0" | |
205 | + chmod +x $file | |
206 | + exit 1 | |
207 | + fi | |
208 | + ;; | |
209 | + | |
210 | + bison*|yacc*) | |
211 | + echo 1>&2 "\ | |
212 | +WARNING: '$1' $msg. You should only need it if | |
213 | + you modified a '.y' file. You may need the Bison package | |
214 | + in order for those modifications to take effect. You can get | |
215 | + Bison from any GNU archive site." | |
216 | + rm -f y.tab.c y.tab.h | |
217 | + if test $# -ne 1; then | |
218 | + eval LASTARG=\${$#} | |
219 | + case $LASTARG in | |
220 | + *.y) | |
221 | + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` | |
222 | + if test -f "$SRCFILE"; then | |
223 | + cp "$SRCFILE" y.tab.c | |
224 | + fi | |
225 | + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` | |
226 | + if test -f "$SRCFILE"; then | |
227 | + cp "$SRCFILE" y.tab.h | |
228 | + fi | |
229 | + ;; | |
230 | + esac | |
231 | + fi | |
232 | + if test ! -f y.tab.h; then | |
233 | + echo >y.tab.h | |
234 | + fi | |
235 | + if test ! -f y.tab.c; then | |
236 | + echo 'main() { return 0; }' >y.tab.c | |
237 | + fi | |
238 | + ;; | |
239 | + | |
240 | + lex*|flex*) | |
241 | + echo 1>&2 "\ | |
242 | +WARNING: '$1' is $msg. You should only need it if | |
243 | + you modified a '.l' file. You may need the Flex package | |
244 | + in order for those modifications to take effect. You can get | |
245 | + Flex from any GNU archive site." | |
246 | + rm -f lex.yy.c | |
247 | + if test $# -ne 1; then | |
248 | + eval LASTARG=\${$#} | |
249 | + case $LASTARG in | |
250 | + *.l) | |
251 | + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` | |
252 | + if test -f "$SRCFILE"; then | |
253 | + cp "$SRCFILE" lex.yy.c | |
254 | + fi | |
255 | + ;; | |
256 | + esac | |
257 | + fi | |
258 | + if test ! -f lex.yy.c; then | |
259 | + echo 'main() { return 0; }' >lex.yy.c | |
260 | + fi | |
261 | + ;; | |
262 | + | |
263 | + help2man*) | |
264 | + echo 1>&2 "\ | |
265 | +WARNING: '$1' is $msg. You should only need it if | |
266 | + you modified a dependency of a manual page. You may need the | |
267 | + Help2man package in order for those modifications to take | |
268 | + effect. You can get Help2man from any GNU archive site." | |
269 | + | |
270 | + file=`echo "$*" | sed -n "$sed_output"` | |
271 | + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
272 | + if test -f "$file"; then | |
273 | + touch $file | |
274 | + else | |
275 | + test -z "$file" || exec >$file | |
276 | + echo ".ab help2man is required to generate this page" | |
277 | + exit $? | |
278 | + fi | |
279 | + ;; | |
280 | + | |
281 | + makeinfo*) | |
282 | + echo 1>&2 "\ | |
283 | +WARNING: '$1' is $msg. You should only need it if | |
284 | + you modified a '.texi' or '.texinfo' file, or any other file | |
285 | + indirectly affecting the aspect of the manual. The spurious | |
286 | + call might also be the consequence of using a buggy 'make' (AIX, | |
287 | + DU, IRIX). You might want to install the Texinfo package or | |
288 | + the GNU make package. Grab either from any GNU archive site." | |
289 | + # The file to touch is that specified with -o ... | |
290 | + file=`echo "$*" | sed -n "$sed_output"` | |
291 | + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
292 | + if test -z "$file"; then | |
293 | + # ... or it is the one specified with @setfilename ... | |
294 | + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` | |
295 | + file=`sed -n ' | |
296 | + /^@setfilename/{ | |
297 | + s/.* \([^ ]*\) *$/\1/ | |
298 | + p | |
299 | + q | |
300 | + }' $infile` | |
301 | + # ... or it is derived from the source name (dir/f.texi becomes f.info) | |
302 | + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info | |
303 | + fi | |
304 | + # If the file does not exist, the user really needs makeinfo; | |
305 | + # let's fail without touching anything. | |
306 | + test -f $file || exit 1 | |
307 | + touch $file | |
308 | + ;; | |
309 | + | |
310 | + *) | |
311 | + echo 1>&2 "\ | |
312 | +WARNING: '$1' is needed, and is $msg. | |
313 | + You might have modified some files without having the | |
314 | + proper tools for further handling them. Check the 'README' file, | |
315 | + it often tells you about the needed prerequisites for installing | |
316 | + this package. You may also peek at any GNU archive site, in case | |
317 | + some other package would contain this missing '$1' program." | |
318 | + exit 1 | |
319 | + ;; | |
320 | +esac | |
321 | + | |
322 | +exit 0 | |
323 | + | |
324 | +# Local variables: | |
325 | +# eval: (add-hook 'write-file-hooks 'time-stamp) | |
326 | +# time-stamp-start: "scriptversion=" | |
327 | +# time-stamp-format: "%:y-%02m-%02d.%02H" | |
328 | +# time-stamp-time-zone: "UTC" | |
329 | +# time-stamp-end: "; # UTC" | |
330 | +# End: |
@@ -0,0 +1,3 @@ | ||
1 | +*.suo | |
2 | +bin/ | |
3 | +obj/ |
@@ -0,0 +1,33 @@ | ||
1 | +using System.Reflection; | |
2 | +using System.Runtime.CompilerServices; | |
3 | +using System.Runtime.InteropServices; | |
4 | + | |
5 | +// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 | |
6 | +// アセンブリに関連付けられている情報を変更するには、 | |
7 | +// これらの属性値を変更してください。 | |
8 | +[assembly: AssemblyTitle("mono01")] | |
9 | +[assembly: AssemblyDescription("")] | |
10 | +[assembly: AssemblyConfiguration("")] | |
11 | +[assembly: AssemblyCompany("HP")] | |
12 | +[assembly: AssemblyProduct("mono01")] | |
13 | +[assembly: AssemblyCopyright("Copyright (C) HP 2012")] | |
14 | +[assembly: AssemblyTrademark("")] | |
15 | +[assembly: AssemblyCulture("")] | |
16 | + | |
17 | +// ComVisible を false に設定すると、このアセンブリ内の型は COM コンポーネントには | |
18 | +// 参照不可能になります。COM からこのアセンブリ内の型にアクセスする場合は、 | |
19 | +// その型の ComVisible 属性を true に設定してください。 | |
20 | +[assembly: ComVisible(false)] | |
21 | + | |
22 | +// 次の GUID は、このプロジェクトが COM に公開される場合の、typelib の ID です | |
23 | +[assembly: Guid("b641926e-0ceb-4f76-8fc8-edd73371bc15")] | |
24 | + | |
25 | +// アセンブリのバージョン情報は、以下の 4 つの値で構成されています: | |
26 | +// | |
27 | +// Major Version | |
28 | +// Minor Version | |
29 | +// Build Number | |
30 | +// Revision | |
31 | +// | |
32 | +[assembly: AssemblyVersion("1.0.0.0")] | |
33 | +[assembly: AssemblyFileVersion("1.0.0.0")] |
@@ -0,0 +1,47 @@ | ||
1 | +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
2 | + <PropertyGroup> | |
3 | + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |
4 | + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |
5 | + <ProductVersion>8.0.50727</ProductVersion> | |
6 | + <SchemaVersion>2.0</SchemaVersion> | |
7 | + <ProjectGuid>{D070F569-4EAF-495C-B5C1-3D881E7A4C3B}</ProjectGuid> | |
8 | + <OutputType>Exe</OutputType> | |
9 | + <AppDesignerFolder>Properties</AppDesignerFolder> | |
10 | + <RootNamespace>mono01</RootNamespace> | |
11 | + <AssemblyName>mono01</AssemblyName> | |
12 | + </PropertyGroup> | |
13 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |
14 | + <DebugSymbols>true</DebugSymbols> | |
15 | + <DebugType>full</DebugType> | |
16 | + <Optimize>false</Optimize> | |
17 | + <OutputPath>bin\Debug\</OutputPath> | |
18 | + <DefineConstants>DEBUG;TRACE</DefineConstants> | |
19 | + <ErrorReport>prompt</ErrorReport> | |
20 | + <WarningLevel>4</WarningLevel> | |
21 | + </PropertyGroup> | |
22 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |
23 | + <DebugType>pdbonly</DebugType> | |
24 | + <Optimize>true</Optimize> | |
25 | + <OutputPath>bin\Release\</OutputPath> | |
26 | + <DefineConstants>TRACE</DefineConstants> | |
27 | + < |
Part of diff was cut off due to size limit. Use your local client to view the full diff.