Codebase list air-quality-sensor / 03ed748
Imported Upstream version 0.1.1 Benedikt Wildenhain 9 years ago
21 changed file(s) with 11598 addition(s) and 678 deletion(s). Raw diff Collapse all Expand all
0 Authors of air-quality-sensor
1
2 Jan-Benedict Glaw (jbglaw@lug-owl.de) wrote the program in 2014
3
4 Benedikt Wildenhain (esperanto@benedikt-wildenhains.de) maintains the
5 program since 2014.
0 GNU GENERAL PUBLIC LICENSE
1 Version 3, 29 June 2007
2
3 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
4 Everyone is permitted to copy and distribute verbatim copies
5 of this license document, but changing it is not allowed.
6
7 Preamble
8
9 The GNU General Public License is a free, copyleft license for
10 software and other kinds of works.
11
12 The licenses for most software and other practical works are designed
13 to take away your freedom to share and change the works. By contrast,
14 the GNU General Public License is intended to guarantee your freedom to
15 share and change all versions of a program--to make sure it remains free
16 software for all its users. We, the Free Software Foundation, use the
17 GNU General Public License for most of our software; it applies also to
18 any other work released this way by its authors. You can apply it to
19 your programs, too.
20
21 When we speak of free software, we are referring to freedom, not
22 price. Our General Public Licenses are designed to make sure that you
23 have the freedom to distribute copies of free software (and charge for
24 them if you wish), that you receive source code or can get it if you
25 want it, that you can change the software or use pieces of it in new
26 free programs, and that you know you can do these things.
27
28 To protect your rights, we need to prevent others from denying you
29 these rights or asking you to surrender the rights. Therefore, you have
30 certain responsibilities if you distribute copies of the software, or if
31 you modify it: responsibilities to respect the freedom of others.
32
33 For example, if you distribute copies of such a program, whether
34 gratis or for a fee, you must pass on to the recipients the same
35 freedoms that you received. You must make sure that they, too, receive
36 or can get the source code. And you must show them these terms so they
37 know their rights.
38
39 Developers that use the GNU GPL protect your rights with two steps:
40 (1) assert copyright on the software, and (2) offer you this License
41 giving you legal permission to copy, distribute and/or modify it.
42
43 For the developers' and authors' protection, the GPL clearly explains
44 that there is no warranty for this free software. For both users' and
45 authors' sake, the GPL requires that modified versions be marked as
46 changed, so that their problems will not be attributed erroneously to
47 authors of previous versions.
48
49 Some devices are designed to deny users access to install or run
50 modified versions of the software inside them, although the manufacturer
51 can do so. This is fundamentally incompatible with the aim of
52 protecting users' freedom to change the software. The systematic
53 pattern of such abuse occurs in the area of products for individuals to
54 use, which is precisely where it is most unacceptable. Therefore, we
55 have designed this version of the GPL to prohibit the practice for those
56 products. If such problems arise substantially in other domains, we
57 stand ready to extend this provision to those domains in future versions
58 of the GPL, as needed to protect the freedom of users.
59
60 Finally, every program is threatened constantly by software patents.
61 States should not allow patents to restrict development and use of
62 software on general-purpose computers, but in those that do, we wish to
63 avoid the special danger that patents applied to a free program could
64 make it effectively proprietary. To prevent this, the GPL assures that
65 patents cannot be used to render the program non-free.
66
67 The precise terms and conditions for copying, distribution and
68 modification follow.
69
70 TERMS AND CONDITIONS
71
72 0. Definitions.
73
74 "This License" refers to version 3 of the GNU General Public License.
75
76 "Copyright" also means copyright-like laws that apply to other kinds of
77 works, such as semiconductor masks.
78
79 "The Program" refers to any copyrightable work licensed under this
80 License. Each licensee is addressed as "you". "Licensees" and
81 "recipients" may be individuals or organizations.
82
83 To "modify" a work means to copy from or adapt all or part of the work
84 in a fashion requiring copyright permission, other than the making of an
85 exact copy. The resulting work is called a "modified version" of the
86 earlier work or a work "based on" the earlier work.
87
88 A "covered work" means either the unmodified Program or a work based
89 on the Program.
90
91 To "propagate" a work means to do anything with it that, without
92 permission, would make you directly or secondarily liable for
93 infringement under applicable copyright law, except executing it on a
94 computer or modifying a private copy. Propagation includes copying,
95 distribution (with or without modification), making available to the
96 public, and in some countries other activities as well.
97
98 To "convey" a work means any kind of propagation that enables other
99 parties to make or receive copies. Mere interaction with a user through
100 a computer network, with no transfer of a copy, is not conveying.
101
102 An interactive user interface displays "Appropriate Legal Notices"
103 to the extent that it includes a convenient and prominently visible
104 feature that (1) displays an appropriate copyright notice, and (2)
105 tells the user that there is no warranty for the work (except to the
106 extent that warranties are provided), that licensees may convey the
107 work under this License, and how to view a copy of this License. If
108 the interface presents a list of user commands or options, such as a
109 menu, a prominent item in the list meets this criterion.
110
111 1. Source Code.
112
113 The "source code" for a work means the preferred form of the work
114 for making modifications to it. "Object code" means any non-source
115 form of a work.
116
117 A "Standard Interface" means an interface that either is an official
118 standard defined by a recognized standards body, or, in the case of
119 interfaces specified for a particular programming language, one that
120 is widely used among developers working in that language.
121
122 The "System Libraries" of an executable work include anything, other
123 than the work as a whole, that (a) is included in the normal form of
124 packaging a Major Component, but which is not part of that Major
125 Component, and (b) serves only to enable use of the work with that
126 Major Component, or to implement a Standard Interface for which an
127 implementation is available to the public in source code form. A
128 "Major Component", in this context, means a major essential component
129 (kernel, window system, and so on) of the specific operating system
130 (if any) on which the executable work runs, or a compiler used to
131 produce the work, or an object code interpreter used to run it.
132
133 The "Corresponding Source" for a work in object code form means all
134 the source code needed to generate, install, and (for an executable
135 work) run the object code and to modify the work, including scripts to
136 control those activities. However, it does not include the work's
137 System Libraries, or general-purpose tools or generally available free
138 programs which are used unmodified in performing those activities but
139 which are not part of the work. For example, Corresponding Source
140 includes interface definition files associated with source files for
141 the work, and the source code for shared libraries and dynamically
142 linked subprograms that the work is specifically designed to require,
143 such as by intimate data communication or control flow between those
144 subprograms and other parts of the work.
145
146 The Corresponding Source need not include anything that users
147 can regenerate automatically from other parts of the Corresponding
148 Source.
149
150 The Corresponding Source for a work in source code form is that
151 same work.
152
153 2. Basic Permissions.
154
155 All rights granted under this License are granted for the term of
156 copyright on the Program, and are irrevocable provided the stated
157 conditions are met. This License explicitly affirms your unlimited
158 permission to run the unmodified Program. The output from running a
159 covered work is covered by this License only if the output, given its
160 content, constitutes a covered work. This License acknowledges your
161 rights of fair use or other equivalent, as provided by copyright law.
162
163 You may make, run and propagate covered works that you do not
164 convey, without conditions so long as your license otherwise remains
165 in force. You may convey covered works to others for the sole purpose
166 of having them make modifications exclusively for you, or provide you
167 with facilities for running those works, provided that you comply with
168 the terms of this License in conveying all material for which you do
169 not control copyright. Those thus making or running the covered works
170 for you must do so exclusively on your behalf, under your direction
171 and control, on terms that prohibit them from making any copies of
172 your copyrighted material outside their relationship with you.
173
174 Conveying under any other circumstances is permitted solely under
175 the conditions stated below. Sublicensing is not allowed; section 10
176 makes it unnecessary.
177
178 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
179
180 No covered work shall be deemed part of an effective technological
181 measure under any applicable law fulfilling obligations under article
182 11 of the WIPO copyright treaty adopted on 20 December 1996, or
183 similar laws prohibiting or restricting circumvention of such
184 measures.
185
186 When you convey a covered work, you waive any legal power to forbid
187 circumvention of technological measures to the extent such circumvention
188 is effected by exercising rights under this License with respect to
189 the covered work, and you disclaim any intention to limit operation or
190 modification of the work as a means of enforcing, against the work's
191 users, your or third parties' legal rights to forbid circumvention of
192 technological measures.
193
194 4. Conveying Verbatim Copies.
195
196 You may convey verbatim copies of the Program's source code as you
197 receive it, in any medium, provided that you conspicuously and
198 appropriately publish on each copy an appropriate copyright notice;
199 keep intact all notices stating that this License and any
200 non-permissive terms added in accord with section 7 apply to the code;
201 keep intact all notices of the absence of any warranty; and give all
202 recipients a copy of this License along with the Program.
203
204 You may charge any price or no price for each copy that you convey,
205 and you may offer support or warranty protection for a fee.
206
207 5. Conveying Modified Source Versions.
208
209 You may convey a work based on the Program, or the modifications to
210 produce it from the Program, in the form of source code under the
211 terms of section 4, provided that you also meet all of these conditions:
212
213 a) The work must carry prominent notices stating that you modified
214 it, and giving a relevant date.
215
216 b) The work must carry prominent notices stating that it is
217 released under this License and any conditions added under section
218 7. This requirement modifies the requirement in section 4 to
219 "keep intact all notices".
220
221 c) You must license the entire work, as a whole, under this
222 License to anyone who comes into possession of a copy. This
223 License will therefore apply, along with any applicable section 7
224 additional terms, to the whole of the work, and all its parts,
225 regardless of how they are packaged. This License gives no
226 permission to license the work in any other way, but it does not
227 invalidate such permission if you have separately received it.
228
229 d) If the work has interactive user interfaces, each must display
230 Appropriate Legal Notices; however, if the Program has interactive
231 interfaces that do not display Appropriate Legal Notices, your
232 work need not make them do so.
233
234 A compilation of a covered work with other separate and independent
235 works, which are not by their nature extensions of the covered work,
236 and which are not combined with it such as to form a larger program,
237 in or on a volume of a storage or distribution medium, is called an
238 "aggregate" if the compilation and its resulting copyright are not
239 used to limit the access or legal rights of the compilation's users
240 beyond what the individual works permit. Inclusion of a covered work
241 in an aggregate does not cause this License to apply to the other
242 parts of the aggregate.
243
244 6. Conveying Non-Source Forms.
245
246 You may convey a covered work in object code form under the terms
247 of sections 4 and 5, provided that you also convey the
248 machine-readable Corresponding Source under the terms of this License,
249 in one of these ways:
250
251 a) Convey the object code in, or embodied in, a physical product
252 (including a physical distribution medium), accompanied by the
253 Corresponding Source fixed on a durable physical medium
254 customarily used for software interchange.
255
256 b) Convey the object code in, or embodied in, a physical product
257 (including a physical distribution medium), accompanied by a
258 written offer, valid for at least three years and valid for as
259 long as you offer spare parts or customer support for that product
260 model, to give anyone who possesses the object code either (1) a
261 copy of the Corresponding Source for all the software in the
262 product that is covered by this License, on a durable physical
263 medium customarily used for software interchange, for a price no
264 more than your reasonable cost of physically performing this
265 conveying of source, or (2) access to copy the
266 Corresponding Source from a network server at no charge.
267
268 c) Convey individual copies of the object code with a copy of the
269 written offer to provide the Corresponding Source. This
270 alternative is allowed only occasionally and noncommercially, and
271 only if you received the object code with such an offer, in accord
272 with subsection 6b.
273
274 d) Convey the object code by offering access from a designated
275 place (gratis or for a charge), and offer equivalent access to the
276 Corresponding Source in the same way through the same place at no
277 further charge. You need not require recipients to copy the
278 Corresponding Source along with the object code. If the place to
279 copy the object code is a network server, the Corresponding Source
280 may be on a different server (operated by you or a third party)
281 that supports equivalent copying facilities, provided you maintain
282 clear directions next to the object code saying where to find the
283 Corresponding Source. Regardless of what server hosts the
284 Corresponding Source, you remain obligated to ensure that it is
285 available for as long as needed to satisfy these requirements.
286
287 e) Convey the object code using peer-to-peer transmission, provided
288 you inform other peers where the object code and Corresponding
289 Source of the work are being offered to the general public at no
290 charge under subsection 6d.
291
292 A separable portion of the object code, whose source code is excluded
293 from the Corresponding Source as a System Library, need not be
294 included in conveying the object code work.
295
296 A "User Product" is either (1) a "consumer product", which means any
297 tangible personal property which is normally used for personal, family,
298 or household purposes, or (2) anything designed or sold for incorporation
299 into a dwelling. In determining whether a product is a consumer product,
300 doubtful cases shall be resolved in favor of coverage. For a particular
301 product received by a particular user, "normally used" refers to a
302 typical or common use of that class of product, regardless of the status
303 of the particular user or of the way in which the particular user
304 actually uses, or expects or is expected to use, the product. A product
305 is a consumer product regardless of whether the product has substantial
306 commercial, industrial or non-consumer uses, unless such uses represent
307 the only significant mode of use of the product.
308
309 "Installation Information" for a User Product means any methods,
310 procedures, authorization keys, or other information required to install
311 and execute modified versions of a covered work in that User Product from
312 a modified version of its Corresponding Source. The information must
313 suffice to ensure that the continued functioning of the modified object
314 code is in no case prevented or interfered with solely because
315 modification has been made.
316
317 If you convey an object code work under this section in, or with, or
318 specifically for use in, a User Product, and the conveying occurs as
319 part of a transaction in which the right of possession and use of the
320 User Product is transferred to the recipient in perpetuity or for a
321 fixed term (regardless of how the transaction is characterized), the
322 Corresponding Source conveyed under this section must be accompanied
323 by the Installation Information. But this requirement does not apply
324 if neither you nor any third party retains the ability to install
325 modified object code on the User Product (for example, the work has
326 been installed in ROM).
327
328 The requirement to provide Installation Information does not include a
329 requirement to continue to provide support service, warranty, or updates
330 for a work that has been modified or installed by the recipient, or for
331 the User Product in which it has been modified or installed. Access to a
332 network may be denied when the modification itself materially and
333 adversely affects the operation of the network or violates the rules and
334 protocols for communication across the network.
335
336 Corresponding Source conveyed, and Installation Information provided,
337 in accord with this section must be in a format that is publicly
338 documented (and with an implementation available to the public in
339 source code form), and must require no special password or key for
340 unpacking, reading or copying.
341
342 7. Additional Terms.
343
344 "Additional permissions" are terms that supplement the terms of this
345 License by making exceptions from one or more of its conditions.
346 Additional permissions that are applicable to the entire Program shall
347 be treated as though they were included in this License, to the extent
348 that they are valid under applicable law. If additional permissions
349 apply only to part of the Program, that part may be used separately
350 under those permissions, but the entire Program remains governed by
351 this License without regard to the additional permissions.
352
353 When you convey a copy of a covered work, you may at your option
354 remove any additional permissions from that copy, or from any part of
355 it. (Additional permissions may be written to require their own
356 removal in certain cases when you modify the work.) You may place
357 additional permissions on material, added by you to a covered work,
358 for which you have or can give appropriate copyright permission.
359
360 Notwithstanding any other provision of this License, for material you
361 add to a covered work, you may (if authorized by the copyright holders of
362 that material) supplement the terms of this License with terms:
363
364 a) Disclaiming warranty or limiting liability differently from the
365 terms of sections 15 and 16 of this License; or
366
367 b) Requiring preservation of specified reasonable legal notices or
368 author attributions in that material or in the Appropriate Legal
369 Notices displayed by works containing it; or
370
371 c) Prohibiting misrepresentation of the origin of that material, or
372 requiring that modified versions of such material be marked in
373 reasonable ways as different from the original version; or
374
375 d) Limiting the use for publicity purposes of names of licensors or
376 authors of the material; or
377
378 e) Declining to grant rights under trademark law for use of some
379 trade names, trademarks, or service marks; or
380
381 f) Requiring indemnification of licensors and authors of that
382 material by anyone who conveys the material (or modified versions of
383 it) with contractual assumptions of liability to the recipient, for
384 any liability that these contractual assumptions directly impose on
385 those licensors and authors.
386
387 All other non-permissive additional terms are considered "further
388 restrictions" within the meaning of section 10. If the Program as you
389 received it, or any part of it, contains a notice stating that it is
390 governed by this License along with a term that is a further
391 restriction, you may remove that term. If a license document contains
392 a further restriction but permits relicensing or conveying under this
393 License, you may add to a covered work material governed by the terms
394 of that license document, provided that the further restriction does
395 not survive such relicensing or conveying.
396
397 If you add terms to a covered work in accord with this section, you
398 must place, in the relevant source files, a statement of the
399 additional terms that apply to those files, or a notice indicating
400 where to find the applicable terms.
401
402 Additional terms, permissive or non-permissive, may be stated in the
403 form of a separately written license, or stated as exceptions;
404 the above requirements apply either way.
405
406 8. Termination.
407
408 You may not propagate or modify a covered work except as expressly
409 provided under this License. Any attempt otherwise to propagate or
410 modify it is void, and will automatically terminate your rights under
411 this License (including any patent licenses granted under the third
412 paragraph of section 11).
413
414 However, if you cease all violation of this License, then your
415 license from a particular copyright holder is reinstated (a)
416 provisionally, unless and until the copyright holder explicitly and
417 finally terminates your license, and (b) permanently, if the copyright
418 holder fails to notify you of the violation by some reasonable means
419 prior to 60 days after the cessation.
420
421 Moreover, your license from a particular copyright holder is
422 reinstated permanently if the copyright holder notifies you of the
423 violation by some reasonable means, this is the first time you have
424 received notice of violation of this License (for any work) from that
425 copyright holder, and you cure the violation prior to 30 days after
426 your receipt of the notice.
427
428 Termination of your rights under this section does not terminate the
429 licenses of parties who have received copies or rights from you under
430 this License. If your rights have been terminated and not permanently
431 reinstated, you do not qualify to receive new licenses for the same
432 material under section 10.
433
434 9. Acceptance Not Required for Having Copies.
435
436 You are not required to accept this License in order to receive or
437 run a copy of the Program. Ancillary propagation of a covered work
438 occurring solely as a consequence of using peer-to-peer transmission
439 to receive a copy likewise does not require acceptance. However,
440 nothing other than this License grants you permission to propagate or
441 modify any covered work. These actions infringe copyright if you do
442 not accept this License. Therefore, by modifying or propagating a
443 covered work, you indicate your acceptance of this License to do so.
444
445 10. Automatic Licensing of Downstream Recipients.
446
447 Each time you convey a covered work, the recipient automatically
448 receives a license from the original licensors, to run, modify and
449 propagate that work, subject to this License. You are not responsible
450 for enforcing compliance by third parties with this License.
451
452 An "entity transaction" is a transaction transferring control of an
453 organization, or substantially all assets of one, or subdividing an
454 organization, or merging organizations. If propagation of a covered
455 work results from an entity transaction, each party to that
456 transaction who receives a copy of the work also receives whatever
457 licenses to the work the party's predecessor in interest had or could
458 give under the previous paragraph, plus a right to possession of the
459 Corresponding Source of the work from the predecessor in interest, if
460 the predecessor has it or can get it with reasonable efforts.
461
462 You may not impose any further restrictions on the exercise of the
463 rights granted or affirmed under this License. For example, you may
464 not impose a license fee, royalty, or other charge for exercise of
465 rights granted under this License, and you may not initiate litigation
466 (including a cross-claim or counterclaim in a lawsuit) alleging that
467 any patent claim is infringed by making, using, selling, offering for
468 sale, or importing the Program or any portion of it.
469
470 11. Patents.
471
472 A "contributor" is a copyright holder who authorizes use under this
473 License of the Program or a work on which the Program is based. The
474 work thus licensed is called the contributor's "contributor version".
475
476 A contributor's "essential patent claims" are all patent claims
477 owned or controlled by the contributor, whether already acquired or
478 hereafter acquired, that would be infringed by some manner, permitted
479 by this License, of making, using, or selling its contributor version,
480 but do not include claims that would be infringed only as a
481 consequence of further modification of the contributor version. For
482 purposes of this definition, "control" includes the right to grant
483 patent sublicenses in a manner consistent with the requirements of
484 this License.
485
486 Each contributor grants you a non-exclusive, worldwide, royalty-free
487 patent license under the contributor's essential patent claims, to
488 make, use, sell, offer for sale, import and otherwise run, modify and
489 propagate the contents of its contributor version.
490
491 In the following three paragraphs, a "patent license" is any express
492 agreement or commitment, however denominated, not to enforce a patent
493 (such as an express permission to practice a patent or covenant not to
494 sue for patent infringement). To "grant" such a patent license to a
495 party means to make such an agreement or commitment not to enforce a
496 patent against the party.
497
498 If you convey a covered work, knowingly relying on a patent license,
499 and the Corresponding Source of the work is not available for anyone
500 to copy, free of charge and under the terms of this License, through a
501 publicly available network server or other readily accessible means,
502 then you must either (1) cause the Corresponding Source to be so
503 available, or (2) arrange to deprive yourself of the benefit of the
504 patent license for this particular work, or (3) arrange, in a manner
505 consistent with the requirements of this License, to extend the patent
506 license to downstream recipients. "Knowingly relying" means you have
507 actual knowledge that, but for the patent license, your conveying the
508 covered work in a country, or your recipient's use of the covered work
509 in a country, would infringe one or more identifiable patents in that
510 country that you have reason to believe are valid.
511
512 If, pursuant to or in connection with a single transaction or
513 arrangement, you convey, or propagate by procuring conveyance of, a
514 covered work, and grant a patent license to some of the parties
515 receiving the covered work authorizing them to use, propagate, modify
516 or convey a specific copy of the covered work, then the patent license
517 you grant is automatically extended to all recipients of the covered
518 work and works based on it.
519
520 A patent license is "discriminatory" if it does not include within
521 the scope of its coverage, prohibits the exercise of, or is
522 conditioned on the non-exercise of one or more of the rights that are
523 specifically granted under this License. You may not convey a covered
524 work if you are a party to an arrangement with a third party that is
525 in the business of distributing software, under which you make payment
526 to the third party based on the extent of your activity of conveying
527 the work, and under which the third party grants, to any of the
528 parties who would receive the covered work from you, a discriminatory
529 patent license (a) in connection with copies of the covered work
530 conveyed by you (or copies made from those copies), or (b) primarily
531 for and in connection with specific products or compilations that
532 contain the covered work, unless you entered into that arrangement,
533 or that patent license was granted, prior to 28 March 2007.
534
535 Nothing in this License shall be construed as excluding or limiting
536 any implied license or other defenses to infringement that may
537 otherwise be available to you under applicable patent law.
538
539 12. No Surrender of Others' Freedom.
540
541 If conditions are imposed on you (whether by court order, agreement or
542 otherwise) that contradict the conditions of this License, they do not
543 excuse you from the conditions of this License. If you cannot convey a
544 covered work so as to satisfy simultaneously your obligations under this
545 License and any other pertinent obligations, then as a consequence you may
546 not convey it at all. For example, if you agree to terms that obligate you
547 to collect a royalty for further conveying from those to whom you convey
548 the Program, the only way you could satisfy both those terms and this
549 License would be to refrain entirely from conveying the Program.
550
551 13. Use with the GNU Affero General Public License.
552
553 Notwithstanding any other provision of this License, you have
554 permission to link or combine any covered work with a work licensed
555 under version 3 of the GNU Affero General Public License into a single
556 combined work, and to convey the resulting work. The terms of this
557 License will continue to apply to the part which is the covered work,
558 but the special requirements of the GNU Affero General Public License,
559 section 13, concerning interaction through a network will apply to the
560 combination as such.
561
562 14. Revised Versions of this License.
563
564 The Free Software Foundation may publish revised and/or new versions of
565 the GNU General Public License from time to time. Such new versions will
566 be similar in spirit to the present version, but may differ in detail to
567 address new problems or concerns.
568
569 Each version is given a distinguishing version number. If the
570 Program specifies that a certain numbered version of the GNU General
571 Public License "or any later version" applies to it, you have the
572 option of following the terms and conditions either of that numbered
573 version or of any later version published by the Free Software
574 Foundation. If the Program does not specify a version number of the
575 GNU General Public License, you may choose any version ever published
576 by the Free Software Foundation.
577
578 If the Program specifies that a proxy can decide which future
579 versions of the GNU General Public License can be used, that proxy's
580 public statement of acceptance of a version permanently authorizes you
581 to choose that version for the Program.
582
583 Later license versions may give you additional or different
584 permissions. However, no additional obligations are imposed on any
585 author or copyright holder as a result of your choosing to follow a
586 later version.
587
588 15. Disclaimer of Warranty.
589
590 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
591 APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
592 HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
593 OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
594 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
595 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
596 IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
597 ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
598
599 16. Limitation of Liability.
600
601 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
602 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
603 THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
604 GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
605 USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
606 DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
607 PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
608 EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
609 SUCH DAMAGES.
610
611 17. Interpretation of Sections 15 and 16.
612
613 If the disclaimer of warranty and limitation of liability provided
614 above cannot be given local legal effect according to their terms,
615 reviewing courts shall apply local law that most closely approximates
616 an absolute waiver of all civil liability in connection with the
617 Program, unless a warranty or assumption of liability accompanies a
618 copy of the Program in return for a fee.
619
620 END OF TERMS AND CONDITIONS
621
622 How to Apply These Terms to Your New Programs
623
624 If you develop a new program, and you want it to be of the greatest
625 possible use to the public, the best way to achieve this is to make it
626 free software which everyone can redistribute and change under these terms.
627
628 To do so, attach the following notices to the program. It is safest
629 to attach them to the start of each source file to most effectively
630 state the exclusion of warranty; and each file should have at least
631 the "copyright" line and a pointer to where the full notice is found.
632
633 {one line to give the program's name and a brief idea of what it does.}
634 Copyright (C) {year} {name of author}
635
636 This program is free software: you can redistribute it and/or modify
637 it under the terms of the GNU General Public License as published by
638 the Free Software Foundation, either version 3 of the License, or
639 (at your option) any later version.
640
641 This program is distributed in the hope that it will be useful,
642 but WITHOUT ANY WARRANTY; without even the implied warranty of
643 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
644 GNU General Public License for more details.
645
646 You should have received a copy of the GNU General Public License
647 along with this program. If not, see <http://www.gnu.org/licenses/>.
648
649 Also add information on how to contact you by electronic and paper mail.
650
651 If the program does terminal interaction, make it output a short
652 notice like this when it starts in an interactive mode:
653
654 {project} Copyright (C) {year} {fullname}
655 This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
656 This is free software, and you are welcome to redistribute it
657 under certain conditions; type `show c' for details.
658
659 The hypothetical commands `show w' and `show c' should show the appropriate
660 parts of the General Public License. Of course, your program's commands
661 might be different; for a GUI interface, you would use an "about box".
662
663 You should also get your employer (if you work as a programmer) or school,
664 if any, to sign a "copyright disclaimer" for the program, if necessary.
665 For more information on this, and how to apply and follow the GNU GPL, see
666 <http://www.gnu.org/licenses/>.
667
668 The GNU General Public License does not permit incorporating your program
669 into proprietary programs. If your program is a subroutine library, you
670 may consider it more useful to permit linking proprietary applications with
671 the library. If this is what you want to do, use the GNU Lesser General
672 Public License instead of this License. But first, please read
673 <http://www.gnu.org/philosophy/why-not-lgpl.html>.
0 air-quality-sensor (0.1)
1
2 * Initial release
3
4 -- Benedikt Wildenhain <debian@benedikt-wildenhain.de> Sat, 09 Aug 2014 01:13:01 +0200
0 Installation Instructions
1 *************************
2
3 Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
4 Inc.
5
6 Copying and distribution of this file, with or without modification,
7 are permitted in any medium without royalty provided the copyright
8 notice and this notice are preserved. This file is offered as-is,
9 without warranty of any kind.
10
11 Basic Installation
12 ==================
13
14 Briefly, the shell command `./configure && make && make install'
15 should configure, build, and install this package. The following
16 more-detailed instructions are generic; see the `README' file for
17 instructions specific to this package. Some packages provide this
18 `INSTALL' file but do not implement all of the features documented
19 below. The lack of an optional feature in a given package is not
20 necessarily a bug. More recommendations for GNU packages can be found
21 in *note Makefile Conventions: (standards)Makefile Conventions.
22
23 The `configure' shell script attempts to guess correct values for
24 various system-dependent variables used during compilation. It uses
25 those values to create a `Makefile' in each directory of the package.
26 It may also create one or more `.h' files containing system-dependent
27 definitions. Finally, it creates a shell script `config.status' that
28 you can run in the future to recreate the current configuration, and a
29 file `config.log' containing compiler output (useful mainly for
30 debugging `configure').
31
32 It can also use an optional file (typically called `config.cache'
33 and enabled with `--cache-file=config.cache' or simply `-C') that saves
34 the results of its tests to speed up reconfiguring. Caching is
35 disabled by default to prevent problems with accidental use of stale
36 cache files.
37
38 If you need to do unusual things to compile the package, please try
39 to figure out how `configure' could check whether to do them, and mail
40 diffs or instructions to the address given in the `README' so they can
41 be considered for the next release. If you are using the cache, and at
42 some point `config.cache' contains results you don't want to keep, you
43 may remove or edit it.
44
45 The file `configure.ac' (or `configure.in') is used to create
46 `configure' by a program called `autoconf'. You need `configure.ac' if
47 you want to change it or regenerate `configure' using a newer version
48 of `autoconf'.
49
50 The simplest way to compile this package is:
51
52 1. `cd' to the directory containing the package's source code and type
53 `./configure' to configure the package for your system.
54
55 Running `configure' might take a while. While running, it prints
56 some messages telling which features it is checking for.
57
58 2. Type `make' to compile the package.
59
60 3. Optionally, type `make check' to run any self-tests that come with
61 the package, generally using the just-built uninstalled binaries.
62
63 4. Type `make install' to install the programs and any data files and
64 documentation. When installing into a prefix owned by root, it is
65 recommended that the package be configured and built as a regular
66 user, and only the `make install' phase executed with root
67 privileges.
68
69 5. Optionally, type `make installcheck' to repeat any self-tests, but
70 this time using the binaries in their final installed location.
71 This target does not install anything. Running this target as a
72 regular user, particularly if the prior `make install' required
73 root privileges, verifies that the installation completed
74 correctly.
75
76 6. You can remove the program binaries and object files from the
77 source code directory by typing `make clean'. To also remove the
78 files that `configure' created (so you can compile the package for
79 a different kind of computer), type `make distclean'. There is
80 also a `make maintainer-clean' target, but that is intended mainly
81 for the package's developers. If you use it, you may have to get
82 all sorts of other programs in order to regenerate files that came
83 with the distribution.
84
85 7. Often, you can also type `make uninstall' to remove the installed
86 files again. In practice, not all packages have tested that
87 uninstallation works correctly, even though it is required by the
88 GNU Coding Standards.
89
90 8. Some packages, particularly those that use Automake, provide `make
91 distcheck', which can by used by developers to test that all other
92 targets like `make install' and `make uninstall' work correctly.
93 This target is generally not run by end users.
94
95 Compilers and Options
96 =====================
97
98 Some systems require unusual options for compilation or linking that
99 the `configure' script does not know about. Run `./configure --help'
100 for details on some of the pertinent environment variables.
101
102 You can give `configure' initial values for configuration parameters
103 by setting variables in the command line or in the environment. Here
104 is an example:
105
106 ./configure CC=c99 CFLAGS=-g LIBS=-lposix
107
108 *Note Defining Variables::, for more details.
109
110 Compiling For Multiple Architectures
111 ====================================
112
113 You can compile the package for more than one kind of computer at the
114 same time, by placing the object files for each architecture in their
115 own directory. To do this, you can use GNU `make'. `cd' to the
116 directory where you want the object files and executables to go and run
117 the `configure' script. `configure' automatically checks for the
118 source code in the directory that `configure' is in and in `..'. This
119 is known as a "VPATH" build.
120
121 With a non-GNU `make', it is safer to compile the package for one
122 architecture at a time in the source code directory. After you have
123 installed the package for one architecture, use `make distclean' before
124 reconfiguring for another architecture.
125
126 On MacOS X 10.5 and later systems, you can create libraries and
127 executables that work on multiple system types--known as "fat" or
128 "universal" binaries--by specifying multiple `-arch' options to the
129 compiler but only a single `-arch' option to the preprocessor. Like
130 this:
131
132 ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
133 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
134 CPP="gcc -E" CXXCPP="g++ -E"
135
136 This is not guaranteed to produce working output in all cases, you
137 may have to build one architecture at a time and combine the results
138 using the `lipo' tool if you have problems.
139
140 Installation Names
141 ==================
142
143 By default, `make install' installs the package's commands under
144 `/usr/local/bin', include files under `/usr/local/include', etc. You
145 can specify an installation prefix other than `/usr/local' by giving
146 `configure' the option `--prefix=PREFIX', where PREFIX must be an
147 absolute file name.
148
149 You can specify separate installation prefixes for
150 architecture-specific files and architecture-independent files. If you
151 pass the option `--exec-prefix=PREFIX' to `configure', the package uses
152 PREFIX as the prefix for installing programs and libraries.
153 Documentation and other data files still use the regular prefix.
154
155 In addition, if you use an unusual directory layout you can give
156 options like `--bindir=DIR' to specify different values for particular
157 kinds of files. Run `configure --help' for a list of the directories
158 you can set and what kinds of files go in them. In general, the
159 default for these options is expressed in terms of `${prefix}', so that
160 specifying just `--prefix' will affect all of the other directory
161 specifications that were not explicitly provided.
162
163 The most portable way to affect installation locations is to pass the
164 correct locations to `configure'; however, many packages provide one or
165 both of the following shortcuts of passing variable assignments to the
166 `make install' command line to change installation locations without
167 having to reconfigure or recompile.
168
169 The first method involves providing an override variable for each
170 affected directory. For example, `make install
171 prefix=/alternate/directory' will choose an alternate location for all
172 directory configuration variables that were expressed in terms of
173 `${prefix}'. Any directories that were specified during `configure',
174 but not in terms of `${prefix}', must each be overridden at install
175 time for the entire installation to be relocated. The approach of
176 makefile variable overrides for each directory variable is required by
177 the GNU Coding Standards, and ideally causes no recompilation.
178 However, some platforms have known limitations with the semantics of
179 shared libraries that end up requiring recompilation when using this
180 method, particularly noticeable in packages that use GNU Libtool.
181
182 The second method involves providing the `DESTDIR' variable. For
183 example, `make install DESTDIR=/alternate/directory' will prepend
184 `/alternate/directory' before all installation names. The approach of
185 `DESTDIR' overrides is not required by the GNU Coding Standards, and
186 does not work on platforms that have drive letters. On the other hand,
187 it does better at avoiding recompilation issues, and works well even
188 when some directory options were not specified in terms of `${prefix}'
189 at `configure' time.
190
191 Optional Features
192 =================
193
194 If the package supports it, you can cause programs to be installed
195 with an extra prefix or suffix on their names by giving `configure' the
196 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
197
198 Some packages pay attention to `--enable-FEATURE' options to
199 `configure', where FEATURE indicates an optional part of the package.
200 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
201 is something like `gnu-as' or `x' (for the X Window System). The
202 `README' should mention any `--enable-' and `--with-' options that the
203 package recognizes.
204
205 For packages that use the X Window System, `configure' can usually
206 find the X include and library files automatically, but if it doesn't,
207 you can use the `configure' options `--x-includes=DIR' and
208 `--x-libraries=DIR' to specify their locations.
209
210 Some packages offer the ability to configure how verbose the
211 execution of `make' will be. For these packages, running `./configure
212 --enable-silent-rules' sets the default to minimal output, which can be
213 overridden with `make V=1'; while running `./configure
214 --disable-silent-rules' sets the default to verbose, which can be
215 overridden with `make V=0'.
216
217 Particular systems
218 ==================
219
220 On HP-UX, the default C compiler is not ANSI C compatible. If GNU
221 CC is not installed, it is recommended to use the following options in
222 order to use an ANSI C compiler:
223
224 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
225
226 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
227
228 HP-UX `make' updates targets which have the same time stamps as
229 their prerequisites, which makes it generally unusable when shipped
230 generated files such as `configure' are involved. Use GNU `make'
231 instead.
232
233 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
234 parse its `<wchar.h>' header file. The option `-nodtk' can be used as
235 a workaround. If GNU CC is not installed, it is therefore recommended
236 to try
237
238 ./configure CC="cc"
239
240 and if that doesn't work, try
241
242 ./configure CC="cc -nodtk"
243
244 On Solaris, don't put `/usr/ucb' early in your `PATH'. This
245 directory contains several dysfunctional programs; working variants of
246 these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
247 in your `PATH', put it _after_ `/usr/bin'.
248
249 On Haiku, software installed for all users goes in `/boot/common',
250 not `/usr/local'. It is recommended to use the following options:
251
252 ./configure --prefix=/boot/common
253
254 Specifying the System Type
255 ==========================
256
257 There may be some features `configure' cannot figure out
258 automatically, but needs to determine by the type of machine the package
259 will run on. Usually, assuming the package is built to be run on the
260 _same_ architectures, `configure' can figure that out, but if it prints
261 a message saying it cannot guess the machine type, give it the
262 `--build=TYPE' option. TYPE can either be a short name for the system
263 type, such as `sun4', or a canonical name which has the form:
264
265 CPU-COMPANY-SYSTEM
266
267 where SYSTEM can have one of these forms:
268
269 OS
270 KERNEL-OS
271
272 See the file `config.sub' for the possible values of each field. If
273 `config.sub' isn't included in this package, then this package doesn't
274 need to know the machine type.
275
276 If you are _building_ compiler tools for cross-compiling, you should
277 use the option `--target=TYPE' to select the type of system they will
278 produce code for.
279
280 If you want to _use_ a cross compiler, that generates code for a
281 platform different from the build platform, you should specify the
282 "host" platform (i.e., that on which the generated programs will
283 eventually be run) with `--host=TYPE'.
284
285 Sharing Defaults
286 ================
287
288 If you want to set default values for `configure' scripts to share,
289 you can create a site shell script called `config.site' that gives
290 default values for variables like `CC', `cache_file', and `prefix'.
291 `configure' looks for `PREFIX/share/config.site' if it exists, then
292 `PREFIX/etc/config.site' if it exists. Or, you can set the
293 `CONFIG_SITE' environment variable to the location of the site script.
294 A warning: not all `configure' scripts look for a site script.
295
296 Defining Variables
297 ==================
298
299 Variables not defined in a site shell script can be set in the
300 environment passed to `configure'. However, some packages may run
301 configure again during the build, and the customized values of these
302 variables may be lost. In order to avoid this problem, you should set
303 them in the `configure' command line, using `VAR=value'. For example:
304
305 ./configure CC=/usr/local2/bin/gcc
306
307 causes the specified `gcc' to be used as the C compiler (unless it is
308 overridden in the site shell script).
309
310 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
311 an Autoconf limitation. Until the limitation is lifted, you can use
312 this workaround:
313
314 CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
315
316 `configure' Invocation
317 ======================
318
319 `configure' recognizes the following options to control how it
320 operates.
321
322 `--help'
323 `-h'
324 Print a summary of all of the options to `configure', and exit.
325
326 `--help=short'
327 `--help=recursive'
328 Print a summary of the options unique to this package's
329 `configure', and exit. The `short' variant lists options used
330 only in the top level, while the `recursive' variant lists options
331 also present in any nested packages.
332
333 `--version'
334 `-V'
335 Print the version of Autoconf used to generate the `configure'
336 script, and exit.
337
338 `--cache-file=FILE'
339 Enable the cache: use and save the results of the tests in FILE,
340 traditionally `config.cache'. FILE defaults to `/dev/null' to
341 disable caching.
342
343 `--config-cache'
344 `-C'
345 Alias for `--cache-file=config.cache'.
346
347 `--quiet'
348 `--silent'
349 `-q'
350 Do not print messages saying which checks are being made. To
351 suppress all normal output, redirect it to `/dev/null' (any error
352 messages will still be shown).
353
354 `--srcdir=DIR'
355 Look for the package's source code in directory DIR. Usually
356 `configure' can determine that directory automatically.
357
358 `--prefix=DIR'
359 Use DIR as the installation prefix. *note Installation Names::
360 for more details, including other options available for fine-tuning
361 the installation locations.
362
363 `--no-create'
364 `-n'
365 Run the configure checks, but stop before creating any output
366 files.
367
368 `configure' also accepts some other, not widely useful, options. Run
369 `configure --help' for more details.
+0
-674
LICENSE less more
0 GNU GENERAL PUBLIC LICENSE
1 Version 3, 29 June 2007
2
3 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
4 Everyone is permitted to copy and distribute verbatim copies
5 of this license document, but changing it is not allowed.
6
7 Preamble
8
9 The GNU General Public License is a free, copyleft license for
10 software and other kinds of works.
11
12 The licenses for most software and other practical works are designed
13 to take away your freedom to share and change the works. By contrast,
14 the GNU General Public License is intended to guarantee your freedom to
15 share and change all versions of a program--to make sure it remains free
16 software for all its users. We, the Free Software Foundation, use the
17 GNU General Public License for most of our software; it applies also to
18 any other work released this way by its authors. You can apply it to
19 your programs, too.
20
21 When we speak of free software, we are referring to freedom, not
22 price. Our General Public Licenses are designed to make sure that you
23 have the freedom to distribute copies of free software (and charge for
24 them if you wish), that you receive source code or can get it if you
25 want it, that you can change the software or use pieces of it in new
26 free programs, and that you know you can do these things.
27
28 To protect your rights, we need to prevent others from denying you
29 these rights or asking you to surrender the rights. Therefore, you have
30 certain responsibilities if you distribute copies of the software, or if
31 you modify it: responsibilities to respect the freedom of others.
32
33 For example, if you distribute copies of such a program, whether
34 gratis or for a fee, you must pass on to the recipients the same
35 freedoms that you received. You must make sure that they, too, receive
36 or can get the source code. And you must show them these terms so they
37 know their rights.
38
39 Developers that use the GNU GPL protect your rights with two steps:
40 (1) assert copyright on the software, and (2) offer you this License
41 giving you legal permission to copy, distribute and/or modify it.
42
43 For the developers' and authors' protection, the GPL clearly explains
44 that there is no warranty for this free software. For both users' and
45 authors' sake, the GPL requires that modified versions be marked as
46 changed, so that their problems will not be attributed erroneously to
47 authors of previous versions.
48
49 Some devices are designed to deny users access to install or run
50 modified versions of the software inside them, although the manufacturer
51 can do so. This is fundamentally incompatible with the aim of
52 protecting users' freedom to change the software. The systematic
53 pattern of such abuse occurs in the area of products for individuals to
54 use, which is precisely where it is most unacceptable. Therefore, we
55 have designed this version of the GPL to prohibit the practice for those
56 products. If such problems arise substantially in other domains, we
57 stand ready to extend this provision to those domains in future versions
58 of the GPL, as needed to protect the freedom of users.
59
60 Finally, every program is threatened constantly by software patents.
61 States should not allow patents to restrict development and use of
62 software on general-purpose computers, but in those that do, we wish to
63 avoid the special danger that patents applied to a free program could
64 make it effectively proprietary. To prevent this, the GPL assures that
65 patents cannot be used to render the program non-free.
66
67 The precise terms and conditions for copying, distribution and
68 modification follow.
69
70 TERMS AND CONDITIONS
71
72 0. Definitions.
73
74 "This License" refers to version 3 of the GNU General Public License.
75
76 "Copyright" also means copyright-like laws that apply to other kinds of
77 works, such as semiconductor masks.
78
79 "The Program" refers to any copyrightable work licensed under this
80 License. Each licensee is addressed as "you". "Licensees" and
81 "recipients" may be individuals or organizations.
82
83 To "modify" a work means to copy from or adapt all or part of the work
84 in a fashion requiring copyright permission, other than the making of an
85 exact copy. The resulting work is called a "modified version" of the
86 earlier work or a work "based on" the earlier work.
87
88 A "covered work" means either the unmodified Program or a work based
89 on the Program.
90
91 To "propagate" a work means to do anything with it that, without
92 permission, would make you directly or secondarily liable for
93 infringement under applicable copyright law, except executing it on a
94 computer or modifying a private copy. Propagation includes copying,
95 distribution (with or without modification), making available to the
96 public, and in some countries other activities as well.
97
98 To "convey" a work means any kind of propagation that enables other
99 parties to make or receive copies. Mere interaction with a user through
100 a computer network, with no transfer of a copy, is not conveying.
101
102 An interactive user interface displays "Appropriate Legal Notices"
103 to the extent that it includes a convenient and prominently visible
104 feature that (1) displays an appropriate copyright notice, and (2)
105 tells the user that there is no warranty for the work (except to the
106 extent that warranties are provided), that licensees may convey the
107 work under this License, and how to view a copy of this License. If
108 the interface presents a list of user commands or options, such as a
109 menu, a prominent item in the list meets this criterion.
110
111 1. Source Code.
112
113 The "source code" for a work means the preferred form of the work
114 for making modifications to it. "Object code" means any non-source
115 form of a work.
116
117 A "Standard Interface" means an interface that either is an official
118 standard defined by a recognized standards body, or, in the case of
119 interfaces specified for a particular programming language, one that
120 is widely used among developers working in that language.
121
122 The "System Libraries" of an executable work include anything, other
123 than the work as a whole, that (a) is included in the normal form of
124 packaging a Major Component, but which is not part of that Major
125 Component, and (b) serves only to enable use of the work with that
126 Major Component, or to implement a Standard Interface for which an
127 implementation is available to the public in source code form. A
128 "Major Component", in this context, means a major essential component
129 (kernel, window system, and so on) of the specific operating system
130 (if any) on which the executable work runs, or a compiler used to
131 produce the work, or an object code interpreter used to run it.
132
133 The "Corresponding Source" for a work in object code form means all
134 the source code needed to generate, install, and (for an executable
135 work) run the object code and to modify the work, including scripts to
136 control those activities. However, it does not include the work's
137 System Libraries, or general-purpose tools or generally available free
138 programs which are used unmodified in performing those activities but
139 which are not part of the work. For example, Corresponding Source
140 includes interface definition files associated with source files for
141 the work, and the source code for shared libraries and dynamically
142 linked subprograms that the work is specifically designed to require,
143 such as by intimate data communication or control flow between those
144 subprograms and other parts of the work.
145
146 The Corresponding Source need not include anything that users
147 can regenerate automatically from other parts of the Corresponding
148 Source.
149
150 The Corresponding Source for a work in source code form is that
151 same work.
152
153 2. Basic Permissions.
154
155 All rights granted under this License are granted for the term of
156 copyright on the Program, and are irrevocable provided the stated
157 conditions are met. This License explicitly affirms your unlimited
158 permission to run the unmodified Program. The output from running a
159 covered work is covered by this License only if the output, given its
160 content, constitutes a covered work. This License acknowledges your
161 rights of fair use or other equivalent, as provided by copyright law.
162
163 You may make, run and propagate covered works that you do not
164 convey, without conditions so long as your license otherwise remains
165 in force. You may convey covered works to others for the sole purpose
166 of having them make modifications exclusively for you, or provide you
167 with facilities for running those works, provided that you comply with
168 the terms of this License in conveying all material for which you do
169 not control copyright. Those thus making or running the covered works
170 for you must do so exclusively on your behalf, under your direction
171 and control, on terms that prohibit them from making any copies of
172 your copyrighted material outside their relationship with you.
173
174 Conveying under any other circumstances is permitted solely under
175 the conditions stated below. Sublicensing is not allowed; section 10
176 makes it unnecessary.
177
178 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
179
180 No covered work shall be deemed part of an effective technological
181 measure under any applicable law fulfilling obligations under article
182 11 of the WIPO copyright treaty adopted on 20 December 1996, or
183 similar laws prohibiting or restricting circumvention of such
184 measures.
185
186 When you convey a covered work, you waive any legal power to forbid
187 circumvention of technological measures to the extent such circumvention
188 is effected by exercising rights under this License with respect to
189 the covered work, and you disclaim any intention to limit operation or
190 modification of the work as a means of enforcing, against the work's
191 users, your or third parties' legal rights to forbid circumvention of
192 technological measures.
193
194 4. Conveying Verbatim Copies.
195
196 You may convey verbatim copies of the Program's source code as you
197 receive it, in any medium, provided that you conspicuously and
198 appropriately publish on each copy an appropriate copyright notice;
199 keep intact all notices stating that this License and any
200 non-permissive terms added in accord with section 7 apply to the code;
201 keep intact all notices of the absence of any warranty; and give all
202 recipients a copy of this License along with the Program.
203
204 You may charge any price or no price for each copy that you convey,
205 and you may offer support or warranty protection for a fee.
206
207 5. Conveying Modified Source Versions.
208
209 You may convey a work based on the Program, or the modifications to
210 produce it from the Program, in the form of source code under the
211 terms of section 4, provided that you also meet all of these conditions:
212
213 a) The work must carry prominent notices stating that you modified
214 it, and giving a relevant date.
215
216 b) The work must carry prominent notices stating that it is
217 released under this License and any conditions added under section
218 7. This requirement modifies the requirement in section 4 to
219 "keep intact all notices".
220
221 c) You must license the entire work, as a whole, under this
222 License to anyone who comes into possession of a copy. This
223 License will therefore apply, along with any applicable section 7
224 additional terms, to the whole of the work, and all its parts,
225 regardless of how they are packaged. This License gives no
226 permission to license the work in any other way, but it does not
227 invalidate such permission if you have separately received it.
228
229 d) If the work has interactive user interfaces, each must display
230 Appropriate Legal Notices; however, if the Program has interactive
231 interfaces that do not display Appropriate Legal Notices, your
232 work need not make them do so.
233
234 A compilation of a covered work with other separate and independent
235 works, which are not by their nature extensions of the covered work,
236 and which are not combined with it such as to form a larger program,
237 in or on a volume of a storage or distribution medium, is called an
238 "aggregate" if the compilation and its resulting copyright are not
239 used to limit the access or legal rights of the compilation's users
240 beyond what the individual works permit. Inclusion of a covered work
241 in an aggregate does not cause this License to apply to the other
242 parts of the aggregate.
243
244 6. Conveying Non-Source Forms.
245
246 You may convey a covered work in object code form under the terms
247 of sections 4 and 5, provided that you also convey the
248 machine-readable Corresponding Source under the terms of this License,
249 in one of these ways:
250
251 a) Convey the object code in, or embodied in, a physical product
252 (including a physical distribution medium), accompanied by the
253 Corresponding Source fixed on a durable physical medium
254 customarily used for software interchange.
255
256 b) Convey the object code in, or embodied in, a physical product
257 (including a physical distribution medium), accompanied by a
258 written offer, valid for at least three years and valid for as
259 long as you offer spare parts or customer support for that product
260 model, to give anyone who possesses the object code either (1) a
261 copy of the Corresponding Source for all the software in the
262 product that is covered by this License, on a durable physical
263 medium customarily used for software interchange, for a price no
264 more than your reasonable cost of physically performing this
265 conveying of source, or (2) access to copy the
266 Corresponding Source from a network server at no charge.
267
268 c) Convey individual copies of the object code with a copy of the
269 written offer to provide the Corresponding Source. This
270 alternative is allowed only occasionally and noncommercially, and
271 only if you received the object code with such an offer, in accord
272 with subsection 6b.
273
274 d) Convey the object code by offering access from a designated
275 place (gratis or for a charge), and offer equivalent access to the
276 Corresponding Source in the same way through the same place at no
277 further charge. You need not require recipients to copy the
278 Corresponding Source along with the object code. If the place to
279 copy the object code is a network server, the Corresponding Source
280 may be on a different server (operated by you or a third party)
281 that supports equivalent copying facilities, provided you maintain
282 clear directions next to the object code saying where to find the
283 Corresponding Source. Regardless of what server hosts the
284 Corresponding Source, you remain obligated to ensure that it is
285 available for as long as needed to satisfy these requirements.
286
287 e) Convey the object code using peer-to-peer transmission, provided
288 you inform other peers where the object code and Corresponding
289 Source of the work are being offered to the general public at no
290 charge under subsection 6d.
291
292 A separable portion of the object code, whose source code is excluded
293 from the Corresponding Source as a System Library, need not be
294 included in conveying the object code work.
295
296 A "User Product" is either (1) a "consumer product", which means any
297 tangible personal property which is normally used for personal, family,
298 or household purposes, or (2) anything designed or sold for incorporation
299 into a dwelling. In determining whether a product is a consumer product,
300 doubtful cases shall be resolved in favor of coverage. For a particular
301 product received by a particular user, "normally used" refers to a
302 typical or common use of that class of product, regardless of the status
303 of the particular user or of the way in which the particular user
304 actually uses, or expects or is expected to use, the product. A product
305 is a consumer product regardless of whether the product has substantial
306 commercial, industrial or non-consumer uses, unless such uses represent
307 the only significant mode of use of the product.
308
309 "Installation Information" for a User Product means any methods,
310 procedures, authorization keys, or other information required to install
311 and execute modified versions of a covered work in that User Product from
312 a modified version of its Corresponding Source. The information must
313 suffice to ensure that the continued functioning of the modified object
314 code is in no case prevented or interfered with solely because
315 modification has been made.
316
317 If you convey an object code work under this section in, or with, or
318 specifically for use in, a User Product, and the conveying occurs as
319 part of a transaction in which the right of possession and use of the
320 User Product is transferred to the recipient in perpetuity or for a
321 fixed term (regardless of how the transaction is characterized), the
322 Corresponding Source conveyed under this section must be accompanied
323 by the Installation Information. But this requirement does not apply
324 if neither you nor any third party retains the ability to install
325 modified object code on the User Product (for example, the work has
326 been installed in ROM).
327
328 The requirement to provide Installation Information does not include a
329 requirement to continue to provide support service, warranty, or updates
330 for a work that has been modified or installed by the recipient, or for
331 the User Product in which it has been modified or installed. Access to a
332 network may be denied when the modification itself materially and
333 adversely affects the operation of the network or violates the rules and
334 protocols for communication across the network.
335
336 Corresponding Source conveyed, and Installation Information provided,
337 in accord with this section must be in a format that is publicly
338 documented (and with an implementation available to the public in
339 source code form), and must require no special password or key for
340 unpacking, reading or copying.
341
342 7. Additional Terms.
343
344 "Additional permissions" are terms that supplement the terms of this
345 License by making exceptions from one or more of its conditions.
346 Additional permissions that are applicable to the entire Program shall
347 be treated as though they were included in this License, to the extent
348 that they are valid under applicable law. If additional permissions
349 apply only to part of the Program, that part may be used separately
350 under those permissions, but the entire Program remains governed by
351 this License without regard to the additional permissions.
352
353 When you convey a copy of a covered work, you may at your option
354 remove any additional permissions from that copy, or from any part of
355 it. (Additional permissions may be written to require their own
356 removal in certain cases when you modify the work.) You may place
357 additional permissions on material, added by you to a covered work,
358 for which you have or can give appropriate copyright permission.
359
360 Notwithstanding any other provision of this License, for material you
361 add to a covered work, you may (if authorized by the copyright holders of
362 that material) supplement the terms of this License with terms:
363
364 a) Disclaiming warranty or limiting liability differently from the
365 terms of sections 15 and 16 of this License; or
366
367 b) Requiring preservation of specified reasonable legal notices or
368 author attributions in that material or in the Appropriate Legal
369 Notices displayed by works containing it; or
370
371 c) Prohibiting misrepresentation of the origin of that material, or
372 requiring that modified versions of such material be marked in
373 reasonable ways as different from the original version; or
374
375 d) Limiting the use for publicity purposes of names of licensors or
376 authors of the material; or
377
378 e) Declining to grant rights under trademark law for use of some
379 trade names, trademarks, or service marks; or
380
381 f) Requiring indemnification of licensors and authors of that
382 material by anyone who conveys the material (or modified versions of
383 it) with contractual assumptions of liability to the recipient, for
384 any liability that these contractual assumptions directly impose on
385 those licensors and authors.
386
387 All other non-permissive additional terms are considered "further
388 restrictions" within the meaning of section 10. If the Program as you
389 received it, or any part of it, contains a notice stating that it is
390 governed by this License along with a term that is a further
391 restriction, you may remove that term. If a license document contains
392 a further restriction but permits relicensing or conveying under this
393 License, you may add to a covered work material governed by the terms
394 of that license document, provided that the further restriction does
395 not survive such relicensing or conveying.
396
397 If you add terms to a covered work in accord with this section, you
398 must place, in the relevant source files, a statement of the
399 additional terms that apply to those files, or a notice indicating
400 where to find the applicable terms.
401
402 Additional terms, permissive or non-permissive, may be stated in the
403 form of a separately written license, or stated as exceptions;
404 the above requirements apply either way.
405
406 8. Termination.
407
408 You may not propagate or modify a covered work except as expressly
409 provided under this License. Any attempt otherwise to propagate or
410 modify it is void, and will automatically terminate your rights under
411 this License (including any patent licenses granted under the third
412 paragraph of section 11).
413
414 However, if you cease all violation of this License, then your
415 license from a particular copyright holder is reinstated (a)
416 provisionally, unless and until the copyright holder explicitly and
417 finally terminates your license, and (b) permanently, if the copyright
418 holder fails to notify you of the violation by some reasonable means
419 prior to 60 days after the cessation.
420
421 Moreover, your license from a particular copyright holder is
422 reinstated permanently if the copyright holder notifies you of the
423 violation by some reasonable means, this is the first time you have
424 received notice of violation of this License (for any work) from that
425 copyright holder, and you cure the violation prior to 30 days after
426 your receipt of the notice.
427
428 Termination of your rights under this section does not terminate the
429 licenses of parties who have received copies or rights from you under
430 this License. If your rights have been terminated and not permanently
431 reinstated, you do not qualify to receive new licenses for the same
432 material under section 10.
433
434 9. Acceptance Not Required for Having Copies.
435
436 You are not required to accept this License in order to receive or
437 run a copy of the Program. Ancillary propagation of a covered work
438 occurring solely as a consequence of using peer-to-peer transmission
439 to receive a copy likewise does not require acceptance. However,
440 nothing other than this License grants you permission to propagate or
441 modify any covered work. These actions infringe copyright if you do
442 not accept this License. Therefore, by modifying or propagating a
443 covered work, you indicate your acceptance of this License to do so.
444
445 10. Automatic Licensing of Downstream Recipients.
446
447 Each time you convey a covered work, the recipient automatically
448 receives a license from the original licensors, to run, modify and
449 propagate that work, subject to this License. You are not responsible
450 for enforcing compliance by third parties with this License.
451
452 An "entity transaction" is a transaction transferring control of an
453 organization, or substantially all assets of one, or subdividing an
454 organization, or merging organizations. If propagation of a covered
455 work results from an entity transaction, each party to that
456 transaction who receives a copy of the work also receives whatever
457 licenses to the work the party's predecessor in interest had or could
458 give under the previous paragraph, plus a right to possession of the
459 Corresponding Source of the work from the predecessor in interest, if
460 the predecessor has it or can get it with reasonable efforts.
461
462 You may not impose any further restrictions on the exercise of the
463 rights granted or affirmed under this License. For example, you may
464 not impose a license fee, royalty, or other charge for exercise of
465 rights granted under this License, and you may not initiate litigation
466 (including a cross-claim or counterclaim in a lawsuit) alleging that
467 any patent claim is infringed by making, using, selling, offering for
468 sale, or importing the Program or any portion of it.
469
470 11. Patents.
471
472 A "contributor" is a copyright holder who authorizes use under this
473 License of the Program or a work on which the Program is based. The
474 work thus licensed is called the contributor's "contributor version".
475
476 A contributor's "essential patent claims" are all patent claims
477 owned or controlled by the contributor, whether already acquired or
478 hereafter acquired, that would be infringed by some manner, permitted
479 by this License, of making, using, or selling its contributor version,
480 but do not include claims that would be infringed only as a
481 consequence of further modification of the contributor version. For
482 purposes of this definition, "control" includes the right to grant
483 patent sublicenses in a manner consistent with the requirements of
484 this License.
485
486 Each contributor grants you a non-exclusive, worldwide, royalty-free
487 patent license under the contributor's essential patent claims, to
488 make, use, sell, offer for sale, import and otherwise run, modify and
489 propagate the contents of its contributor version.
490
491 In the following three paragraphs, a "patent license" is any express
492 agreement or commitment, however denominated, not to enforce a patent
493 (such as an express permission to practice a patent or covenant not to
494 sue for patent infringement). To "grant" such a patent license to a
495 party means to make such an agreement or commitment not to enforce a
496 patent against the party.
497
498 If you convey a covered work, knowingly relying on a patent license,
499 and the Corresponding Source of the work is not available for anyone
500 to copy, free of charge and under the terms of this License, through a
501 publicly available network server or other readily accessible means,
502 then you must either (1) cause the Corresponding Source to be so
503 available, or (2) arrange to deprive yourself of the benefit of the
504 patent license for this particular work, or (3) arrange, in a manner
505 consistent with the requirements of this License, to extend the patent
506 license to downstream recipients. "Knowingly relying" means you have
507 actual knowledge that, but for the patent license, your conveying the
508 covered work in a country, or your recipient's use of the covered work
509 in a country, would infringe one or more identifiable patents in that
510 country that you have reason to believe are valid.
511
512 If, pursuant to or in connection with a single transaction or
513 arrangement, you convey, or propagate by procuring conveyance of, a
514 covered work, and grant a patent license to some of the parties
515 receiving the covered work authorizing them to use, propagate, modify
516 or convey a specific copy of the covered work, then the patent license
517 you grant is automatically extended to all recipients of the covered
518 work and works based on it.
519
520 A patent license is "discriminatory" if it does not include within
521 the scope of its coverage, prohibits the exercise of, or is
522 conditioned on the non-exercise of one or more of the rights that are
523 specifically granted under this License. You may not convey a covered
524 work if you are a party to an arrangement with a third party that is
525 in the business of distributing software, under which you make payment
526 to the third party based on the extent of your activity of conveying
527 the work, and under which the third party grants, to any of the
528 parties who would receive the covered work from you, a discriminatory
529 patent license (a) in connection with copies of the covered work
530 conveyed by you (or copies made from those copies), or (b) primarily
531 for and in connection with specific products or compilations that
532 contain the covered work, unless you entered into that arrangement,
533 or that patent license was granted, prior to 28 March 2007.
534
535 Nothing in this License shall be construed as excluding or limiting
536 any implied license or other defenses to infringement that may
537 otherwise be available to you under applicable patent law.
538
539 12. No Surrender of Others' Freedom.
540
541 If conditions are imposed on you (whether by court order, agreement or
542 otherwise) that contradict the conditions of this License, they do not
543 excuse you from the conditions of this License. If you cannot convey a
544 covered work so as to satisfy simultaneously your obligations under this
545 License and any other pertinent obligations, then as a consequence you may
546 not convey it at all. For example, if you agree to terms that obligate you
547 to collect a royalty for further conveying from those to whom you convey
548 the Program, the only way you could satisfy both those terms and this
549 License would be to refrain entirely from conveying the Program.
550
551 13. Use with the GNU Affero General Public License.
552
553 Notwithstanding any other provision of this License, you have
554 permission to link or combine any covered work with a work licensed
555 under version 3 of the GNU Affero General Public License into a single
556 combined work, and to convey the resulting work. The terms of this
557 License will continue to apply to the part which is the covered work,
558 but the special requirements of the GNU Affero General Public License,
559 section 13, concerning interaction through a network will apply to the
560 combination as such.
561
562 14. Revised Versions of this License.
563
564 The Free Software Foundation may publish revised and/or new versions of
565 the GNU General Public License from time to time. Such new versions will
566 be similar in spirit to the present version, but may differ in detail to
567 address new problems or concerns.
568
569 Each version is given a distinguishing version number. If the
570 Program specifies that a certain numbered version of the GNU General
571 Public License "or any later version" applies to it, you have the
572 option of following the terms and conditions either of that numbered
573 version or of any later version published by the Free Software
574 Foundation. If the Program does not specify a version number of the
575 GNU General Public License, you may choose any version ever published
576 by the Free Software Foundation.
577
578 If the Program specifies that a proxy can decide which future
579 versions of the GNU General Public License can be used, that proxy's
580 public statement of acceptance of a version permanently authorizes you
581 to choose that version for the Program.
582
583 Later license versions may give you additional or different
584 permissions. However, no additional obligations are imposed on any
585 author or copyright holder as a result of your choosing to follow a
586 later version.
587
588 15. Disclaimer of Warranty.
589
590 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
591 APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
592 HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
593 OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
594 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
595 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
596 IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
597 ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
598
599 16. Limitation of Liability.
600
601 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
602 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
603 THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
604 GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
605 USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
606 DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
607 PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
608 EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
609 SUCH DAMAGES.
610
611 17. Interpretation of Sections 15 and 16.
612
613 If the disclaimer of warranty and limitation of liability provided
614 above cannot be given local legal effect according to their terms,
615 reviewing courts shall apply local law that most closely approximates
616 an absolute waiver of all civil liability in connection with the
617 Program, unless a warranty or assumption of liability accompanies a
618 copy of the Program in return for a fee.
619
620 END OF TERMS AND CONDITIONS
621
622 How to Apply These Terms to Your New Programs
623
624 If you develop a new program, and you want it to be of the greatest
625 possible use to the public, the best way to achieve this is to make it
626 free software which everyone can redistribute and change under these terms.
627
628 To do so, attach the following notices to the program. It is safest
629 to attach them to the start of each source file to most effectively
630 state the exclusion of warranty; and each file should have at least
631 the "copyright" line and a pointer to where the full notice is found.
632
633 {one line to give the program's name and a brief idea of what it does.}
634 Copyright (C) {year} {name of author}
635
636 This program is free software: you can redistribute it and/or modify
637 it under the terms of the GNU General Public License as published by
638 the Free Software Foundation, either version 3 of the License, or
639 (at your option) any later version.
640
641 This program is distributed in the hope that it will be useful,
642 but WITHOUT ANY WARRANTY; without even the implied warranty of
643 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
644 GNU General Public License for more details.
645
646 You should have received a copy of the GNU General Public License
647 along with this program. If not, see <http://www.gnu.org/licenses/>.
648
649 Also add information on how to contact you by electronic and paper mail.
650
651 If the program does terminal interaction, make it output a short
652 notice like this when it starts in an interactive mode:
653
654 {project} Copyright (C) {year} {fullname}
655 This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
656 This is free software, and you are welcome to redistribute it
657 under certain conditions; type `show c' for details.
658
659 The hypothetical commands `show w' and `show c' should show the appropriate
660 parts of the General Public License. Of course, your program's commands
661 might be different; for a GUI interface, you would use an "about box".
662
663 You should also get your employer (if you work as a programmer) or school,
664 if any, to sign a "copyright disclaimer" for the program, if necessary.
665 For more information on this, and how to apply and follow the GNU GPL, see
666 <http://www.gnu.org/licenses/>.
667
668 The GNU General Public License does not permit incorporating your program
669 into proprietary programs. If your program is a subroutine library, you
670 may consider it more useful to permit linking proprietary applications with
671 the library. If this is what you want to do, use the GNU Lesser General
672 Public License instead of this License. But first, please read
673 <http://www.gnu.org/philosophy/why-not-lgpl.html>.
0 SUBDIRS = src
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
5 # This Makefile.in 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 @SET_MAKE@
15 VPATH = @srcdir@
16 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__make_running_with_option = \
18 case $${target_option-} in \
19 ?) ;; \
20 *) echo "am__make_running_with_option: internal error: invalid" \
21 "target option '$${target_option-}' specified" >&2; \
22 exit 1;; \
23 esac; \
24 has_opt=no; \
25 sane_makeflags=$$MAKEFLAGS; \
26 if $(am__is_gnu_make); then \
27 sane_makeflags=$$MFLAGS; \
28 else \
29 case $$MAKEFLAGS in \
30 *\\[\ \ ]*) \
31 bs=\\; \
32 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
33 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
34 esac; \
35 fi; \
36 skip_next=no; \
37 strip_trailopt () \
38 { \
39 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
40 }; \
41 for flg in $$sane_makeflags; do \
42 test $$skip_next = yes && { skip_next=no; continue; }; \
43 case $$flg in \
44 *=*|--*) continue;; \
45 -*I) strip_trailopt 'I'; skip_next=yes;; \
46 -*I?*) strip_trailopt 'I';; \
47 -*O) strip_trailopt 'O'; skip_next=yes;; \
48 -*O?*) strip_trailopt 'O';; \
49 -*l) strip_trailopt 'l'; skip_next=yes;; \
50 -*l?*) strip_trailopt 'l';; \
51 -[dEDm]) skip_next=yes;; \
52 -[JT]) skip_next=yes;; \
53 esac; \
54 case $$flg in \
55 *$$target_option*) has_opt=yes; break;; \
56 esac; \
57 done; \
58 test $$has_opt = yes
59 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
60 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
61 pkgdatadir = $(datadir)/@PACKAGE@
62 pkgincludedir = $(includedir)/@PACKAGE@
63 pkglibdir = $(libdir)/@PACKAGE@
64 pkglibexecdir = $(libexecdir)/@PACKAGE@
65 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
66 install_sh_DATA = $(install_sh) -c -m 644
67 install_sh_PROGRAM = $(install_sh) -c
68 install_sh_SCRIPT = $(install_sh) -c
69 INSTALL_HEADER = $(INSTALL_DATA)
70 transform = $(program_transform_name)
71 NORMAL_INSTALL = :
72 PRE_INSTALL = :
73 POST_INSTALL = :
74 NORMAL_UNINSTALL = :
75 PRE_UNINSTALL = :
76 POST_UNINSTALL = :
77 subdir = .
78 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
79 $(top_srcdir)/configure $(am__configure_deps) \
80 $(srcdir)/config.h.in AUTHORS COPYING ChangeLog INSTALL README \
81 compile depcomp install-sh missing
82 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
83 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
84 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
85 $(ACLOCAL_M4)
86 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
87 configure.lineno config.status.lineno
88 mkinstalldirs = $(install_sh) -d
89 CONFIG_HEADER = config.h
90 CONFIG_CLEAN_FILES =
91 CONFIG_CLEAN_VPATH_FILES =
92 AM_V_P = $(am__v_P_@AM_V@)
93 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
94 am__v_P_0 = false
95 am__v_P_1 = :
96 AM_V_GEN = $(am__v_GEN_@AM_V@)
97 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
98 am__v_GEN_0 = @echo " GEN " $@;
99 am__v_GEN_1 =
100 AM_V_at = $(am__v_at_@AM_V@)
101 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
102 am__v_at_0 = @
103 am__v_at_1 =
104 SOURCES =
105 DIST_SOURCES =
106 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
107 ctags-recursive dvi-recursive html-recursive info-recursive \
108 install-data-recursive install-dvi-recursive \
109 install-exec-recursive install-html-recursive \
110 install-info-recursive install-pdf-recursive \
111 install-ps-recursive install-recursive installcheck-recursive \
112 installdirs-recursive pdf-recursive ps-recursive \
113 tags-recursive uninstall-recursive
114 am__can_run_installinfo = \
115 case $$AM_UPDATE_INFO_DIR in \
116 n|no|NO) false;; \
117 *) (install-info --version) >/dev/null 2>&1;; \
118 esac
119 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
120 distclean-recursive maintainer-clean-recursive
121 am__recursive_targets = \
122 $(RECURSIVE_TARGETS) \
123 $(RECURSIVE_CLEAN_TARGETS) \
124 $(am__extra_recursive_targets)
125 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
126 cscope distdir dist dist-all distcheck
127 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
128 $(LISP)config.h.in
129 # Read a list of newline-separated strings from the standard input,
130 # and print each of them once, without duplicates. Input order is
131 # *not* preserved.
132 am__uniquify_input = $(AWK) '\
133 BEGIN { nonempty = 0; } \
134 { items[$$0] = 1; nonempty = 1; } \
135 END { if (nonempty) { for (i in items) print i; }; } \
136 '
137 # Make sure the list of sources is unique. This is necessary because,
138 # e.g., the same source file might be shared among _SOURCES variables
139 # for different programs/libraries.
140 am__define_uniq_tagged_files = \
141 list='$(am__tagged_files)'; \
142 unique=`for i in $$list; do \
143 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
144 done | $(am__uniquify_input)`
145 ETAGS = etags
146 CTAGS = ctags
147 CSCOPE = cscope
148 DIST_SUBDIRS = $(SUBDIRS)
149 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
150 distdir = $(PACKAGE)-$(VERSION)
151 top_distdir = $(distdir)
152 am__remove_distdir = \
153 if test -d "$(distdir)"; then \
154 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
155 && rm -rf "$(distdir)" \
156 || { sleep 5 && rm -rf "$(distdir)"; }; \
157 else :; fi
158 am__post_remove_distdir = $(am__remove_distdir)
159 am__relativize = \
160 dir0=`pwd`; \
161 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
162 sed_rest='s,^[^/]*/*,,'; \
163 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
164 sed_butlast='s,/*[^/]*$$,,'; \
165 while test -n "$$dir1"; do \
166 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
167 if test "$$first" != "."; then \
168 if test "$$first" = ".."; then \
169 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
170 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
171 else \
172 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
173 if test "$$first2" = "$$first"; then \
174 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
175 else \
176 dir2="../$$dir2"; \
177 fi; \
178 dir0="$$dir0"/"$$first"; \
179 fi; \
180 fi; \
181 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
182 done; \
183 reldir="$$dir2"
184 DIST_ARCHIVES = $(distdir).tar.gz
185 GZIP_ENV = --best
186 DIST_TARGETS = dist-gzip
187 distuninstallcheck_listfiles = find . -type f -print
188 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
189 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
190 distcleancheck_listfiles = find . -type f -print
191 ACLOCAL = @ACLOCAL@
192 AMTAR = @AMTAR@
193 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
194 AUTOCONF = @AUTOCONF@
195 AUTOHEADER = @AUTOHEADER@
196 AUTOMAKE = @AUTOMAKE@
197 AWK = @AWK@
198 CC = @CC@
199 CCDEPMODE = @CCDEPMODE@
200 CFLAGS = @CFLAGS@
201 CPPFLAGS = @CPPFLAGS@
202 CYGPATH_W = @CYGPATH_W@
203 DEFS = @DEFS@
204 DEPDIR = @DEPDIR@
205 ECHO_C = @ECHO_C@
206 ECHO_N = @ECHO_N@
207 ECHO_T = @ECHO_T@
208 EXEEXT = @EXEEXT@
209 INSTALL = @INSTALL@
210 INSTALL_DATA = @INSTALL_DATA@
211 INSTALL_PROGRAM = @INSTALL_PROGRAM@
212 INSTALL_SCRIPT = @INSTALL_SCRIPT@
213 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
214 LDFLAGS = @LDFLAGS@
215 LIBOBJS = @LIBOBJS@
216 LIBS = @LIBS@
217 LIBUSB1_0_CFLAGS = @LIBUSB1_0_CFLAGS@
218 LIBUSB1_0_LIBS = @LIBUSB1_0_LIBS@
219 LTLIBOBJS = @LTLIBOBJS@
220 MAKEINFO = @MAKEINFO@
221 MKDIR_P = @MKDIR_P@
222 OBJEXT = @OBJEXT@
223 PACKAGE = @PACKAGE@
224 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
225 PACKAGE_NAME = @PACKAGE_NAME@
226 PACKAGE_STRING = @PACKAGE_STRING@
227 PACKAGE_TARNAME = @PACKAGE_TARNAME@
228 PACKAGE_URL = @PACKAGE_URL@
229 PACKAGE_VERSION = @PACKAGE_VERSION@
230 PATH_SEPARATOR = @PATH_SEPARATOR@
231 PKG_CONFIG = @PKG_CONFIG@
232 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
233 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
234 SET_MAKE = @SET_MAKE@
235 SHELL = @SHELL@
236 STRIP = @STRIP@
237 VERSION = @VERSION@
238 abs_builddir = @abs_builddir@
239 abs_srcdir = @abs_srcdir@
240 abs_top_builddir = @abs_top_builddir@
241 abs_top_srcdir = @abs_top_srcdir@
242 ac_ct_CC = @ac_ct_CC@
243 am__include = @am__include@
244 am__leading_dot = @am__leading_dot@
245 am__quote = @am__quote@
246 am__tar = @am__tar@
247 am__untar = @am__untar@
248 bindir = @bindir@
249 build_alias = @build_alias@
250 builddir = @builddir@
251 datadir = @datadir@
252 datarootdir = @datarootdir@
253 docdir = @docdir@
254 dvidir = @dvidir@
255 exec_prefix = @exec_prefix@
256 host_alias = @host_alias@
257 htmldir = @htmldir@
258 includedir = @includedir@
259 infodir = @infodir@
260 install_sh = @install_sh@
261 libdir = @libdir@
262 libexecdir = @libexecdir@
263 localedir = @localedir@
264 localstatedir = @localstatedir@
265 mandir = @mandir@
266 mkdir_p = @mkdir_p@
267 oldincludedir = @oldincludedir@
268 pdfdir = @pdfdir@
269 prefix = @prefix@
270 program_transform_name = @program_transform_name@
271 psdir = @psdir@
272 sbindir = @sbindir@
273 sharedstatedir = @sharedstatedir@
274 srcdir = @srcdir@
275 sysconfdir = @sysconfdir@
276 target_alias = @target_alias@
277 top_build_prefix = @top_build_prefix@
278 top_builddir = @top_builddir@
279 top_srcdir = @top_srcdir@
280 SUBDIRS = src
281 all: config.h
282 $(MAKE) $(AM_MAKEFLAGS) all-recursive
283
284 .SUFFIXES:
285 am--refresh: Makefile
286 @:
287 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
288 @for dep in $?; do \
289 case '$(am__configure_deps)' in \
290 *$$dep*) \
291 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
292 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
293 && exit 0; \
294 exit 1;; \
295 esac; \
296 done; \
297 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
298 $(am__cd) $(top_srcdir) && \
299 $(AUTOMAKE) --foreign Makefile
300 .PRECIOUS: Makefile
301 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
302 @case '$?' in \
303 *config.status*) \
304 echo ' $(SHELL) ./config.status'; \
305 $(SHELL) ./config.status;; \
306 *) \
307 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
308 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
309 esac;
310
311 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
312 $(SHELL) ./config.status --recheck
313
314 $(top_srcdir)/configure: $(am__configure_deps)
315 $(am__cd) $(srcdir) && $(AUTOCONF)
316 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
317 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
318 $(am__aclocal_m4_deps):
319
320 config.h: stamp-h1
321 @test -f $@ || rm -f stamp-h1
322 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
323
324 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
325 @rm -f stamp-h1
326 cd $(top_builddir) && $(SHELL) ./config.status config.h
327 $(srcdir)/config.h.in: $(am__configure_deps)
328 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
329 rm -f stamp-h1
330 touch $@
331
332 distclean-hdr:
333 -rm -f config.h stamp-h1
334
335 # This directory's subdirectories are mostly independent; you can cd
336 # into them and run 'make' without going through this Makefile.
337 # To change the values of 'make' variables: instead of editing Makefiles,
338 # (1) if the variable is set in 'config.status', edit 'config.status'
339 # (which will cause the Makefiles to be regenerated when you run 'make');
340 # (2) otherwise, pass the desired values on the 'make' command line.
341 $(am__recursive_targets):
342 @fail=; \
343 if $(am__make_keepgoing); then \
344 failcom='fail=yes'; \
345 else \
346 failcom='exit 1'; \
347 fi; \
348 dot_seen=no; \
349 target=`echo $@ | sed s/-recursive//`; \
350 case "$@" in \
351 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
352 *) list='$(SUBDIRS)' ;; \
353 esac; \
354 for subdir in $$list; do \
355 echo "Making $$target in $$subdir"; \
356 if test "$$subdir" = "."; then \
357 dot_seen=yes; \
358 local_target="$$target-am"; \
359 else \
360 local_target="$$target"; \
361 fi; \
362 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
363 || eval $$failcom; \
364 done; \
365 if test "$$dot_seen" = "no"; then \
366 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
367 fi; test -z "$$fail"
368
369 ID: $(am__tagged_files)
370 $(am__define_uniq_tagged_files); mkid -fID $$unique
371 tags: tags-recursive
372 TAGS: tags
373
374 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
375 set x; \
376 here=`pwd`; \
377 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
378 include_option=--etags-include; \
379 empty_fix=.; \
380 else \
381 include_option=--include; \
382 empty_fix=; \
383 fi; \
384 list='$(SUBDIRS)'; for subdir in $$list; do \
385 if test "$$subdir" = .; then :; else \
386 test ! -f $$subdir/TAGS || \
387 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
388 fi; \
389 done; \
390 $(am__define_uniq_tagged_files); \
391 shift; \
392 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
393 test -n "$$unique" || unique=$$empty_fix; \
394 if test $$# -gt 0; then \
395 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
396 "$$@" $$unique; \
397 else \
398 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
399 $$unique; \
400 fi; \
401 fi
402 ctags: ctags-recursive
403
404 CTAGS: ctags
405 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
406 $(am__define_uniq_tagged_files); \
407 test -z "$(CTAGS_ARGS)$$unique" \
408 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
409 $$unique
410
411 GTAGS:
412 here=`$(am__cd) $(top_builddir) && pwd` \
413 && $(am__cd) $(top_srcdir) \
414 && gtags -i $(GTAGS_ARGS) "$$here"
415 cscope: cscope.files
416 test ! -s cscope.files \
417 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
418 clean-cscope:
419 -rm -f cscope.files
420 cscope.files: clean-cscope cscopelist
421 cscopelist: cscopelist-recursive
422
423 cscopelist-am: $(am__tagged_files)
424 list='$(am__tagged_files)'; \
425 case "$(srcdir)" in \
426 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
427 *) sdir=$(subdir)/$(srcdir) ;; \
428 esac; \
429 for i in $$list; do \
430 if test -f "$$i"; then \
431 echo "$(subdir)/$$i"; \
432 else \
433 echo "$$sdir/$$i"; \
434 fi; \
435 done >> $(top_builddir)/cscope.files
436
437 distclean-tags:
438 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
439 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
440
441 distdir: $(DISTFILES)
442 $(am__remove_distdir)
443 test -d "$(distdir)" || mkdir "$(distdir)"
444 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
445 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
446 list='$(DISTFILES)'; \
447 dist_files=`for file in $$list; do echo $$file; done | \
448 sed -e "s|^$$srcdirstrip/||;t" \
449 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
450 case $$dist_files in \
451 */*) $(MKDIR_P) `echo "$$dist_files" | \
452 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
453 sort -u` ;; \
454 esac; \
455 for file in $$dist_files; do \
456 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
457 if test -d $$d/$$file; then \
458 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
459 if test -d "$(distdir)/$$file"; then \
460 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
461 fi; \
462 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
463 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
464 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
465 fi; \
466 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
467 else \
468 test -f "$(distdir)/$$file" \
469 || cp -p $$d/$$file "$(distdir)/$$file" \
470 || exit 1; \
471 fi; \
472 done
473 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
474 if test "$$subdir" = .; then :; else \
475 $(am__make_dryrun) \
476 || test -d "$(distdir)/$$subdir" \
477 || $(MKDIR_P) "$(distdir)/$$subdir" \
478 || exit 1; \
479 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
480 $(am__relativize); \
481 new_distdir=$$reldir; \
482 dir1=$$subdir; dir2="$(top_distdir)"; \
483 $(am__relativize); \
484 new_top_distdir=$$reldir; \
485 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
486 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
487 ($(am__cd) $$subdir && \
488 $(MAKE) $(AM_MAKEFLAGS) \
489 top_distdir="$$new_top_distdir" \
490 distdir="$$new_distdir" \
491 am__remove_distdir=: \
492 am__skip_length_check=: \
493 am__skip_mode_fix=: \
494 distdir) \
495 || exit 1; \
496 fi; \
497 done
498 -test -n "$(am__skip_mode_fix)" \
499 || find "$(distdir)" -type d ! -perm -755 \
500 -exec chmod u+rwx,go+rx {} \; -o \
501 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
502 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
503 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
504 || chmod -R a+r "$(distdir)"
505 dist-gzip: distdir
506 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
507 $(am__post_remove_distdir)
508
509 dist-bzip2: distdir
510 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
511 $(am__post_remove_distdir)
512
513 dist-lzip: distdir
514 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
515 $(am__post_remove_distdir)
516
517 dist-xz: distdir
518 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
519 $(am__post_remove_distdir)
520
521 dist-tarZ: distdir
522 @echo WARNING: "Support for shar distribution archives is" \
523 "deprecated." >&2
524 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
525 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
526 $(am__post_remove_distdir)
527
528 dist-shar: distdir
529 @echo WARNING: "Support for distribution archives compressed with" \
530 "legacy program 'compress' is deprecated." >&2
531 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
532 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
533 $(am__post_remove_distdir)
534
535 dist-zip: distdir
536 -rm -f $(distdir).zip
537 zip -rq $(distdir).zip $(distdir)
538 $(am__post_remove_distdir)
539
540 dist dist-all:
541 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
542 $(am__post_remove_distdir)
543
544 # This target untars the dist file and tries a VPATH configuration. Then
545 # it guarantees that the distribution is self-contained by making another
546 # tarfile.
547 distcheck: dist
548 case '$(DIST_ARCHIVES)' in \
549 *.tar.gz*) \
550 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
551 *.tar.bz2*) \
552 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
553 *.tar.lz*) \
554 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
555 *.tar.xz*) \
556 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
557 *.tar.Z*) \
558 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
559 *.shar.gz*) \
560 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
561 *.zip*) \
562 unzip $(distdir).zip ;;\
563 esac
564 chmod -R a-w $(distdir)
565 chmod u+w $(distdir)
566 mkdir $(distdir)/_build $(distdir)/_inst
567 chmod a-w $(distdir)
568 test -d $(distdir)/_build || exit 0; \
569 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
570 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
571 && am__cwd=`pwd` \
572 && $(am__cd) $(distdir)/_build \
573 && ../configure \
574 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
575 $(DISTCHECK_CONFIGURE_FLAGS) \
576 --srcdir=.. --prefix="$$dc_install_base" \
577 && $(MAKE) $(AM_MAKEFLAGS) \
578 && $(MAKE) $(AM_MAKEFLAGS) dvi \
579 && $(MAKE) $(AM_MAKEFLAGS) check \
580 && $(MAKE) $(AM_MAKEFLAGS) install \
581 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
582 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
583 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
584 distuninstallcheck \
585 && chmod -R a-w "$$dc_install_base" \
586 && ({ \
587 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
588 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
589 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
590 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
591 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
592 } || { rm -rf "$$dc_destdir"; exit 1; }) \
593 && rm -rf "$$dc_destdir" \
594 && $(MAKE) $(AM_MAKEFLAGS) dist \
595 && rm -rf $(DIST_ARCHIVES) \
596 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
597 && cd "$$am__cwd" \
598 || exit 1
599 $(am__post_remove_distdir)
600 @(echo "$(distdir) archives ready for distribution: "; \
601 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
602 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
603 distuninstallcheck:
604 @test -n '$(distuninstallcheck_dir)' || { \
605 echo 'ERROR: trying to run $@ with an empty' \
606 '$$(distuninstallcheck_dir)' >&2; \
607 exit 1; \
608 }; \
609 $(am__cd) '$(distuninstallcheck_dir)' || { \
610 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
611 exit 1; \
612 }; \
613 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
614 || { echo "ERROR: files left after uninstall:" ; \
615 if test -n "$(DESTDIR)"; then \
616 echo " (check DESTDIR support)"; \
617 fi ; \
618 $(distuninstallcheck_listfiles) ; \
619 exit 1; } >&2
620 distcleancheck: distclean
621 @if test '$(srcdir)' = . ; then \
622 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
623 exit 1 ; \
624 fi
625 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
626 || { echo "ERROR: files left in build directory after distclean:" ; \
627 $(distcleancheck_listfiles) ; \
628 exit 1; } >&2
629 check-am: all-am
630 check: check-recursive
631 all-am: Makefile config.h
632 installdirs: installdirs-recursive
633 installdirs-am:
634 install: install-recursive
635 install-exec: install-exec-recursive
636 install-data: install-data-recursive
637 uninstall: uninstall-recursive
638
639 install-am: all-am
640 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
641
642 installcheck: installcheck-recursive
643 install-strip:
644 if test -z '$(STRIP)'; then \
645 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
646 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
647 install; \
648 else \
649 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
650 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
651 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
652 fi
653 mostlyclean-generic:
654
655 clean-generic:
656
657 distclean-generic:
658 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
659 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
660
661 maintainer-clean-generic:
662 @echo "This command is intended for maintainers to use"
663 @echo "it deletes files that may require special tools to rebuild."
664 clean: clean-recursive
665
666 clean-am: clean-generic mostlyclean-am
667
668 distclean: distclean-recursive
669 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
670 -rm -f Makefile
671 distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
672
673 dvi: dvi-recursive
674
675 dvi-am:
676
677 html: html-recursive
678
679 html-am:
680
681 info: info-recursive
682
683 info-am:
684
685 install-data-am:
686
687 install-dvi: install-dvi-recursive
688
689 install-dvi-am:
690
691 install-exec-am:
692
693 install-html: install-html-recursive
694
695 install-html-am:
696
697 install-info: install-info-recursive
698
699 install-info-am:
700
701 install-man:
702
703 install-pdf: install-pdf-recursive
704
705 install-pdf-am:
706
707 install-ps: install-ps-recursive
708
709 install-ps-am:
710
711 installcheck-am:
712
713 maintainer-clean: maintainer-clean-recursive
714 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
715 -rm -rf $(top_srcdir)/autom4te.cache
716 -rm -f Makefile
717 maintainer-clean-am: distclean-am maintainer-clean-generic
718
719 mostlyclean: mostlyclean-recursive
720
721 mostlyclean-am: mostlyclean-generic
722
723 pdf: pdf-recursive
724
725 pdf-am:
726
727 ps: ps-recursive
728
729 ps-am:
730
731 uninstall-am:
732
733 .MAKE: $(am__recursive_targets) all install-am install-strip
734
735 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
736 am--refresh check check-am clean clean-cscope clean-generic \
737 cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
738 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
739 distcheck distclean distclean-generic distclean-hdr \
740 distclean-tags distcleancheck distdir distuninstallcheck dvi \
741 dvi-am html html-am info info-am install install-am \
742 install-data install-data-am install-dvi install-dvi-am \
743 install-exec install-exec-am install-html install-html-am \
744 install-info install-info-am install-man install-pdf \
745 install-pdf-am install-ps install-ps-am install-strip \
746 installcheck installcheck-am installdirs installdirs-am \
747 maintainer-clean maintainer-clean-generic mostlyclean \
748 mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
749 uninstall-am
750
751
752 # Tell versions [3.59,3.63) of GNU make to not export all variables.
753 # Otherwise a system limit (for SysV at least) may be exceeded.
754 .NOEXPORT:
0 air-quality-sensor
1
2 air-quality-sensor - user space driver for AppliedSensor's Indoor Air Monitor
3
4 The Indoor Air Monitor is a USB flash drive-shaped sensor which measures the
5 surrounding's air pollution. This driver prints a list with all connected
6 sensors and their current values to the commandline. Brand names and further
7 information has been documented on http://wiki.micasaverde.com/index.php/
8 CO2_Sensor.
9
10 The air quality is displayed on the hardware token by three indicator lamps
11 with the colours green (= good), yellow (= average) and red (= bad), the same
12 colors are also printed by this tool.
13
14 See https://github.com/bwildenhain/air-quality-sensor for the current version.
15
+0
-4
README.md less more
0 air-quality-sensor-debian
1 =========================
2
3 Debian packaging of air-quality-sensor
0 # generated automatically by aclocal 1.14.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
3
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
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 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
23 # serial 1 (pkg-config-0.24)
24 #
25 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
26 #
27 # This program is free software; you can redistribute it and/or modify
28 # it under the terms of the GNU General Public License as published by
29 # the Free Software Foundation; either version 2 of the License, or
30 # (at your option) any later version.
31 #
32 # This program is distributed in the hope that it will be useful, but
33 # WITHOUT ANY WARRANTY; without even the implied warranty of
34 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
35 # General Public License for more details.
36 #
37 # You should have received a copy of the GNU General Public License
38 # along with this program; if not, write to the Free Software
39 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
40 #
41 # As a special exception to the GNU General Public License, if you
42 # distribute this file as part of a program that contains a
43 # configuration script generated by Autoconf, you may include it under
44 # the same distribution terms that you use for the rest of that program.
45
46 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
47 # ----------------------------------
48 AC_DEFUN([PKG_PROG_PKG_CONFIG],
49 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
50 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
51 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
52 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
53 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
54 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
55
56 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
57 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
58 fi
59 if test -n "$PKG_CONFIG"; then
60 _pkg_min_version=m4_default([$1], [0.9.0])
61 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
62 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
63 AC_MSG_RESULT([yes])
64 else
65 AC_MSG_RESULT([no])
66 PKG_CONFIG=""
67 fi
68 fi[]dnl
69 ])# PKG_PROG_PKG_CONFIG
70
71 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
72 #
73 # Check to see whether a particular set of modules exists. Similar
74 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
75 #
76 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
77 # only at the first occurence in configure.ac, so if the first place
78 # it's called might be skipped (such as if it is within an "if", you
79 # have to call PKG_CHECK_EXISTS manually
80 # --------------------------------------------------------------
81 AC_DEFUN([PKG_CHECK_EXISTS],
82 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
83 if test -n "$PKG_CONFIG" && \
84 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
85 m4_default([$2], [:])
86 m4_ifvaln([$3], [else
87 $3])dnl
88 fi])
89
90 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
91 # ---------------------------------------------
92 m4_define([_PKG_CONFIG],
93 [if test -n "$$1"; then
94 pkg_cv_[]$1="$$1"
95 elif test -n "$PKG_CONFIG"; then
96 PKG_CHECK_EXISTS([$3],
97 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
98 test "x$?" != "x0" && pkg_failed=yes ],
99 [pkg_failed=yes])
100 else
101 pkg_failed=untried
102 fi[]dnl
103 ])# _PKG_CONFIG
104
105 # _PKG_SHORT_ERRORS_SUPPORTED
106 # -----------------------------
107 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
108 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
109 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
110 _pkg_short_errors_supported=yes
111 else
112 _pkg_short_errors_supported=no
113 fi[]dnl
114 ])# _PKG_SHORT_ERRORS_SUPPORTED
115
116
117 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
118 # [ACTION-IF-NOT-FOUND])
119 #
120 #
121 # Note that if there is a possibility the first call to
122 # PKG_CHECK_MODULES might not happen, you should be sure to include an
123 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
124 #
125 #
126 # --------------------------------------------------------------
127 AC_DEFUN([PKG_CHECK_MODULES],
128 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
129 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
130 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
131
132 pkg_failed=no
133 AC_MSG_CHECKING([for $1])
134
135 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
136 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
137
138 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
139 and $1[]_LIBS to avoid the need to call pkg-config.
140 See the pkg-config man page for more details.])
141
142 if test $pkg_failed = yes; then
143 AC_MSG_RESULT([no])
144 _PKG_SHORT_ERRORS_SUPPORTED
145 if test $_pkg_short_errors_supported = yes; then
146 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
147 else
148 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
149 fi
150 # Put the nasty error message in config.log where it belongs
151 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
152
153 m4_default([$4], [AC_MSG_ERROR(
154 [Package requirements ($2) were not met:
155
156 $$1_PKG_ERRORS
157
158 Consider adjusting the PKG_CONFIG_PATH environment variable if you
159 installed software in a non-standard prefix.
160
161 _PKG_TEXT])[]dnl
162 ])
163 elif test $pkg_failed = untried; then
164 AC_MSG_RESULT([no])
165 m4_default([$4], [AC_MSG_FAILURE(
166 [The pkg-config script could not be found or is too old. Make sure it
167 is in your PATH or set the PKG_CONFIG environment variable to the full
168 path to pkg-config.
169
170 _PKG_TEXT
171
172 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
173 ])
174 else
175 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
176 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
177 AC_MSG_RESULT([yes])
178 $3
179 fi[]dnl
180 ])# PKG_CHECK_MODULES
181
182
183 # PKG_INSTALLDIR(DIRECTORY)
184 # -------------------------
185 # Substitutes the variable pkgconfigdir as the location where a module
186 # should install pkg-config .pc files. By default the directory is
187 # $libdir/pkgconfig, but the default can be changed by passing
188 # DIRECTORY. The user can override through the --with-pkgconfigdir
189 # parameter.
190 AC_DEFUN([PKG_INSTALLDIR],
191 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
192 m4_pushdef([pkg_description],
193 [pkg-config installation directory @<:@]pkg_default[@:>@])
194 AC_ARG_WITH([pkgconfigdir],
195 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
196 [with_pkgconfigdir=]pkg_default)
197 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
198 m4_popdef([pkg_default])
199 m4_popdef([pkg_description])
200 ]) dnl PKG_INSTALLDIR
201
202
203 # PKG_NOARCH_INSTALLDIR(DIRECTORY)
204 # -------------------------
205 # Substitutes the variable noarch_pkgconfigdir as the location where a
206 # module should install arch-independent pkg-config .pc files. By
207 # default the directory is $datadir/pkgconfig, but the default can be
208 # changed by passing DIRECTORY. The user can override through the
209 # --with-noarch-pkgconfigdir parameter.
210 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
211 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
212 m4_pushdef([pkg_description],
213 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
214 AC_ARG_WITH([noarch-pkgconfigdir],
215 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
216 [with_noarch_pkgconfigdir=]pkg_default)
217 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
218 m4_popdef([pkg_default])
219 m4_popdef([pkg_description])
220 ]) dnl PKG_NOARCH_INSTALLDIR
221
222
223 # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
224 # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
225 # -------------------------------------------
226 # Retrieves the value of the pkg-config variable for the given module.
227 AC_DEFUN([PKG_CHECK_VAR],
228 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
229 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
230
231 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
232 AS_VAR_COPY([$1], [pkg_cv_][$1])
233
234 AS_VAR_IF([$1], [""], [$5], [$4])dnl
235 ])# PKG_CHECK_VAR
236
237 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
238 #
239 # This file is free software; the Free Software Foundation
240 # gives unlimited permission to copy and/or distribute it,
241 # with or without modifications, as long as this notice is preserved.
242
243 # AM_AUTOMAKE_VERSION(VERSION)
244 # ----------------------------
245 # Automake X.Y traces this macro to ensure aclocal.m4 has been
246 # generated from the m4 files accompanying Automake X.Y.
247 # (This private macro should not be called outside this file.)
248 AC_DEFUN([AM_AUTOMAKE_VERSION],
249 [am__api_version='1.14'
250 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
251 dnl require some minimum version. Point them to the right macro.
252 m4_if([$1], [1.14.1], [],
253 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
254 ])
255
256 # _AM_AUTOCONF_VERSION(VERSION)
257 # -----------------------------
258 # aclocal traces this macro to find the Autoconf version.
259 # This is a private macro too. Using m4_define simplifies
260 # the logic in aclocal, which can simply ignore this definition.
261 m4_define([_AM_AUTOCONF_VERSION], [])
262
263 # AM_SET_CURRENT_AUTOMAKE_VERSION
264 # -------------------------------
265 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
266 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
267 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
268 [AM_AUTOMAKE_VERSION([1.14.1])dnl
269 m4_ifndef([AC_AUTOCONF_VERSION],
270 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
271 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
272
273 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
274
275 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
276 #
277 # This file is free software; the Free Software Foundation
278 # gives unlimited permission to copy and/or distribute it,
279 # with or without modifications, as long as this notice is preserved.
280
281 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
282 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
283 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
284 #
285 # Of course, Automake must honor this variable whenever it calls a
286 # tool from the auxiliary directory. The problem is that $srcdir (and
287 # therefore $ac_aux_dir as well) can be either absolute or relative,
288 # depending on how configure is run. This is pretty annoying, since
289 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
290 # source directory, any form will work fine, but in subdirectories a
291 # relative path needs to be adjusted first.
292 #
293 # $ac_aux_dir/missing
294 # fails when called from a subdirectory if $ac_aux_dir is relative
295 # $top_srcdir/$ac_aux_dir/missing
296 # fails if $ac_aux_dir is absolute,
297 # fails when called from a subdirectory in a VPATH build with
298 # a relative $ac_aux_dir
299 #
300 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
301 # are both prefixed by $srcdir. In an in-source build this is usually
302 # harmless because $srcdir is '.', but things will broke when you
303 # start a VPATH build or use an absolute $srcdir.
304 #
305 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
306 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
307 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
308 # and then we would define $MISSING as
309 # MISSING="\${SHELL} $am_aux_dir/missing"
310 # This will work as long as MISSING is not called from configure, because
311 # unfortunately $(top_srcdir) has no meaning in configure.
312 # However there are other variables, like CC, which are often used in
313 # configure, and could therefore not use this "fixed" $ac_aux_dir.
314 #
315 # Another solution, used here, is to always expand $ac_aux_dir to an
316 # absolute PATH. The drawback is that using absolute paths prevent a
317 # configured tree to be moved without reconfiguration.
318
319 AC_DEFUN([AM_AUX_DIR_EXPAND],
320 [dnl Rely on autoconf to set up CDPATH properly.
321 AC_PREREQ([2.50])dnl
322 # expand $ac_aux_dir to an absolute path
323 am_aux_dir=`cd $ac_aux_dir && pwd`
324 ])
325
326 # AM_CONDITIONAL -*- Autoconf -*-
327
328 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
329 #
330 # This file is free software; the Free Software Foundation
331 # gives unlimited permission to copy and/or distribute it,
332 # with or without modifications, as long as this notice is preserved.
333
334 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
335 # -------------------------------------
336 # Define a conditional.
337 AC_DEFUN([AM_CONDITIONAL],
338 [AC_PREREQ([2.52])dnl
339 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
340 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
341 AC_SUBST([$1_TRUE])dnl
342 AC_SUBST([$1_FALSE])dnl
343 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
344 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
345 m4_define([_AM_COND_VALUE_$1], [$2])dnl
346 if $2; then
347 $1_TRUE=
348 $1_FALSE='#'
349 else
350 $1_TRUE='#'
351 $1_FALSE=
352 fi
353 AC_CONFIG_COMMANDS_PRE(
354 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
355 AC_MSG_ERROR([[conditional "$1" was never defined.
356 Usually this means the macro was only invoked conditionally.]])
357 fi])])
358
359 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
360 #
361 # This file is free software; the Free Software Foundation
362 # gives unlimited permission to copy and/or distribute it,
363 # with or without modifications, as long as this notice is preserved.
364
365
366 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
367 # written in clear, in which case automake, when reading aclocal.m4,
368 # will think it sees a *use*, and therefore will trigger all it's
369 # C support machinery. Also note that it means that autoscan, seeing
370 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
371
372
373 # _AM_DEPENDENCIES(NAME)
374 # ----------------------
375 # See how the compiler implements dependency checking.
376 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
377 # We try a few techniques and use that to set a single cache variable.
378 #
379 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
380 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
381 # dependency, and given that the user is not expected to run this macro,
382 # just rely on AC_PROG_CC.
383 AC_DEFUN([_AM_DEPENDENCIES],
384 [AC_REQUIRE([AM_SET_DEPDIR])dnl
385 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
386 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
387 AC_REQUIRE([AM_DEP_TRACK])dnl
388
389 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
390 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
391 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
392 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
393 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
394 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
395 [depcc="$$1" am_compiler_list=])
396
397 AC_CACHE_CHECK([dependency style of $depcc],
398 [am_cv_$1_dependencies_compiler_type],
399 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
400 # We make a subdir and do the tests there. Otherwise we can end up
401 # making bogus files that we don't know about and never remove. For
402 # instance it was reported that on HP-UX the gcc test will end up
403 # making a dummy file named 'D' -- because '-MD' means "put the output
404 # in D".
405 rm -rf conftest.dir
406 mkdir conftest.dir
407 # Copy depcomp to subdir because otherwise we won't find it if we're
408 # using a relative directory.
409 cp "$am_depcomp" conftest.dir
410 cd conftest.dir
411 # We will build objects and dependencies in a subdirectory because
412 # it helps to detect inapplicable dependency modes. For instance
413 # both Tru64's cc and ICC support -MD to output dependencies as a
414 # side effect of compilation, but ICC will put the dependencies in
415 # the current directory while Tru64 will put them in the object
416 # directory.
417 mkdir sub
418
419 am_cv_$1_dependencies_compiler_type=none
420 if test "$am_compiler_list" = ""; then
421 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
422 fi
423 am__universal=false
424 m4_case([$1], [CC],
425 [case " $depcc " in #(
426 *\ -arch\ *\ -arch\ *) am__universal=true ;;
427 esac],
428 [CXX],
429 [case " $depcc " in #(
430 *\ -arch\ *\ -arch\ *) am__universal=true ;;
431 esac])
432
433 for depmode in $am_compiler_list; do
434 # Setup a source with many dependencies, because some compilers
435 # like to wrap large dependency lists on column 80 (with \), and
436 # we should not choose a depcomp mode which is confused by this.
437 #
438 # We need to recreate these files for each test, as the compiler may
439 # overwrite some of them when testing with obscure command lines.
440 # This happens at least with the AIX C compiler.
441 : > sub/conftest.c
442 for i in 1 2 3 4 5 6; do
443 echo '#include "conftst'$i'.h"' >> sub/conftest.c
444 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
445 # Solaris 10 /bin/sh.
446 echo '/* dummy */' > sub/conftst$i.h
447 done
448 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
449
450 # We check with '-c' and '-o' for the sake of the "dashmstdout"
451 # mode. It turns out that the SunPro C++ compiler does not properly
452 # handle '-M -o', and we need to detect this. Also, some Intel
453 # versions had trouble with output in subdirs.
454 am__obj=sub/conftest.${OBJEXT-o}
455 am__minus_obj="-o $am__obj"
456 case $depmode in
457 gcc)
458 # This depmode causes a compiler race in universal mode.
459 test "$am__universal" = false || continue
460 ;;
461 nosideeffect)
462 # After this tag, mechanisms are not by side-effect, so they'll
463 # only be used when explicitly requested.
464 if test "x$enable_dependency_tracking" = xyes; then
465 continue
466 else
467 break
468 fi
469 ;;
470 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
471 # This compiler won't grok '-c -o', but also, the minuso test has
472 # not run yet. These depmodes are late enough in the game, and
473 # so weak that their functioning should not be impacted.
474 am__obj=conftest.${OBJEXT-o}
475 am__minus_obj=
476 ;;
477 none) break ;;
478 esac
479 if depmode=$depmode \
480 source=sub/conftest.c object=$am__obj \
481 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
482 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
483 >/dev/null 2>conftest.err &&
484 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
485 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
486 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
487 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
488 # icc doesn't choke on unknown options, it will just issue warnings
489 # or remarks (even with -Werror). So we grep stderr for any message
490 # that says an option was ignored or not supported.
491 # When given -MP, icc 7.0 and 7.1 complain thusly:
492 # icc: Command line warning: ignoring option '-M'; no argument required
493 # The diagnosis changed in icc 8.0:
494 # icc: Command line remark: option '-MP' not supported
495 if (grep 'ignoring option' conftest.err ||
496 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
497 am_cv_$1_dependencies_compiler_type=$depmode
498 break
499 fi
500 fi
501 done
502
503 cd ..
504 rm -rf conftest.dir
505 else
506 am_cv_$1_dependencies_compiler_type=none
507 fi
508 ])
509 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
510 AM_CONDITIONAL([am__fastdep$1], [
511 test "x$enable_dependency_tracking" != xno \
512 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
513 ])
514
515
516 # AM_SET_DEPDIR
517 # -------------
518 # Choose a directory name for dependency files.
519 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
520 AC_DEFUN([AM_SET_DEPDIR],
521 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
522 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
523 ])
524
525
526 # AM_DEP_TRACK
527 # ------------
528 AC_DEFUN([AM_DEP_TRACK],
529 [AC_ARG_ENABLE([dependency-tracking], [dnl
530 AS_HELP_STRING(
531 [--enable-dependency-tracking],
532 [do not reject slow dependency extractors])
533 AS_HELP_STRING(
534 [--disable-dependency-tracking],
535 [speeds up one-time build])])
536 if test "x$enable_dependency_tracking" != xno; then
537 am_depcomp="$ac_aux_dir/depcomp"
538 AMDEPBACKSLASH='\'
539 am__nodep='_no'
540 fi
541 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
542 AC_SUBST([AMDEPBACKSLASH])dnl
543 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
544 AC_SUBST([am__nodep])dnl
545 _AM_SUBST_NOTMAKE([am__nodep])dnl
546 ])
547
548 # Generate code to set up dependency tracking. -*- Autoconf -*-
549
550 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
551 #
552 # This file is free software; the Free Software Foundation
553 # gives unlimited permission to copy and/or distribute it,
554 # with or without modifications, as long as this notice is preserved.
555
556
557 # _AM_OUTPUT_DEPENDENCY_COMMANDS
558 # ------------------------------
559 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
560 [{
561 # Older Autoconf quotes --file arguments for eval, but not when files
562 # are listed without --file. Let's play safe and only enable the eval
563 # if we detect the quoting.
564 case $CONFIG_FILES in
565 *\'*) eval set x "$CONFIG_FILES" ;;
566 *) set x $CONFIG_FILES ;;
567 esac
568 shift
569 for mf
570 do
571 # Strip MF so we end up with the name of the file.
572 mf=`echo "$mf" | sed -e 's/:.*$//'`
573 # Check whether this is an Automake generated Makefile or not.
574 # We used to match only the files named 'Makefile.in', but
575 # some people rename them; so instead we look at the file content.
576 # Grep'ing the first line is not enough: some people post-process
577 # each Makefile.in and add a new line on top of each file to say so.
578 # Grep'ing the whole file is not good either: AIX grep has a line
579 # limit of 2048, but all sed's we know have understand at least 4000.
580 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
581 dirpart=`AS_DIRNAME("$mf")`
582 else
583 continue
584 fi
585 # Extract the definition of DEPDIR, am__include, and am__quote
586 # from the Makefile without running 'make'.
587 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
588 test -z "$DEPDIR" && continue
589 am__include=`sed -n 's/^am__include = //p' < "$mf"`
590 test -z "$am__include" && continue
591 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
592 # Find all dependency output files, they are included files with
593 # $(DEPDIR) in their names. We invoke sed twice because it is the
594 # simplest approach to changing $(DEPDIR) to its actual value in the
595 # expansion.
596 for file in `sed -n "
597 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
598 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
599 # Make sure the directory exists.
600 test -f "$dirpart/$file" && continue
601 fdir=`AS_DIRNAME(["$file"])`
602 AS_MKDIR_P([$dirpart/$fdir])
603 # echo "creating $dirpart/$file"
604 echo '# dummy' > "$dirpart/$file"
605 done
606 done
607 }
608 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
609
610
611 # AM_OUTPUT_DEPENDENCY_COMMANDS
612 # -----------------------------
613 # This macro should only be invoked once -- use via AC_REQUIRE.
614 #
615 # This code is only required when automatic dependency tracking
616 # is enabled. FIXME. This creates each '.P' file that we will
617 # need in order to bootstrap the dependency handling code.
618 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
619 [AC_CONFIG_COMMANDS([depfiles],
620 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
621 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
622 ])
623
624 # Do all the work for Automake. -*- Autoconf -*-
625
626 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
627 #
628 # This file is free software; the Free Software Foundation
629 # gives unlimited permission to copy and/or distribute it,
630 # with or without modifications, as long as this notice is preserved.
631
632 # This macro actually does too much. Some checks are only needed if
633 # your package does certain things. But this isn't really a big deal.
634
635 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
636 m4_define([AC_PROG_CC],
637 m4_defn([AC_PROG_CC])
638 [_AM_PROG_CC_C_O
639 ])
640
641 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
642 # AM_INIT_AUTOMAKE([OPTIONS])
643 # -----------------------------------------------
644 # The call with PACKAGE and VERSION arguments is the old style
645 # call (pre autoconf-2.50), which is being phased out. PACKAGE
646 # and VERSION should now be passed to AC_INIT and removed from
647 # the call to AM_INIT_AUTOMAKE.
648 # We support both call styles for the transition. After
649 # the next Automake release, Autoconf can make the AC_INIT
650 # arguments mandatory, and then we can depend on a new Autoconf
651 # release and drop the old call support.
652 AC_DEFUN([AM_INIT_AUTOMAKE],
653 [AC_PREREQ([2.65])dnl
654 dnl Autoconf wants to disallow AM_ names. We explicitly allow
655 dnl the ones we care about.
656 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
657 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
658 AC_REQUIRE([AC_PROG_INSTALL])dnl
659 if test "`cd $srcdir && pwd`" != "`pwd`"; then
660 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
661 # is not polluted with repeated "-I."
662 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
663 # test to see if srcdir already configured
664 if test -f $srcdir/config.status; then
665 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
666 fi
667 fi
668
669 # test whether we have cygpath
670 if test -z "$CYGPATH_W"; then
671 if (cygpath --version) >/dev/null 2>/dev/null; then
672 CYGPATH_W='cygpath -w'
673 else
674 CYGPATH_W=echo
675 fi
676 fi
677 AC_SUBST([CYGPATH_W])
678
679 # Define the identity of the package.
680 dnl Distinguish between old-style and new-style calls.
681 m4_ifval([$2],
682 [AC_DIAGNOSE([obsolete],
683 [$0: two- and three-arguments forms are deprecated.])
684 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
685 AC_SUBST([PACKAGE], [$1])dnl
686 AC_SUBST([VERSION], [$2])],
687 [_AM_SET_OPTIONS([$1])dnl
688 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
689 m4_if(
690 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
691 [ok:ok],,
692 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
693 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
694 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
695
696 _AM_IF_OPTION([no-define],,
697 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
698 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
699
700 # Some tools Automake needs.
701 AC_REQUIRE([AM_SANITY_CHECK])dnl
702 AC_REQUIRE([AC_ARG_PROGRAM])dnl
703 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
704 AM_MISSING_PROG([AUTOCONF], [autoconf])
705 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
706 AM_MISSING_PROG([AUTOHEADER], [autoheader])
707 AM_MISSING_PROG([MAKEINFO], [makeinfo])
708 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
709 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
710 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
711 # For better backward compatibility. To be removed once Automake 1.9.x
712 # dies out for good. For more background, see:
713 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
714 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
715 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
716 # We need awk for the "check" target. The system "awk" is bad on
717 # some platforms.
718 AC_REQUIRE([AC_PROG_AWK])dnl
719 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
720 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
721 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
722 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
723 [_AM_PROG_TAR([v7])])])
724 _AM_IF_OPTION([no-dependencies],,
725 [AC_PROVIDE_IFELSE([AC_PROG_CC],
726 [_AM_DEPENDENCIES([CC])],
727 [m4_define([AC_PROG_CC],
728 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
729 AC_PROVIDE_IFELSE([AC_PROG_CXX],
730 [_AM_DEPENDENCIES([CXX])],
731 [m4_define([AC_PROG_CXX],
732 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
733 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
734 [_AM_DEPENDENCIES([OBJC])],
735 [m4_define([AC_PROG_OBJC],
736 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
737 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
738 [_AM_DEPENDENCIES([OBJCXX])],
739 [m4_define([AC_PROG_OBJCXX],
740 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
741 ])
742 AC_REQUIRE([AM_SILENT_RULES])dnl
743 dnl The testsuite driver may need to know about EXEEXT, so add the
744 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
745 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
746 AC_CONFIG_COMMANDS_PRE(dnl
747 [m4_provide_if([_AM_COMPILER_EXEEXT],
748 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
749
750 # POSIX will say in a future version that running "rm -f" with no argument
751 # is OK; and we want to be able to make that assumption in our Makefile
752 # recipes. So use an aggressive probe to check that the usage we want is
753 # actually supported "in the wild" to an acceptable degree.
754 # See automake bug#10828.
755 # To make any issue more visible, cause the running configure to be aborted
756 # by default if the 'rm' program in use doesn't match our expectations; the
757 # user can still override this though.
758 if rm -f && rm -fr && rm -rf; then : OK; else
759 cat >&2 <<'END'
760 Oops!
761
762 Your 'rm' program seems unable to run without file operands specified
763 on the command line, even when the '-f' option is present. This is contrary
764 to the behaviour of most rm programs out there, and not conforming with
765 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
766
767 Please tell bug-automake@gnu.org about your system, including the value
768 of your $PATH and any error possibly output before this message. This
769 can help us improve future automake versions.
770
771 END
772 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
773 echo 'Configuration will proceed anyway, since you have set the' >&2
774 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
775 echo >&2
776 else
777 cat >&2 <<'END'
778 Aborting the configuration process, to ensure you take notice of the issue.
779
780 You can download and install GNU coreutils to get an 'rm' implementation
781 that behaves properly: <http://www.gnu.org/software/coreutils/>.
782
783 If you want to complete the configuration process using your problematic
784 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
785 to "yes", and re-run configure.
786
787 END
788 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
789 fi
790 fi
791 ])
792
793 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
794 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
795 dnl mangled by Autoconf and run in a shell conditional statement.
796 m4_define([_AC_COMPILER_EXEEXT],
797 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
798
799 # When config.status generates a header, we must update the stamp-h file.
800 # This file resides in the same directory as the config header
801 # that is generated. The stamp files are numbered to have different names.
802
803 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
804 # loop where config.status creates the headers, so we can generate
805 # our stamp files there.
806 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
807 [# Compute $1's index in $config_headers.
808 _am_arg=$1
809 _am_stamp_count=1
810 for _am_header in $config_headers :; do
811 case $_am_header in
812 $_am_arg | $_am_arg:* )
813 break ;;
814 * )
815 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
816 esac
817 done
818 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
819
820 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
821 #
822 # This file is free software; the Free Software Foundation
823 # gives unlimited permission to copy and/or distribute it,
824 # with or without modifications, as long as this notice is preserved.
825
826 # AM_PROG_INSTALL_SH
827 # ------------------
828 # Define $install_sh.
829 AC_DEFUN([AM_PROG_INSTALL_SH],
830 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
831 if test x"${install_sh}" != xset; then
832 case $am_aux_dir in
833 *\ * | *\ *)
834 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
835 *)
836 install_sh="\${SHELL} $am_aux_dir/install-sh"
837 esac
838 fi
839 AC_SUBST([install_sh])])
840
841 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
842 #
843 # This file is free software; the Free Software Foundation
844 # gives unlimited permission to copy and/or distribute it,
845 # with or without modifications, as long as this notice is preserved.
846
847 # Check whether the underlying file-system supports filenames
848 # with a leading dot. For instance MS-DOS doesn't.
849 AC_DEFUN([AM_SET_LEADING_DOT],
850 [rm -rf .tst 2>/dev/null
851 mkdir .tst 2>/dev/null
852 if test -d .tst; then
853 am__leading_dot=.
854 else
855 am__leading_dot=_
856 fi
857 rmdir .tst 2>/dev/null
858 AC_SUBST([am__leading_dot])])
859
860 # Check to see how 'make' treats includes. -*- Autoconf -*-
861
862 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
863 #
864 # This file is free software; the Free Software Foundation
865 # gives unlimited permission to copy and/or distribute it,
866 # with or without modifications, as long as this notice is preserved.
867
868 # AM_MAKE_INCLUDE()
869 # -----------------
870 # Check to see how make treats includes.
871 AC_DEFUN([AM_MAKE_INCLUDE],
872 [am_make=${MAKE-make}
873 cat > confinc << 'END'
874 am__doit:
875 @echo this is the am__doit target
876 .PHONY: am__doit
877 END
878 # If we don't find an include directive, just comment out the code.
879 AC_MSG_CHECKING([for style of include used by $am_make])
880 am__include="#"
881 am__quote=
882 _am_result=none
883 # First try GNU make style include.
884 echo "include confinc" > confmf
885 # Ignore all kinds of additional output from 'make'.
886 case `$am_make -s -f confmf 2> /dev/null` in #(
887 *the\ am__doit\ target*)
888 am__include=include
889 am__quote=
890 _am_result=GNU
891 ;;
892 esac
893 # Now try BSD make style include.
894 if test "$am__include" = "#"; then
895 echo '.include "confinc"' > confmf
896 case `$am_make -s -f confmf 2> /dev/null` in #(
897 *the\ am__doit\ target*)
898 am__include=.include
899 am__quote="\""
900 _am_result=BSD
901 ;;
902 esac
903 fi
904 AC_SUBST([am__include])
905 AC_SUBST([am__quote])
906 AC_MSG_RESULT([$_am_result])
907 rm -f confinc confmf
908 ])
909
910 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
911
912 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
913 #
914 # This file is free software; the Free Software Foundation
915 # gives unlimited permission to copy and/or distribute it,
916 # with or without modifications, as long as this notice is preserved.
917
918 # AM_MISSING_PROG(NAME, PROGRAM)
919 # ------------------------------
920 AC_DEFUN([AM_MISSING_PROG],
921 [AC_REQUIRE([AM_MISSING_HAS_RUN])
922 $1=${$1-"${am_missing_run}$2"}
923 AC_SUBST($1)])
924
925 # AM_MISSING_HAS_RUN
926 # ------------------
927 # Define MISSING if not defined so far and test if it is modern enough.
928 # If it is, set am_missing_run to use it, otherwise, to nothing.
929 AC_DEFUN([AM_MISSING_HAS_RUN],
930 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
931 AC_REQUIRE_AUX_FILE([missing])dnl
932 if test x"${MISSING+set}" != xset; then
933 case $am_aux_dir in
934 *\ * | *\ *)
935 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
936 *)
937 MISSING="\${SHELL} $am_aux_dir/missing" ;;
938 esac
939 fi
940 # Use eval to expand $SHELL
941 if eval "$MISSING --is-lightweight"; then
942 am_missing_run="$MISSING "
943 else
944 am_missing_run=
945 AC_MSG_WARN(['missing' script is too old or missing])
946 fi
947 ])
948
949 # Helper functions for option handling. -*- Autoconf -*-
950
951 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
952 #
953 # This file is free software; the Free Software Foundation
954 # gives unlimited permission to copy and/or distribute it,
955 # with or without modifications, as long as this notice is preserved.
956
957 # _AM_MANGLE_OPTION(NAME)
958 # -----------------------
959 AC_DEFUN([_AM_MANGLE_OPTION],
960 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
961
962 # _AM_SET_OPTION(NAME)
963 # --------------------
964 # Set option NAME. Presently that only means defining a flag for this option.
965 AC_DEFUN([_AM_SET_OPTION],
966 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
967
968 # _AM_SET_OPTIONS(OPTIONS)
969 # ------------------------
970 # OPTIONS is a space-separated list of Automake options.
971 AC_DEFUN([_AM_SET_OPTIONS],
972 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
973
974 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
975 # -------------------------------------------
976 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
977 AC_DEFUN([_AM_IF_OPTION],
978 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
979
980 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
981 #
982 # This file is free software; the Free Software Foundation
983 # gives unlimited permission to copy and/or distribute it,
984 # with or without modifications, as long as this notice is preserved.
985
986 # _AM_PROG_CC_C_O
987 # ---------------
988 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
989 # to automatically call this.
990 AC_DEFUN([_AM_PROG_CC_C_O],
991 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
992 AC_REQUIRE_AUX_FILE([compile])dnl
993 AC_LANG_PUSH([C])dnl
994 AC_CACHE_CHECK(
995 [whether $CC understands -c and -o together],
996 [am_cv_prog_cc_c_o],
997 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
998 # Make sure it works both with $CC and with simple cc.
999 # Following AC_PROG_CC_C_O, we do the test twice because some
1000 # compilers refuse to overwrite an existing .o file with -o,
1001 # though they will create one.
1002 am_cv_prog_cc_c_o=yes
1003 for am_i in 1 2; do
1004 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1005 && test -f conftest2.$ac_objext; then
1006 : OK
1007 else
1008 am_cv_prog_cc_c_o=no
1009 break
1010 fi
1011 done
1012 rm -f core conftest*
1013 unset am_i])
1014 if test "$am_cv_prog_cc_c_o" != yes; then
1015 # Losing compiler, so override with the script.
1016 # FIXME: It is wrong to rewrite CC.
1017 # But if we don't then we get into trouble of one sort or another.
1018 # A longer-term fix would be to have automake use am__CC in this case,
1019 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1020 CC="$am_aux_dir/compile $CC"
1021 fi
1022 AC_LANG_POP([C])])
1023
1024 # For backward compatibility.
1025 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1026
1027 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1028 #
1029 # This file is free software; the Free Software Foundation
1030 # gives unlimited permission to copy and/or distribute it,
1031 # with or without modifications, as long as this notice is preserved.
1032
1033 # AM_RUN_LOG(COMMAND)
1034 # -------------------
1035 # Run COMMAND, save the exit status in ac_status, and log it.
1036 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1037 AC_DEFUN([AM_RUN_LOG],
1038 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1039 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1040 ac_status=$?
1041 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1042 (exit $ac_status); }])
1043
1044 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1045
1046 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
1047 #
1048 # This file is free software; the Free Software Foundation
1049 # gives unlimited permission to copy and/or distribute it,
1050 # with or without modifications, as long as this notice is preserved.
1051
1052 # AM_SANITY_CHECK
1053 # ---------------
1054 AC_DEFUN([AM_SANITY_CHECK],
1055 [AC_MSG_CHECKING([whether build environment is sane])
1056 # Reject unsafe characters in $srcdir or the absolute working directory
1057 # name. Accept space and tab only in the latter.
1058 am_lf='
1059 '
1060 case `pwd` in
1061 *[[\\\"\#\$\&\'\`$am_lf]]*)
1062 AC_MSG_ERROR([unsafe absolute working directory name]);;
1063 esac
1064 case $srcdir in
1065 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1066 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1067 esac
1068
1069 # Do 'set' in a subshell so we don't clobber the current shell's
1070 # arguments. Must try -L first in case configure is actually a
1071 # symlink; some systems play weird games with the mod time of symlinks
1072 # (eg FreeBSD returns the mod time of the symlink's containing
1073 # directory).
1074 if (
1075 am_has_slept=no
1076 for am_try in 1 2; do
1077 echo "timestamp, slept: $am_has_slept" > conftest.file
1078 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1079 if test "$[*]" = "X"; then
1080 # -L didn't work.
1081 set X `ls -t "$srcdir/configure" conftest.file`
1082 fi
1083 if test "$[*]" != "X $srcdir/configure conftest.file" \
1084 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1085
1086 # If neither matched, then we have a broken ls. This can happen
1087 # if, for instance, CONFIG_SHELL is bash and it inherits a
1088 # broken ls alias from the environment. This has actually
1089 # happened. Such a system could not be considered "sane".
1090 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1091 alias in your environment])
1092 fi
1093 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1094 break
1095 fi
1096 # Just in case.
1097 sleep 1
1098 am_has_slept=yes
1099 done
1100 test "$[2]" = conftest.file
1101 )
1102 then
1103 # Ok.
1104 :
1105 else
1106 AC_MSG_ERROR([newly created file is older than distributed files!
1107 Check your system clock])
1108 fi
1109 AC_MSG_RESULT([yes])
1110 # If we didn't sleep, we still need to ensure time stamps of config.status and
1111 # generated files are strictly newer.
1112 am_sleep_pid=
1113 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1114 ( sleep 1 ) &
1115 am_sleep_pid=$!
1116 fi
1117 AC_CONFIG_COMMANDS_PRE(
1118 [AC_MSG_CHECKING([that generated files are newer than configure])
1119 if test -n "$am_sleep_pid"; then
1120 # Hide warnings about reused PIDs.
1121 wait $am_sleep_pid 2>/dev/null
1122 fi
1123 AC_MSG_RESULT([done])])
1124 rm -f conftest.file
1125 ])
1126
1127 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
1128 #
1129 # This file is free software; the Free Software Foundation
1130 # gives unlimited permission to copy and/or distribute it,
1131 # with or without modifications, as long as this notice is preserved.
1132
1133 # AM_SILENT_RULES([DEFAULT])
1134 # --------------------------
1135 # Enable less verbose build rules; with the default set to DEFAULT
1136 # ("yes" being less verbose, "no" or empty being verbose).
1137 AC_DEFUN([AM_SILENT_RULES],
1138 [AC_ARG_ENABLE([silent-rules], [dnl
1139 AS_HELP_STRING(
1140 [--enable-silent-rules],
1141 [less verbose build output (undo: "make V=1")])
1142 AS_HELP_STRING(
1143 [--disable-silent-rules],
1144 [verbose build output (undo: "make V=0")])dnl
1145 ])
1146 case $enable_silent_rules in @%:@ (((
1147 yes) AM_DEFAULT_VERBOSITY=0;;
1148 no) AM_DEFAULT_VERBOSITY=1;;
1149 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1150 esac
1151 dnl
1152 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1153 dnl do not support nested variable expansions.
1154 dnl See automake bug#9928 and bug#10237.
1155 am_make=${MAKE-make}
1156 AC_CACHE_CHECK([whether $am_make supports nested variables],
1157 [am_cv_make_support_nested_variables],
1158 [if AS_ECHO([['TRUE=$(BAR$(V))
1159 BAR0=false
1160 BAR1=true
1161 V=1
1162 am__doit:
1163 @$(TRUE)
1164 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1165 am_cv_make_support_nested_variables=yes
1166 else
1167 am_cv_make_support_nested_variables=no
1168 fi])
1169 if test $am_cv_make_support_nested_variables = yes; then
1170 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1171 AM_V='$(V)'
1172 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1173 else
1174 AM_V=$AM_DEFAULT_VERBOSITY
1175 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1176 fi
1177 AC_SUBST([AM_V])dnl
1178 AM_SUBST_NOTMAKE([AM_V])dnl
1179 AC_SUBST([AM_DEFAULT_V])dnl
1180 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1181 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1182 AM_BACKSLASH='\'
1183 AC_SUBST([AM_BACKSLASH])dnl
1184 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1185 ])
1186
1187 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1188 #
1189 # This file is free software; the Free Software Foundation
1190 # gives unlimited permission to copy and/or distribute it,
1191 # with or without modifications, as long as this notice is preserved.
1192
1193 # AM_PROG_INSTALL_STRIP
1194 # ---------------------
1195 # One issue with vendor 'install' (even GNU) is that you can't
1196 # specify the program used to strip binaries. This is especially
1197 # annoying in cross-compiling environments, where the build's strip
1198 # is unlikely to handle the host's binaries.
1199 # Fortunately install-sh will honor a STRIPPROG variable, so we
1200 # always use install-sh in "make install-strip", and initialize
1201 # STRIPPROG with the value of the STRIP variable (set by the user).
1202 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1203 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1204 # Installed binaries are usually stripped using 'strip' when the user
1205 # run "make install-strip". However 'strip' might not be the right
1206 # tool to use in cross-compilation environments, therefore Automake
1207 # will honor the 'STRIP' environment variable to overrule this program.
1208 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1209 if test "$cross_compiling" != no; then
1210 AC_CHECK_TOOL([STRIP], [strip], :)
1211 fi
1212 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1213 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1214
1215 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
1216 #
1217 # This file is free software; the Free Software Foundation
1218 # gives unlimited permission to copy and/or distribute it,
1219 # with or without modifications, as long as this notice is preserved.
1220
1221 # _AM_SUBST_NOTMAKE(VARIABLE)
1222 # ---------------------------
1223 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1224 # This macro is traced by Automake.
1225 AC_DEFUN([_AM_SUBST_NOTMAKE])
1226
1227 # AM_SUBST_NOTMAKE(VARIABLE)
1228 # --------------------------
1229 # Public sister of _AM_SUBST_NOTMAKE.
1230 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1231
1232 # Check how to create a tarball. -*- Autoconf -*-
1233
1234 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
1235 #
1236 # This file is free software; the Free Software Foundation
1237 # gives unlimited permission to copy and/or distribute it,
1238 # with or without modifications, as long as this notice is preserved.
1239
1240 # _AM_PROG_TAR(FORMAT)
1241 # --------------------
1242 # Check how to create a tarball in format FORMAT.
1243 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1244 #
1245 # Substitute a variable $(am__tar) that is a command
1246 # writing to stdout a FORMAT-tarball containing the directory
1247 # $tardir.
1248 # tardir=directory && $(am__tar) > result.tar
1249 #
1250 # Substitute a variable $(am__untar) that extract such
1251 # a tarball read from stdin.
1252 # $(am__untar) < result.tar
1253 #
1254 AC_DEFUN([_AM_PROG_TAR],
1255 [# Always define AMTAR for backward compatibility. Yes, it's still used
1256 # in the wild :-( We should find a proper way to deprecate it ...
1257 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1258
1259 # We'll loop over all known methods to create a tar archive until one works.
1260 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1261
1262 m4_if([$1], [v7],
1263 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1264
1265 [m4_case([$1],
1266 [ustar],
1267 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1268 # There is notably a 21 bits limit for the UID and the GID. In fact,
1269 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1270 # and bug#13588).
1271 am_max_uid=2097151 # 2^21 - 1
1272 am_max_gid=$am_max_uid
1273 # The $UID and $GID variables are not portable, so we need to resort
1274 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1275 # below are definitely unexpected, so allow the users to see them
1276 # (that is, avoid stderr redirection).
1277 am_uid=`id -u || echo unknown`
1278 am_gid=`id -g || echo unknown`
1279 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1280 if test $am_uid -le $am_max_uid; then
1281 AC_MSG_RESULT([yes])
1282 else
1283 AC_MSG_RESULT([no])
1284 _am_tools=none
1285 fi
1286 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1287 if test $am_gid -le $am_max_gid; then
1288 AC_MSG_RESULT([yes])
1289 else
1290 AC_MSG_RESULT([no])
1291 _am_tools=none
1292 fi],
1293
1294 [pax],
1295 [],
1296
1297 [m4_fatal([Unknown tar format])])
1298
1299 AC_MSG_CHECKING([how to create a $1 tar archive])
1300
1301 # Go ahead even if we have the value already cached. We do so because we
1302 # need to set the values for the 'am__tar' and 'am__untar' variables.
1303 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1304
1305 for _am_tool in $_am_tools; do
1306 case $_am_tool in
1307 gnutar)
1308 for _am_tar in tar gnutar gtar; do
1309 AM_RUN_LOG([$_am_tar --version]) && break
1310 done
1311 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1312 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1313 am__untar="$_am_tar -xf -"
1314 ;;
1315 plaintar)
1316 # Must skip GNU tar: if it does not support --format= it doesn't create
1317 # ustar tarball either.
1318 (tar --version) >/dev/null 2>&1 && continue
1319 am__tar='tar chf - "$$tardir"'
1320 am__tar_='tar chf - "$tardir"'
1321 am__untar='tar xf -'
1322 ;;
1323 pax)
1324 am__tar='pax -L -x $1 -w "$$tardir"'
1325 am__tar_='pax -L -x $1 -w "$tardir"'
1326 am__untar='pax -r'
1327 ;;
1328 cpio)
1329 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1330 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1331 am__untar='cpio -i -H $1 -d'
1332 ;;
1333 none)
1334 am__tar=false
1335 am__tar_=false
1336 am__untar=false
1337 ;;
1338 esac
1339
1340 # If the value was cached, stop now. We just wanted to have am__tar
1341 # and am__untar set.
1342 test -n "${am_cv_prog_tar_$1}" && break
1343
1344 # tar/untar a dummy directory, and stop if the command works.
1345 rm -rf conftest.dir
1346 mkdir conftest.dir
1347 echo GrepMe > conftest.dir/file
1348 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1349 rm -rf conftest.dir
1350 if test -s conftest.tar; then
1351 AM_RUN_LOG([$am__untar <conftest.tar])
1352 AM_RUN_LOG([cat conftest.dir/file])
1353 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1354 fi
1355 done
1356 rm -rf conftest.dir
1357
1358 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1359 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1360
1361 AC_SUBST([am__tar])
1362 AC_SUBST([am__untar])
1363 ]) # _AM_PROG_TAR
1364
0 #! /bin/sh
1 # Wrapper for compilers which do not understand '-c -o'.
2
3 scriptversion=2012-10-14.11; # UTC
4
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
6 # Written by Tom Tromey <tromey@cygnus.com>.
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 # This file is maintained in Automake, please report
27 # bugs to <bug-automake@gnu.org> or send patches to
28 # <automake-patches@gnu.org>.
29
30 nl='
31 '
32
33 # We need space, tab and new line, in precisely that order. Quoting is
34 # there to prevent tools from complaining about whitespace usage.
35 IFS=" "" $nl"
36
37 file_conv=
38
39 # func_file_conv build_file lazy
40 # Convert a $build file to $host form and store it in $file
41 # Currently only supports Windows hosts. If the determined conversion
42 # type is listed in (the comma separated) LAZY, no conversion will
43 # take place.
44 func_file_conv ()
45 {
46 file=$1
47 case $file in
48 / | /[!/]*) # absolute file, and not a UNC file
49 if test -z "$file_conv"; then
50 # lazily determine how to convert abs files
51 case `uname -s` in
52 MINGW*)
53 file_conv=mingw
54 ;;
55 CYGWIN*)
56 file_conv=cygwin
57 ;;
58 *)
59 file_conv=wine
60 ;;
61 esac
62 fi
63 case $file_conv/,$2, in
64 *,$file_conv,*)
65 ;;
66 mingw/*)
67 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
68 ;;
69 cygwin/*)
70 file=`cygpath -m "$file" || echo "$file"`
71 ;;
72 wine/*)
73 file=`winepath -w "$file" || echo "$file"`
74 ;;
75 esac
76 ;;
77 esac
78 }
79
80 # func_cl_dashL linkdir
81 # Make cl look for libraries in LINKDIR
82 func_cl_dashL ()
83 {
84 func_file_conv "$1"
85 if test -z "$lib_path"; then
86 lib_path=$file
87 else
88 lib_path="$lib_path;$file"
89 fi
90 linker_opts="$linker_opts -LIBPATH:$file"
91 }
92
93 # func_cl_dashl library
94 # Do a library search-path lookup for cl
95 func_cl_dashl ()
96 {
97 lib=$1
98 found=no
99 save_IFS=$IFS
100 IFS=';'
101 for dir in $lib_path $LIB
102 do
103 IFS=$save_IFS
104 if $shared && test -f "$dir/$lib.dll.lib"; then
105 found=yes
106 lib=$dir/$lib.dll.lib
107 break
108 fi
109 if test -f "$dir/$lib.lib"; then
110 found=yes
111 lib=$dir/$lib.lib
112 break
113 fi
114 if test -f "$dir/lib$lib.a"; then
115 found=yes
116 lib=$dir/lib$lib.a
117 break
118 fi
119 done
120 IFS=$save_IFS
121
122 if test "$found" != yes; then
123 lib=$lib.lib
124 fi
125 }
126
127 # func_cl_wrapper cl arg...
128 # Adjust compile command to suit cl
129 func_cl_wrapper ()
130 {
131 # Assume a capable shell
132 lib_path=
133 shared=:
134 linker_opts=
135 for arg
136 do
137 if test -n "$eat"; then
138 eat=
139 else
140 case $1 in
141 -o)
142 # configure might choose to run compile as 'compile cc -o foo foo.c'.
143 eat=1
144 case $2 in
145 *.o | *.[oO][bB][jJ])
146 func_file_conv "$2"
147 set x "$@" -Fo"$file"
148 shift
149 ;;
150 *)
151 func_file_conv "$2"
152 set x "$@" -Fe"$file"
153 shift
154 ;;
155 esac
156 ;;
157 -I)
158 eat=1
159 func_file_conv "$2" mingw
160 set x "$@" -I"$file"
161 shift
162 ;;
163 -I*)
164 func_file_conv "${1#-I}" mingw
165 set x "$@" -I"$file"
166 shift
167 ;;
168 -l)
169 eat=1
170 func_cl_dashl "$2"
171 set x "$@" "$lib"
172 shift
173 ;;
174 -l*)
175 func_cl_dashl "${1#-l}"
176 set x "$@" "$lib"
177 shift
178 ;;
179 -L)
180 eat=1
181 func_cl_dashL "$2"
182 ;;
183 -L*)
184 func_cl_dashL "${1#-L}"
185 ;;
186 -static)
187 shared=false
188 ;;
189 -Wl,*)
190 arg=${1#-Wl,}
191 save_ifs="$IFS"; IFS=','
192 for flag in $arg; do
193 IFS="$save_ifs"
194 linker_opts="$linker_opts $flag"
195 done
196 IFS="$save_ifs"
197 ;;
198 -Xlinker)
199 eat=1
200 linker_opts="$linker_opts $2"
201 ;;
202 -*)
203 set x "$@" "$1"
204 shift
205 ;;
206 *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
207 func_file_conv "$1"
208 set x "$@" -Tp"$file"
209 shift
210 ;;
211 *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
212 func_file_conv "$1" mingw
213 set x "$@" "$file"
214 shift
215 ;;
216 *)
217 set x "$@" "$1"
218 shift
219 ;;
220 esac
221 fi
222 shift
223 done
224 if test -n "$linker_opts"; then
225 linker_opts="-link$linker_opts"
226 fi
227 exec "$@" $linker_opts
228 exit 1
229 }
230
231 eat=
232
233 case $1 in
234 '')
235 echo "$0: No command. Try '$0 --help' for more information." 1>&2
236 exit 1;
237 ;;
238 -h | --h*)
239 cat <<\EOF
240 Usage: compile [--help] [--version] PROGRAM [ARGS]
241
242 Wrapper for compilers which do not understand '-c -o'.
243 Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
244 arguments, and rename the output as expected.
245
246 If you are trying to build a whole package this is not the
247 right script to run: please start by reading the file 'INSTALL'.
248
249 Report bugs to <bug-automake@gnu.org>.
250 EOF
251 exit $?
252 ;;
253 -v | --v*)
254 echo "compile $scriptversion"
255 exit $?
256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
258 func_cl_wrapper "$@" # Doesn't return...
259 ;;
260 esac
261
262 ofile=
263 cfile=
264
265 for arg
266 do
267 if test -n "$eat"; then
268 eat=
269 else
270 case $1 in
271 -o)
272 # configure might choose to run compile as 'compile cc -o foo foo.c'.
273 # So we strip '-o arg' only if arg is an object.
274 eat=1
275 case $2 in
276 *.o | *.obj)
277 ofile=$2
278 ;;
279 *)
280 set x "$@" -o "$2"
281 shift
282 ;;
283 esac
284 ;;
285 *.c)
286 cfile=$1
287 set x "$@" "$1"
288 shift
289 ;;
290 *)
291 set x "$@" "$1"
292 shift
293 ;;
294 esac
295 fi
296 shift
297 done
298
299 if test -z "$ofile" || test -z "$cfile"; then
300 # If no '-o' option was seen then we might have been invoked from a
301 # pattern rule where we don't need one. That is ok -- this is a
302 # normal compilation that the losing compiler can handle. If no
303 # '.c' file was seen then we are probably linking. That is also
304 # ok.
305 exec "$@"
306 fi
307
308 # Name of file we expect compiler to create.
309 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
310
311 # Create the lock directory.
312 # Note: use '[/\\:.-]' here to ensure that we don't use the same name
313 # that we are using for the .o file. Also, base the name on the expected
314 # object file name, since that is what matters with a parallel build.
315 lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
316 while true; do
317 if mkdir "$lockdir" >/dev/null 2>&1; then
318 break
319 fi
320 sleep 1
321 done
322 # FIXME: race condition here if user kills between mkdir and trap.
323 trap "rmdir '$lockdir'; exit 1" 1 2 15
324
325 # Run the compile.
326 "$@"
327 ret=$?
328
329 if test -f "$cofile"; then
330 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
331 elif test -f "${cofile}bj"; then
332 test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
333 fi
334
335 rmdir "$lockdir"
336 exit $ret
337
338 # Local Variables:
339 # mode: shell-script
340 # sh-indentation: 2
341 # eval: (add-hook 'write-file-hooks 'time-stamp)
342 # time-stamp-start: "scriptversion="
343 # time-stamp-format: "%:y-%02m-%02d.%02H"
344 # time-stamp-time-zone: "UTC"
345 # time-stamp-end: "; # UTC"
346 # End:
0 /* config.h.in. Generated from configure.ac by autoheader. */
1
2 /* year in copyright message */
3 #undef COPYRIGHT_YEAR
4
5 /* Define to 1 if you have the `getopt_long' function. */
6 #undef HAVE_GETOPT_LONG
7
8 /* Define to 1 if you have the `usb-1.0' library (-lusb-1.0). */
9 #undef HAVE_LIBUSB_1_0
10
11 /* Libusb is old and does not give information about topology of connected
12 devices */
13 #undef LIBUSB_OLD
14
15 /* Name of package */
16 #undef PACKAGE
17
18 /* Define to the address where bug reports for this package should be sent. */
19 #undef PACKAGE_BUGREPORT
20
21 /* Define to the full name of this package. */
22 #undef PACKAGE_NAME
23
24 /* Define to the full name and version of this package. */
25 #undef PACKAGE_STRING
26
27 /* Define to the one symbol short name of this package. */
28 #undef PACKAGE_TARNAME
29
30 /* Define to the home page for this package. */
31 #undef PACKAGE_URL
32
33 /* Define to the version of this package. */
34 #undef PACKAGE_VERSION
35
36 /* Version number of package */
37 #undef VERSION
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for air-quality-sensor 0.1.1.
3 #
4 # Report bugs to <air-quality-sensor@benedikt-wildenhain.de>.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 # Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139 _as_can_reexec=no; export _as_can_reexec;
140 # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
144 BASH_ENV=/dev/null
145 ENV=/dev/null
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 case $- in # ((((
148 *v*x* | *x*v* ) as_opts=-vx ;;
149 *v* ) as_opts=-v ;;
150 *x* ) as_opts=-x ;;
151 * ) as_opts= ;;
152 esac
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
158 fi
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec=; unset _as_can_reexec;}
161 if test "x$CONFIG_SHELL" = x; then
162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
163 emulate sh
164 NULLCMD=:
165 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166 # is contrary to our usage. Disable this feature.
167 alias -g '\${1+\"\$@\"}'='\"\$@\"'
168 setopt NO_GLOB_SUBST
169 else
170 case \`(set -o) 2>/dev/null\` in #(
171 *posix*) :
172 set -o posix ;; #(
173 *) :
174 ;;
175 esac
176 fi
177 "
178 as_required="as_fn_return () { (exit \$1); }
179 as_fn_success () { as_fn_return 0; }
180 as_fn_failure () { as_fn_return 1; }
181 as_fn_ret_success () { return 0; }
182 as_fn_ret_failure () { return 1; }
183
184 exitcode=0
185 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191 else
192 exitcode=1; echo positional parameters were not saved.
193 fi
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org and
268 $0: air-quality-sensor@benedikt-wildenhain.de about your
269 $0: system, including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
272 fi
273 exit 1
274 fi
275 fi
276 fi
277 SHELL=${CONFIG_SHELL-/bin/sh}
278 export SHELL
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
282
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
286 # as_fn_unset VAR
287 # ---------------
288 # Portably unset VAR.
289 as_fn_unset ()
290 {
291 { eval $1=; unset $1;}
292 }
293 as_unset=as_fn_unset
294
295 # as_fn_set_status STATUS
296 # -----------------------
297 # Set $? to STATUS, without forking.
298 as_fn_set_status ()
299 {
300 return $1
301 } # as_fn_set_status
302
303 # as_fn_exit STATUS
304 # -----------------
305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
306 as_fn_exit ()
307 {
308 set +e
309 as_fn_set_status $1
310 exit $1
311 } # as_fn_exit
312
313 # as_fn_mkdir_p
314 # -------------
315 # Create "$as_dir" as a directory, including parents if necessary.
316 as_fn_mkdir_p ()
317 {
318
319 case $as_dir in #(
320 -*) as_dir=./$as_dir;;
321 esac
322 test -d "$as_dir" || eval $as_mkdir_p || {
323 as_dirs=
324 while :; do
325 case $as_dir in #(
326 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
327 *) as_qdir=$as_dir;;
328 esac
329 as_dirs="'$as_qdir' $as_dirs"
330 as_dir=`$as_dirname -- "$as_dir" ||
331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
332 X"$as_dir" : 'X\(//\)[^/]' \| \
333 X"$as_dir" : 'X\(//\)$' \| \
334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
335 $as_echo X"$as_dir" |
336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
337 s//\1/
338 q
339 }
340 /^X\(\/\/\)[^/].*/{
341 s//\1/
342 q
343 }
344 /^X\(\/\/\)$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\).*/{
349 s//\1/
350 q
351 }
352 s/.*/./; q'`
353 test -d "$as_dir" && break
354 done
355 test -z "$as_dirs" || eval "mkdir $as_dirs"
356 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
357
358
359 } # as_fn_mkdir_p
360
361 # as_fn_executable_p FILE
362 # -----------------------
363 # Test if FILE is an executable regular file.
364 as_fn_executable_p ()
365 {
366 test -f "$1" && test -x "$1"
367 } # as_fn_executable_p
368 # as_fn_append VAR VALUE
369 # ----------------------
370 # Append the text in VALUE to the end of the definition contained in VAR. Take
371 # advantage of any shell optimizations that allow amortized linear growth over
372 # repeated appends, instead of the typical quadratic growth present in naive
373 # implementations.
374 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
375 eval 'as_fn_append ()
376 {
377 eval $1+=\$2
378 }'
379 else
380 as_fn_append ()
381 {
382 eval $1=\$$1\$2
383 }
384 fi # as_fn_append
385
386 # as_fn_arith ARG...
387 # ------------------
388 # Perform arithmetic evaluation on the ARGs, and store the result in the
389 # global $as_val. Take advantage of shells that can avoid forks. The arguments
390 # must be portable across $(()) and expr.
391 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
392 eval 'as_fn_arith ()
393 {
394 as_val=$(( $* ))
395 }'
396 else
397 as_fn_arith ()
398 {
399 as_val=`expr "$@" || test $? -eq 1`
400 }
401 fi # as_fn_arith
402
403
404 # as_fn_error STATUS ERROR [LINENO LOG_FD]
405 # ----------------------------------------
406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
408 # script with STATUS, using 1 if that was 0.
409 as_fn_error ()
410 {
411 as_status=$1; test $as_status -eq 0 && as_status=1
412 if test "$4"; then
413 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 fi
416 $as_echo "$as_me: error: $2" >&2
417 as_fn_exit $as_status
418 } # as_fn_error
419
420 if expr a : '\(a\)' >/dev/null 2>&1 &&
421 test "X`expr 00001 : '.*\(...\)'`" = X001; then
422 as_expr=expr
423 else
424 as_expr=false
425 fi
426
427 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
428 as_basename=basename
429 else
430 as_basename=false
431 fi
432
433 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
434 as_dirname=dirname
435 else
436 as_dirname=false
437 fi
438
439 as_me=`$as_basename -- "$0" ||
440 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
441 X"$0" : 'X\(//\)$' \| \
442 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 $as_echo X/"$0" |
444 sed '/^.*\/\([^/][^/]*\)\/*$/{
445 s//\1/
446 q
447 }
448 /^X\/\(\/\/\)$/{
449 s//\1/
450 q
451 }
452 /^X\/\(\/\).*/{
453 s//\1/
454 q
455 }
456 s/.*/./; q'`
457
458 # Avoid depending upon Character Ranges.
459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
462 as_cr_digits='0123456789'
463 as_cr_alnum=$as_cr_Letters$as_cr_digits
464
465
466 as_lineno_1=$LINENO as_lineno_1a=$LINENO
467 as_lineno_2=$LINENO as_lineno_2a=$LINENO
468 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
469 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
470 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
471 sed -n '
472 p
473 /[$]LINENO/=
474 ' <$as_myself |
475 sed '
476 s/[$]LINENO.*/&-/
477 t lineno
478 b
479 :lineno
480 N
481 :loop
482 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
483 t loop
484 s/-\n.*//
485 ' >$as_me.lineno &&
486 chmod +x "$as_me.lineno" ||
487 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488
489 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
490 # already done that, so ensure we don't try to do so again and fall
491 # in an infinite loop. This has already happened in practice.
492 _as_can_reexec=no; export _as_can_reexec
493 # Don't try to exec as it changes $[0], causing all sort of problems
494 # (the dirname of $[0] is not the place where we might find the
495 # original and so on. Autoconf is especially sensitive to this).
496 . "./$as_me.lineno"
497 # Exit status is that of the last command.
498 exit
499 }
500
501 ECHO_C= ECHO_N= ECHO_T=
502 case `echo -n x` in #(((((
503 -n*)
504 case `echo 'xy\c'` in
505 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 xy) ECHO_C='\c';;
507 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
508 ECHO_T=' ';;
509 esac;;
510 *)
511 ECHO_N='-n';;
512 esac
513
514 rm -f conf$$ conf$$.exe conf$$.file
515 if test -d conf$$.dir; then
516 rm -f conf$$.dir/conf$$.file
517 else
518 rm -f conf$$.dir
519 mkdir conf$$.dir 2>/dev/null
520 fi
521 if (echo >conf$$.file) 2>/dev/null; then
522 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 as_ln_s='ln -s'
524 # ... but there are two gotchas:
525 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
526 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
527 # In both cases, we have to default to `cp -pR'.
528 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 as_ln_s='cp -pR'
530 elif ln conf$$.file conf$$ 2>/dev/null; then
531 as_ln_s=ln
532 else
533 as_ln_s='cp -pR'
534 fi
535 else
536 as_ln_s='cp -pR'
537 fi
538 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
539 rmdir conf$$.dir 2>/dev/null
540
541 if mkdir -p . 2>/dev/null; then
542 as_mkdir_p='mkdir -p "$as_dir"'
543 else
544 test -d ./-p && rmdir ./-p
545 as_mkdir_p=false
546 fi
547
548 as_test_x='test -x'
549 as_executable_p=as_fn_executable_p
550
551 # Sed expression to map a string onto a valid CPP name.
552 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553
554 # Sed expression to map a string onto a valid variable name.
555 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556
557
558 test -n "$DJDIR" || exec 7<&0 </dev/null
559 exec 6>&1
560
561 # Name of the host.
562 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
563 # so uname gets run too.
564 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565
566 #
567 # Initializations.
568 #
569 ac_default_prefix=/usr/local
570 ac_clean_files=
571 ac_config_libobj_dir=.
572 LIBOBJS=
573 cross_compiling=no
574 subdirs=
575 MFLAGS=
576 MAKEFLAGS=
577
578 # Identity of this package.
579 PACKAGE_NAME='air-quality-sensor'
580 PACKAGE_TARNAME='air-quality-sensor'
581 PACKAGE_VERSION='0.1.1'
582 PACKAGE_STRING='air-quality-sensor 0.1.1'
583 PACKAGE_BUGREPORT='air-quality-sensor@benedikt-wildenhain.de'
584 PACKAGE_URL=''
585
586 ac_subst_vars='am__EXEEXT_FALSE
587 am__EXEEXT_TRUE
588 LTLIBOBJS
589 LIBOBJS
590 LIBUSB1_0_LIBS
591 LIBUSB1_0_CFLAGS
592 PKG_CONFIG_LIBDIR
593 PKG_CONFIG_PATH
594 PKG_CONFIG
595 am__fastdepCC_FALSE
596 am__fastdepCC_TRUE
597 CCDEPMODE
598 am__nodep
599 AMDEPBACKSLASH
600 AMDEP_FALSE
601 AMDEP_TRUE
602 am__quote
603 am__include
604 DEPDIR
605 OBJEXT
606 EXEEXT
607 ac_ct_CC
608 CPPFLAGS
609 LDFLAGS
610 CFLAGS
611 CC
612 AM_BACKSLASH
613 AM_DEFAULT_VERBOSITY
614 AM_DEFAULT_V
615 AM_V
616 am__untar
617 am__tar
618 AMTAR
619 am__leading_dot
620 SET_MAKE
621 AWK
622 mkdir_p
623 MKDIR_P
624 INSTALL_STRIP_PROGRAM
625 STRIP
626 install_sh
627 MAKEINFO
628 AUTOHEADER
629 AUTOMAKE
630 AUTOCONF
631 ACLOCAL
632 VERSION
633 PACKAGE
634 CYGPATH_W
635 am__isrc
636 INSTALL_DATA
637 INSTALL_SCRIPT
638 INSTALL_PROGRAM
639 target_alias
640 host_alias
641 build_alias
642 LIBS
643 ECHO_T
644 ECHO_N
645 ECHO_C
646 DEFS
647 mandir
648 localedir
649 libdir
650 psdir
651 pdfdir
652 dvidir
653 htmldir
654 infodir
655 docdir
656 oldincludedir
657 includedir
658 localstatedir
659 sharedstatedir
660 sysconfdir
661 datadir
662 datarootdir
663 libexecdir
664 sbindir
665 bindir
666 program_transform_name
667 prefix
668 exec_prefix
669 PACKAGE_URL
670 PACKAGE_BUGREPORT
671 PACKAGE_STRING
672 PACKAGE_VERSION
673 PACKAGE_TARNAME
674 PACKAGE_NAME
675 PATH_SEPARATOR
676 SHELL'
677 ac_subst_files=''
678 ac_user_opts='
679 enable_option_checking
680 enable_silent_rules
681 enable_dependency_tracking
682 '
683 ac_precious_vars='build_alias
684 host_alias
685 target_alias
686 CC
687 CFLAGS
688 LDFLAGS
689 LIBS
690 CPPFLAGS
691 PKG_CONFIG
692 PKG_CONFIG_PATH
693 PKG_CONFIG_LIBDIR
694 LIBUSB1_0_CFLAGS
695 LIBUSB1_0_LIBS'
696
697
698 # Initialize some variables set by options.
699 ac_init_help=
700 ac_init_version=false
701 ac_unrecognized_opts=
702 ac_unrecognized_sep=
703 # The variables have the same names as the options, with
704 # dashes changed to underlines.
705 cache_file=/dev/null
706 exec_prefix=NONE
707 no_create=
708 no_recursion=
709 prefix=NONE
710 program_prefix=NONE
711 program_suffix=NONE
712 program_transform_name=s,x,x,
713 silent=
714 site=
715 srcdir=
716 verbose=
717 x_includes=NONE
718 x_libraries=NONE
719
720 # Installation directory options.
721 # These are left unexpanded so users can "make install exec_prefix=/foo"
722 # and all the variables that are supposed to be based on exec_prefix
723 # by default will actually change.
724 # Use braces instead of parens because sh, perl, etc. also accept them.
725 # (The list follows the same order as the GNU Coding Standards.)
726 bindir='${exec_prefix}/bin'
727 sbindir='${exec_prefix}/sbin'
728 libexecdir='${exec_prefix}/libexec'
729 datarootdir='${prefix}/share'
730 datadir='${datarootdir}'
731 sysconfdir='${prefix}/etc'
732 sharedstatedir='${prefix}/com'
733 localstatedir='${prefix}/var'
734 includedir='${prefix}/include'
735 oldincludedir='/usr/include'
736 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
737 infodir='${datarootdir}/info'
738 htmldir='${docdir}'
739 dvidir='${docdir}'
740 pdfdir='${docdir}'
741 psdir='${docdir}'
742 libdir='${exec_prefix}/lib'
743 localedir='${datarootdir}/locale'
744 mandir='${datarootdir}/man'
745
746 ac_prev=
747 ac_dashdash=
748 for ac_option
749 do
750 # If the previous option needs an argument, assign it.
751 if test -n "$ac_prev"; then
752 eval $ac_prev=\$ac_option
753 ac_prev=
754 continue
755 fi
756
757 case $ac_option in
758 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
759 *=) ac_optarg= ;;
760 *) ac_optarg=yes ;;
761 esac
762
763 # Accept the important Cygnus configure options, so we can diagnose typos.
764
765 case $ac_dashdash$ac_option in
766 --)
767 ac_dashdash=yes ;;
768
769 -bindir | --bindir | --bindi | --bind | --bin | --bi)
770 ac_prev=bindir ;;
771 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
772 bindir=$ac_optarg ;;
773
774 -build | --build | --buil | --bui | --bu)
775 ac_prev=build_alias ;;
776 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
777 build_alias=$ac_optarg ;;
778
779 -cache-file | --cache-file | --cache-fil | --cache-fi \
780 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
781 ac_prev=cache_file ;;
782 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
783 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
784 cache_file=$ac_optarg ;;
785
786 --config-cache | -C)
787 cache_file=config.cache ;;
788
789 -datadir | --datadir | --datadi | --datad)
790 ac_prev=datadir ;;
791 -datadir=* | --datadir=* | --datadi=* | --datad=*)
792 datadir=$ac_optarg ;;
793
794 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
795 | --dataroo | --dataro | --datar)
796 ac_prev=datarootdir ;;
797 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
798 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
799 datarootdir=$ac_optarg ;;
800
801 -disable-* | --disable-*)
802 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
803 # Reject names that are not valid shell variable names.
804 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
805 as_fn_error $? "invalid feature name: $ac_useropt"
806 ac_useropt_orig=$ac_useropt
807 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
808 case $ac_user_opts in
809 *"
810 "enable_$ac_useropt"
811 "*) ;;
812 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
813 ac_unrecognized_sep=', ';;
814 esac
815 eval enable_$ac_useropt=no ;;
816
817 -docdir | --docdir | --docdi | --doc | --do)
818 ac_prev=docdir ;;
819 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
820 docdir=$ac_optarg ;;
821
822 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
823 ac_prev=dvidir ;;
824 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
825 dvidir=$ac_optarg ;;
826
827 -enable-* | --enable-*)
828 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
829 # Reject names that are not valid shell variable names.
830 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
831 as_fn_error $? "invalid feature name: $ac_useropt"
832 ac_useropt_orig=$ac_useropt
833 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
834 case $ac_user_opts in
835 *"
836 "enable_$ac_useropt"
837 "*) ;;
838 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
839 ac_unrecognized_sep=', ';;
840 esac
841 eval enable_$ac_useropt=\$ac_optarg ;;
842
843 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
844 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
845 | --exec | --exe | --ex)
846 ac_prev=exec_prefix ;;
847 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
848 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
849 | --exec=* | --exe=* | --ex=*)
850 exec_prefix=$ac_optarg ;;
851
852 -gas | --gas | --ga | --g)
853 # Obsolete; use --with-gas.
854 with_gas=yes ;;
855
856 -help | --help | --hel | --he | -h)
857 ac_init_help=long ;;
858 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
859 ac_init_help=recursive ;;
860 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
861 ac_init_help=short ;;
862
863 -host | --host | --hos | --ho)
864 ac_prev=host_alias ;;
865 -host=* | --host=* | --hos=* | --ho=*)
866 host_alias=$ac_optarg ;;
867
868 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
869 ac_prev=htmldir ;;
870 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
871 | --ht=*)
872 htmldir=$ac_optarg ;;
873
874 -includedir | --includedir | --includedi | --included | --include \
875 | --includ | --inclu | --incl | --inc)
876 ac_prev=includedir ;;
877 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
878 | --includ=* | --inclu=* | --incl=* | --inc=*)
879 includedir=$ac_optarg ;;
880
881 -infodir | --infodir | --infodi | --infod | --info | --inf)
882 ac_prev=infodir ;;
883 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
884 infodir=$ac_optarg ;;
885
886 -libdir | --libdir | --libdi | --libd)
887 ac_prev=libdir ;;
888 -libdir=* | --libdir=* | --libdi=* | --libd=*)
889 libdir=$ac_optarg ;;
890
891 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
892 | --libexe | --libex | --libe)
893 ac_prev=libexecdir ;;
894 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
895 | --libexe=* | --libex=* | --libe=*)
896 libexecdir=$ac_optarg ;;
897
898 -localedir | --localedir | --localedi | --localed | --locale)
899 ac_prev=localedir ;;
900 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
901 localedir=$ac_optarg ;;
902
903 -localstatedir | --localstatedir | --localstatedi | --localstated \
904 | --localstate | --localstat | --localsta | --localst | --locals)
905 ac_prev=localstatedir ;;
906 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
907 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
908 localstatedir=$ac_optarg ;;
909
910 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
911 ac_prev=mandir ;;
912 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
913 mandir=$ac_optarg ;;
914
915 -nfp | --nfp | --nf)
916 # Obsolete; use --without-fp.
917 with_fp=no ;;
918
919 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
920 | --no-cr | --no-c | -n)
921 no_create=yes ;;
922
923 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
924 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
925 no_recursion=yes ;;
926
927 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
928 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
929 | --oldin | --oldi | --old | --ol | --o)
930 ac_prev=oldincludedir ;;
931 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
932 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
933 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
934 oldincludedir=$ac_optarg ;;
935
936 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
937 ac_prev=prefix ;;
938 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
939 prefix=$ac_optarg ;;
940
941 -program-prefix | --program-prefix | --program-prefi | --program-pref \
942 | --program-pre | --program-pr | --program-p)
943 ac_prev=program_prefix ;;
944 -program-prefix=* | --program-prefix=* | --program-prefi=* \
945 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
946 program_prefix=$ac_optarg ;;
947
948 -program-suffix | --program-suffix | --program-suffi | --program-suff \
949 | --program-suf | --program-su | --program-s)
950 ac_prev=program_suffix ;;
951 -program-suffix=* | --program-suffix=* | --program-suffi=* \
952 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
953 program_suffix=$ac_optarg ;;
954
955 -program-transform-name | --program-transform-name \
956 | --program-transform-nam | --program-transform-na \
957 | --program-transform-n | --program-transform- \
958 | --program-transform | --program-transfor \
959 | --program-transfo | --program-transf \
960 | --program-trans | --program-tran \
961 | --progr-tra | --program-tr | --program-t)
962 ac_prev=program_transform_name ;;
963 -program-transform-name=* | --program-transform-name=* \
964 | --program-transform-nam=* | --program-transform-na=* \
965 | --program-transform-n=* | --program-transform-=* \
966 | --program-transform=* | --program-transfor=* \
967 | --program-transfo=* | --program-transf=* \
968 | --program-trans=* | --program-tran=* \
969 | --progr-tra=* | --program-tr=* | --program-t=*)
970 program_transform_name=$ac_optarg ;;
971
972 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
973 ac_prev=pdfdir ;;
974 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
975 pdfdir=$ac_optarg ;;
976
977 -psdir | --psdir | --psdi | --psd | --ps)
978 ac_prev=psdir ;;
979 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
980 psdir=$ac_optarg ;;
981
982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
983 | -silent | --silent | --silen | --sile | --sil)
984 silent=yes ;;
985
986 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
987 ac_prev=sbindir ;;
988 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
989 | --sbi=* | --sb=*)
990 sbindir=$ac_optarg ;;
991
992 -sharedstatedir | --sharedstatedir | --sharedstatedi \
993 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
994 | --sharedst | --shareds | --shared | --share | --shar \
995 | --sha | --sh)
996 ac_prev=sharedstatedir ;;
997 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
998 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
999 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1000 | --sha=* | --sh=*)
1001 sharedstatedir=$ac_optarg ;;
1002
1003 -site | --site | --sit)
1004 ac_prev=site ;;
1005 -site=* | --site=* | --sit=*)
1006 site=$ac_optarg ;;
1007
1008 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1009 ac_prev=srcdir ;;
1010 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1011 srcdir=$ac_optarg ;;
1012
1013 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1014 | --syscon | --sysco | --sysc | --sys | --sy)
1015 ac_prev=sysconfdir ;;
1016 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1017 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1018 sysconfdir=$ac_optarg ;;
1019
1020 -target | --target | --targe | --targ | --tar | --ta | --t)
1021 ac_prev=target_alias ;;
1022 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1023 target_alias=$ac_optarg ;;
1024
1025 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1026 verbose=yes ;;
1027
1028 -version | --version | --versio | --versi | --vers | -V)
1029 ac_init_version=: ;;
1030
1031 -with-* | --with-*)
1032 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error $? "invalid package name: $ac_useropt"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1039 *"
1040 "with_$ac_useropt"
1041 "*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1044 esac
1045 eval with_$ac_useropt=\$ac_optarg ;;
1046
1047 -without-* | --without-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error $? "invalid package name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1055 *"
1056 "with_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval with_$ac_useropt=no ;;
1062
1063 --x)
1064 # Obsolete; use --with-x.
1065 with_x=yes ;;
1066
1067 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1068 | --x-incl | --x-inc | --x-in | --x-i)
1069 ac_prev=x_includes ;;
1070 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1071 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1072 x_includes=$ac_optarg ;;
1073
1074 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1075 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1076 ac_prev=x_libraries ;;
1077 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1078 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1079 x_libraries=$ac_optarg ;;
1080
1081 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1082 Try \`$0 --help' for more information"
1083 ;;
1084
1085 *=*)
1086 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1087 # Reject names that are not valid shell variable names.
1088 case $ac_envvar in #(
1089 '' | [0-9]* | *[!_$as_cr_alnum]* )
1090 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1091 esac
1092 eval $ac_envvar=\$ac_optarg
1093 export $ac_envvar ;;
1094
1095 *)
1096 # FIXME: should be removed in autoconf 3.0.
1097 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1098 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1099 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1100 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1101 ;;
1102
1103 esac
1104 done
1105
1106 if test -n "$ac_prev"; then
1107 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1108 as_fn_error $? "missing argument to $ac_option"
1109 fi
1110
1111 if test -n "$ac_unrecognized_opts"; then
1112 case $enable_option_checking in
1113 no) ;;
1114 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1115 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1116 esac
1117 fi
1118
1119 # Check all directory arguments for consistency.
1120 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1121 datadir sysconfdir sharedstatedir localstatedir includedir \
1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1123 libdir localedir mandir
1124 do
1125 eval ac_val=\$$ac_var
1126 # Remove trailing slashes.
1127 case $ac_val in
1128 */ )
1129 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1130 eval $ac_var=\$ac_val;;
1131 esac
1132 # Be sure to have absolute directory names.
1133 case $ac_val in
1134 [\\/$]* | ?:[\\/]* ) continue;;
1135 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1136 esac
1137 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1138 done
1139
1140 # There might be people who depend on the old broken behavior: `$host'
1141 # used to hold the argument of --host etc.
1142 # FIXME: To remove some day.
1143 build=$build_alias
1144 host=$host_alias
1145 target=$target_alias
1146
1147 # FIXME: To remove some day.
1148 if test "x$host_alias" != x; then
1149 if test "x$build_alias" = x; then
1150 cross_compiling=maybe
1151 elif test "x$build_alias" != "x$host_alias"; then
1152 cross_compiling=yes
1153 fi
1154 fi
1155
1156 ac_tool_prefix=
1157 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1158
1159 test "$silent" = yes && exec 6>/dev/null
1160
1161
1162 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1163 ac_ls_di=`ls -di .` &&
1164 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1165 as_fn_error $? "working directory cannot be determined"
1166 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1167 as_fn_error $? "pwd does not report name of working directory"
1168
1169
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir=`$as_dirname -- "$as_myself" ||
1175 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$as_myself" : 'X\(//\)[^/]' \| \
1177 X"$as_myself" : 'X\(//\)$' \| \
1178 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1179 $as_echo X"$as_myself" |
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1181 s//\1/
1182 q
1183 }
1184 /^X\(\/\/\)[^/].*/{
1185 s//\1/
1186 q
1187 }
1188 /^X\(\/\/\)$/{
1189 s//\1/
1190 q
1191 }
1192 /^X\(\/\).*/{
1193 s//\1/
1194 q
1195 }
1196 s/.*/./; q'`
1197 srcdir=$ac_confdir
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1199 srcdir=..
1200 fi
1201 else
1202 ac_srcdir_defaulted=no
1203 fi
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1206 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1207 fi
1208 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1209 ac_abs_confdir=`(
1210 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1211 pwd)`
1212 # When building in place, set srcdir=.
1213 if test "$ac_abs_confdir" = "$ac_pwd"; then
1214 srcdir=.
1215 fi
1216 # Remove unnecessary trailing slashes from srcdir.
1217 # Double slashes in file names in object file debugging info
1218 # mess up M-x gdb in Emacs.
1219 case $srcdir in
1220 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1221 esac
1222 for ac_var in $ac_precious_vars; do
1223 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1224 eval ac_env_${ac_var}_value=\$${ac_var}
1225 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1227 done
1228
1229 #
1230 # Report the --help message.
1231 #
1232 if test "$ac_init_help" = "long"; then
1233 # Omit some internal or obsolete options to make the list less imposing.
1234 # This message is too long to be a string in the A/UX 3.1 sh.
1235 cat <<_ACEOF
1236 \`configure' configures air-quality-sensor 0.1.1 to adapt to many kinds of systems.
1237
1238 Usage: $0 [OPTION]... [VAR=VALUE]...
1239
1240 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1241 VAR=VALUE. See below for descriptions of some of the useful variables.
1242
1243 Defaults for the options are specified in brackets.
1244
1245 Configuration:
1246 -h, --help display this help and exit
1247 --help=short display options specific to this package
1248 --help=recursive display the short help of all the included packages
1249 -V, --version display version information and exit
1250 -q, --quiet, --silent do not print \`checking ...' messages
1251 --cache-file=FILE cache test results in FILE [disabled]
1252 -C, --config-cache alias for \`--cache-file=config.cache'
1253 -n, --no-create do not create output files
1254 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1255
1256 Installation directories:
1257 --prefix=PREFIX install architecture-independent files in PREFIX
1258 [$ac_default_prefix]
1259 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1260 [PREFIX]
1261
1262 By default, \`make install' will install all the files in
1263 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1264 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1265 for instance \`--prefix=\$HOME'.
1266
1267 For better control, use the options below.
1268
1269 Fine tuning of the installation directories:
1270 --bindir=DIR user executables [EPREFIX/bin]
1271 --sbindir=DIR system admin executables [EPREFIX/sbin]
1272 --libexecdir=DIR program executables [EPREFIX/libexec]
1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1275 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1276 --libdir=DIR object code libraries [EPREFIX/lib]
1277 --includedir=DIR C header files [PREFIX/include]
1278 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1279 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1280 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1281 --infodir=DIR info documentation [DATAROOTDIR/info]
1282 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1283 --mandir=DIR man documentation [DATAROOTDIR/man]
1284 --docdir=DIR documentation root
1285 [DATAROOTDIR/doc/air-quality-sensor]
1286 --htmldir=DIR html documentation [DOCDIR]
1287 --dvidir=DIR dvi documentation [DOCDIR]
1288 --pdfdir=DIR pdf documentation [DOCDIR]
1289 --psdir=DIR ps documentation [DOCDIR]
1290 _ACEOF
1291
1292 cat <<\_ACEOF
1293
1294 Program names:
1295 --program-prefix=PREFIX prepend PREFIX to installed program names
1296 --program-suffix=SUFFIX append SUFFIX to installed program names
1297 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1298 _ACEOF
1299 fi
1300
1301 if test -n "$ac_init_help"; then
1302 case $ac_init_help in
1303 short | recursive ) echo "Configuration of air-quality-sensor 0.1.1:";;
1304 esac
1305 cat <<\_ACEOF
1306
1307 Optional Features:
1308 --disable-option-checking ignore unrecognized --enable/--with options
1309 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1310 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1311 --enable-silent-rules less verbose build output (undo: "make V=1")
1312 --disable-silent-rules verbose build output (undo: "make V=0")
1313 --enable-dependency-tracking
1314 do not reject slow dependency extractors
1315 --disable-dependency-tracking
1316 speeds up one-time build
1317
1318 Some influential environment variables:
1319 CC C compiler command
1320 CFLAGS C compiler flags
1321 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1322 nonstandard directory <lib dir>
1323 LIBS libraries to pass to the linker, e.g. -l<library>
1324 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1325 you have headers in a nonstandard directory <include dir>
1326 PKG_CONFIG path to pkg-config utility
1327 PKG_CONFIG_PATH
1328 directories to add to pkg-config's search path
1329 PKG_CONFIG_LIBDIR
1330 path overriding pkg-config's built-in search path
1331 LIBUSB1_0_CFLAGS
1332 C compiler flags for LIBUSB1_0, overriding pkg-config
1333 LIBUSB1_0_LIBS
1334 linker flags for LIBUSB1_0, overriding pkg-config
1335
1336 Use these variables to override the choices made by `configure' or to help
1337 it to find libraries and programs with nonstandard names/locations.
1338
1339 Report bugs to <air-quality-sensor@benedikt-wildenhain.de>.
1340 _ACEOF
1341 ac_status=$?
1342 fi
1343
1344 if test "$ac_init_help" = "recursive"; then
1345 # If there are subdirs, report their specific --help.
1346 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1347 test -d "$ac_dir" ||
1348 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1349 continue
1350 ac_builddir=.
1351
1352 case "$ac_dir" in
1353 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1354 *)
1355 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1356 # A ".." for each directory in $ac_dir_suffix.
1357 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1358 case $ac_top_builddir_sub in
1359 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1360 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1361 esac ;;
1362 esac
1363 ac_abs_top_builddir=$ac_pwd
1364 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1365 # for backward compatibility:
1366 ac_top_builddir=$ac_top_build_prefix
1367
1368 case $srcdir in
1369 .) # We are building in place.
1370 ac_srcdir=.
1371 ac_top_srcdir=$ac_top_builddir_sub
1372 ac_abs_top_srcdir=$ac_pwd ;;
1373 [\\/]* | ?:[\\/]* ) # Absolute name.
1374 ac_srcdir=$srcdir$ac_dir_suffix;
1375 ac_top_srcdir=$srcdir
1376 ac_abs_top_srcdir=$srcdir ;;
1377 *) # Relative name.
1378 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1379 ac_top_srcdir=$ac_top_build_prefix$srcdir
1380 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1381 esac
1382 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1383
1384 cd "$ac_dir" || { ac_status=$?; continue; }
1385 # Check for guested configure.
1386 if test -f "$ac_srcdir/configure.gnu"; then
1387 echo &&
1388 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1389 elif test -f "$ac_srcdir/configure"; then
1390 echo &&
1391 $SHELL "$ac_srcdir/configure" --help=recursive
1392 else
1393 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1394 fi || ac_status=$?
1395 cd "$ac_pwd" || { ac_status=$?; break; }
1396 done
1397 fi
1398
1399 test -n "$ac_init_help" && exit $ac_status
1400 if $ac_init_version; then
1401 cat <<\_ACEOF
1402 air-quality-sensor configure 0.1.1
1403 generated by GNU Autoconf 2.69
1404
1405 Copyright (C) 2012 Free Software Foundation, Inc.
1406 This configure script is free software; the Free Software Foundation
1407 gives unlimited permission to copy, distribute and modify it.
1408 _ACEOF
1409 exit
1410 fi
1411
1412 ## ------------------------ ##
1413 ## Autoconf initialization. ##
1414 ## ------------------------ ##
1415
1416 # ac_fn_c_try_compile LINENO
1417 # --------------------------
1418 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1419 ac_fn_c_try_compile ()
1420 {
1421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1422 rm -f conftest.$ac_objext
1423 if { { ac_try="$ac_compile"
1424 case "(($ac_try" in
1425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1426 *) ac_try_echo=$ac_try;;
1427 esac
1428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1429 $as_echo "$ac_try_echo"; } >&5
1430 (eval "$ac_compile") 2>conftest.err
1431 ac_status=$?
1432 if test -s conftest.err; then
1433 grep -v '^ *+' conftest.err >conftest.er1
1434 cat conftest.er1 >&5
1435 mv -f conftest.er1 conftest.err
1436 fi
1437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1438 test $ac_status = 0; } && {
1439 test -z "$ac_c_werror_flag" ||
1440 test ! -s conftest.err
1441 } && test -s conftest.$ac_objext; then :
1442 ac_retval=0
1443 else
1444 $as_echo "$as_me: failed program was:" >&5
1445 sed 's/^/| /' conftest.$ac_ext >&5
1446
1447 ac_retval=1
1448 fi
1449 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1450 as_fn_set_status $ac_retval
1451
1452 } # ac_fn_c_try_compile
1453
1454 # ac_fn_c_try_link LINENO
1455 # -----------------------
1456 # Try to link conftest.$ac_ext, and return whether this succeeded.
1457 ac_fn_c_try_link ()
1458 {
1459 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1460 rm -f conftest.$ac_objext conftest$ac_exeext
1461 if { { ac_try="$ac_link"
1462 case "(($ac_try" in
1463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1464 *) ac_try_echo=$ac_try;;
1465 esac
1466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1467 $as_echo "$ac_try_echo"; } >&5
1468 (eval "$ac_link") 2>conftest.err
1469 ac_status=$?
1470 if test -s conftest.err; then
1471 grep -v '^ *+' conftest.err >conftest.er1
1472 cat conftest.er1 >&5
1473 mv -f conftest.er1 conftest.err
1474 fi
1475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1476 test $ac_status = 0; } && {
1477 test -z "$ac_c_werror_flag" ||
1478 test ! -s conftest.err
1479 } && test -s conftest$ac_exeext && {
1480 test "$cross_compiling" = yes ||
1481 test -x conftest$ac_exeext
1482 }; then :
1483 ac_retval=0
1484 else
1485 $as_echo "$as_me: failed program was:" >&5
1486 sed 's/^/| /' conftest.$ac_ext >&5
1487
1488 ac_retval=1
1489 fi
1490 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1491 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1492 # interfere with the next link command; also delete a directory that is
1493 # left behind by Apple's compiler. We do this before executing the actions.
1494 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1495 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1496 as_fn_set_status $ac_retval
1497
1498 } # ac_fn_c_try_link
1499
1500 # ac_fn_c_check_func LINENO FUNC VAR
1501 # ----------------------------------
1502 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1503 ac_fn_c_check_func ()
1504 {
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1507 $as_echo_n "checking for $2... " >&6; }
1508 if eval \${$3+:} false; then :
1509 $as_echo_n "(cached) " >&6
1510 else
1511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1512 /* end confdefs.h. */
1513 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1515 #define $2 innocuous_$2
1516
1517 /* System header to define __stub macros and hopefully few prototypes,
1518 which can conflict with char $2 (); below.
1519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1520 <limits.h> exists even on freestanding compilers. */
1521
1522 #ifdef __STDC__
1523 # include <limits.h>
1524 #else
1525 # include <assert.h>
1526 #endif
1527
1528 #undef $2
1529
1530 /* Override any GCC internal prototype to avoid an error.
1531 Use char because int might match the return type of a GCC
1532 builtin and then its argument prototype would still apply. */
1533 #ifdef __cplusplus
1534 extern "C"
1535 #endif
1536 char $2 ();
1537 /* The GNU C library defines this for functions which it implements
1538 to always fail with ENOSYS. Some functions are actually named
1539 something starting with __ and the normal name is an alias. */
1540 #if defined __stub_$2 || defined __stub___$2
1541 choke me
1542 #endif
1543
1544 int
1545 main ()
1546 {
1547 return $2 ();
1548 ;
1549 return 0;
1550 }
1551 _ACEOF
1552 if ac_fn_c_try_link "$LINENO"; then :
1553 eval "$3=yes"
1554 else
1555 eval "$3=no"
1556 fi
1557 rm -f core conftest.err conftest.$ac_objext \
1558 conftest$ac_exeext conftest.$ac_ext
1559 fi
1560 eval ac_res=\$$3
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1562 $as_echo "$ac_res" >&6; }
1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564
1565 } # ac_fn_c_check_func
1566 cat >config.log <<_ACEOF
1567 This file contains any messages produced by compilers while
1568 running configure, to aid debugging if configure makes a mistake.
1569
1570 It was created by air-quality-sensor $as_me 0.1.1, which was
1571 generated by GNU Autoconf 2.69. Invocation command line was
1572
1573 $ $0 $@
1574
1575 _ACEOF
1576 exec 5>>config.log
1577 {
1578 cat <<_ASUNAME
1579 ## --------- ##
1580 ## Platform. ##
1581 ## --------- ##
1582
1583 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1584 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1585 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1586 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1587 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1588
1589 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1590 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1591
1592 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1593 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1594 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1595 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1596 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1597 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1598 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1599
1600 _ASUNAME
1601
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
1607 $as_echo "PATH: $as_dir"
1608 done
1609 IFS=$as_save_IFS
1610
1611 } >&5
1612
1613 cat >&5 <<_ACEOF
1614
1615
1616 ## ----------- ##
1617 ## Core tests. ##
1618 ## ----------- ##
1619
1620 _ACEOF
1621
1622
1623 # Keep a trace of the command line.
1624 # Strip out --no-create and --no-recursion so they do not pile up.
1625 # Strip out --silent because we don't want to record it for future runs.
1626 # Also quote any args containing shell meta-characters.
1627 # Make two passes to allow for proper duplicate-argument suppression.
1628 ac_configure_args=
1629 ac_configure_args0=
1630 ac_configure_args1=
1631 ac_must_keep_next=false
1632 for ac_pass in 1 2
1633 do
1634 for ac_arg
1635 do
1636 case $ac_arg in
1637 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1638 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1639 | -silent | --silent | --silen | --sile | --sil)
1640 continue ;;
1641 *\'*)
1642 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1643 esac
1644 case $ac_pass in
1645 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1646 2)
1647 as_fn_append ac_configure_args1 " '$ac_arg'"
1648 if test $ac_must_keep_next = true; then
1649 ac_must_keep_next=false # Got value, back to normal.
1650 else
1651 case $ac_arg in
1652 *=* | --config-cache | -C | -disable-* | --disable-* \
1653 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1654 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1655 | -with-* | --with-* | -without-* | --without-* | --x)
1656 case "$ac_configure_args0 " in
1657 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1658 esac
1659 ;;
1660 -* ) ac_must_keep_next=true ;;
1661 esac
1662 fi
1663 as_fn_append ac_configure_args " '$ac_arg'"
1664 ;;
1665 esac
1666 done
1667 done
1668 { ac_configure_args0=; unset ac_configure_args0;}
1669 { ac_configure_args1=; unset ac_configure_args1;}
1670
1671 # When interrupted or exit'd, cleanup temporary files, and complete
1672 # config.log. We remove comments because anyway the quotes in there
1673 # would cause problems or look ugly.
1674 # WARNING: Use '\'' to represent an apostrophe within the trap.
1675 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1676 trap 'exit_status=$?
1677 # Save into config.log some information that might help in debugging.
1678 {
1679 echo
1680
1681 $as_echo "## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##"
1684 echo
1685 # The following way of writing the cache mishandles newlines in values,
1686 (
1687 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1688 eval ac_val=\$$ac_var
1689 case $ac_val in #(
1690 *${as_nl}*)
1691 case $ac_var in #(
1692 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1693 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1694 esac
1695 case $ac_var in #(
1696 _ | IFS | as_nl) ;; #(
1697 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1698 *) { eval $ac_var=; unset $ac_var;} ;;
1699 esac ;;
1700 esac
1701 done
1702 (set) 2>&1 |
1703 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704 *${as_nl}ac_space=\ *)
1705 sed -n \
1706 "s/'\''/'\''\\\\'\'''\''/g;
1707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1708 ;; #(
1709 *)
1710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1711 ;;
1712 esac |
1713 sort
1714 )
1715 echo
1716
1717 $as_echo "## ----------------- ##
1718 ## Output variables. ##
1719 ## ----------------- ##"
1720 echo
1721 for ac_var in $ac_subst_vars
1722 do
1723 eval ac_val=\$$ac_var
1724 case $ac_val in
1725 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726 esac
1727 $as_echo "$ac_var='\''$ac_val'\''"
1728 done | sort
1729 echo
1730
1731 if test -n "$ac_subst_files"; then
1732 $as_echo "## ------------------- ##
1733 ## File substitutions. ##
1734 ## ------------------- ##"
1735 echo
1736 for ac_var in $ac_subst_files
1737 do
1738 eval ac_val=\$$ac_var
1739 case $ac_val in
1740 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741 esac
1742 $as_echo "$ac_var='\''$ac_val'\''"
1743 done | sort
1744 echo
1745 fi
1746
1747 if test -s confdefs.h; then
1748 $as_echo "## ----------- ##
1749 ## confdefs.h. ##
1750 ## ----------- ##"
1751 echo
1752 cat confdefs.h
1753 echo
1754 fi
1755 test "$ac_signal" != 0 &&
1756 $as_echo "$as_me: caught signal $ac_signal"
1757 $as_echo "$as_me: exit $exit_status"
1758 } >&5
1759 rm -f core *.core core.conftest.* &&
1760 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1761 exit $exit_status
1762 ' 0
1763 for ac_signal in 1 2 13 15; do
1764 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1765 done
1766 ac_signal=0
1767
1768 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1769 rm -f -r conftest* confdefs.h
1770
1771 $as_echo "/* confdefs.h */" > confdefs.h
1772
1773 # Predefined preprocessor variables.
1774
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_NAME "$PACKAGE_NAME"
1777 _ACEOF
1778
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1781 _ACEOF
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1785 _ACEOF
1786
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_STRING "$PACKAGE_STRING"
1789 _ACEOF
1790
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1793 _ACEOF
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_URL "$PACKAGE_URL"
1797 _ACEOF
1798
1799
1800 # Let the site file select an alternate cache file if it wants to.
1801 # Prefer an explicitly selected file to automatically selected ones.
1802 ac_site_file1=NONE
1803 ac_site_file2=NONE
1804 if test -n "$CONFIG_SITE"; then
1805 # We do not want a PATH search for config.site.
1806 case $CONFIG_SITE in #((
1807 -*) ac_site_file1=./$CONFIG_SITE;;
1808 */*) ac_site_file1=$CONFIG_SITE;;
1809 *) ac_site_file1=./$CONFIG_SITE;;
1810 esac
1811 elif test "x$prefix" != xNONE; then
1812 ac_site_file1=$prefix/share/config.site
1813 ac_site_file2=$prefix/etc/config.site
1814 else
1815 ac_site_file1=$ac_default_prefix/share/config.site
1816 ac_site_file2=$ac_default_prefix/etc/config.site
1817 fi
1818 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1819 do
1820 test "x$ac_site_file" = xNONE && continue
1821 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1823 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1824 sed 's/^/| /' "$ac_site_file" >&5
1825 . "$ac_site_file" \
1826 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1828 as_fn_error $? "failed to load site script $ac_site_file
1829 See \`config.log' for more details" "$LINENO" 5; }
1830 fi
1831 done
1832
1833 if test -r "$cache_file"; then
1834 # Some versions of bash will fail to source /dev/null (special files
1835 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1836 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1838 $as_echo "$as_me: loading cache $cache_file" >&6;}
1839 case $cache_file in
1840 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1841 *) . "./$cache_file";;
1842 esac
1843 fi
1844 else
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1846 $as_echo "$as_me: creating cache $cache_file" >&6;}
1847 >$cache_file
1848 fi
1849
1850 # Check that the precious variables saved in the cache have kept the same
1851 # value.
1852 ac_cache_corrupted=false
1853 for ac_var in $ac_precious_vars; do
1854 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1855 eval ac_new_set=\$ac_env_${ac_var}_set
1856 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1857 eval ac_new_val=\$ac_env_${ac_var}_value
1858 case $ac_old_set,$ac_new_set in
1859 set,)
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1861 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1862 ac_cache_corrupted=: ;;
1863 ,set)
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1865 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1866 ac_cache_corrupted=: ;;
1867 ,);;
1868 *)
1869 if test "x$ac_old_val" != "x$ac_new_val"; then
1870 # differences in whitespace do not lead to failure.
1871 ac_old_val_w=`echo x $ac_old_val`
1872 ac_new_val_w=`echo x $ac_new_val`
1873 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1875 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1876 ac_cache_corrupted=:
1877 else
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1879 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1880 eval $ac_var=\$ac_old_val
1881 fi
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1883 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1885 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1886 fi;;
1887 esac
1888 # Pass precious variables to config.status.
1889 if test "$ac_new_set" = set; then
1890 case $ac_new_val in
1891 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1892 *) ac_arg=$ac_var=$ac_new_val ;;
1893 esac
1894 case " $ac_configure_args " in
1895 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1896 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1897 esac
1898 fi
1899 done
1900 if $ac_cache_corrupted; then
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1904 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1905 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1906 fi
1907 ## -------------------- ##
1908 ## Main body of script. ##
1909 ## -------------------- ##
1910
1911 ac_ext=c
1912 ac_cpp='$CPP $CPPFLAGS'
1913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1916
1917
1918 am__api_version='1.14'
1919
1920 ac_aux_dir=
1921 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1922 if test -f "$ac_dir/install-sh"; then
1923 ac_aux_dir=$ac_dir
1924 ac_install_sh="$ac_aux_dir/install-sh -c"
1925 break
1926 elif test -f "$ac_dir/install.sh"; then
1927 ac_aux_dir=$ac_dir
1928 ac_install_sh="$ac_aux_dir/install.sh -c"
1929 break
1930 elif test -f "$ac_dir/shtool"; then
1931 ac_aux_dir=$ac_dir
1932 ac_install_sh="$ac_aux_dir/shtool install -c"
1933 break
1934 fi
1935 done
1936 if test -z "$ac_aux_dir"; then
1937 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1938 fi
1939
1940 # These three variables are undocumented and unsupported,
1941 # and are intended to be withdrawn in a future Autoconf release.
1942 # They can cause serious problems if a builder's source tree is in a directory
1943 # whose full name contains unusual characters.
1944 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1945 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1946 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1947
1948
1949 # Find a good install program. We prefer a C program (faster),
1950 # so one script is as good as another. But avoid the broken or
1951 # incompatible versions:
1952 # SysV /etc/install, /usr/sbin/install
1953 # SunOS /usr/etc/install
1954 # IRIX /sbin/install
1955 # AIX /bin/install
1956 # AmigaOS /C/install, which installs bootblocks on floppy discs
1957 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1958 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1959 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1960 # OS/2's system install, which has a completely different semantic
1961 # ./install, which can be erroneously created by make from ./install.sh.
1962 # Reject install programs that cannot install multiple files.
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1964 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1965 if test -z "$INSTALL"; then
1966 if ${ac_cv_path_install+:} false; then :
1967 $as_echo_n "(cached) " >&6
1968 else
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1971 do
1972 IFS=$as_save_IFS
1973 test -z "$as_dir" && as_dir=.
1974 # Account for people who put trailing slashes in PATH elements.
1975 case $as_dir/ in #((
1976 ./ | .// | /[cC]/* | \
1977 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1978 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1979 /usr/ucb/* ) ;;
1980 *)
1981 # OSF1 and SCO ODT 3.0 have their own names for install.
1982 # Don't use installbsd from OSF since it installs stuff as root
1983 # by default.
1984 for ac_prog in ginstall scoinst install; do
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1987 if test $ac_prog = install &&
1988 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1989 # AIX install. It has an incompatible calling convention.
1990 :
1991 elif test $ac_prog = install &&
1992 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1993 # program-specific install script used by HP pwplus--don't use.
1994 :
1995 else
1996 rm -rf conftest.one conftest.two conftest.dir
1997 echo one > conftest.one
1998 echo two > conftest.two
1999 mkdir conftest.dir
2000 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2001 test -s conftest.one && test -s conftest.two &&
2002 test -s conftest.dir/conftest.one &&
2003 test -s conftest.dir/conftest.two
2004 then
2005 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2006 break 3
2007 fi
2008 fi
2009 fi
2010 done
2011 done
2012 ;;
2013 esac
2014
2015 done
2016 IFS=$as_save_IFS
2017
2018 rm -rf conftest.one conftest.two conftest.dir
2019
2020 fi
2021 if test "${ac_cv_path_install+set}" = set; then
2022 INSTALL=$ac_cv_path_install
2023 else
2024 # As a last resort, use the slow shell script. Don't cache a
2025 # value for INSTALL within a source directory, because that will
2026 # break other packages using the cache if that directory is
2027 # removed, or if the value is a relative name.
2028 INSTALL=$ac_install_sh
2029 fi
2030 fi
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2032 $as_echo "$INSTALL" >&6; }
2033
2034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2035 # It thinks the first close brace ends the variable substitution.
2036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2037
2038 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2039
2040 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2041
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2043 $as_echo_n "checking whether build environment is sane... " >&6; }
2044 # Reject unsafe characters in $srcdir or the absolute working directory
2045 # name. Accept space and tab only in the latter.
2046 am_lf='
2047 '
2048 case `pwd` in
2049 *[\\\"\#\$\&\'\`$am_lf]*)
2050 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2051 esac
2052 case $srcdir in
2053 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2054 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2055 esac
2056
2057 # Do 'set' in a subshell so we don't clobber the current shell's
2058 # arguments. Must try -L first in case configure is actually a
2059 # symlink; some systems play weird games with the mod time of symlinks
2060 # (eg FreeBSD returns the mod time of the symlink's containing
2061 # directory).
2062 if (
2063 am_has_slept=no
2064 for am_try in 1 2; do
2065 echo "timestamp, slept: $am_has_slept" > conftest.file
2066 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2067 if test "$*" = "X"; then
2068 # -L didn't work.
2069 set X `ls -t "$srcdir/configure" conftest.file`
2070 fi
2071 if test "$*" != "X $srcdir/configure conftest.file" \
2072 && test "$*" != "X conftest.file $srcdir/configure"; then
2073
2074 # If neither matched, then we have a broken ls. This can happen
2075 # if, for instance, CONFIG_SHELL is bash and it inherits a
2076 # broken ls alias from the environment. This has actually
2077 # happened. Such a system could not be considered "sane".
2078 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2079 alias in your environment" "$LINENO" 5
2080 fi
2081 if test "$2" = conftest.file || test $am_try -eq 2; then
2082 break
2083 fi
2084 # Just in case.
2085 sleep 1
2086 am_has_slept=yes
2087 done
2088 test "$2" = conftest.file
2089 )
2090 then
2091 # Ok.
2092 :
2093 else
2094 as_fn_error $? "newly created file is older than distributed files!
2095 Check your system clock" "$LINENO" 5
2096 fi
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2098 $as_echo "yes" >&6; }
2099 # If we didn't sleep, we still need to ensure time stamps of config.status and
2100 # generated files are strictly newer.
2101 am_sleep_pid=
2102 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2103 ( sleep 1 ) &
2104 am_sleep_pid=$!
2105 fi
2106
2107 rm -f conftest.file
2108
2109 test "$program_prefix" != NONE &&
2110 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2111 # Use a double $ so make ignores it.
2112 test "$program_suffix" != NONE &&
2113 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2114 # Double any \ or $.
2115 # By default was `s,x,x', remove it if useless.
2116 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2117 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2118
2119 # expand $ac_aux_dir to an absolute path
2120 am_aux_dir=`cd $ac_aux_dir && pwd`
2121
2122 if test x"${MISSING+set}" != xset; then
2123 case $am_aux_dir in
2124 *\ * | *\ *)
2125 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2126 *)
2127 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2128 esac
2129 fi
2130 # Use eval to expand $SHELL
2131 if eval "$MISSING --is-lightweight"; then
2132 am_missing_run="$MISSING "
2133 else
2134 am_missing_run=
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2136 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2137 fi
2138
2139 if test x"${install_sh}" != xset; then
2140 case $am_aux_dir in
2141 *\ * | *\ *)
2142 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2143 *)
2144 install_sh="\${SHELL} $am_aux_dir/install-sh"
2145 esac
2146 fi
2147
2148 # Installed binaries are usually stripped using 'strip' when the user
2149 # run "make install-strip". However 'strip' might not be the right
2150 # tool to use in cross-compilation environments, therefore Automake
2151 # will honor the 'STRIP' environment variable to overrule this program.
2152 if test "$cross_compiling" != no; then
2153 if test -n "$ac_tool_prefix"; then
2154 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2155 set dummy ${ac_tool_prefix}strip; ac_word=$2
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2157 $as_echo_n "checking for $ac_word... " >&6; }
2158 if ${ac_cv_prog_STRIP+:} false; then :
2159 $as_echo_n "(cached) " >&6
2160 else
2161 if test -n "$STRIP"; then
2162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2163 else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2166 do
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2171 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 break 2
2174 fi
2175 done
2176 done
2177 IFS=$as_save_IFS
2178
2179 fi
2180 fi
2181 STRIP=$ac_cv_prog_STRIP
2182 if test -n "$STRIP"; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2184 $as_echo "$STRIP" >&6; }
2185 else
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2187 $as_echo "no" >&6; }
2188 fi
2189
2190
2191 fi
2192 if test -z "$ac_cv_prog_STRIP"; then
2193 ac_ct_STRIP=$STRIP
2194 # Extract the first word of "strip", so it can be a program name with args.
2195 set dummy strip; ac_word=$2
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2197 $as_echo_n "checking for $ac_word... " >&6; }
2198 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2199 $as_echo_n "(cached) " >&6
2200 else
2201 if test -n "$ac_ct_STRIP"; then
2202 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207 IFS=$as_save_IFS
2208 test -z "$as_dir" && as_dir=.
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2211 ac_cv_prog_ac_ct_STRIP="strip"
2212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2213 break 2
2214 fi
2215 done
2216 done
2217 IFS=$as_save_IFS
2218
2219 fi
2220 fi
2221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2222 if test -n "$ac_ct_STRIP"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2224 $as_echo "$ac_ct_STRIP" >&6; }
2225 else
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2227 $as_echo "no" >&6; }
2228 fi
2229
2230 if test "x$ac_ct_STRIP" = x; then
2231 STRIP=":"
2232 else
2233 case $cross_compiling:$ac_tool_warned in
2234 yes:)
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2237 ac_tool_warned=yes ;;
2238 esac
2239 STRIP=$ac_ct_STRIP
2240 fi
2241 else
2242 STRIP="$ac_cv_prog_STRIP"
2243 fi
2244
2245 fi
2246 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2247
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2249 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2250 if test -z "$MKDIR_P"; then
2251 if ${ac_cv_path_mkdir+:} false; then :
2252 $as_echo_n "(cached) " >&6
2253 else
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2256 do
2257 IFS=$as_save_IFS
2258 test -z "$as_dir" && as_dir=.
2259 for ac_prog in mkdir gmkdir; do
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2262 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2263 'mkdir (GNU coreutils) '* | \
2264 'mkdir (coreutils) '* | \
2265 'mkdir (fileutils) '4.1*)
2266 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2267 break 3;;
2268 esac
2269 done
2270 done
2271 done
2272 IFS=$as_save_IFS
2273
2274 fi
2275
2276 test -d ./--version && rmdir ./--version
2277 if test "${ac_cv_path_mkdir+set}" = set; then
2278 MKDIR_P="$ac_cv_path_mkdir -p"
2279 else
2280 # As a last resort, use the slow shell script. Don't cache a
2281 # value for MKDIR_P within a source directory, because that will
2282 # break other packages using the cache if that directory is
2283 # removed, or if the value is a relative name.
2284 MKDIR_P="$ac_install_sh -d"
2285 fi
2286 fi
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2288 $as_echo "$MKDIR_P" >&6; }
2289
2290 for ac_prog in gawk mawk nawk awk
2291 do
2292 # Extract the first word of "$ac_prog", so it can be a program name with args.
2293 set dummy $ac_prog; ac_word=$2
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2295 $as_echo_n "checking for $ac_word... " >&6; }
2296 if ${ac_cv_prog_AWK+:} false; then :
2297 $as_echo_n "(cached) " >&6
2298 else
2299 if test -n "$AWK"; then
2300 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2301 else
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309 ac_cv_prog_AWK="$ac_prog"
2310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 break 2
2312 fi
2313 done
2314 done
2315 IFS=$as_save_IFS
2316
2317 fi
2318 fi
2319 AWK=$ac_cv_prog_AWK
2320 if test -n "$AWK"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2322 $as_echo "$AWK" >&6; }
2323 else
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2325 $as_echo "no" >&6; }
2326 fi
2327
2328
2329 test -n "$AWK" && break
2330 done
2331
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2333 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2334 set x ${MAKE-make}
2335 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2336 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2337 $as_echo_n "(cached) " >&6
2338 else
2339 cat >conftest.make <<\_ACEOF
2340 SHELL = /bin/sh
2341 all:
2342 @echo '@@@%%%=$(MAKE)=@@@%%%'
2343 _ACEOF
2344 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2345 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2346 *@@@%%%=?*=@@@%%%*)
2347 eval ac_cv_prog_make_${ac_make}_set=yes;;
2348 *)
2349 eval ac_cv_prog_make_${ac_make}_set=no;;
2350 esac
2351 rm -f conftest.make
2352 fi
2353 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2355 $as_echo "yes" >&6; }
2356 SET_MAKE=
2357 else
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2359 $as_echo "no" >&6; }
2360 SET_MAKE="MAKE=${MAKE-make}"
2361 fi
2362
2363 rm -rf .tst 2>/dev/null
2364 mkdir .tst 2>/dev/null
2365 if test -d .tst; then
2366 am__leading_dot=.
2367 else
2368 am__leading_dot=_
2369 fi
2370 rmdir .tst 2>/dev/null
2371
2372 # Check whether --enable-silent-rules was given.
2373 if test "${enable_silent_rules+set}" = set; then :
2374 enableval=$enable_silent_rules;
2375 fi
2376
2377 case $enable_silent_rules in # (((
2378 yes) AM_DEFAULT_VERBOSITY=0;;
2379 no) AM_DEFAULT_VERBOSITY=1;;
2380 *) AM_DEFAULT_VERBOSITY=1;;
2381 esac
2382 am_make=${MAKE-make}
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2384 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2385 if ${am_cv_make_support_nested_variables+:} false; then :
2386 $as_echo_n "(cached) " >&6
2387 else
2388 if $as_echo 'TRUE=$(BAR$(V))
2389 BAR0=false
2390 BAR1=true
2391 V=1
2392 am__doit:
2393 @$(TRUE)
2394 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2395 am_cv_make_support_nested_variables=yes
2396 else
2397 am_cv_make_support_nested_variables=no
2398 fi
2399 fi
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2401 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2402 if test $am_cv_make_support_nested_variables = yes; then
2403 AM_V='$(V)'
2404 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2405 else
2406 AM_V=$AM_DEFAULT_VERBOSITY
2407 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2408 fi
2409 AM_BACKSLASH='\'
2410
2411 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2412 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2413 # is not polluted with repeated "-I."
2414 am__isrc=' -I$(srcdir)'
2415 # test to see if srcdir already configured
2416 if test -f $srcdir/config.status; then
2417 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2418 fi
2419 fi
2420
2421 # test whether we have cygpath
2422 if test -z "$CYGPATH_W"; then
2423 if (cygpath --version) >/dev/null 2>/dev/null; then
2424 CYGPATH_W='cygpath -w'
2425 else
2426 CYGPATH_W=echo
2427 fi
2428 fi
2429
2430
2431 # Define the identity of the package.
2432 PACKAGE='air-quality-sensor'
2433 VERSION='0.1.1'
2434
2435
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE "$PACKAGE"
2438 _ACEOF
2439
2440
2441 cat >>confdefs.h <<_ACEOF
2442 #define VERSION "$VERSION"
2443 _ACEOF
2444
2445 # Some tools Automake needs.
2446
2447 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2448
2449
2450 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2451
2452
2453 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2454
2455
2456 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2457
2458
2459 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2460
2461 # For better backward compatibility. To be removed once Automake 1.9.x
2462 # dies out for good. For more background, see:
2463 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2464 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2465 mkdir_p='$(MKDIR_P)'
2466
2467 # We need awk for the "check" target. The system "awk" is bad on
2468 # some platforms.
2469 # Always define AMTAR for backward compatibility. Yes, it's still used
2470 # in the wild :-( We should find a proper way to deprecate it ...
2471 AMTAR='$${TAR-tar}'
2472
2473
2474 # We'll loop over all known methods to create a tar archive until one works.
2475 _am_tools='gnutar pax cpio none'
2476
2477 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2478
2479
2480
2481
2482
2483
2484 # POSIX will say in a future version that running "rm -f" with no argument
2485 # is OK; and we want to be able to make that assumption in our Makefile
2486 # recipes. So use an aggressive probe to check that the usage we want is
2487 # actually supported "in the wild" to an acceptable degree.
2488 # See automake bug#10828.
2489 # To make any issue more visible, cause the running configure to be aborted
2490 # by default if the 'rm' program in use doesn't match our expectations; the
2491 # user can still override this though.
2492 if rm -f && rm -fr && rm -rf; then : OK; else
2493 cat >&2 <<'END'
2494 Oops!
2495
2496 Your 'rm' program seems unable to run without file operands specified
2497 on the command line, even when the '-f' option is present. This is contrary
2498 to the behaviour of most rm programs out there, and not conforming with
2499 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2500
2501 Please tell bug-automake@gnu.org about your system, including the value
2502 of your $PATH and any error possibly output before this message. This
2503 can help us improve future automake versions.
2504
2505 END
2506 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2507 echo 'Configuration will proceed anyway, since you have set the' >&2
2508 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2509 echo >&2
2510 else
2511 cat >&2 <<'END'
2512 Aborting the configuration process, to ensure you take notice of the issue.
2513
2514 You can download and install GNU coreutils to get an 'rm' implementation
2515 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2516
2517 If you want to complete the configuration process using your problematic
2518 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2519 to "yes", and re-run configure.
2520
2521 END
2522 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2523 fi
2524 fi
2525
2526 ac_ext=c
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531 if test -n "$ac_tool_prefix"; then
2532 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2533 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535 $as_echo_n "checking for $ac_word... " >&6; }
2536 if ${ac_cv_prog_CC+:} false; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2544 do
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2549 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 break 2
2552 fi
2553 done
2554 done
2555 IFS=$as_save_IFS
2556
2557 fi
2558 fi
2559 CC=$ac_cv_prog_CC
2560 if test -n "$CC"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2562 $as_echo "$CC" >&6; }
2563 else
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565 $as_echo "no" >&6; }
2566 fi
2567
2568
2569 fi
2570 if test -z "$ac_cv_prog_CC"; then
2571 ac_ct_CC=$CC
2572 # Extract the first word of "gcc", so it can be a program name with args.
2573 set dummy gcc; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test -n "$ac_ct_CC"; then
2580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_ac_ct_CC="gcc"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2592 fi
2593 done
2594 done
2595 IFS=$as_save_IFS
2596
2597 fi
2598 fi
2599 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2600 if test -n "$ac_ct_CC"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2602 $as_echo "$ac_ct_CC" >&6; }
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2606 fi
2607
2608 if test "x$ac_ct_CC" = x; then
2609 CC=""
2610 else
2611 case $cross_compiling:$ac_tool_warned in
2612 yes:)
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2615 ac_tool_warned=yes ;;
2616 esac
2617 CC=$ac_ct_CC
2618 fi
2619 else
2620 CC="$ac_cv_prog_CC"
2621 fi
2622
2623 if test -z "$CC"; then
2624 if test -n "$ac_tool_prefix"; then
2625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}cc; ac_word=$2
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if ${ac_cv_prog_CC+:} false; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2637 do
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642 ac_cv_prog_CC="${ac_tool_prefix}cc"
2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 break 2
2645 fi
2646 done
2647 done
2648 IFS=$as_save_IFS
2649
2650 fi
2651 fi
2652 CC=$ac_cv_prog_CC
2653 if test -n "$CC"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2655 $as_echo "$CC" >&6; }
2656 else
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2659 fi
2660
2661
2662 fi
2663 fi
2664 if test -z "$CC"; then
2665 # Extract the first word of "cc", so it can be a program name with args.
2666 set dummy cc; ac_word=$2
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if ${ac_cv_prog_CC+:} false; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2674 else
2675 ac_prog_rejected=no
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2678 do
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2684 ac_prog_rejected=yes
2685 continue
2686 fi
2687 ac_cv_prog_CC="cc"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2690 fi
2691 done
2692 done
2693 IFS=$as_save_IFS
2694
2695 if test $ac_prog_rejected = yes; then
2696 # We found a bogon in the path, so make sure we never use it.
2697 set dummy $ac_cv_prog_CC
2698 shift
2699 if test $# != 0; then
2700 # We chose a different compiler from the bogus one.
2701 # However, it has the same basename, so the bogon will be chosen
2702 # first if we set CC to just the basename; use the full file name.
2703 shift
2704 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2705 fi
2706 fi
2707 fi
2708 fi
2709 CC=$ac_cv_prog_CC
2710 if test -n "$CC"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2712 $as_echo "$CC" >&6; }
2713 else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2716 fi
2717
2718
2719 fi
2720 if test -z "$CC"; then
2721 if test -n "$ac_tool_prefix"; then
2722 for ac_prog in cl.exe
2723 do
2724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2725 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if ${ac_cv_prog_CC+:} false; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2736 do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2744 fi
2745 done
2746 done
2747 IFS=$as_save_IFS
2748
2749 fi
2750 fi
2751 CC=$ac_cv_prog_CC
2752 if test -n "$CC"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2754 $as_echo "$CC" >&6; }
2755 else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2758 fi
2759
2760
2761 test -n "$CC" && break
2762 done
2763 fi
2764 if test -z "$CC"; then
2765 ac_ct_CC=$CC
2766 for ac_prog in cl.exe
2767 do
2768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2769 set dummy $ac_prog; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 if test -n "$ac_ct_CC"; then
2776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2780 do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785 ac_cv_prog_ac_ct_CC="$ac_prog"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2788 fi
2789 done
2790 done
2791 IFS=$as_save_IFS
2792
2793 fi
2794 fi
2795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2796 if test -n "$ac_ct_CC"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2798 $as_echo "$ac_ct_CC" >&6; }
2799 else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2802 fi
2803
2804
2805 test -n "$ac_ct_CC" && break
2806 done
2807
2808 if test "x$ac_ct_CC" = x; then
2809 CC=""
2810 else
2811 case $cross_compiling:$ac_tool_warned in
2812 yes:)
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2815 ac_tool_warned=yes ;;
2816 esac
2817 CC=$ac_ct_CC
2818 fi
2819 fi
2820
2821 fi
2822
2823
2824 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2826 as_fn_error $? "no acceptable C compiler found in \$PATH
2827 See \`config.log' for more details" "$LINENO" 5; }
2828
2829 # Provide some information about the compiler.
2830 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2831 set X $ac_compile
2832 ac_compiler=$2
2833 for ac_option in --version -v -V -qversion; do
2834 { { ac_try="$ac_compiler $ac_option >&5"
2835 case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2840 $as_echo "$ac_try_echo"; } >&5
2841 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2842 ac_status=$?
2843 if test -s conftest.err; then
2844 sed '10a\
2845 ... rest of stderr output deleted ...
2846 10q' conftest.err >conftest.er1
2847 cat conftest.er1 >&5
2848 fi
2849 rm -f conftest.er1 conftest.err
2850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2851 test $ac_status = 0; }
2852 done
2853
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855 /* end confdefs.h. */
2856
2857 int
2858 main ()
2859 {
2860
2861 ;
2862 return 0;
2863 }
2864 _ACEOF
2865 ac_clean_files_save=$ac_clean_files
2866 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2867 # Try to create an executable without -o first, disregard a.out.
2868 # It will help us diagnose broken compilers, and finding out an intuition
2869 # of exeext.
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2871 $as_echo_n "checking whether the C compiler works... " >&6; }
2872 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2873
2874 # The possible output files:
2875 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2876
2877 ac_rmfiles=
2878 for ac_file in $ac_files
2879 do
2880 case $ac_file in
2881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2882 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2883 esac
2884 done
2885 rm -f $ac_rmfiles
2886
2887 if { { ac_try="$ac_link_default"
2888 case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891 esac
2892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2893 $as_echo "$ac_try_echo"; } >&5
2894 (eval "$ac_link_default") 2>&5
2895 ac_status=$?
2896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2897 test $ac_status = 0; }; then :
2898 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2899 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2900 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2901 # so that the user can short-circuit this test for compilers unknown to
2902 # Autoconf.
2903 for ac_file in $ac_files ''
2904 do
2905 test -f "$ac_file" || continue
2906 case $ac_file in
2907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2908 ;;
2909 [ab].out )
2910 # We found the default executable, but exeext='' is most
2911 # certainly right.
2912 break;;
2913 *.* )
2914 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2915 then :; else
2916 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2917 fi
2918 # We set ac_cv_exeext here because the later test for it is not
2919 # safe: cross compilers may not add the suffix if given an `-o'
2920 # argument, so we may need to know it at that point already.
2921 # Even if this section looks crufty: it has the advantage of
2922 # actually working.
2923 break;;
2924 * )
2925 break;;
2926 esac
2927 done
2928 test "$ac_cv_exeext" = no && ac_cv_exeext=
2929
2930 else
2931 ac_file=''
2932 fi
2933 if test -z "$ac_file"; then :
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2936 $as_echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2938
2939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2941 as_fn_error 77 "C compiler cannot create executables
2942 See \`config.log' for more details" "$LINENO" 5; }
2943 else
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2945 $as_echo "yes" >&6; }
2946 fi
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2948 $as_echo_n "checking for C compiler default output file name... " >&6; }
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2950 $as_echo "$ac_file" >&6; }
2951 ac_exeext=$ac_cv_exeext
2952
2953 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2954 ac_clean_files=$ac_clean_files_save
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2956 $as_echo_n "checking for suffix of executables... " >&6; }
2957 if { { ac_try="$ac_link"
2958 case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961 esac
2962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2963 $as_echo "$ac_try_echo"; } >&5
2964 (eval "$ac_link") 2>&5
2965 ac_status=$?
2966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2967 test $ac_status = 0; }; then :
2968 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2969 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2970 # work properly (i.e., refer to `conftest.exe'), while it won't with
2971 # `rm'.
2972 for ac_file in conftest.exe conftest conftest.*; do
2973 test -f "$ac_file" || continue
2974 case $ac_file in
2975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2976 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2977 break;;
2978 * ) break;;
2979 esac
2980 done
2981 else
2982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2984 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2985 See \`config.log' for more details" "$LINENO" 5; }
2986 fi
2987 rm -f conftest conftest$ac_cv_exeext
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2989 $as_echo "$ac_cv_exeext" >&6; }
2990
2991 rm -f conftest.$ac_ext
2992 EXEEXT=$ac_cv_exeext
2993 ac_exeext=$EXEEXT
2994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995 /* end confdefs.h. */
2996 #include <stdio.h>
2997 int
2998 main ()
2999 {
3000 FILE *f = fopen ("conftest.out", "w");
3001 return ferror (f) || fclose (f) != 0;
3002
3003 ;
3004 return 0;
3005 }
3006 _ACEOF
3007 ac_clean_files="$ac_clean_files conftest.out"
3008 # Check that the compiler produces executables we can run. If not, either
3009 # the compiler is broken, or we cross compile.
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3011 $as_echo_n "checking whether we are cross compiling... " >&6; }
3012 if test "$cross_compiling" != yes; then
3013 { { ac_try="$ac_link"
3014 case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017 esac
3018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3019 $as_echo "$ac_try_echo"; } >&5
3020 (eval "$ac_link") 2>&5
3021 ac_status=$?
3022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3023 test $ac_status = 0; }
3024 if { ac_try='./conftest$ac_cv_exeext'
3025 { { case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028 esac
3029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3030 $as_echo "$ac_try_echo"; } >&5
3031 (eval "$ac_try") 2>&5
3032 ac_status=$?
3033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3034 test $ac_status = 0; }; }; then
3035 cross_compiling=no
3036 else
3037 if test "$cross_compiling" = maybe; then
3038 cross_compiling=yes
3039 else
3040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 as_fn_error $? "cannot run C compiled programs.
3043 If you meant to cross compile, use \`--host'.
3044 See \`config.log' for more details" "$LINENO" 5; }
3045 fi
3046 fi
3047 fi
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3049 $as_echo "$cross_compiling" >&6; }
3050
3051 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3052 ac_clean_files=$ac_clean_files_save
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3054 $as_echo_n "checking for suffix of object files... " >&6; }
3055 if ${ac_cv_objext+:} false; then :
3056 $as_echo_n "(cached) " >&6
3057 else
3058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h. */
3060
3061 int
3062 main ()
3063 {
3064
3065 ;
3066 return 0;
3067 }
3068 _ACEOF
3069 rm -f conftest.o conftest.obj
3070 if { { ac_try="$ac_compile"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 $as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_compile") 2>&5
3078 ac_status=$?
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }; then :
3081 for ac_file in conftest.o conftest.obj conftest.*; do
3082 test -f "$ac_file" || continue;
3083 case $ac_file in
3084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3085 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3086 break;;
3087 esac
3088 done
3089 else
3090 $as_echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 as_fn_error $? "cannot compute suffix of object files: cannot compile
3096 See \`config.log' for more details" "$LINENO" 5; }
3097 fi
3098 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3099 fi
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3101 $as_echo "$ac_cv_objext" >&6; }
3102 OBJEXT=$ac_cv_objext
3103 ac_objext=$OBJEXT
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3105 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3106 if ${ac_cv_c_compiler_gnu+:} false; then :
3107 $as_echo_n "(cached) " >&6
3108 else
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3111
3112 int
3113 main ()
3114 {
3115 #ifndef __GNUC__
3116 choke me
3117 #endif
3118
3119 ;
3120 return 0;
3121 }
3122 _ACEOF
3123 if ac_fn_c_try_compile "$LINENO"; then :
3124 ac_compiler_gnu=yes
3125 else
3126 ac_compiler_gnu=no
3127 fi
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3130
3131 fi
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3133 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3134 if test $ac_compiler_gnu = yes; then
3135 GCC=yes
3136 else
3137 GCC=
3138 fi
3139 ac_test_CFLAGS=${CFLAGS+set}
3140 ac_save_CFLAGS=$CFLAGS
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3142 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3143 if ${ac_cv_prog_cc_g+:} false; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 ac_save_c_werror_flag=$ac_c_werror_flag
3147 ac_c_werror_flag=yes
3148 ac_cv_prog_cc_g=no
3149 CFLAGS="-g"
3150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151 /* end confdefs.h. */
3152
3153 int
3154 main ()
3155 {
3156
3157 ;
3158 return 0;
3159 }
3160 _ACEOF
3161 if ac_fn_c_try_compile "$LINENO"; then :
3162 ac_cv_prog_cc_g=yes
3163 else
3164 CFLAGS=""
3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166 /* end confdefs.h. */
3167
3168 int
3169 main ()
3170 {
3171
3172 ;
3173 return 0;
3174 }
3175 _ACEOF
3176 if ac_fn_c_try_compile "$LINENO"; then :
3177
3178 else
3179 ac_c_werror_flag=$ac_save_c_werror_flag
3180 CFLAGS="-g"
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h. */
3183
3184 int
3185 main ()
3186 {
3187
3188 ;
3189 return 0;
3190 }
3191 _ACEOF
3192 if ac_fn_c_try_compile "$LINENO"; then :
3193 ac_cv_prog_cc_g=yes
3194 fi
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 fi
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 ac_c_werror_flag=$ac_save_c_werror_flag
3201 fi
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3203 $as_echo "$ac_cv_prog_cc_g" >&6; }
3204 if test "$ac_test_CFLAGS" = set; then
3205 CFLAGS=$ac_save_CFLAGS
3206 elif test $ac_cv_prog_cc_g = yes; then
3207 if test "$GCC" = yes; then
3208 CFLAGS="-g -O2"
3209 else
3210 CFLAGS="-g"
3211 fi
3212 else
3213 if test "$GCC" = yes; then
3214 CFLAGS="-O2"
3215 else
3216 CFLAGS=
3217 fi
3218 fi
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3220 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3221 if ${ac_cv_prog_cc_c89+:} false; then :
3222 $as_echo_n "(cached) " >&6
3223 else
3224 ac_cv_prog_cc_c89=no
3225 ac_save_CC=$CC
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3228 #include <stdarg.h>
3229 #include <stdio.h>
3230 struct stat;
3231 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3232 struct buf { int x; };
3233 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3234 static char *e (p, i)
3235 char **p;
3236 int i;
3237 {
3238 return p[i];
3239 }
3240 static char *f (char * (*g) (char **, int), char **p, ...)
3241 {
3242 char *s;
3243 va_list v;
3244 va_start (v,p);
3245 s = g (p, va_arg (v,int));
3246 va_end (v);
3247 return s;
3248 }
3249
3250 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3251 function prototypes and stuff, but not '\xHH' hex character constants.
3252 These don't provoke an error unfortunately, instead are silently treated
3253 as 'x'. The following induces an error, until -std is added to get
3254 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3255 array size at least. It's necessary to write '\x00'==0 to get something
3256 that's true only with -std. */
3257 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3258
3259 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3260 inside strings and character constants. */
3261 #define FOO(x) 'x'
3262 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3263
3264 int test (int i, double x);
3265 struct s1 {int (*f) (int a);};
3266 struct s2 {int (*f) (double a);};
3267 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3268 int argc;
3269 char **argv;
3270 int
3271 main ()
3272 {
3273 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3274 ;
3275 return 0;
3276 }
3277 _ACEOF
3278 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3279 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3280 do
3281 CC="$ac_save_CC $ac_arg"
3282 if ac_fn_c_try_compile "$LINENO"; then :
3283 ac_cv_prog_cc_c89=$ac_arg
3284 fi
3285 rm -f core conftest.err conftest.$ac_objext
3286 test "x$ac_cv_prog_cc_c89" != "xno" && break
3287 done
3288 rm -f conftest.$ac_ext
3289 CC=$ac_save_CC
3290
3291 fi
3292 # AC_CACHE_VAL
3293 case "x$ac_cv_prog_cc_c89" in
3294 x)
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3296 $as_echo "none needed" >&6; } ;;
3297 xno)
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3299 $as_echo "unsupported" >&6; } ;;
3300 *)
3301 CC="$CC $ac_cv_prog_cc_c89"
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3303 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3304 esac
3305 if test "x$ac_cv_prog_cc_c89" != xno; then :
3306
3307 fi
3308
3309 ac_ext=c
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314
3315 ac_ext=c
3316 ac_cpp='$CPP $CPPFLAGS'
3317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3321 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3322 if ${am_cv_prog_cc_c_o+:} false; then :
3323 $as_echo_n "(cached) " >&6
3324 else
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3327
3328 int
3329 main ()
3330 {
3331
3332 ;
3333 return 0;
3334 }
3335 _ACEOF
3336 # Make sure it works both with $CC and with simple cc.
3337 # Following AC_PROG_CC_C_O, we do the test twice because some
3338 # compilers refuse to overwrite an existing .o file with -o,
3339 # though they will create one.
3340 am_cv_prog_cc_c_o=yes
3341 for am_i in 1 2; do
3342 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3343 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } \
3347 && test -f conftest2.$ac_objext; then
3348 : OK
3349 else
3350 am_cv_prog_cc_c_o=no
3351 break
3352 fi
3353 done
3354 rm -f core conftest*
3355 unset am_i
3356 fi
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3358 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3359 if test "$am_cv_prog_cc_c_o" != yes; then
3360 # Losing compiler, so override with the script.
3361 # FIXME: It is wrong to rewrite CC.
3362 # But if we don't then we get into trouble of one sort or another.
3363 # A longer-term fix would be to have automake use am__CC in this case,
3364 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3365 CC="$am_aux_dir/compile $CC"
3366 fi
3367 ac_ext=c
3368 ac_cpp='$CPP $CPPFLAGS'
3369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372
3373 DEPDIR="${am__leading_dot}deps"
3374
3375 ac_config_commands="$ac_config_commands depfiles"
3376
3377
3378 am_make=${MAKE-make}
3379 cat > confinc << 'END'
3380 am__doit:
3381 @echo this is the am__doit target
3382 .PHONY: am__doit
3383 END
3384 # If we don't find an include directive, just comment out the code.
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3386 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3387 am__include="#"
3388 am__quote=
3389 _am_result=none
3390 # First try GNU make style include.
3391 echo "include confinc" > confmf
3392 # Ignore all kinds of additional output from 'make'.
3393 case `$am_make -s -f confmf 2> /dev/null` in #(
3394 *the\ am__doit\ target*)
3395 am__include=include
3396 am__quote=
3397 _am_result=GNU
3398 ;;
3399 esac
3400 # Now try BSD make style include.
3401 if test "$am__include" = "#"; then
3402 echo '.include "confinc"' > confmf
3403 case `$am_make -s -f confmf 2> /dev/null` in #(
3404 *the\ am__doit\ target*)
3405 am__include=.include
3406 am__quote="\""
3407 _am_result=BSD
3408 ;;
3409 esac
3410 fi
3411
3412
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3414 $as_echo "$_am_result" >&6; }
3415 rm -f confinc confmf
3416
3417 # Check whether --enable-dependency-tracking was given.
3418 if test "${enable_dependency_tracking+set}" = set; then :
3419 enableval=$enable_dependency_tracking;
3420 fi
3421
3422 if test "x$enable_dependency_tracking" != xno; then
3423 am_depcomp="$ac_aux_dir/depcomp"
3424 AMDEPBACKSLASH='\'
3425 am__nodep='_no'
3426 fi
3427 if test "x$enable_dependency_tracking" != xno; then
3428 AMDEP_TRUE=
3429 AMDEP_FALSE='#'
3430 else
3431 AMDEP_TRUE='#'
3432 AMDEP_FALSE=
3433 fi
3434
3435
3436
3437 depcc="$CC" am_compiler_list=
3438
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3440 $as_echo_n "checking dependency style of $depcc... " >&6; }
3441 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3445 # We make a subdir and do the tests there. Otherwise we can end up
3446 # making bogus files that we don't know about and never remove. For
3447 # instance it was reported that on HP-UX the gcc test will end up
3448 # making a dummy file named 'D' -- because '-MD' means "put the output
3449 # in D".
3450 rm -rf conftest.dir
3451 mkdir conftest.dir
3452 # Copy depcomp to subdir because otherwise we won't find it if we're
3453 # using a relative directory.
3454 cp "$am_depcomp" conftest.dir
3455 cd conftest.dir
3456 # We will build objects and dependencies in a subdirectory because
3457 # it helps to detect inapplicable dependency modes. For instance
3458 # both Tru64's cc and ICC support -MD to output dependencies as a
3459 # side effect of compilation, but ICC will put the dependencies in
3460 # the current directory while Tru64 will put them in the object
3461 # directory.
3462 mkdir sub
3463
3464 am_cv_CC_dependencies_compiler_type=none
3465 if test "$am_compiler_list" = ""; then
3466 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3467 fi
3468 am__universal=false
3469 case " $depcc " in #(
3470 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3471 esac
3472
3473 for depmode in $am_compiler_list; do
3474 # Setup a source with many dependencies, because some compilers
3475 # like to wrap large dependency lists on column 80 (with \), and
3476 # we should not choose a depcomp mode which is confused by this.
3477 #
3478 # We need to recreate these files for each test, as the compiler may
3479 # overwrite some of them when testing with obscure command lines.
3480 # This happens at least with the AIX C compiler.
3481 : > sub/conftest.c
3482 for i in 1 2 3 4 5 6; do
3483 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3484 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3485 # Solaris 10 /bin/sh.
3486 echo '/* dummy */' > sub/conftst$i.h
3487 done
3488 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3489
3490 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3491 # mode. It turns out that the SunPro C++ compiler does not properly
3492 # handle '-M -o', and we need to detect this. Also, some Intel
3493 # versions had trouble with output in subdirs.
3494 am__obj=sub/conftest.${OBJEXT-o}
3495 am__minus_obj="-o $am__obj"
3496 case $depmode in
3497 gcc)
3498 # This depmode causes a compiler race in universal mode.
3499 test "$am__universal" = false || continue
3500 ;;
3501 nosideeffect)
3502 # After this tag, mechanisms are not by side-effect, so they'll
3503 # only be used when explicitly requested.
3504 if test "x$enable_dependency_tracking" = xyes; then
3505 continue
3506 else
3507 break
3508 fi
3509 ;;
3510 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3511 # This compiler won't grok '-c -o', but also, the minuso test has
3512 # not run yet. These depmodes are late enough in the game, and
3513 # so weak that their functioning should not be impacted.
3514 am__obj=conftest.${OBJEXT-o}
3515 am__minus_obj=
3516 ;;
3517 none) break ;;
3518 esac
3519 if depmode=$depmode \
3520 source=sub/conftest.c object=$am__obj \
3521 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3522 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3523 >/dev/null 2>conftest.err &&
3524 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3525 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3526 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3527 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3528 # icc doesn't choke on unknown options, it will just issue warnings
3529 # or remarks (even with -Werror). So we grep stderr for any message
3530 # that says an option was ignored or not supported.
3531 # When given -MP, icc 7.0 and 7.1 complain thusly:
3532 # icc: Command line warning: ignoring option '-M'; no argument required
3533 # The diagnosis changed in icc 8.0:
3534 # icc: Command line remark: option '-MP' not supported
3535 if (grep 'ignoring option' conftest.err ||
3536 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3537 am_cv_CC_dependencies_compiler_type=$depmode
3538 break
3539 fi
3540 fi
3541 done
3542
3543 cd ..
3544 rm -rf conftest.dir
3545 else
3546 am_cv_CC_dependencies_compiler_type=none
3547 fi
3548
3549 fi
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3551 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3552 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3553
3554 if
3555 test "x$enable_dependency_tracking" != xno \
3556 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3557 am__fastdepCC_TRUE=
3558 am__fastdepCC_FALSE='#'
3559 else
3560 am__fastdepCC_TRUE='#'
3561 am__fastdepCC_FALSE=
3562 fi
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3574 if test -n "$ac_tool_prefix"; then
3575 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3576 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 case $PKG_CONFIG in
3583 [\\/]* | ?:[\\/]*)
3584 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3585 ;;
3586 *)
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3589 do
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 break 2
3597 fi
3598 done
3599 done
3600 IFS=$as_save_IFS
3601
3602 ;;
3603 esac
3604 fi
3605 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3606 if test -n "$PKG_CONFIG"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3608 $as_echo "$PKG_CONFIG" >&6; }
3609 else
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 $as_echo "no" >&6; }
3612 fi
3613
3614
3615 fi
3616 if test -z "$ac_cv_path_PKG_CONFIG"; then
3617 ac_pt_PKG_CONFIG=$PKG_CONFIG
3618 # Extract the first word of "pkg-config", so it can be a program name with args.
3619 set dummy pkg-config; ac_word=$2
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621 $as_echo_n "checking for $ac_word... " >&6; }
3622 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 case $ac_pt_PKG_CONFIG in
3626 [\\/]* | ?:[\\/]*)
3627 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3628 ;;
3629 *)
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633 IFS=$as_save_IFS
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 break 2
3640 fi
3641 done
3642 done
3643 IFS=$as_save_IFS
3644
3645 ;;
3646 esac
3647 fi
3648 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3649 if test -n "$ac_pt_PKG_CONFIG"; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3651 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3652 else
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654 $as_echo "no" >&6; }
3655 fi
3656
3657 if test "x$ac_pt_PKG_CONFIG" = x; then
3658 PKG_CONFIG=""
3659 else
3660 case $cross_compiling:$ac_tool_warned in
3661 yes:)
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3664 ac_tool_warned=yes ;;
3665 esac
3666 PKG_CONFIG=$ac_pt_PKG_CONFIG
3667 fi
3668 else
3669 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3670 fi
3671
3672 fi
3673 if test -n "$PKG_CONFIG"; then
3674 _pkg_min_version=0.9.0
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3676 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3677 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3679 $as_echo "yes" >&6; }
3680 else
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 $as_echo "no" >&6; }
3683 PKG_CONFIG=""
3684 fi
3685 fi
3686
3687 pkg_failed=no
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB1_0" >&5
3689 $as_echo_n "checking for LIBUSB1_0... " >&6; }
3690
3691 if test -n "$LIBUSB1_0_CFLAGS"; then
3692 pkg_cv_LIBUSB1_0_CFLAGS="$LIBUSB1_0_CFLAGS"
3693 elif test -n "$PKG_CONFIG"; then
3694 if test -n "$PKG_CONFIG" && \
3695 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
3696 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
3697 ac_status=$?
3698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699 test $ac_status = 0; }; then
3700 pkg_cv_LIBUSB1_0_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
3701 test "x$?" != "x0" && pkg_failed=yes
3702 else
3703 pkg_failed=yes
3704 fi
3705 else
3706 pkg_failed=untried
3707 fi
3708 if test -n "$LIBUSB1_0_LIBS"; then
3709 pkg_cv_LIBUSB1_0_LIBS="$LIBUSB1_0_LIBS"
3710 elif test -n "$PKG_CONFIG"; then
3711 if test -n "$PKG_CONFIG" && \
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
3713 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
3714 ac_status=$?
3715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716 test $ac_status = 0; }; then
3717 pkg_cv_LIBUSB1_0_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
3718 test "x$?" != "x0" && pkg_failed=yes
3719 else
3720 pkg_failed=yes
3721 fi
3722 else
3723 pkg_failed=untried
3724 fi
3725
3726
3727
3728 if test $pkg_failed = yes; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3731
3732 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3733 _pkg_short_errors_supported=yes
3734 else
3735 _pkg_short_errors_supported=no
3736 fi
3737 if test $_pkg_short_errors_supported = yes; then
3738 LIBUSB1_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
3739 else
3740 LIBUSB1_0_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
3741 fi
3742 # Put the nasty error message in config.log where it belongs
3743 echo "$LIBUSB1_0_PKG_ERRORS" >&5
3744
3745 as_fn_error $? "Package requirements (libusb-1.0) were not met:
3746
3747 $LIBUSB1_0_PKG_ERRORS
3748
3749 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3750 installed software in a non-standard prefix.
3751
3752 Alternatively, you may set the environment variables LIBUSB1_0_CFLAGS
3753 and LIBUSB1_0_LIBS to avoid the need to call pkg-config.
3754 See the pkg-config man page for more details." "$LINENO" 5
3755 elif test $pkg_failed = untried; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3760 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
3761 is in your PATH or set the PKG_CONFIG environment variable to the full
3762 path to pkg-config.
3763
3764 Alternatively, you may set the environment variables LIBUSB1_0_CFLAGS
3765 and LIBUSB1_0_LIBS to avoid the need to call pkg-config.
3766 See the pkg-config man page for more details.
3767
3768 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
3769 See \`config.log' for more details" "$LINENO" 5; }
3770 else
3771 LIBUSB1_0_CFLAGS=$pkg_cv_LIBUSB1_0_CFLAGS
3772 LIBUSB1_0_LIBS=$pkg_cv_LIBUSB1_0_LIBS
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3774 $as_echo "yes" >&6; }
3775
3776 fi
3777
3778
3779 for ac_func in getopt_long
3780 do :
3781 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
3782 if test "x$ac_cv_func_getopt_long" = xyes; then :
3783 cat >>confdefs.h <<_ACEOF
3784 #define HAVE_GETOPT_LONG 1
3785 _ACEOF
3786
3787 fi
3788 done
3789
3790
3791
3792 $as_echo "#define COPYRIGHT_YEAR 2014
3793 " >>confdefs.h
3794
3795
3796 libusb_is_old=0
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_get_parent in -lusb-1.0" >&5
3798 $as_echo_n "checking for libusb_get_parent in -lusb-1.0... " >&6; }
3799 if ${ac_cv_lib_usb_1_0_libusb_get_parent+:} false; then :
3800 $as_echo_n "(cached) " >&6
3801 else
3802 ac_check_lib_save_LIBS=$LIBS
3803 LIBS="-lusb-1.0 $LIBS"
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3806
3807 /* Override any GCC internal prototype to avoid an error.
3808 Use char because int might match the return type of a GCC
3809 builtin and then its argument prototype would still apply. */
3810 #ifdef __cplusplus
3811 extern "C"
3812 #endif
3813 char libusb_get_parent ();
3814 int
3815 main ()
3816 {
3817 return libusb_get_parent ();
3818 ;
3819 return 0;
3820 }
3821 _ACEOF
3822 if ac_fn_c_try_link "$LINENO"; then :
3823 ac_cv_lib_usb_1_0_libusb_get_parent=yes
3824 else
3825 ac_cv_lib_usb_1_0_libusb_get_parent=no
3826 fi
3827 rm -f core conftest.err conftest.$ac_objext \
3828 conftest$ac_exeext conftest.$ac_ext
3829 LIBS=$ac_check_lib_save_LIBS
3830 fi
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_1_0_libusb_get_parent" >&5
3832 $as_echo "$ac_cv_lib_usb_1_0_libusb_get_parent" >&6; }
3833 if test "x$ac_cv_lib_usb_1_0_libusb_get_parent" = xyes; then :
3834 cat >>confdefs.h <<_ACEOF
3835 #define HAVE_LIBUSB_1_0 1
3836 _ACEOF
3837
3838 LIBS="-lusb-1.0 $LIBS"
3839
3840 else
3841 libusb_is_old=1
3842 fi
3843
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_get_port_number in -lusb-1.0" >&5
3845 $as_echo_n "checking for libusb_get_port_number in -lusb-1.0... " >&6; }
3846 if ${ac_cv_lib_usb_1_0_libusb_get_port_number+:} false; then :
3847 $as_echo_n "(cached) " >&6
3848 else
3849 ac_check_lib_save_LIBS=$LIBS
3850 LIBS="-lusb-1.0 $LIBS"
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3853
3854 /* Override any GCC internal prototype to avoid an error.
3855 Use char because int might match the return type of a GCC
3856 builtin and then its argument prototype would still apply. */
3857 #ifdef __cplusplus
3858 extern "C"
3859 #endif
3860 char libusb_get_port_number ();
3861 int
3862 main ()
3863 {
3864 return libusb_get_port_number ();
3865 ;
3866 return 0;
3867 }
3868 _ACEOF
3869 if ac_fn_c_try_link "$LINENO"; then :
3870 ac_cv_lib_usb_1_0_libusb_get_port_number=yes
3871 else
3872 ac_cv_lib_usb_1_0_libusb_get_port_number=no
3873 fi
3874 rm -f core conftest.err conftest.$ac_objext \
3875 conftest$ac_exeext conftest.$ac_ext
3876 LIBS=$ac_check_lib_save_LIBS
3877 fi
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_1_0_libusb_get_port_number" >&5
3879 $as_echo "$ac_cv_lib_usb_1_0_libusb_get_port_number" >&6; }
3880 if test "x$ac_cv_lib_usb_1_0_libusb_get_port_number" = xyes; then :
3881 cat >>confdefs.h <<_ACEOF
3882 #define HAVE_LIBUSB_1_0 1
3883 _ACEOF
3884
3885 LIBS="-lusb-1.0 $LIBS"
3886
3887 else
3888 libusb_is_old=1
3889 fi
3890
3891
3892 if test $libusb_is_old == 1
3893 then
3894
3895 $as_echo "#define LIBUSB_OLD yes" >>confdefs.h
3896
3897 fi
3898
3899 ac_config_headers="$ac_config_headers config.h"
3900
3901 ac_config_files="$ac_config_files Makefile src/Makefile"
3902
3903 cat >confcache <<\_ACEOF
3904 # This file is a shell script that caches the results of configure
3905 # tests run on this system so they can be shared between configure
3906 # scripts and configure runs, see configure's option --config-cache.
3907 # It is not useful on other systems. If it contains results you don't
3908 # want to keep, you may remove or edit it.
3909 #
3910 # config.status only pays attention to the cache file if you give it
3911 # the --recheck option to rerun configure.
3912 #
3913 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3914 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3915 # following values.
3916
3917 _ACEOF
3918
3919 # The following way of writing the cache mishandles newlines in values,
3920 # but we know of no workaround that is simple, portable, and efficient.
3921 # So, we kill variables containing newlines.
3922 # Ultrix sh set writes to stderr and can't be redirected directly,
3923 # and sets the high bit in the cache file unless we assign to the vars.
3924 (
3925 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3926 eval ac_val=\$$ac_var
3927 case $ac_val in #(
3928 *${as_nl}*)
3929 case $ac_var in #(
3930 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3931 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3932 esac
3933 case $ac_var in #(
3934 _ | IFS | as_nl) ;; #(
3935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3936 *) { eval $ac_var=; unset $ac_var;} ;;
3937 esac ;;
3938 esac
3939 done
3940
3941 (set) 2>&1 |
3942 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3943 *${as_nl}ac_space=\ *)
3944 # `set' does not quote correctly, so add quotes: double-quote
3945 # substitution turns \\\\ into \\, and sed turns \\ into \.
3946 sed -n \
3947 "s/'/'\\\\''/g;
3948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3949 ;; #(
3950 *)
3951 # `set' quotes correctly as required by POSIX, so do not add quotes.
3952 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3953 ;;
3954 esac |
3955 sort
3956 ) |
3957 sed '
3958 /^ac_cv_env_/b end
3959 t clear
3960 :clear
3961 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3962 t end
3963 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3964 :end' >>confcache
3965 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3966 if test -w "$cache_file"; then
3967 if test "x$cache_file" != "x/dev/null"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3969 $as_echo "$as_me: updating cache $cache_file" >&6;}
3970 if test ! -f "$cache_file" || test -h "$cache_file"; then
3971 cat confcache >"$cache_file"
3972 else
3973 case $cache_file in #(
3974 */* | ?:*)
3975 mv -f confcache "$cache_file"$$ &&
3976 mv -f "$cache_file"$$ "$cache_file" ;; #(
3977 *)
3978 mv -f confcache "$cache_file" ;;
3979 esac
3980 fi
3981 fi
3982 else
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3984 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3985 fi
3986 fi
3987 rm -f confcache
3988
3989 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3990 # Let make expand exec_prefix.
3991 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3992
3993 DEFS=-DHAVE_CONFIG_H
3994
3995 ac_libobjs=
3996 ac_ltlibobjs=
3997 U=
3998 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3999 # 1. Remove the extension, and $U if already installed.
4000 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4001 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4002 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4003 # will be set to the directory where LIBOBJS objects are built.
4004 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4005 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4006 done
4007 LIBOBJS=$ac_libobjs
4008
4009 LTLIBOBJS=$ac_ltlibobjs
4010
4011
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
4013 $as_echo_n "checking that generated files are newer than configure... " >&6; }
4014 if test -n "$am_sleep_pid"; then
4015 # Hide warnings about reused PIDs.
4016 wait $am_sleep_pid 2>/dev/null
4017 fi
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
4019 $as_echo "done" >&6; }
4020 if test -n "$EXEEXT"; then
4021 am__EXEEXT_TRUE=
4022 am__EXEEXT_FALSE='#'
4023 else
4024 am__EXEEXT_TRUE='#'
4025 am__EXEEXT_FALSE=
4026 fi
4027
4028 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4029 as_fn_error $? "conditional \"AMDEP\" was never defined.
4030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4031 fi
4032 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4033 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4035 fi
4036
4037 : "${CONFIG_STATUS=./config.status}"
4038 ac_write_fail=0
4039 ac_clean_files_save=$ac_clean_files
4040 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4042 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4043 as_write_fail=0
4044 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4045 #! $SHELL
4046 # Generated by $as_me.
4047 # Run this file to recreate the current configuration.
4048 # Compiler output produced by configure, useful for debugging
4049 # configure, is in config.log if it exists.
4050
4051 debug=false
4052 ac_cs_recheck=false
4053 ac_cs_silent=false
4054
4055 SHELL=\${CONFIG_SHELL-$SHELL}
4056 export SHELL
4057 _ASEOF
4058 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4059 ## -------------------- ##
4060 ## M4sh Initialization. ##
4061 ## -------------------- ##
4062
4063 # Be more Bourne compatible
4064 DUALCASE=1; export DUALCASE # for MKS sh
4065 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4066 emulate sh
4067 NULLCMD=:
4068 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4069 # is contrary to our usage. Disable this feature.
4070 alias -g '${1+"$@"}'='"$@"'
4071 setopt NO_GLOB_SUBST
4072 else
4073 case `(set -o) 2>/dev/null` in #(
4074 *posix*) :
4075 set -o posix ;; #(
4076 *) :
4077 ;;
4078 esac
4079 fi
4080
4081
4082 as_nl='
4083 '
4084 export as_nl
4085 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4086 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4087 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4088 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4089 # Prefer a ksh shell builtin over an external printf program on Solaris,
4090 # but without wasting forks for bash or zsh.
4091 if test -z "$BASH_VERSION$ZSH_VERSION" \
4092 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4093 as_echo='print -r --'
4094 as_echo_n='print -rn --'
4095 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4096 as_echo='printf %s\n'
4097 as_echo_n='printf %s'
4098 else
4099 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4100 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4101 as_echo_n='/usr/ucb/echo -n'
4102 else
4103 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4104 as_echo_n_body='eval
4105 arg=$1;
4106 case $arg in #(
4107 *"$as_nl"*)
4108 expr "X$arg" : "X\\(.*\\)$as_nl";
4109 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4110 esac;
4111 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4112 '
4113 export as_echo_n_body
4114 as_echo_n='sh -c $as_echo_n_body as_echo'
4115 fi
4116 export as_echo_body
4117 as_echo='sh -c $as_echo_body as_echo'
4118 fi
4119
4120 # The user is always right.
4121 if test "${PATH_SEPARATOR+set}" != set; then
4122 PATH_SEPARATOR=:
4123 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4124 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4125 PATH_SEPARATOR=';'
4126 }
4127 fi
4128
4129
4130 # IFS
4131 # We need space, tab and new line, in precisely that order. Quoting is
4132 # there to prevent editors from complaining about space-tab.
4133 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4134 # splitting by setting IFS to empty value.)
4135 IFS=" "" $as_nl"
4136
4137 # Find who we are. Look in the path if we contain no directory separator.
4138 as_myself=
4139 case $0 in #((
4140 *[\\/]* ) as_myself=$0 ;;
4141 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4143 do
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
4146 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4147 done
4148 IFS=$as_save_IFS
4149
4150 ;;
4151 esac
4152 # We did not find ourselves, most probably we were run as `sh COMMAND'
4153 # in which case we are not to be found in the path.
4154 if test "x$as_myself" = x; then
4155 as_myself=$0
4156 fi
4157 if test ! -f "$as_myself"; then
4158 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4159 exit 1
4160 fi
4161
4162 # Unset variables that we do not need and which cause bugs (e.g. in
4163 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4164 # suppresses any "Segmentation fault" message there. '((' could
4165 # trigger a bug in pdksh 5.2.14.
4166 for as_var in BASH_ENV ENV MAIL MAILPATH
4167 do eval test x\${$as_var+set} = xset \
4168 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4169 done
4170 PS1='$ '
4171 PS2='> '
4172 PS4='+ '
4173
4174 # NLS nuisances.
4175 LC_ALL=C
4176 export LC_ALL
4177 LANGUAGE=C
4178 export LANGUAGE
4179
4180 # CDPATH.
4181 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4182
4183
4184 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4185 # ----------------------------------------
4186 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4187 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4188 # script with STATUS, using 1 if that was 0.
4189 as_fn_error ()
4190 {
4191 as_status=$1; test $as_status -eq 0 && as_status=1
4192 if test "$4"; then
4193 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4194 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4195 fi
4196 $as_echo "$as_me: error: $2" >&2
4197 as_fn_exit $as_status
4198 } # as_fn_error
4199
4200
4201 # as_fn_set_status STATUS
4202 # -----------------------
4203 # Set $? to STATUS, without forking.
4204 as_fn_set_status ()
4205 {
4206 return $1
4207 } # as_fn_set_status
4208
4209 # as_fn_exit STATUS
4210 # -----------------
4211 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4212 as_fn_exit ()
4213 {
4214 set +e
4215 as_fn_set_status $1
4216 exit $1
4217 } # as_fn_exit
4218
4219 # as_fn_unset VAR
4220 # ---------------
4221 # Portably unset VAR.
4222 as_fn_unset ()
4223 {
4224 { eval $1=; unset $1;}
4225 }
4226 as_unset=as_fn_unset
4227 # as_fn_append VAR VALUE
4228 # ----------------------
4229 # Append the text in VALUE to the end of the definition contained in VAR. Take
4230 # advantage of any shell optimizations that allow amortized linear growth over
4231 # repeated appends, instead of the typical quadratic growth present in naive
4232 # implementations.
4233 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4234 eval 'as_fn_append ()
4235 {
4236 eval $1+=\$2
4237 }'
4238 else
4239 as_fn_append ()
4240 {
4241 eval $1=\$$1\$2
4242 }
4243 fi # as_fn_append
4244
4245 # as_fn_arith ARG...
4246 # ------------------
4247 # Perform arithmetic evaluation on the ARGs, and store the result in the
4248 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4249 # must be portable across $(()) and expr.
4250 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4251 eval 'as_fn_arith ()
4252 {
4253 as_val=$(( $* ))
4254 }'
4255 else
4256 as_fn_arith ()
4257 {
4258 as_val=`expr "$@" || test $? -eq 1`
4259 }
4260 fi # as_fn_arith
4261
4262
4263 if expr a : '\(a\)' >/dev/null 2>&1 &&
4264 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4265 as_expr=expr
4266 else
4267 as_expr=false
4268 fi
4269
4270 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4271 as_basename=basename
4272 else
4273 as_basename=false
4274 fi
4275
4276 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4277 as_dirname=dirname
4278 else
4279 as_dirname=false
4280 fi
4281
4282 as_me=`$as_basename -- "$0" ||
4283 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4284 X"$0" : 'X\(//\)$' \| \
4285 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4286 $as_echo X/"$0" |
4287 sed '/^.*\/\([^/][^/]*\)\/*$/{
4288 s//\1/
4289 q
4290 }
4291 /^X\/\(\/\/\)$/{
4292 s//\1/
4293 q
4294 }
4295 /^X\/\(\/\).*/{
4296 s//\1/
4297 q
4298 }
4299 s/.*/./; q'`
4300
4301 # Avoid depending upon Character Ranges.
4302 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4303 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4304 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4305 as_cr_digits='0123456789'
4306 as_cr_alnum=$as_cr_Letters$as_cr_digits
4307
4308 ECHO_C= ECHO_N= ECHO_T=
4309 case `echo -n x` in #(((((
4310 -n*)
4311 case `echo 'xy\c'` in
4312 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4313 xy) ECHO_C='\c';;
4314 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4315 ECHO_T=' ';;
4316 esac;;
4317 *)
4318 ECHO_N='-n';;
4319 esac
4320
4321 rm -f conf$$ conf$$.exe conf$$.file
4322 if test -d conf$$.dir; then
4323 rm -f conf$$.dir/conf$$.file
4324 else
4325 rm -f conf$$.dir
4326 mkdir conf$$.dir 2>/dev/null
4327 fi
4328 if (echo >conf$$.file) 2>/dev/null; then
4329 if ln -s conf$$.file conf$$ 2>/dev/null; then
4330 as_ln_s='ln -s'
4331 # ... but there are two gotchas:
4332 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4333 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4334 # In both cases, we have to default to `cp -pR'.
4335 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4336 as_ln_s='cp -pR'
4337 elif ln conf$$.file conf$$ 2>/dev/null; then
4338 as_ln_s=ln
4339 else
4340 as_ln_s='cp -pR'
4341 fi
4342 else
4343 as_ln_s='cp -pR'
4344 fi
4345 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4346 rmdir conf$$.dir 2>/dev/null
4347
4348
4349 # as_fn_mkdir_p
4350 # -------------
4351 # Create "$as_dir" as a directory, including parents if necessary.
4352 as_fn_mkdir_p ()
4353 {
4354
4355 case $as_dir in #(
4356 -*) as_dir=./$as_dir;;
4357 esac
4358 test -d "$as_dir" || eval $as_mkdir_p || {
4359 as_dirs=
4360 while :; do
4361 case $as_dir in #(
4362 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4363 *) as_qdir=$as_dir;;
4364 esac
4365 as_dirs="'$as_qdir' $as_dirs"
4366 as_dir=`$as_dirname -- "$as_dir" ||
4367 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4368 X"$as_dir" : 'X\(//\)[^/]' \| \
4369 X"$as_dir" : 'X\(//\)$' \| \
4370 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4371 $as_echo X"$as_dir" |
4372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4373 s//\1/
4374 q
4375 }
4376 /^X\(\/\/\)[^/].*/{
4377 s//\1/
4378 q
4379 }
4380 /^X\(\/\/\)$/{
4381 s//\1/
4382 q
4383 }
4384 /^X\(\/\).*/{
4385 s//\1/
4386 q
4387 }
4388 s/.*/./; q'`
4389 test -d "$as_dir" && break
4390 done
4391 test -z "$as_dirs" || eval "mkdir $as_dirs"
4392 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4393
4394
4395 } # as_fn_mkdir_p
4396 if mkdir -p . 2>/dev/null; then
4397 as_mkdir_p='mkdir -p "$as_dir"'
4398 else
4399 test -d ./-p && rmdir ./-p
4400 as_mkdir_p=false
4401 fi
4402
4403
4404 # as_fn_executable_p FILE
4405 # -----------------------
4406 # Test if FILE is an executable regular file.
4407 as_fn_executable_p ()
4408 {
4409 test -f "$1" && test -x "$1"
4410 } # as_fn_executable_p
4411 as_test_x='test -x'
4412 as_executable_p=as_fn_executable_p
4413
4414 # Sed expression to map a string onto a valid CPP name.
4415 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4416
4417 # Sed expression to map a string onto a valid variable name.
4418 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4419
4420
4421 exec 6>&1
4422 ## ----------------------------------- ##
4423 ## Main body of $CONFIG_STATUS script. ##
4424 ## ----------------------------------- ##
4425 _ASEOF
4426 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4427
4428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4429 # Save the log message, to keep $0 and so on meaningful, and to
4430 # report actual input values of CONFIG_FILES etc. instead of their
4431 # values after options handling.
4432 ac_log="
4433 This file was extended by air-quality-sensor $as_me 0.1.1, which was
4434 generated by GNU Autoconf 2.69. Invocation command line was
4435
4436 CONFIG_FILES = $CONFIG_FILES
4437 CONFIG_HEADERS = $CONFIG_HEADERS
4438 CONFIG_LINKS = $CONFIG_LINKS
4439 CONFIG_COMMANDS = $CONFIG_COMMANDS
4440 $ $0 $@
4441
4442 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4443 "
4444
4445 _ACEOF
4446
4447 case $ac_config_files in *"
4448 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4449 esac
4450
4451 case $ac_config_headers in *"
4452 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4453 esac
4454
4455
4456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4457 # Files that config.status was made for.
4458 config_files="$ac_config_files"
4459 config_headers="$ac_config_headers"
4460 config_commands="$ac_config_commands"
4461
4462 _ACEOF
4463
4464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4465 ac_cs_usage="\
4466 \`$as_me' instantiates files and other configuration actions
4467 from templates according to the current configuration. Unless the files
4468 and actions are specified as TAGs, all are instantiated by default.
4469
4470 Usage: $0 [OPTION]... [TAG]...
4471
4472 -h, --help print this help, then exit
4473 -V, --version print version number and configuration settings, then exit
4474 --config print configuration, then exit
4475 -q, --quiet, --silent
4476 do not print progress messages
4477 -d, --debug don't remove temporary files
4478 --recheck update $as_me by reconfiguring in the same conditions
4479 --file=FILE[:TEMPLATE]
4480 instantiate the configuration file FILE
4481 --header=FILE[:TEMPLATE]
4482 instantiate the configuration header FILE
4483
4484 Configuration files:
4485 $config_files
4486
4487 Configuration headers:
4488 $config_headers
4489
4490 Configuration commands:
4491 $config_commands
4492
4493 Report bugs to <air-quality-sensor@benedikt-wildenhain.de>."
4494
4495 _ACEOF
4496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4497 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4498 ac_cs_version="\\
4499 air-quality-sensor config.status 0.1.1
4500 configured by $0, generated by GNU Autoconf 2.69,
4501 with options \\"\$ac_cs_config\\"
4502
4503 Copyright (C) 2012 Free Software Foundation, Inc.
4504 This config.status script is free software; the Free Software Foundation
4505 gives unlimited permission to copy, distribute and modify it."
4506
4507 ac_pwd='$ac_pwd'
4508 srcdir='$srcdir'
4509 INSTALL='$INSTALL'
4510 MKDIR_P='$MKDIR_P'
4511 AWK='$AWK'
4512 test -n "\$AWK" || AWK=awk
4513 _ACEOF
4514
4515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4516 # The default lists apply if the user does not specify any file.
4517 ac_need_defaults=:
4518 while test $# != 0
4519 do
4520 case $1 in
4521 --*=?*)
4522 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4523 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4524 ac_shift=:
4525 ;;
4526 --*=)
4527 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4528 ac_optarg=
4529 ac_shift=:
4530 ;;
4531 *)
4532 ac_option=$1
4533 ac_optarg=$2
4534 ac_shift=shift
4535 ;;
4536 esac
4537
4538 case $ac_option in
4539 # Handling of the options.
4540 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4541 ac_cs_recheck=: ;;
4542 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4543 $as_echo "$ac_cs_version"; exit ;;
4544 --config | --confi | --conf | --con | --co | --c )
4545 $as_echo "$ac_cs_config"; exit ;;
4546 --debug | --debu | --deb | --de | --d | -d )
4547 debug=: ;;
4548 --file | --fil | --fi | --f )
4549 $ac_shift
4550 case $ac_optarg in
4551 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4552 '') as_fn_error $? "missing file argument" ;;
4553 esac
4554 as_fn_append CONFIG_FILES " '$ac_optarg'"
4555 ac_need_defaults=false;;
4556 --header | --heade | --head | --hea )
4557 $ac_shift
4558 case $ac_optarg in
4559 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4560 esac
4561 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4562 ac_need_defaults=false;;
4563 --he | --h)
4564 # Conflict between --help and --header
4565 as_fn_error $? "ambiguous option: \`$1'
4566 Try \`$0 --help' for more information.";;
4567 --help | --hel | -h )
4568 $as_echo "$ac_cs_usage"; exit ;;
4569 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4570 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4571 ac_cs_silent=: ;;
4572
4573 # This is an error.
4574 -*) as_fn_error $? "unrecognized option: \`$1'
4575 Try \`$0 --help' for more information." ;;
4576
4577 *) as_fn_append ac_config_targets " $1"
4578 ac_need_defaults=false ;;
4579
4580 esac
4581 shift
4582 done
4583
4584 ac_configure_extra_args=
4585
4586 if $ac_cs_silent; then
4587 exec 6>/dev/null
4588 ac_configure_extra_args="$ac_configure_extra_args --silent"
4589 fi
4590
4591 _ACEOF
4592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4593 if \$ac_cs_recheck; then
4594 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4595 shift
4596 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4597 CONFIG_SHELL='$SHELL'
4598 export CONFIG_SHELL
4599 exec "\$@"
4600 fi
4601
4602 _ACEOF
4603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4604 exec 5>>config.log
4605 {
4606 echo
4607 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4608 ## Running $as_me. ##
4609 _ASBOX
4610 $as_echo "$ac_log"
4611 } >&5
4612
4613 _ACEOF
4614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4615 #
4616 # INIT-COMMANDS
4617 #
4618 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4619
4620 _ACEOF
4621
4622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4623
4624 # Handling of arguments.
4625 for ac_config_target in $ac_config_targets
4626 do
4627 case $ac_config_target in
4628 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4629 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4630 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4631 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4632
4633 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4634 esac
4635 done
4636
4637
4638 # If the user did not use the arguments to specify the items to instantiate,
4639 # then the envvar interface is used. Set only those that are not.
4640 # We use the long form for the default assignment because of an extremely
4641 # bizarre bug on SunOS 4.1.3.
4642 if $ac_need_defaults; then
4643 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4644 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4645 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4646 fi
4647
4648 # Have a temporary directory for convenience. Make it in the build tree
4649 # simply because there is no reason against having it here, and in addition,
4650 # creating and moving files from /tmp can sometimes cause problems.
4651 # Hook for its removal unless debugging.
4652 # Note that there is a small window in which the directory will not be cleaned:
4653 # after its creation but before its name has been assigned to `$tmp'.
4654 $debug ||
4655 {
4656 tmp= ac_tmp=
4657 trap 'exit_status=$?
4658 : "${ac_tmp:=$tmp}"
4659 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4660 ' 0
4661 trap 'as_fn_exit 1' 1 2 13 15
4662 }
4663 # Create a (secure) tmp directory for tmp files.
4664
4665 {
4666 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4667 test -d "$tmp"
4668 } ||
4669 {
4670 tmp=./conf$$-$RANDOM
4671 (umask 077 && mkdir "$tmp")
4672 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4673 ac_tmp=$tmp
4674
4675 # Set up the scripts for CONFIG_FILES section.
4676 # No need to generate them if there are no CONFIG_FILES.
4677 # This happens for instance with `./config.status config.h'.
4678 if test -n "$CONFIG_FILES"; then
4679
4680
4681 ac_cr=`echo X | tr X '\015'`
4682 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4683 # But we know of no other shell where ac_cr would be empty at this
4684 # point, so we can use a bashism as a fallback.
4685 if test "x$ac_cr" = x; then
4686 eval ac_cr=\$\'\\r\'
4687 fi
4688 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4689 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4690 ac_cs_awk_cr='\\r'
4691 else
4692 ac_cs_awk_cr=$ac_cr
4693 fi
4694
4695 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4696 _ACEOF
4697
4698
4699 {
4700 echo "cat >conf$$subs.awk <<_ACEOF" &&
4701 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4702 echo "_ACEOF"
4703 } >conf$$subs.sh ||
4704 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4705 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4706 ac_delim='%!_!# '
4707 for ac_last_try in false false false false false :; do
4708 . ./conf$$subs.sh ||
4709 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4710
4711 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4712 if test $ac_delim_n = $ac_delim_num; then
4713 break
4714 elif $ac_last_try; then
4715 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4716 else
4717 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4718 fi
4719 done
4720 rm -f conf$$subs.sh
4721
4722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4723 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4724 _ACEOF
4725 sed -n '
4726 h
4727 s/^/S["/; s/!.*/"]=/
4728 p
4729 g
4730 s/^[^!]*!//
4731 :repl
4732 t repl
4733 s/'"$ac_delim"'$//
4734 t delim
4735 :nl
4736 h
4737 s/\(.\{148\}\)..*/\1/
4738 t more1
4739 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4740 p
4741 n
4742 b repl
4743 :more1
4744 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4745 p
4746 g
4747 s/.\{148\}//
4748 t nl
4749 :delim
4750 h
4751 s/\(.\{148\}\)..*/\1/
4752 t more2
4753 s/["\\]/\\&/g; s/^/"/; s/$/"/
4754 p
4755 b
4756 :more2
4757 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4758 p
4759 g
4760 s/.\{148\}//
4761 t delim
4762 ' <conf$$subs.awk | sed '
4763 /^[^""]/{
4764 N
4765 s/\n//
4766 }
4767 ' >>$CONFIG_STATUS || ac_write_fail=1
4768 rm -f conf$$subs.awk
4769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4770 _ACAWK
4771 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4772 for (key in S) S_is_set[key] = 1
4773 FS = ""
4774
4775 }
4776 {
4777 line = $ 0
4778 nfields = split(line, field, "@")
4779 substed = 0
4780 len = length(field[1])
4781 for (i = 2; i < nfields; i++) {
4782 key = field[i]
4783 keylen = length(key)
4784 if (S_is_set[key]) {
4785 value = S[key]
4786 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4787 len += length(value) + length(field[++i])
4788 substed = 1
4789 } else
4790 len += 1 + keylen
4791 }
4792
4793 print line
4794 }
4795
4796 _ACAWK
4797 _ACEOF
4798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4799 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4800 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4801 else
4802 cat
4803 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4804 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4805 _ACEOF
4806
4807 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4808 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4809 # trailing colons and then remove the whole line if VPATH becomes empty
4810 # (actually we leave an empty line to preserve line numbers).
4811 if test "x$srcdir" = x.; then
4812 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4813 h
4814 s///
4815 s/^/:/
4816 s/[ ]*$/:/
4817 s/:\$(srcdir):/:/g
4818 s/:\${srcdir}:/:/g
4819 s/:@srcdir@:/:/g
4820 s/^:*//
4821 s/:*$//
4822 x
4823 s/\(=[ ]*\).*/\1/
4824 G
4825 s/\n//
4826 s/^[^=]*=[ ]*$//
4827 }'
4828 fi
4829
4830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4831 fi # test -n "$CONFIG_FILES"
4832
4833 # Set up the scripts for CONFIG_HEADERS section.
4834 # No need to generate them if there are no CONFIG_HEADERS.
4835 # This happens for instance with `./config.status Makefile'.
4836 if test -n "$CONFIG_HEADERS"; then
4837 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4838 BEGIN {
4839 _ACEOF
4840
4841 # Transform confdefs.h into an awk script `defines.awk', embedded as
4842 # here-document in config.status, that substitutes the proper values into
4843 # config.h.in to produce config.h.
4844
4845 # Create a delimiter string that does not exist in confdefs.h, to ease
4846 # handling of long lines.
4847 ac_delim='%!_!# '
4848 for ac_last_try in false false :; do
4849 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4850 if test -z "$ac_tt"; then
4851 break
4852 elif $ac_last_try; then
4853 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4854 else
4855 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4856 fi
4857 done
4858
4859 # For the awk script, D is an array of macro values keyed by name,
4860 # likewise P contains macro parameters if any. Preserve backslash
4861 # newline sequences.
4862
4863 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4864 sed -n '
4865 s/.\{148\}/&'"$ac_delim"'/g
4866 t rset
4867 :rset
4868 s/^[ ]*#[ ]*define[ ][ ]*/ /
4869 t def
4870 d
4871 :def
4872 s/\\$//
4873 t bsnl
4874 s/["\\]/\\&/g
4875 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4876 D["\1"]=" \3"/p
4877 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4878 d
4879 :bsnl
4880 s/["\\]/\\&/g
4881 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4882 D["\1"]=" \3\\\\\\n"\\/p
4883 t cont
4884 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4885 t cont
4886 d
4887 :cont
4888 n
4889 s/.\{148\}/&'"$ac_delim"'/g
4890 t clear
4891 :clear
4892 s/\\$//
4893 t bsnlc
4894 s/["\\]/\\&/g; s/^/"/; s/$/"/p
4895 d
4896 :bsnlc
4897 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4898 b cont
4899 ' <confdefs.h | sed '
4900 s/'"$ac_delim"'/"\\\
4901 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4902
4903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4904 for (key in D) D_is_set[key] = 1
4905 FS = ""
4906 }
4907 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4908 line = \$ 0
4909 split(line, arg, " ")
4910 if (arg[1] == "#") {
4911 defundef = arg[2]
4912 mac1 = arg[3]
4913 } else {
4914 defundef = substr(arg[1], 2)
4915 mac1 = arg[2]
4916 }
4917 split(mac1, mac2, "(") #)
4918 macro = mac2[1]
4919 prefix = substr(line, 1, index(line, defundef) - 1)
4920 if (D_is_set[macro]) {
4921 # Preserve the white space surrounding the "#".
4922 print prefix "define", macro P[macro] D[macro]
4923 next
4924 } else {
4925 # Replace #undef with comments. This is necessary, for example,
4926 # in the case of _POSIX_SOURCE, which is predefined and required
4927 # on some systems where configure will not decide to define it.
4928 if (defundef == "undef") {
4929 print "/*", prefix defundef, macro, "*/"
4930 next
4931 }
4932 }
4933 }
4934 { print }
4935 _ACAWK
4936 _ACEOF
4937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4938 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4939 fi # test -n "$CONFIG_HEADERS"
4940
4941
4942 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
4943 shift
4944 for ac_tag
4945 do
4946 case $ac_tag in
4947 :[FHLC]) ac_mode=$ac_tag; continue;;
4948 esac
4949 case $ac_mode$ac_tag in
4950 :[FHL]*:*);;
4951 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4952 :[FH]-) ac_tag=-:-;;
4953 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4954 esac
4955 ac_save_IFS=$IFS
4956 IFS=:
4957 set x $ac_tag
4958 IFS=$ac_save_IFS
4959 shift
4960 ac_file=$1
4961 shift
4962
4963 case $ac_mode in
4964 :L) ac_source=$1;;
4965 :[FH])
4966 ac_file_inputs=
4967 for ac_f
4968 do
4969 case $ac_f in
4970 -) ac_f="$ac_tmp/stdin";;
4971 *) # Look for the file first in the build tree, then in the source tree
4972 # (if the path is not absolute). The absolute path cannot be DOS-style,
4973 # because $ac_f cannot contain `:'.
4974 test -f "$ac_f" ||
4975 case $ac_f in
4976 [\\/$]*) false;;
4977 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4978 esac ||
4979 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4980 esac
4981 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4982 as_fn_append ac_file_inputs " '$ac_f'"
4983 done
4984
4985 # Let's still pretend it is `configure' which instantiates (i.e., don't
4986 # use $as_me), people would be surprised to read:
4987 # /* config.h. Generated by config.status. */
4988 configure_input='Generated from '`
4989 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4990 `' by configure.'
4991 if test x"$ac_file" != x-; then
4992 configure_input="$ac_file. $configure_input"
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4994 $as_echo "$as_me: creating $ac_file" >&6;}
4995 fi
4996 # Neutralize special characters interpreted by sed in replacement strings.
4997 case $configure_input in #(
4998 *\&* | *\|* | *\\* )
4999 ac_sed_conf_input=`$as_echo "$configure_input" |
5000 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5001 *) ac_sed_conf_input=$configure_input;;
5002 esac
5003
5004 case $ac_tag in
5005 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5006 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5007 esac
5008 ;;
5009 esac
5010
5011 ac_dir=`$as_dirname -- "$ac_file" ||
5012 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5013 X"$ac_file" : 'X\(//\)[^/]' \| \
5014 X"$ac_file" : 'X\(//\)$' \| \
5015 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5016 $as_echo X"$ac_file" |
5017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5018 s//\1/
5019 q
5020 }
5021 /^X\(\/\/\)[^/].*/{
5022 s//\1/
5023 q
5024 }
5025 /^X\(\/\/\)$/{
5026 s//\1/
5027 q
5028 }
5029 /^X\(\/\).*/{
5030 s//\1/
5031 q
5032 }
5033 s/.*/./; q'`
5034 as_dir="$ac_dir"; as_fn_mkdir_p
5035 ac_builddir=.
5036
5037 case "$ac_dir" in
5038 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5039 *)
5040 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5041 # A ".." for each directory in $ac_dir_suffix.
5042 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5043 case $ac_top_builddir_sub in
5044 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5045 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5046 esac ;;
5047 esac
5048 ac_abs_top_builddir=$ac_pwd
5049 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5050 # for backward compatibility:
5051 ac_top_builddir=$ac_top_build_prefix
5052
5053 case $srcdir in
5054 .) # We are building in place.
5055 ac_srcdir=.
5056 ac_top_srcdir=$ac_top_builddir_sub
5057 ac_abs_top_srcdir=$ac_pwd ;;
5058 [\\/]* | ?:[\\/]* ) # Absolute name.
5059 ac_srcdir=$srcdir$ac_dir_suffix;
5060 ac_top_srcdir=$srcdir
5061 ac_abs_top_srcdir=$srcdir ;;
5062 *) # Relative name.
5063 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5064 ac_top_srcdir=$ac_top_build_prefix$srcdir
5065 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5066 esac
5067 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5068
5069
5070 case $ac_mode in
5071 :F)
5072 #
5073 # CONFIG_FILE
5074 #
5075
5076 case $INSTALL in
5077 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5078 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5079 esac
5080 ac_MKDIR_P=$MKDIR_P
5081 case $MKDIR_P in
5082 [\\/$]* | ?:[\\/]* ) ;;
5083 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5084 esac
5085 _ACEOF
5086
5087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5088 # If the template does not know about datarootdir, expand it.
5089 # FIXME: This hack should be removed a few years after 2.60.
5090 ac_datarootdir_hack=; ac_datarootdir_seen=
5091 ac_sed_dataroot='
5092 /datarootdir/ {
5093 p
5094 q
5095 }
5096 /@datadir@/p
5097 /@docdir@/p
5098 /@infodir@/p
5099 /@localedir@/p
5100 /@mandir@/p'
5101 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5102 *datarootdir*) ac_datarootdir_seen=yes;;
5103 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5105 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5106 _ACEOF
5107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5108 ac_datarootdir_hack='
5109 s&@datadir@&$datadir&g
5110 s&@docdir@&$docdir&g
5111 s&@infodir@&$infodir&g
5112 s&@localedir@&$localedir&g
5113 s&@mandir@&$mandir&g
5114 s&\\\${datarootdir}&$datarootdir&g' ;;
5115 esac
5116 _ACEOF
5117
5118 # Neutralize VPATH when `$srcdir' = `.'.
5119 # Shell code in configure.ac might set extrasub.
5120 # FIXME: do we really want to maintain this feature?
5121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5122 ac_sed_extra="$ac_vpsub
5123 $extrasub
5124 _ACEOF
5125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5126 :t
5127 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5128 s|@configure_input@|$ac_sed_conf_input|;t t
5129 s&@top_builddir@&$ac_top_builddir_sub&;t t
5130 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5131 s&@srcdir@&$ac_srcdir&;t t
5132 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5133 s&@top_srcdir@&$ac_top_srcdir&;t t
5134 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5135 s&@builddir@&$ac_builddir&;t t
5136 s&@abs_builddir@&$ac_abs_builddir&;t t
5137 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5138 s&@INSTALL@&$ac_INSTALL&;t t
5139 s&@MKDIR_P@&$ac_MKDIR_P&;t t
5140 $ac_datarootdir_hack
5141 "
5142 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5143 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5144
5145 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5146 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5147 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5148 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5150 which seems to be undefined. Please make sure it is defined" >&5
5151 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5152 which seems to be undefined. Please make sure it is defined" >&2;}
5153
5154 rm -f "$ac_tmp/stdin"
5155 case $ac_file in
5156 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5157 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5158 esac \
5159 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5160 ;;
5161 :H)
5162 #
5163 # CONFIG_HEADER
5164 #
5165 if test x"$ac_file" != x-; then
5166 {
5167 $as_echo "/* $configure_input */" \
5168 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5169 } >"$ac_tmp/config.h" \
5170 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5171 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5173 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5174 else
5175 rm -f "$ac_file"
5176 mv "$ac_tmp/config.h" "$ac_file" \
5177 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5178 fi
5179 else
5180 $as_echo "/* $configure_input */" \
5181 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5182 || as_fn_error $? "could not create -" "$LINENO" 5
5183 fi
5184 # Compute "$ac_file"'s index in $config_headers.
5185 _am_arg="$ac_file"
5186 _am_stamp_count=1
5187 for _am_header in $config_headers :; do
5188 case $_am_header in
5189 $_am_arg | $_am_arg:* )
5190 break ;;
5191 * )
5192 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5193 esac
5194 done
5195 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
5196 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5197 X"$_am_arg" : 'X\(//\)[^/]' \| \
5198 X"$_am_arg" : 'X\(//\)$' \| \
5199 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
5200 $as_echo X"$_am_arg" |
5201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5202 s//\1/
5203 q
5204 }
5205 /^X\(\/\/\)[^/].*/{
5206 s//\1/
5207 q
5208 }
5209 /^X\(\/\/\)$/{
5210 s//\1/
5211 q
5212 }
5213 /^X\(\/\).*/{
5214 s//\1/
5215 q
5216 }
5217 s/.*/./; q'`/stamp-h$_am_stamp_count
5218 ;;
5219
5220 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5221 $as_echo "$as_me: executing $ac_file commands" >&6;}
5222 ;;
5223 esac
5224
5225
5226 case $ac_file$ac_mode in
5227 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
5228 # Older Autoconf quotes --file arguments for eval, but not when files
5229 # are listed without --file. Let's play safe and only enable the eval
5230 # if we detect the quoting.
5231 case $CONFIG_FILES in
5232 *\'*) eval set x "$CONFIG_FILES" ;;
5233 *) set x $CONFIG_FILES ;;
5234 esac
5235 shift
5236 for mf
5237 do
5238 # Strip MF so we end up with the name of the file.
5239 mf=`echo "$mf" | sed -e 's/:.*$//'`
5240 # Check whether this is an Automake generated Makefile or not.
5241 # We used to match only the files named 'Makefile.in', but
5242 # some people rename them; so instead we look at the file content.
5243 # Grep'ing the first line is not enough: some people post-process
5244 # each Makefile.in and add a new line on top of each file to say so.
5245 # Grep'ing the whole file is not good either: AIX grep has a line
5246 # limit of 2048, but all sed's we know have understand at least 4000.
5247 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
5248 dirpart=`$as_dirname -- "$mf" ||
5249 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5250 X"$mf" : 'X\(//\)[^/]' \| \
5251 X"$mf" : 'X\(//\)$' \| \
5252 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
5253 $as_echo X"$mf" |
5254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5255 s//\1/
5256 q
5257 }
5258 /^X\(\/\/\)[^/].*/{
5259 s//\1/
5260 q
5261 }
5262 /^X\(\/\/\)$/{
5263 s//\1/
5264 q
5265 }
5266 /^X\(\/\).*/{
5267 s//\1/
5268 q
5269 }
5270 s/.*/./; q'`
5271 else
5272 continue
5273 fi
5274 # Extract the definition of DEPDIR, am__include, and am__quote
5275 # from the Makefile without running 'make'.
5276 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5277 test -z "$DEPDIR" && continue
5278 am__include=`sed -n 's/^am__include = //p' < "$mf"`
5279 test -z "$am__include" && continue
5280 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5281 # Find all dependency output files, they are included files with
5282 # $(DEPDIR) in their names. We invoke sed twice because it is the
5283 # simplest approach to changing $(DEPDIR) to its actual value in the
5284 # expansion.
5285 for file in `sed -n "
5286 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5287 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
5288 # Make sure the directory exists.
5289 test -f "$dirpart/$file" && continue
5290 fdir=`$as_dirname -- "$file" ||
5291 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5292 X"$file" : 'X\(//\)[^/]' \| \
5293 X"$file" : 'X\(//\)$' \| \
5294 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
5295 $as_echo X"$file" |
5296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5297 s//\1/
5298 q
5299 }
5300 /^X\(\/\/\)[^/].*/{
5301 s//\1/
5302 q
5303 }
5304 /^X\(\/\/\)$/{
5305 s//\1/
5306 q
5307 }
5308 /^X\(\/\).*/{
5309 s//\1/
5310 q
5311 }
5312 s/.*/./; q'`
5313 as_dir=$dirpart/$fdir; as_fn_mkdir_p
5314 # echo "creating $dirpart/$file"
5315 echo '# dummy' > "$dirpart/$file"
5316 done
5317 done
5318 }
5319 ;;
5320
5321 esac
5322 done # for ac_tag
5323
5324
5325 as_fn_exit 0
5326 _ACEOF
5327 ac_clean_files=$ac_clean_files_save
5328
5329 test $ac_write_fail = 0 ||
5330 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5331
5332
5333 # configure is writing to config.log, and then calls config.status.
5334 # config.status does its own redirection, appending to config.log.
5335 # Unfortunately, on DOS this fails, as config.log is still kept open
5336 # by configure, so config.status won't be able to write to it; its
5337 # output is simply discarded. So we exec the FD to /dev/null,
5338 # effectively closing config.log, so it can be properly (re)opened and
5339 # appended to by config.status. When coming back to configure, we
5340 # need to make the FD available again.
5341 if test "$no_create" != yes; then
5342 ac_cs_success=:
5343 ac_config_status_args=
5344 test "$silent" = yes &&
5345 ac_config_status_args="$ac_config_status_args --quiet"
5346 exec 5>/dev/null
5347 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5348 exec 5>>config.log
5349 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5350 # would make configure fail if this is the last instruction.
5351 $ac_cs_success || as_fn_exit 1
5352 fi
5353 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5355 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5356 fi
5357
5358
5359
5360
5361
5362
5363
5364
5365 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5366 if test -n "$ac_tool_prefix"; then
5367 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5368 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 case $PKG_CONFIG in
5375 [\\/]* | ?:[\\/]*)
5376 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5377 ;;
5378 *)
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH
5381 do
5382 IFS=$as_save_IFS
5383 test -z "$as_dir" && as_dir=.
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5386 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 break 2
5389 fi
5390 done
5391 done
5392 IFS=$as_save_IFS
5393
5394 ;;
5395 esac
5396 fi
5397 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5398 if test -n "$PKG_CONFIG"; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5400 $as_echo "$PKG_CONFIG" >&6; }
5401 else
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5404 fi
5405
5406
5407 fi
5408 if test -z "$ac_cv_path_PKG_CONFIG"; then
5409 ac_pt_PKG_CONFIG=$PKG_CONFIG
5410 # Extract the first word of "pkg-config", so it can be a program name with args.
5411 set dummy pkg-config; ac_word=$2
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413 $as_echo_n "checking for $ac_word... " >&6; }
5414 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 case $ac_pt_PKG_CONFIG in
5418 [\\/]* | ?:[\\/]*)
5419 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5420 ;;
5421 *)
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5424 do
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5429 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 break 2
5432 fi
5433 done
5434 done
5435 IFS=$as_save_IFS
5436
5437 ;;
5438 esac
5439 fi
5440 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5441 if test -n "$ac_pt_PKG_CONFIG"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5443 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5444 else
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5447 fi
5448
5449 if test "x$ac_pt_PKG_CONFIG" = x; then
5450 PKG_CONFIG=""
5451 else
5452 case $cross_compiling:$ac_tool_warned in
5453 yes:)
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5456 ac_tool_warned=yes ;;
5457 esac
5458 PKG_CONFIG=$ac_pt_PKG_CONFIG
5459 fi
5460 else
5461 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5462 fi
5463
5464 fi
5465 if test -n "$PKG_CONFIG"; then
5466 _pkg_min_version=0.9.0
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5468 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5469 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5471 $as_echo "yes" >&6; }
5472 else
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5475 PKG_CONFIG=""
5476 fi
5477 fi
0 AC_INIT([air-quality-sensor], [0.1.1], [air-quality-sensor@benedikt-wildenhain.de])
1 AM_INIT_AUTOMAKE([foreign -Wall -Werror])
2 AC_PROG_CC
3 AM_PROG_CC_C_O
4 PKG_CHECK_MODULES([LIBUSB1_0], [libusb-1.0])
5
6 AC_CHECK_FUNCS(getopt_long)
7
8 dnl Copyright will apply as long as these sources are in use, e.g., are
9 dnl being compiled, which is reasonable year to claim the copyright.
10 AC_DEFINE([COPYRIGHT_YEAR], [m4_esyscmd([date +%Y])], [year in copyright message])
11
12 libusb_is_old=0
13 AC_CHECK_LIB(usb-1.0, libusb_get_parent, [], [libusb_is_old=1])
14 AC_CHECK_LIB(usb-1.0, libusb_get_port_number, [], [libusb_is_old=1])
15
16 if test $libusb_is_old == 1
17 then
18 AC_DEFINE([LIBUSB_OLD], [yes], [Libusb is old and does not give information about topology of connected devices])
19 fi
20
21 AC_CONFIG_HEADERS([config.h])
22 AC_CONFIG_FILES([Makefile src/Makefile])
23 AC_OUTPUT
24 PKG_PROG_PKG_CONFIG
0 #! /bin/sh
1 # depcomp - compile a program generating dependencies as side-effects
2
3 scriptversion=2013-05-30.07; # UTC
4
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20 # As a special exception to the GNU General Public License, if you
21 # distribute this file as part of a program that contains a
22 # configuration script generated by Autoconf, you may include it under
23 # the same distribution terms that you use for the rest of that program.
24
25 # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
26
27 case $1 in
28 '')
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
32 -h | --h*)
33 cat <<\EOF
34 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
35
36 Run PROGRAMS ARGS to compile a file, generating dependencies
37 as side-effects.
38
39 Environment variables:
40 depmode Dependency tracking mode.
41 source Source file read by 'PROGRAMS ARGS'.
42 object Object file output by 'PROGRAMS ARGS'.
43 DEPDIR directory where to store dependencies.
44 depfile Dependency file to output.
45 tmpdepfile Temporary file to use when outputting dependencies.
46 libtool Whether libtool is used (yes/no).
47
48 Report bugs to <bug-automake@gnu.org>.
49 EOF
50 exit $?
51 ;;
52 -v | --v*)
53 echo "depcomp $scriptversion"
54 exit $?
55 ;;
56 esac
57
58 # Get the directory component of the given path, and save it in the
59 # global variables '$dir'. Note that this directory component will
60 # be either empty or ending with a '/' character. This is deliberate.
61 set_dir_from ()
62 {
63 case $1 in
64 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
65 *) dir=;;
66 esac
67 }
68
69 # Get the suffix-stripped basename of the given path, and save it the
70 # global variable '$base'.
71 set_base_from ()
72 {
73 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
74 }
75
76 # If no dependency file was actually created by the compiler invocation,
77 # we still have to create a dummy depfile, to avoid errors with the
78 # Makefile "include basename.Plo" scheme.
79 make_dummy_depfile ()
80 {
81 echo "#dummy" > "$depfile"
82 }
83
84 # Factor out some common post-processing of the generated depfile.
85 # Requires the auxiliary global variable '$tmpdepfile' to be set.
86 aix_post_process_depfile ()
87 {
88 # If the compiler actually managed to produce a dependency file,
89 # post-process it.
90 if test -f "$tmpdepfile"; then
91 # Each line is of the form 'foo.o: dependency.h'.
92 # Do two passes, one to just change these to
93 # $object: dependency.h
94 # and one to simply output
95 # dependency.h:
96 # which is needed to avoid the deleted-header problem.
97 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
98 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
99 } > "$depfile"
100 rm -f "$tmpdepfile"
101 else
102 make_dummy_depfile
103 fi
104 }
105
106 # A tabulation character.
107 tab=' '
108 # A newline character.
109 nl='
110 '
111 # Character ranges might be problematic outside the C locale.
112 # These definitions help.
113 upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
114 lower=abcdefghijklmnopqrstuvwxyz
115 digits=0123456789
116 alpha=${upper}${lower}
117
118 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
119 echo "depcomp: Variables source, object and depmode must be set" 1>&2
120 exit 1
121 fi
122
123 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
124 depfile=${depfile-`echo "$object" |
125 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
126 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
127
128 rm -f "$tmpdepfile"
129
130 # Avoid interferences from the environment.
131 gccflag= dashmflag=
132
133 # Some modes work just like other modes, but use different flags. We
134 # parameterize here, but still list the modes in the big case below,
135 # to make depend.m4 easier to write. Note that we *cannot* use a case
136 # here, because this file can only contain one case statement.
137 if test "$depmode" = hp; then
138 # HP compiler uses -M and no extra arg.
139 gccflag=-M
140 depmode=gcc
141 fi
142
143 if test "$depmode" = dashXmstdout; then
144 # This is just like dashmstdout with a different argument.
145 dashmflag=-xM
146 depmode=dashmstdout
147 fi
148
149 cygpath_u="cygpath -u -f -"
150 if test "$depmode" = msvcmsys; then
151 # This is just like msvisualcpp but w/o cygpath translation.
152 # Just convert the backslash-escaped backslashes to single forward
153 # slashes to satisfy depend.m4
154 cygpath_u='sed s,\\\\,/,g'
155 depmode=msvisualcpp
156 fi
157
158 if test "$depmode" = msvc7msys; then
159 # This is just like msvc7 but w/o cygpath translation.
160 # Just convert the backslash-escaped backslashes to single forward
161 # slashes to satisfy depend.m4
162 cygpath_u='sed s,\\\\,/,g'
163 depmode=msvc7
164 fi
165
166 if test "$depmode" = xlc; then
167 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
168 gccflag=-qmakedep=gcc,-MF
169 depmode=gcc
170 fi
171
172 case "$depmode" in
173 gcc3)
174 ## gcc 3 implements dependency tracking that does exactly what
175 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
176 ## it if -MD -MP comes after the -MF stuff. Hmm.
177 ## Unfortunately, FreeBSD c89 acceptance of flags depends upon
178 ## the command line argument order; so add the flags where they
179 ## appear in depend2.am. Note that the slowdown incurred here
180 ## affects only configure: in makefiles, %FASTDEP% shortcuts this.
181 for arg
182 do
183 case $arg in
184 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
185 *) set fnord "$@" "$arg" ;;
186 esac
187 shift # fnord
188 shift # $arg
189 done
190 "$@"
191 stat=$?
192 if test $stat -ne 0; then
193 rm -f "$tmpdepfile"
194 exit $stat
195 fi
196 mv "$tmpdepfile" "$depfile"
197 ;;
198
199 gcc)
200 ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
201 ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
202 ## (see the conditional assignment to $gccflag above).
203 ## There are various ways to get dependency output from gcc. Here's
204 ## why we pick this rather obscure method:
205 ## - Don't want to use -MD because we'd like the dependencies to end
206 ## up in a subdir. Having to rename by hand is ugly.
207 ## (We might end up doing this anyway to support other compilers.)
208 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
209 ## -MM, not -M (despite what the docs say). Also, it might not be
210 ## supported by the other compilers which use the 'gcc' depmode.
211 ## - Using -M directly means running the compiler twice (even worse
212 ## than renaming).
213 if test -z "$gccflag"; then
214 gccflag=-MD,
215 fi
216 "$@" -Wp,"$gccflag$tmpdepfile"
217 stat=$?
218 if test $stat -ne 0; then
219 rm -f "$tmpdepfile"
220 exit $stat
221 fi
222 rm -f "$depfile"
223 echo "$object : \\" > "$depfile"
224 # The second -e expression handles DOS-style file names with drive
225 # letters.
226 sed -e 's/^[^:]*: / /' \
227 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
228 ## This next piece of magic avoids the "deleted header file" problem.
229 ## The problem is that when a header file which appears in a .P file
230 ## is deleted, the dependency causes make to die (because there is
231 ## typically no way to rebuild the header). We avoid this by adding
232 ## dummy dependencies for each header file. Too bad gcc doesn't do
233 ## this for us directly.
234 ## Some versions of gcc put a space before the ':'. On the theory
235 ## that the space means something, we add a space to the output as
236 ## well. hp depmode also adds that space, but also prefixes the VPATH
237 ## to the object. Take care to not repeat it in the output.
238 ## Some versions of the HPUX 10.20 sed can't process this invocation
239 ## correctly. Breaking it into two sed invocations is a workaround.
240 tr ' ' "$nl" < "$tmpdepfile" \
241 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
242 | sed -e 's/$/ :/' >> "$depfile"
243 rm -f "$tmpdepfile"
244 ;;
245
246 hp)
247 # This case exists only to let depend.m4 do its work. It works by
248 # looking at the text of this script. This case will never be run,
249 # since it is checked for above.
250 exit 1
251 ;;
252
253 sgi)
254 if test "$libtool" = yes; then
255 "$@" "-Wp,-MDupdate,$tmpdepfile"
256 else
257 "$@" -MDupdate "$tmpdepfile"
258 fi
259 stat=$?
260 if test $stat -ne 0; then
261 rm -f "$tmpdepfile"
262 exit $stat
263 fi
264 rm -f "$depfile"
265
266 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
267 echo "$object : \\" > "$depfile"
268 # Clip off the initial element (the dependent). Don't try to be
269 # clever and replace this with sed code, as IRIX sed won't handle
270 # lines with more than a fixed number of characters (4096 in
271 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
272 # the IRIX cc adds comments like '#:fec' to the end of the
273 # dependency line.
274 tr ' ' "$nl" < "$tmpdepfile" \
275 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
276 | tr "$nl" ' ' >> "$depfile"
277 echo >> "$depfile"
278 # The second pass generates a dummy entry for each header file.
279 tr ' ' "$nl" < "$tmpdepfile" \
280 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
281 >> "$depfile"
282 else
283 make_dummy_depfile
284 fi
285 rm -f "$tmpdepfile"
286 ;;
287
288 xlc)
289 # This case exists only to let depend.m4 do its work. It works by
290 # looking at the text of this script. This case will never be run,
291 # since it is checked for above.
292 exit 1
293 ;;
294
295 aix)
296 # The C for AIX Compiler uses -M and outputs the dependencies
297 # in a .u file. In older versions, this file always lives in the
298 # current directory. Also, the AIX compiler puts '$object:' at the
299 # start of each line; $object doesn't have directory information.
300 # Version 6 uses the directory in both cases.
301 set_dir_from "$object"
302 set_base_from "$object"
303 if test "$libtool" = yes; then
304 tmpdepfile1=$dir$base.u
305 tmpdepfile2=$base.u
306 tmpdepfile3=$dir.libs/$base.u
307 "$@" -Wc,-M
308 else
309 tmpdepfile1=$dir$base.u
310 tmpdepfile2=$dir$base.u
311 tmpdepfile3=$dir$base.u
312 "$@" -M
313 fi
314 stat=$?
315 if test $stat -ne 0; then
316 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
317 exit $stat
318 fi
319
320 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
321 do
322 test -f "$tmpdepfile" && break
323 done
324 aix_post_process_depfile
325 ;;
326
327 tcc)
328 # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
329 # FIXME: That version still under development at the moment of writing.
330 # Make that this statement remains true also for stable, released
331 # versions.
332 # It will wrap lines (doesn't matter whether long or short) with a
333 # trailing '\', as in:
334 #
335 # foo.o : \
336 # foo.c \
337 # foo.h \
338 #
339 # It will put a trailing '\' even on the last line, and will use leading
340 # spaces rather than leading tabs (at least since its commit 0394caf7
341 # "Emit spaces for -MD").
342 "$@" -MD -MF "$tmpdepfile"
343 stat=$?
344 if test $stat -ne 0; then
345 rm -f "$tmpdepfile"
346 exit $stat
347 fi
348 rm -f "$depfile"
349 # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
350 # We have to change lines of the first kind to '$object: \'.
351 sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
352 # And for each line of the second kind, we have to emit a 'dep.h:'
353 # dummy dependency, to avoid the deleted-header problem.
354 sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
355 rm -f "$tmpdepfile"
356 ;;
357
358 ## The order of this option in the case statement is important, since the
359 ## shell code in configure will try each of these formats in the order
360 ## listed in this file. A plain '-MD' option would be understood by many
361 ## compilers, so we must ensure this comes after the gcc and icc options.
362 pgcc)
363 # Portland's C compiler understands '-MD'.
364 # Will always output deps to 'file.d' where file is the root name of the
365 # source file under compilation, even if file resides in a subdirectory.
366 # The object file name does not affect the name of the '.d' file.
367 # pgcc 10.2 will output
368 # foo.o: sub/foo.c sub/foo.h
369 # and will wrap long lines using '\' :
370 # foo.o: sub/foo.c ... \
371 # sub/foo.h ... \
372 # ...
373 set_dir_from "$object"
374 # Use the source, not the object, to determine the base name, since
375 # that's sadly what pgcc will do too.
376 set_base_from "$source"
377 tmpdepfile=$base.d
378
379 # For projects that build the same source file twice into different object
380 # files, the pgcc approach of using the *source* file root name can cause
381 # problems in parallel builds. Use a locking strategy to avoid stomping on
382 # the same $tmpdepfile.
383 lockdir=$base.d-lock
384 trap "
385 echo '$0: caught signal, cleaning up...' >&2
386 rmdir '$lockdir'
387 exit 1
388 " 1 2 13 15
389 numtries=100
390 i=$numtries
391 while test $i -gt 0; do
392 # mkdir is a portable test-and-set.
393 if mkdir "$lockdir" 2>/dev/null; then
394 # This process acquired the lock.
395 "$@" -MD
396 stat=$?
397 # Release the lock.
398 rmdir "$lockdir"
399 break
400 else
401 # If the lock is being held by a different process, wait
402 # until the winning process is done or we timeout.
403 while test -d "$lockdir" && test $i -gt 0; do
404 sleep 1
405 i=`expr $i - 1`
406 done
407 fi
408 i=`expr $i - 1`
409 done
410 trap - 1 2 13 15
411 if test $i -le 0; then
412 echo "$0: failed to acquire lock after $numtries attempts" >&2
413 echo "$0: check lockdir '$lockdir'" >&2
414 exit 1
415 fi
416
417 if test $stat -ne 0; then
418 rm -f "$tmpdepfile"
419 exit $stat
420 fi
421 rm -f "$depfile"
422 # Each line is of the form `foo.o: dependent.h',
423 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
424 # Do two passes, one to just change these to
425 # `$object: dependent.h' and one to simply `dependent.h:'.
426 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
427 # Some versions of the HPUX 10.20 sed can't process this invocation
428 # correctly. Breaking it into two sed invocations is a workaround.
429 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
430 | sed -e 's/$/ :/' >> "$depfile"
431 rm -f "$tmpdepfile"
432 ;;
433
434 hp2)
435 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
436 # compilers, which have integrated preprocessors. The correct option
437 # to use with these is +Maked; it writes dependencies to a file named
438 # 'foo.d', which lands next to the object file, wherever that
439 # happens to be.
440 # Much of this is similar to the tru64 case; see comments there.
441 set_dir_from "$object"
442 set_base_from "$object"
443 if test "$libtool" = yes; then
444 tmpdepfile1=$dir$base.d
445 tmpdepfile2=$dir.libs/$base.d
446 "$@" -Wc,+Maked
447 else
448 tmpdepfile1=$dir$base.d
449 tmpdepfile2=$dir$base.d
450 "$@" +Maked
451 fi
452 stat=$?
453 if test $stat -ne 0; then
454 rm -f "$tmpdepfile1" "$tmpdepfile2"
455 exit $stat
456 fi
457
458 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
459 do
460 test -f "$tmpdepfile" && break
461 done
462 if test -f "$tmpdepfile"; then
463 sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
464 # Add 'dependent.h:' lines.
465 sed -ne '2,${
466 s/^ *//
467 s/ \\*$//
468 s/$/:/
469 p
470 }' "$tmpdepfile" >> "$depfile"
471 else
472 make_dummy_depfile
473 fi
474 rm -f "$tmpdepfile" "$tmpdepfile2"
475 ;;
476
477 tru64)
478 # The Tru64 compiler uses -MD to generate dependencies as a side
479 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
480 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
481 # dependencies in 'foo.d' instead, so we check for that too.
482 # Subdirectories are respected.
483 set_dir_from "$object"
484 set_base_from "$object"
485
486 if test "$libtool" = yes; then
487 # Libtool generates 2 separate objects for the 2 libraries. These
488 # two compilations output dependencies in $dir.libs/$base.o.d and
489 # in $dir$base.o.d. We have to check for both files, because
490 # one of the two compilations can be disabled. We should prefer
491 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
492 # automatically cleaned when .libs/ is deleted, while ignoring
493 # the former would cause a distcleancheck panic.
494 tmpdepfile1=$dir$base.o.d # libtool 1.5
495 tmpdepfile2=$dir.libs/$base.o.d # Likewise.
496 tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
497 "$@" -Wc,-MD
498 else
499 tmpdepfile1=$dir$base.d
500 tmpdepfile2=$dir$base.d
501 tmpdepfile3=$dir$base.d
502 "$@" -MD
503 fi
504
505 stat=$?
506 if test $stat -ne 0; then
507 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
508 exit $stat
509 fi
510
511 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
512 do
513 test -f "$tmpdepfile" && break
514 done
515 # Same post-processing that is required for AIX mode.
516 aix_post_process_depfile
517 ;;
518
519 msvc7)
520 if test "$libtool" = yes; then
521 showIncludes=-Wc,-showIncludes
522 else
523 showIncludes=-showIncludes
524 fi
525 "$@" $showIncludes > "$tmpdepfile"
526 stat=$?
527 grep -v '^Note: including file: ' "$tmpdepfile"
528 if test $stat -ne 0; then
529 rm -f "$tmpdepfile"
530 exit $stat
531 fi
532 rm -f "$depfile"
533 echo "$object : \\" > "$depfile"
534 # The first sed program below extracts the file names and escapes
535 # backslashes for cygpath. The second sed program outputs the file
536 # name when reading, but also accumulates all include files in the
537 # hold buffer in order to output them again at the end. This only
538 # works with sed implementations that can handle large buffers.
539 sed < "$tmpdepfile" -n '
540 /^Note: including file: *\(.*\)/ {
541 s//\1/
542 s/\\/\\\\/g
543 p
544 }' | $cygpath_u | sort -u | sed -n '
545 s/ /\\ /g
546 s/\(.*\)/'"$tab"'\1 \\/p
547 s/.\(.*\) \\/\1:/
548 H
549 $ {
550 s/.*/'"$tab"'/
551 G
552 p
553 }' >> "$depfile"
554 echo >> "$depfile" # make sure the fragment doesn't end with a backslash
555 rm -f "$tmpdepfile"
556 ;;
557
558 msvc7msys)
559 # This case exists only to let depend.m4 do its work. It works by
560 # looking at the text of this script. This case will never be run,
561 # since it is checked for above.
562 exit 1
563 ;;
564
565 #nosideeffect)
566 # This comment above is used by automake to tell side-effect
567 # dependency tracking mechanisms from slower ones.
568
569 dashmstdout)
570 # Important note: in order to support this mode, a compiler *must*
571 # always write the preprocessed file to stdout, regardless of -o.
572 "$@" || exit $?
573
574 # Remove the call to Libtool.
575 if test "$libtool" = yes; then
576 while test "X$1" != 'X--mode=compile'; do
577 shift
578 done
579 shift
580 fi
581
582 # Remove '-o $object'.
583 IFS=" "
584 for arg
585 do
586 case $arg in
587 -o)
588 shift
589 ;;
590 $object)
591 shift
592 ;;
593 *)
594 set fnord "$@" "$arg"
595 shift # fnord
596 shift # $arg
597 ;;
598 esac
599 done
600
601 test -z "$dashmflag" && dashmflag=-M
602 # Require at least two characters before searching for ':'
603 # in the target name. This is to cope with DOS-style filenames:
604 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
605 "$@" $dashmflag |
606 sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
607 rm -f "$depfile"
608 cat < "$tmpdepfile" > "$depfile"
609 # Some versions of the HPUX 10.20 sed can't process this sed invocation
610 # correctly. Breaking it into two sed invocations is a workaround.
611 tr ' ' "$nl" < "$tmpdepfile" \
612 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
613 | sed -e 's/$/ :/' >> "$depfile"
614 rm -f "$tmpdepfile"
615 ;;
616
617 dashXmstdout)
618 # This case only exists to satisfy depend.m4. It is never actually
619 # run, as this mode is specially recognized in the preamble.
620 exit 1
621 ;;
622
623 makedepend)
624 "$@" || exit $?
625 # Remove any Libtool call
626 if test "$libtool" = yes; then
627 while test "X$1" != 'X--mode=compile'; do
628 shift
629 done
630 shift
631 fi
632 # X makedepend
633 shift
634 cleared=no eat=no
635 for arg
636 do
637 case $cleared in
638 no)
639 set ""; shift
640 cleared=yes ;;
641 esac
642 if test $eat = yes; then
643 eat=no
644 continue
645 fi
646 case "$arg" in
647 -D*|-I*)
648 set fnord "$@" "$arg"; shift ;;
649 # Strip any option that makedepend may not understand. Remove
650 # the object too, otherwise makedepend will parse it as a source file.
651 -arch)
652 eat=yes ;;
653 -*|$object)
654 ;;
655 *)
656 set fnord "$@" "$arg"; shift ;;
657 esac
658 done
659 obj_suffix=`echo "$object" | sed 's/^.*\././'`
660 touch "$tmpdepfile"
661 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
662 rm -f "$depfile"
663 # makedepend may prepend the VPATH from the source file name to the object.
664 # No need to regex-escape $object, excess matching of '.' is harmless.
665 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
666 # Some versions of the HPUX 10.20 sed can't process the last invocation
667 # correctly. Breaking it into two sed invocations is a workaround.
668 sed '1,2d' "$tmpdepfile" \
669 | tr ' ' "$nl" \
670 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
671 | sed -e 's/$/ :/' >> "$depfile"
672 rm -f "$tmpdepfile" "$tmpdepfile".bak
673 ;;
674
675 cpp)
676 # Important note: in order to support this mode, a compiler *must*
677 # always write the preprocessed file to stdout.
678 "$@" || exit $?
679
680 # Remove the call to Libtool.
681 if test "$libtool" = yes; then
682 while test "X$1" != 'X--mode=compile'; do
683 shift
684 done
685 shift
686 fi
687
688 # Remove '-o $object'.
689 IFS=" "
690 for arg
691 do
692 case $arg in
693 -o)
694 shift
695 ;;
696 $object)
697 shift
698 ;;
699 *)
700 set fnord "$@" "$arg"
701 shift # fnord
702 shift # $arg
703 ;;
704 esac
705 done
706
707 "$@" -E \
708 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
709 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
710 | sed '$ s: \\$::' > "$tmpdepfile"
711 rm -f "$depfile"
712 echo "$object : \\" > "$depfile"
713 cat < "$tmpdepfile" >> "$depfile"
714 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
715 rm -f "$tmpdepfile"
716 ;;
717
718 msvisualcpp)
719 # Important note: in order to support this mode, a compiler *must*
720 # always write the preprocessed file to stdout.
721 "$@" || exit $?
722
723 # Remove the call to Libtool.
724 if test "$libtool" = yes; then
725 while test "X$1" != 'X--mode=compile'; do
726 shift
727 done
728 shift
729 fi
730
731 IFS=" "
732 for arg
733 do
734 case "$arg" in
735 -o)
736 shift
737 ;;
738 $object)
739 shift
740 ;;
741 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
742 set fnord "$@"
743 shift
744 shift
745 ;;
746 *)
747 set fnord "$@" "$arg"
748 shift
749 shift
750 ;;
751 esac
752 done
753 "$@" -E 2>/dev/null |
754 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
755 rm -f "$depfile"
756 echo "$object : \\" > "$depfile"
757 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
758 echo "$tab" >> "$depfile"
759 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
760 rm -f "$tmpdepfile"
761 ;;
762
763 msvcmsys)
764 # This case exists only to let depend.m4 do its work. It works by
765 # looking at the text of this script. This case will never be run,
766 # since it is checked for above.
767 exit 1
768 ;;
769
770 none)
771 exec "$@"
772 ;;
773
774 *)
775 echo "Unknown depmode $depmode" 1>&2
776 exit 1
777 ;;
778 esac
779
780 exit 0
781
782 # Local Variables:
783 # mode: shell-script
784 # sh-indentation: 2
785 # eval: (add-hook 'write-file-hooks 'time-stamp)
786 # time-stamp-start: "scriptversion="
787 # time-stamp-format: "%:y-%02m-%02d.%02H"
788 # time-stamp-time-zone: "UTC"
789 # time-stamp-end: "; # UTC"
790 # End:
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2011-11-20.07; # UTC
4
5 # This originates from X11R5 (mit/util/scripts/install.sh), which was
6 # later released in X11R6 (xc/config/util/install.sh) with the
7 # following copyright and license.
8 #
9 # Copyright (C) 1994 X Consortium
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a copy
12 # of this software and associated documentation files (the "Software"), to
13 # deal in the Software without restriction, including without limitation the
14 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15 # sell copies of the Software, and to permit persons to whom the Software is
16 # furnished to do so, subject to the following conditions:
17 #
18 # The above copyright notice and this permission notice shall be included in
19 # all copies or substantial portions of the Software.
20 #
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
26 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #
28 # Except as contained in this notice, the name of the X Consortium shall not
29 # be used in advertising or otherwise to promote the sale, use or other deal-
30 # ings in this Software without prior written authorization from the X Consor-
31 # tium.
32 #
33 #
34 # FSF changes to this file are in the public domain.
35 #
36 # Calling this script install-sh is preferred over install.sh, to prevent
37 # 'make' implicit rules from creating a file called install from it
38 # when there is no Makefile.
39 #
40 # This script is compatible with the BSD install script, but was written
41 # from scratch.
42
43 nl='
44 '
45 IFS=" "" $nl"
46
47 # set DOITPROG to echo to test this script
48
49 # Don't use :- since 4.3BSD and earlier shells don't like it.
50 doit=${DOITPROG-}
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
56
57 # Put in absolute file names if you don't have them in your path;
58 # or use environment vars.
59
60 chgrpprog=${CHGRPPROG-chgrp}
61 chmodprog=${CHMODPROG-chmod}
62 chownprog=${CHOWNPROG-chown}
63 cmpprog=${CMPPROG-cmp}
64 cpprog=${CPPROG-cp}
65 mkdirprog=${MKDIRPROG-mkdir}
66 mvprog=${MVPROG-mv}
67 rmprog=${RMPROG-rm}
68 stripprog=${STRIPPROG-strip}
69
70 posix_glob='?'
71 initialize_posix_glob='
72 test "$posix_glob" != "?" || {
73 if (set -f) 2>/dev/null; then
74 posix_glob=
75 else
76 posix_glob=:
77 fi
78 }
79 '
80
81 posix_mkdir=
82
83 # Desired mode of installed file.
84 mode=0755
85
86 chgrpcmd=
87 chmodcmd=$chmodprog
88 chowncmd=
89 mvcmd=$mvprog
90 rmcmd="$rmprog -f"
91 stripcmd=
92
93 src=
94 dst=
95 dir_arg=
96 dst_arg=
97
98 copy_on_change=false
99 no_target_directory=
100
101 usage="\
102 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
103 or: $0 [OPTION]... SRCFILES... DIRECTORY
104 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
105 or: $0 [OPTION]... -d DIRECTORIES...
106
107 In the 1st form, copy SRCFILE to DSTFILE.
108 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
109 In the 4th, create DIRECTORIES.
110
111 Options:
112 --help display this help and exit.
113 --version display version info and exit.
114
115 -c (ignored)
116 -C install only if different (preserve the last data modification time)
117 -d create directories instead of installing files.
118 -g GROUP $chgrpprog installed files to GROUP.
119 -m MODE $chmodprog installed files to MODE.
120 -o USER $chownprog installed files to USER.
121 -s $stripprog installed files.
122 -t DIRECTORY install into DIRECTORY.
123 -T report an error if DSTFILE is a directory.
124
125 Environment variables override the default commands:
126 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
127 RMPROG STRIPPROG
128 "
129
130 while test $# -ne 0; do
131 case $1 in
132 -c) ;;
133
134 -C) copy_on_change=true;;
135
136 -d) dir_arg=true;;
137
138 -g) chgrpcmd="$chgrpprog $2"
139 shift;;
140
141 --help) echo "$usage"; exit $?;;
142
143 -m) mode=$2
144 case $mode in
145 *' '* | *' '* | *'
146 '* | *'*'* | *'?'* | *'['*)
147 echo "$0: invalid mode: $mode" >&2
148 exit 1;;
149 esac
150 shift;;
151
152 -o) chowncmd="$chownprog $2"
153 shift;;
154
155 -s) stripcmd=$stripprog;;
156
157 -t) dst_arg=$2
158 # Protect names problematic for 'test' and other utilities.
159 case $dst_arg in
160 -* | [=\(\)!]) dst_arg=./$dst_arg;;
161 esac
162 shift;;
163
164 -T) no_target_directory=true;;
165
166 --version) echo "$0 $scriptversion"; exit $?;;
167
168 --) shift
169 break;;
170
171 -*) echo "$0: invalid option: $1" >&2
172 exit 1;;
173
174 *) break;;
175 esac
176 shift
177 done
178
179 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
180 # When -d is used, all remaining arguments are directories to create.
181 # When -t is used, the destination is already specified.
182 # Otherwise, the last argument is the destination. Remove it from $@.
183 for arg
184 do
185 if test -n "$dst_arg"; then
186 # $@ is not empty: it contains at least $arg.
187 set fnord "$@" "$dst_arg"
188 shift # fnord
189 fi
190 shift # arg
191 dst_arg=$arg
192 # Protect names problematic for 'test' and other utilities.
193 case $dst_arg in
194 -* | [=\(\)!]) dst_arg=./$dst_arg;;
195 esac
196 done
197 fi
198
199 if test $# -eq 0; then
200 if test -z "$dir_arg"; then
201 echo "$0: no input file specified." >&2
202 exit 1
203 fi
204 # It's OK to call 'install-sh -d' without argument.
205 # This can happen when creating conditional directories.
206 exit 0
207 fi
208
209 if test -z "$dir_arg"; then
210 do_exit='(exit $ret); exit $ret'
211 trap "ret=129; $do_exit" 1
212 trap "ret=130; $do_exit" 2
213 trap "ret=141; $do_exit" 13
214 trap "ret=143; $do_exit" 15
215
216 # Set umask so as not to create temps with too-generous modes.
217 # However, 'strip' requires both read and write access to temps.
218 case $mode in
219 # Optimize common cases.
220 *644) cp_umask=133;;
221 *755) cp_umask=22;;
222
223 *[0-7])
224 if test -z "$stripcmd"; then
225 u_plus_rw=
226 else
227 u_plus_rw='% 200'
228 fi
229 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
230 *)
231 if test -z "$stripcmd"; then
232 u_plus_rw=
233 else
234 u_plus_rw=,u+rw
235 fi
236 cp_umask=$mode$u_plus_rw;;
237 esac
238 fi
239
240 for src
241 do
242 # Protect names problematic for 'test' and other utilities.
243 case $src in
244 -* | [=\(\)!]) src=./$src;;
245 esac
246
247 if test -n "$dir_arg"; then
248 dst=$src
249 dstdir=$dst
250 test -d "$dstdir"
251 dstdir_status=$?
252 else
253
254 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
255 # might cause directories to be created, which would be especially bad
256 # if $src (and thus $dsttmp) contains '*'.
257 if test ! -f "$src" && test ! -d "$src"; then
258 echo "$0: $src does not exist." >&2
259 exit 1
260 fi
261
262 if test -z "$dst_arg"; then
263 echo "$0: no destination specified." >&2
264 exit 1
265 fi
266 dst=$dst_arg
267
268 # If destination is a directory, append the input filename; won't work
269 # if double slashes aren't ignored.
270 if test -d "$dst"; then
271 if test -n "$no_target_directory"; then
272 echo "$0: $dst_arg: Is a directory" >&2
273 exit 1
274 fi
275 dstdir=$dst
276 dst=$dstdir/`basename "$src"`
277 dstdir_status=0
278 else
279 # Prefer dirname, but fall back on a substitute if dirname fails.
280 dstdir=`
281 (dirname "$dst") 2>/dev/null ||
282 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
283 X"$dst" : 'X\(//\)[^/]' \| \
284 X"$dst" : 'X\(//\)$' \| \
285 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
286 echo X"$dst" |
287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
288 s//\1/
289 q
290 }
291 /^X\(\/\/\)[^/].*/{
292 s//\1/
293 q
294 }
295 /^X\(\/\/\)$/{
296 s//\1/
297 q
298 }
299 /^X\(\/\).*/{
300 s//\1/
301 q
302 }
303 s/.*/./; q'
304 `
305
306 test -d "$dstdir"
307 dstdir_status=$?
308 fi
309 fi
310
311 obsolete_mkdir_used=false
312
313 if test $dstdir_status != 0; then
314 case $posix_mkdir in
315 '')
316 # Create intermediate dirs using mode 755 as modified by the umask.
317 # This is like FreeBSD 'install' as of 1997-10-28.
318 umask=`umask`
319 case $stripcmd.$umask in
320 # Optimize common cases.
321 *[2367][2367]) mkdir_umask=$umask;;
322 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
323
324 *[0-7])
325 mkdir_umask=`expr $umask + 22 \
326 - $umask % 100 % 40 + $umask % 20 \
327 - $umask % 10 % 4 + $umask % 2
328 `;;
329 *) mkdir_umask=$umask,go-w;;
330 esac
331
332 # With -d, create the new directory with the user-specified mode.
333 # Otherwise, rely on $mkdir_umask.
334 if test -n "$dir_arg"; then
335 mkdir_mode=-m$mode
336 else
337 mkdir_mode=
338 fi
339
340 posix_mkdir=false
341 case $umask in
342 *[123567][0-7][0-7])
343 # POSIX mkdir -p sets u+wx bits regardless of umask, which
344 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
345 ;;
346 *)
347 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
348 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
349
350 if (umask $mkdir_umask &&
351 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
352 then
353 if test -z "$dir_arg" || {
354 # Check for POSIX incompatibilities with -m.
355 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
356 # other-writable bit of parent directory when it shouldn't.
357 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
358 ls_ld_tmpdir=`ls -ld "$tmpdir"`
359 case $ls_ld_tmpdir in
360 d????-?r-*) different_mode=700;;
361 d????-?--*) different_mode=755;;
362 *) false;;
363 esac &&
364 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
365 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
366 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
367 }
368 }
369 then posix_mkdir=:
370 fi
371 rmdir "$tmpdir/d" "$tmpdir"
372 else
373 # Remove any dirs left behind by ancient mkdir implementations.
374 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
375 fi
376 trap '' 0;;
377 esac;;
378 esac
379
380 if
381 $posix_mkdir && (
382 umask $mkdir_umask &&
383 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
384 )
385 then :
386 else
387
388 # The umask is ridiculous, or mkdir does not conform to POSIX,
389 # or it failed possibly due to a race condition. Create the
390 # directory the slow way, step by step, checking for races as we go.
391
392 case $dstdir in
393 /*) prefix='/';;
394 [-=\(\)!]*) prefix='./';;
395 *) prefix='';;
396 esac
397
398 eval "$initialize_posix_glob"
399
400 oIFS=$IFS
401 IFS=/
402 $posix_glob set -f
403 set fnord $dstdir
404 shift
405 $posix_glob set +f
406 IFS=$oIFS
407
408 prefixes=
409
410 for d
411 do
412 test X"$d" = X && continue
413
414 prefix=$prefix$d
415 if test -d "$prefix"; then
416 prefixes=
417 else
418 if $posix_mkdir; then
419 (umask=$mkdir_umask &&
420 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
421 # Don't fail if two instances are running concurrently.
422 test -d "$prefix" || exit 1
423 else
424 case $prefix in
425 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
426 *) qprefix=$prefix;;
427 esac
428 prefixes="$prefixes '$qprefix'"
429 fi
430 fi
431 prefix=$prefix/
432 done
433
434 if test -n "$prefixes"; then
435 # Don't fail if two instances are running concurrently.
436 (umask $mkdir_umask &&
437 eval "\$doit_exec \$mkdirprog $prefixes") ||
438 test -d "$dstdir" || exit 1
439 obsolete_mkdir_used=true
440 fi
441 fi
442 fi
443
444 if test -n "$dir_arg"; then
445 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
446 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
447 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
448 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
449 else
450
451 # Make a couple of temp file names in the proper directory.
452 dsttmp=$dstdir/_inst.$$_
453 rmtmp=$dstdir/_rm.$$_
454
455 # Trap to clean up those temp files at exit.
456 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
457
458 # Copy the file name to the temp name.
459 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
460
461 # and set any options; do chmod last to preserve setuid bits.
462 #
463 # If any of these fail, we abort the whole thing. If we want to
464 # ignore errors from any of these, just make sure not to ignore
465 # errors from the above "$doit $cpprog $src $dsttmp" command.
466 #
467 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
468 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
469 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
470 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
471
472 # If -C, don't bother to copy if it wouldn't change the file.
473 if $copy_on_change &&
474 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
475 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
476
477 eval "$initialize_posix_glob" &&
478 $posix_glob set -f &&
479 set X $old && old=:$2:$4:$5:$6 &&
480 set X $new && new=:$2:$4:$5:$6 &&
481 $posix_glob set +f &&
482
483 test "$old" = "$new" &&
484 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
485 then
486 rm -f "$dsttmp"
487 else
488 # Rename the file to the real destination.
489 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
490
491 # The rename failed, perhaps because mv can't rename something else
492 # to itself, or perhaps because mv is so ancient that it does not
493 # support -f.
494 {
495 # Now remove or move aside any old file at destination location.
496 # We try this two ways since rm can't unlink itself on some
497 # systems and the destination file might be busy for other
498 # reasons. In this case, the final cleanup might fail but the new
499 # file should still install successfully.
500 {
501 test ! -f "$dst" ||
502 $doit $rmcmd -f "$dst" 2>/dev/null ||
503 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
504 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
505 } ||
506 { echo "$0: cannot unlink or rename $dst" >&2
507 (exit 1); exit 1
508 }
509 } &&
510
511 # Now rename the file to the real destination.
512 $doit $mvcmd "$dsttmp" "$dst"
513 }
514 fi || exit 1
515
516 trap '' 0
517 fi
518 done
519
520 # Local variables:
521 # eval: (add-hook 'write-file-hooks 'time-stamp)
522 # time-stamp-start: "scriptversion="
523 # time-stamp-format: "%:y-%02m-%02d.%02H"
524 # time-stamp-time-zone: "UTC"
525 # time-stamp-end: "; # UTC"
526 # End:
0 #! /bin/sh
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2013-10-28.13; # UTC
4
5 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
6 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
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 if test $# -eq 0; then
27 echo 1>&2 "Try '$0 --help' for more information"
28 exit 1
29 fi
30
31 case $1 in
32
33 --is-lightweight)
34 # Used by our autoconf macros to check whether the available missing
35 # script is modern enough.
36 exit 0
37 ;;
38
39 --run)
40 # Back-compat with the calling convention used by older automake.
41 shift
42 ;;
43
44 -h|--h|--he|--hel|--help)
45 echo "\
46 $0 [OPTION]... PROGRAM [ARGUMENT]...
47
48 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
49 to PROGRAM being missing or too old.
50
51 Options:
52 -h, --help display this help and exit
53 -v, --version output version information and exit
54
55 Supported PROGRAM values:
56 aclocal autoconf autoheader autom4te automake makeinfo
57 bison yacc flex lex help2man
58
59 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
60 'g' are ignored when checking the name.
61
62 Send bug reports to <bug-automake@gnu.org>."
63 exit $?
64 ;;
65
66 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
67 echo "missing $scriptversion (GNU Automake)"
68 exit $?
69 ;;
70
71 -*)
72 echo 1>&2 "$0: unknown '$1' option"
73 echo 1>&2 "Try '$0 --help' for more information"
74 exit 1
75 ;;
76
77 esac
78
79 # Run the given program, remember its exit status.
80 "$@"; st=$?
81
82 # If it succeeded, we are done.
83 test $st -eq 0 && exit 0
84
85 # Also exit now if we it failed (or wasn't found), and '--version' was
86 # passed; such an option is passed most likely to detect whether the
87 # program is present and works.
88 case $2 in --version|--help) exit $st;; esac
89
90 # Exit code 63 means version mismatch. This often happens when the user
91 # tries to use an ancient version of a tool on a file that requires a
92 # minimum version.
93 if test $st -eq 63; then
94 msg="probably too old"
95 elif test $st -eq 127; then
96 # Program was missing.
97 msg="missing on your system"
98 else
99 # Program was found and executed, but failed. Give up.
100 exit $st
101 fi
102
103 perl_URL=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://www.gnu.org/software
106
107 program_details ()
108 {
109 case $1 in
110 aclocal|automake)
111 echo "The '$1' program is part of the GNU Automake package:"
112 echo "<$gnu_software_URL/automake>"
113 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
114 echo "<$gnu_software_URL/autoconf>"
115 echo "<$gnu_software_URL/m4/>"
116 echo "<$perl_URL>"
117 ;;
118 autoconf|autom4te|autoheader)
119 echo "The '$1' program is part of the GNU Autoconf package:"
120 echo "<$gnu_software_URL/autoconf/>"
121 echo "It also requires GNU m4 and Perl in order to run:"
122 echo "<$gnu_software_URL/m4/>"
123 echo "<$perl_URL>"
124 ;;
125 esac
126 }
127
128 give_advice ()
129 {
130 # Normalize program name to check for.
131 normalized_program=`echo "$1" | sed '
132 s/^gnu-//; t
133 s/^gnu//; t
134 s/^g//; t'`
135
136 printf '%s\n' "'$1' is $msg."
137
138 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
139 case $normalized_program in
140 autoconf*)
141 echo "You should only need it if you modified 'configure.ac',"
142 echo "or m4 files included by it."
143 program_details 'autoconf'
144 ;;
145 autoheader*)
146 echo "You should only need it if you modified 'acconfig.h' or"
147 echo "$configure_deps."
148 program_details 'autoheader'
149 ;;
150 automake*)
151 echo "You should only need it if you modified 'Makefile.am' or"
152 echo "$configure_deps."
153 program_details 'automake'
154 ;;
155 aclocal*)
156 echo "You should only need it if you modified 'acinclude.m4' or"
157 echo "$configure_deps."
158 program_details 'aclocal'
159 ;;
160 autom4te*)
161 echo "You might have modified some maintainer files that require"
162 echo "the 'autom4te' program to be rebuilt."
163 program_details 'autom4te'
164 ;;
165 bison*|yacc*)
166 echo "You should only need it if you modified a '.y' file."
167 echo "You may want to install the GNU Bison package:"
168 echo "<$gnu_software_URL/bison/>"
169 ;;
170 lex*|flex*)
171 echo "You should only need it if you modified a '.l' file."
172 echo "You may want to install the Fast Lexical Analyzer package:"
173 echo "<$flex_URL>"
174 ;;
175 help2man*)
176 echo "You should only need it if you modified a dependency" \
177 "of a man page."
178 echo "You may want to install the GNU Help2man package:"
179 echo "<$gnu_software_URL/help2man/>"
180 ;;
181 makeinfo*)
182 echo "You should only need it if you modified a '.texi' file, or"
183 echo "any other file indirectly affecting the aspect of the manual."
184 echo "You might want to install the Texinfo package:"
185 echo "<$gnu_software_URL/texinfo/>"
186 echo "The spurious makeinfo call might also be the consequence of"
187 echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
188 echo "want to install GNU make:"
189 echo "<$gnu_software_URL/make/>"
190 ;;
191 *)
192 echo "You might have modified some files without having the proper"
193 echo "tools for further handling them. Check the 'README' file, it"
194 echo "often tells you about the needed prerequisites for installing"
195 echo "this package. You may also peek at any GNU archive site, in"
196 echo "case some other package contains this missing '$1' program."
197 ;;
198 esac
199 }
200
201 give_advice "$1" | sed -e '1s/^/WARNING: /' \
202 -e '2,$s/^/ /' >&2
203
204 # Propagate the correct exit status (expected to be 127 for a program
205 # not found, 63 for a program that failed due to version mismatch).
206 exit $st
207
208 # Local variables:
209 # eval: (add-hook 'write-file-hooks 'time-stamp)
210 # time-stamp-start: "scriptversion="
211 # time-stamp-format: "%:y-%02m-%02d.%02H"
212 # time-stamp-time-zone: "UTC"
213 # time-stamp-end: "; # UTC"
214 # End:
0 bin_PROGRAMS = air-quality-sensor
1 man_MANS = air-quality-sensor.1
2 EXTRA_DIST = $(man_MANS)
3 air_quality_sensor_CFLAGS = $(LIBUSB1_0_CFLAGS)
4 air_quality_sensor_LDADD = $(LIBUSB1_0_LIBS)
5 air_quality_sensor_SOURCES = air10.c
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
5 # This Makefile.in 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 @SET_MAKE@
15
16 VPATH = @srcdir@
17 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18 am__make_running_with_option = \
19 case $${target_option-} in \
20 ?) ;; \
21 *) echo "am__make_running_with_option: internal error: invalid" \
22 "target option '$${target_option-}' specified" >&2; \
23 exit 1;; \
24 esac; \
25 has_opt=no; \
26 sane_makeflags=$$MAKEFLAGS; \
27 if $(am__is_gnu_make); then \
28 sane_makeflags=$$MFLAGS; \
29 else \
30 case $$MAKEFLAGS in \
31 *\\[\ \ ]*) \
32 bs=\\; \
33 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
34 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
35 esac; \
36 fi; \
37 skip_next=no; \
38 strip_trailopt () \
39 { \
40 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
41 }; \
42 for flg in $$sane_makeflags; do \
43 test $$skip_next = yes && { skip_next=no; continue; }; \
44 case $$flg in \
45 *=*|--*) continue;; \
46 -*I) strip_trailopt 'I'; skip_next=yes;; \
47 -*I?*) strip_trailopt 'I';; \
48 -*O) strip_trailopt 'O'; skip_next=yes;; \
49 -*O?*) strip_trailopt 'O';; \
50 -*l) strip_trailopt 'l'; skip_next=yes;; \
51 -*l?*) strip_trailopt 'l';; \
52 -[dEDm]) skip_next=yes;; \
53 -[JT]) skip_next=yes;; \
54 esac; \
55 case $$flg in \
56 *$$target_option*) has_opt=yes; break;; \
57 esac; \
58 done; \
59 test $$has_opt = yes
60 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
61 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
62 pkgdatadir = $(datadir)/@PACKAGE@
63 pkgincludedir = $(includedir)/@PACKAGE@
64 pkglibdir = $(libdir)/@PACKAGE@
65 pkglibexecdir = $(libexecdir)/@PACKAGE@
66 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
67 install_sh_DATA = $(install_sh) -c -m 644
68 install_sh_PROGRAM = $(install_sh) -c
69 install_sh_SCRIPT = $(install_sh) -c
70 INSTALL_HEADER = $(INSTALL_DATA)
71 transform = $(program_transform_name)
72 NORMAL_INSTALL = :
73 PRE_INSTALL = :
74 POST_INSTALL = :
75 NORMAL_UNINSTALL = :
76 PRE_UNINSTALL = :
77 POST_UNINSTALL = :
78 bin_PROGRAMS = air-quality-sensor$(EXEEXT)
79 subdir = src
80 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
81 $(top_srcdir)/depcomp
82 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
83 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
84 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
85 $(ACLOCAL_M4)
86 mkinstalldirs = $(install_sh) -d
87 CONFIG_HEADER = $(top_builddir)/config.h
88 CONFIG_CLEAN_FILES =
89 CONFIG_CLEAN_VPATH_FILES =
90 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"
91 PROGRAMS = $(bin_PROGRAMS)
92 am_air_quality_sensor_OBJECTS = air_quality_sensor-air10.$(OBJEXT)
93 air_quality_sensor_OBJECTS = $(am_air_quality_sensor_OBJECTS)
94 am__DEPENDENCIES_1 =
95 air_quality_sensor_DEPENDENCIES = $(am__DEPENDENCIES_1)
96 air_quality_sensor_LINK = $(CCLD) $(air_quality_sensor_CFLAGS) \
97 $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
98 AM_V_P = $(am__v_P_@AM_V@)
99 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
100 am__v_P_0 = false
101 am__v_P_1 = :
102 AM_V_GEN = $(am__v_GEN_@AM_V@)
103 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
104 am__v_GEN_0 = @echo " GEN " $@;
105 am__v_GEN_1 =
106 AM_V_at = $(am__v_at_@AM_V@)
107 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
108 am__v_at_0 = @
109 am__v_at_1 =
110 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
111 depcomp = $(SHELL) $(top_srcdir)/depcomp
112 am__depfiles_maybe = depfiles
113 am__mv = mv -f
114 AM_V_lt = $(am__v_lt_@AM_V@)
115 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
116 am__v_lt_0 = --silent
117 am__v_lt_1 =
118 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
119 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
120 AM_V_CC = $(am__v_CC_@AM_V@)
121 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
122 am__v_CC_0 = @echo " CC " $@;
123 am__v_CC_1 =
124 CCLD = $(CC)
125 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
126 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
127 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
128 am__v_CCLD_0 = @echo " CCLD " $@;
129 am__v_CCLD_1 =
130 SOURCES = $(air_quality_sensor_SOURCES)
131 DIST_SOURCES = $(air_quality_sensor_SOURCES)
132 am__can_run_installinfo = \
133 case $$AM_UPDATE_INFO_DIR in \
134 n|no|NO) false;; \
135 *) (install-info --version) >/dev/null 2>&1;; \
136 esac
137 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
138 am__vpath_adj = case $$p in \
139 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
140 *) f=$$p;; \
141 esac;
142 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
143 am__install_max = 40
144 am__nobase_strip_setup = \
145 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
146 am__nobase_strip = \
147 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
148 am__nobase_list = $(am__nobase_strip_setup); \
149 for p in $$list; do echo "$$p $$p"; done | \
150 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
151 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
152 if (++n[$$2] == $(am__install_max)) \
153 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
154 END { for (dir in files) print dir, files[dir] }'
155 am__base_list = \
156 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
157 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
158 am__uninstall_files_from_dir = { \
159 test -z "$$files" \
160 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
161 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
162 $(am__cd) "$$dir" && rm -f $$files; }; \
163 }
164 man1dir = $(mandir)/man1
165 NROFF = nroff
166 MANS = $(man_MANS)
167 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
168 # Read a list of newline-separated strings from the standard input,
169 # and print each of them once, without duplicates. Input order is
170 # *not* preserved.
171 am__uniquify_input = $(AWK) '\
172 BEGIN { nonempty = 0; } \
173 { items[$$0] = 1; nonempty = 1; } \
174 END { if (nonempty) { for (i in items) print i; }; } \
175 '
176 # Make sure the list of sources is unique. This is necessary because,
177 # e.g., the same source file might be shared among _SOURCES variables
178 # for different programs/libraries.
179 am__define_uniq_tagged_files = \
180 list='$(am__tagged_files)'; \
181 unique=`for i in $$list; do \
182 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
183 done | $(am__uniquify_input)`
184 ETAGS = etags
185 CTAGS = ctags
186 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
187 ACLOCAL = @ACLOCAL@
188 AMTAR = @AMTAR@
189 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
190 AUTOCONF = @AUTOCONF@
191 AUTOHEADER = @AUTOHEADER@
192 AUTOMAKE = @AUTOMAKE@
193 AWK = @AWK@
194 CC = @CC@
195 CCDEPMODE = @CCDEPMODE@
196 CFLAGS = @CFLAGS@
197 CPPFLAGS = @CPPFLAGS@
198 CYGPATH_W = @CYGPATH_W@
199 DEFS = @DEFS@
200 DEPDIR = @DEPDIR@
201 ECHO_C = @ECHO_C@
202 ECHO_N = @ECHO_N@
203 ECHO_T = @ECHO_T@
204 EXEEXT = @EXEEXT@
205 INSTALL = @INSTALL@
206 INSTALL_DATA = @INSTALL_DATA@
207 INSTALL_PROGRAM = @INSTALL_PROGRAM@
208 INSTALL_SCRIPT = @INSTALL_SCRIPT@
209 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
210 LDFLAGS = @LDFLAGS@
211 LIBOBJS = @LIBOBJS@
212 LIBS = @LIBS@
213 LIBUSB1_0_CFLAGS = @LIBUSB1_0_CFLAGS@
214 LIBUSB1_0_LIBS = @LIBUSB1_0_LIBS@
215 LTLIBOBJS = @LTLIBOBJS@
216 MAKEINFO = @MAKEINFO@
217 MKDIR_P = @MKDIR_P@
218 OBJEXT = @OBJEXT@
219 PACKAGE = @PACKAGE@
220 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
221 PACKAGE_NAME = @PACKAGE_NAME@
222 PACKAGE_STRING = @PACKAGE_STRING@
223 PACKAGE_TARNAME = @PACKAGE_TARNAME@
224 PACKAGE_URL = @PACKAGE_URL@
225 PACKAGE_VERSION = @PACKAGE_VERSION@
226 PATH_SEPARATOR = @PATH_SEPARATOR@
227 PKG_CONFIG = @PKG_CONFIG@
228 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
229 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
230 SET_MAKE = @SET_MAKE@
231 SHELL = @SHELL@
232 STRIP = @STRIP@
233 VERSION = @VERSION@
234 abs_builddir = @abs_builddir@
235 abs_srcdir = @abs_srcdir@
236 abs_top_builddir = @abs_top_builddir@
237 abs_top_srcdir = @abs_top_srcdir@
238 ac_ct_CC = @ac_ct_CC@
239 am__include = @am__include@
240 am__leading_dot = @am__leading_dot@
241 am__quote = @am__quote@
242 am__tar = @am__tar@
243 am__untar = @am__untar@
244 bindir = @bindir@
245 build_alias = @build_alias@
246 builddir = @builddir@
247 datadir = @datadir@
248 datarootdir = @datarootdir@
249 docdir = @docdir@
250 dvidir = @dvidir@
251 exec_prefix = @exec_prefix@
252 host_alias = @host_alias@
253 htmldir = @htmldir@
254 includedir = @includedir@
255 infodir = @infodir@
256 install_sh = @install_sh@
257 libdir = @libdir@
258 libexecdir = @libexecdir@
259 localedir = @localedir@
260 localstatedir = @localstatedir@
261 mandir = @mandir@
262 mkdir_p = @mkdir_p@
263 oldincludedir = @oldincludedir@
264 pdfdir = @pdfdir@
265 prefix = @prefix@
266 program_transform_name = @program_transform_name@
267 psdir = @psdir@
268 sbindir = @sbindir@
269 sharedstatedir = @sharedstatedir@
270 srcdir = @srcdir@
271 sysconfdir = @sysconfdir@
272 target_alias = @target_alias@
273 top_build_prefix = @top_build_prefix@
274 top_builddir = @top_builddir@
275 top_srcdir = @top_srcdir@
276 man_MANS = air-quality-sensor.1
277 EXTRA_DIST = $(man_MANS)
278 air_quality_sensor_CFLAGS = $(LIBUSB1_0_CFLAGS)
279 air_quality_sensor_LDADD = $(LIBUSB1_0_LIBS)
280 air_quality_sensor_SOURCES = air10.c
281 all: all-am
282
283 .SUFFIXES:
284 .SUFFIXES: .c .o .obj
285 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
286 @for dep in $?; do \
287 case '$(am__configure_deps)' in \
288 *$$dep*) \
289 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
290 && { if test -f $@; then exit 0; else break; fi; }; \
291 exit 1;; \
292 esac; \
293 done; \
294 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
295 $(am__cd) $(top_srcdir) && \
296 $(AUTOMAKE) --foreign src/Makefile
297 .PRECIOUS: Makefile
298 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
299 @case '$?' in \
300 *config.status*) \
301 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
302 *) \
303 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
304 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
305 esac;
306
307 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
308 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
309
310 $(top_srcdir)/configure: $(am__configure_deps)
311 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
312 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
313 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
314 $(am__aclocal_m4_deps):
315 install-binPROGRAMS: $(bin_PROGRAMS)
316 @$(NORMAL_INSTALL)
317 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
318 if test -n "$$list"; then \
319 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
320 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
321 fi; \
322 for p in $$list; do echo "$$p $$p"; done | \
323 sed 's/$(EXEEXT)$$//' | \
324 while read p p1; do if test -f $$p \
325 ; then echo "$$p"; echo "$$p"; else :; fi; \
326 done | \
327 sed -e 'p;s,.*/,,;n;h' \
328 -e 's|.*|.|' \
329 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
330 sed 'N;N;N;s,\n, ,g' | \
331 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
332 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
333 if ($$2 == $$4) files[d] = files[d] " " $$1; \
334 else { print "f", $$3 "/" $$4, $$1; } } \
335 END { for (d in files) print "f", d, files[d] }' | \
336 while read type dir files; do \
337 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
338 test -z "$$files" || { \
339 echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
340 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
341 } \
342 ; done
343
344 uninstall-binPROGRAMS:
345 @$(NORMAL_UNINSTALL)
346 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
347 files=`for p in $$list; do echo "$$p"; done | \
348 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
349 -e 's/$$/$(EXEEXT)/' \
350 `; \
351 test -n "$$list" || exit 0; \
352 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
353 cd "$(DESTDIR)$(bindir)" && rm -f $$files
354
355 clean-binPROGRAMS:
356 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
357
358 air-quality-sensor$(EXEEXT): $(air_quality_sensor_OBJECTS) $(air_quality_sensor_DEPENDENCIES) $(EXTRA_air_quality_sensor_DEPENDENCIES)
359 @rm -f air-quality-sensor$(EXEEXT)
360 $(AM_V_CCLD)$(air_quality_sensor_LINK) $(air_quality_sensor_OBJECTS) $(air_quality_sensor_LDADD) $(LIBS)
361
362 mostlyclean-compile:
363 -rm -f *.$(OBJEXT)
364
365 distclean-compile:
366 -rm -f *.tab.c
367
368 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/air_quality_sensor-air10.Po@am__quote@
369
370 .c.o:
371 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
372 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
373 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
374 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
375 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
376
377 .c.obj:
378 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
379 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
380 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
381 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
382 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
383
384 air_quality_sensor-air10.o: air10.c
385 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(air_quality_sensor_CFLAGS) $(CFLAGS) -MT air_quality_sensor-air10.o -MD -MP -MF $(DEPDIR)/air_quality_sensor-air10.Tpo -c -o air_quality_sensor-air10.o `test -f 'air10.c' || echo '$(srcdir)/'`air10.c
386 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/air_quality_sensor-air10.Tpo $(DEPDIR)/air_quality_sensor-air10.Po
387 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='air10.c' object='air_quality_sensor-air10.o' libtool=no @AMDEPBACKSLASH@
388 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
389 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(air_quality_sensor_CFLAGS) $(CFLAGS) -c -o air_quality_sensor-air10.o `test -f 'air10.c' || echo '$(srcdir)/'`air10.c
390
391 air_quality_sensor-air10.obj: air10.c
392 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(air_quality_sensor_CFLAGS) $(CFLAGS) -MT air_quality_sensor-air10.obj -MD -MP -MF $(DEPDIR)/air_quality_sensor-air10.Tpo -c -o air_quality_sensor-air10.obj `if test -f 'air10.c'; then $(CYGPATH_W) 'air10.c'; else $(CYGPATH_W) '$(srcdir)/air10.c'; fi`
393 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/air_quality_sensor-air10.Tpo $(DEPDIR)/air_quality_sensor-air10.Po
394 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='air10.c' object='air_quality_sensor-air10.obj' libtool=no @AMDEPBACKSLASH@
395 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
396 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(air_quality_sensor_CFLAGS) $(CFLAGS) -c -o air_quality_sensor-air10.obj `if test -f 'air10.c'; then $(CYGPATH_W) 'air10.c'; else $(CYGPATH_W) '$(srcdir)/air10.c'; fi`
397 install-man1: $(man_MANS)
398 @$(NORMAL_INSTALL)
399 @list1=''; \
400 list2='$(man_MANS)'; \
401 test -n "$(man1dir)" \
402 && test -n "`echo $$list1$$list2`" \
403 || exit 0; \
404 echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
405 $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
406 { for i in $$list1; do echo "$$i"; done; \
407 if test -n "$$list2"; then \
408 for i in $$list2; do echo "$$i"; done \
409 | sed -n '/\.1[a-z]*$$/p'; \
410 fi; \
411 } | while read p; do \
412 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
413 echo "$$d$$p"; echo "$$p"; \
414 done | \
415 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
416 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
417 sed 'N;N;s,\n, ,g' | { \
418 list=; while read file base inst; do \
419 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
420 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
421 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
422 fi; \
423 done; \
424 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
425 while read files; do \
426 test -z "$$files" || { \
427 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
428 $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
429 done; }
430
431 uninstall-man1:
432 @$(NORMAL_UNINSTALL)
433 @list=''; test -n "$(man1dir)" || exit 0; \
434 files=`{ for i in $$list; do echo "$$i"; done; \
435 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
436 sed -n '/\.1[a-z]*$$/p'; \
437 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
438 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
439 dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
440
441 ID: $(am__tagged_files)
442 $(am__define_uniq_tagged_files); mkid -fID $$unique
443 tags: tags-am
444 TAGS: tags
445
446 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
447 set x; \
448 here=`pwd`; \
449 $(am__define_uniq_tagged_files); \
450 shift; \
451 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
452 test -n "$$unique" || unique=$$empty_fix; \
453 if test $$# -gt 0; then \
454 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
455 "$$@" $$unique; \
456 else \
457 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
458 $$unique; \
459 fi; \
460 fi
461 ctags: ctags-am
462
463 CTAGS: ctags
464 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
465 $(am__define_uniq_tagged_files); \
466 test -z "$(CTAGS_ARGS)$$unique" \
467 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
468 $$unique
469
470 GTAGS:
471 here=`$(am__cd) $(top_builddir) && pwd` \
472 && $(am__cd) $(top_srcdir) \
473 && gtags -i $(GTAGS_ARGS) "$$here"
474 cscopelist: cscopelist-am
475
476 cscopelist-am: $(am__tagged_files)
477 list='$(am__tagged_files)'; \
478 case "$(srcdir)" in \
479 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
480 *) sdir=$(subdir)/$(srcdir) ;; \
481 esac; \
482 for i in $$list; do \
483 if test -f "$$i"; then \
484 echo "$(subdir)/$$i"; \
485 else \
486 echo "$$sdir/$$i"; \
487 fi; \
488 done >> $(top_builddir)/cscope.files
489
490 distclean-tags:
491 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
492
493 distdir: $(DISTFILES)
494 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
495 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
496 list='$(DISTFILES)'; \
497 dist_files=`for file in $$list; do echo $$file; done | \
498 sed -e "s|^$$srcdirstrip/||;t" \
499 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
500 case $$dist_files in \
501 */*) $(MKDIR_P) `echo "$$dist_files" | \
502 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
503 sort -u` ;; \
504 esac; \
505 for file in $$dist_files; do \
506 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
507 if test -d $$d/$$file; then \
508 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
509 if test -d "$(distdir)/$$file"; then \
510 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
511 fi; \
512 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
513 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
514 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
515 fi; \
516 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
517 else \
518 test -f "$(distdir)/$$file" \
519 || cp -p $$d/$$file "$(distdir)/$$file" \
520 || exit 1; \
521 fi; \
522 done
523 check-am: all-am
524 check: check-am
525 all-am: Makefile $(PROGRAMS) $(MANS)
526 installdirs:
527 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \
528 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
529 done
530 install: install-am
531 install-exec: install-exec-am
532 install-data: install-data-am
533 uninstall: uninstall-am
534
535 install-am: all-am
536 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
537
538 installcheck: installcheck-am
539 install-strip:
540 if test -z '$(STRIP)'; then \
541 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
542 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
543 install; \
544 else \
545 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
546 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
547 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
548 fi
549 mostlyclean-generic:
550
551 clean-generic:
552
553 distclean-generic:
554 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
555 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
556
557 maintainer-clean-generic:
558 @echo "This command is intended for maintainers to use"
559 @echo "it deletes files that may require special tools to rebuild."
560 clean: clean-am
561
562 clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
563
564 distclean: distclean-am
565 -rm -rf ./$(DEPDIR)
566 -rm -f Makefile
567 distclean-am: clean-am distclean-compile distclean-generic \
568 distclean-tags
569
570 dvi: dvi-am
571
572 dvi-am:
573
574 html: html-am
575
576 html-am:
577
578 info: info-am
579
580 info-am:
581
582 install-data-am: install-man
583
584 install-dvi: install-dvi-am
585
586 install-dvi-am:
587
588 install-exec-am: install-binPROGRAMS
589
590 install-html: install-html-am
591
592 install-html-am:
593
594 install-info: install-info-am
595
596 install-info-am:
597
598 install-man: install-man1
599
600 install-pdf: install-pdf-am
601
602 install-pdf-am:
603
604 install-ps: install-ps-am
605
606 install-ps-am:
607
608 installcheck-am:
609
610 maintainer-clean: maintainer-clean-am
611 -rm -rf ./$(DEPDIR)
612 -rm -f Makefile
613 maintainer-clean-am: distclean-am maintainer-clean-generic
614
615 mostlyclean: mostlyclean-am
616
617 mostlyclean-am: mostlyclean-compile mostlyclean-generic
618
619 pdf: pdf-am
620
621 pdf-am:
622
623 ps: ps-am
624
625 ps-am:
626
627 uninstall-am: uninstall-binPROGRAMS uninstall-man
628
629 uninstall-man: uninstall-man1
630
631 .MAKE: install-am install-strip
632
633 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
634 clean-binPROGRAMS clean-generic cscopelist-am ctags ctags-am \
635 distclean distclean-compile distclean-generic distclean-tags \
636 distdir dvi dvi-am html html-am info info-am install \
637 install-am install-binPROGRAMS install-data install-data-am \
638 install-dvi install-dvi-am install-exec install-exec-am \
639 install-html install-html-am install-info install-info-am \
640 install-man install-man1 install-pdf install-pdf-am install-ps \
641 install-ps-am install-strip installcheck installcheck-am \
642 installdirs maintainer-clean maintainer-clean-generic \
643 mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
644 ps ps-am tags tags-am uninstall uninstall-am \
645 uninstall-binPROGRAMS uninstall-man uninstall-man1
646
647
648 # Tell versions [3.59,3.63) of GNU make to not export all variables.
649 # Otherwise a system limit (for SysV at least) may be exceeded.
650 .NOEXPORT:
0 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.10.
1 .TH AIR-QUALITY-SENSOR "1" "August 2014" "air-quality-sensor (air-quality-sensor) 0.1.1" "User Commands"
2 .SH NAME
3 air-quality-sensor \- User space driver for AppliedSensor's Indoor Air Monitor
4 .SH SYNOPSIS
5 .B air-quality-sensor
6 [\fIOPTION\fR]
7 .SH DESCRIPTION
8
9 The Indoor Air Monitor is a USB flash drive-shaped sensor which measures
10 the surrounding's air pollution. This driver prints a list with all
11 connected sensors and their current values to the commandline.
12 Brand names and further information has been documented on
13 http://wiki.micasaverde.com/ index.php/CO2_Sensor.
14 .PP
15 The air quality is displayed on the hardware token by three indicator
16 lamps with the colours green (= good), yellow (= average) and red (=
17 bad), the same colors are also printed by this tool.
18 .TP
19 \fB\-h\fR, \fB\-\-help\fR
20 display this help and exit
21 .TP
22 \fB\-v\fR, \fB\-\-version\fR
23 display version information and exit
24 .SH "REPORTING BUGS"
25 Report bugs to: esperanto@benedikt\-wildenhain.de
26 .br
27 Home page: <https://github.com/bwildenhain/air\-quality\-sensor>
28 .SH COPYRIGHT
29 Copyright \(co 2014 Jan\-Benedict Glaw
30 .br
31 Copyright \(co 2014 Benedikt Wildenhain
32 .PP
33 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
34 .br
35 This is free software: you are free to change and redistribute it.
36 There is NO WARRANTY, to the extent permitted by law.
0 /*
1 air-quality-sensor - user space driver for USB Air Quality Sensor CO-20
2
3 Copyright (C) 2014 Jan-Benedict Glaw
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #include <stdio.h>
20 #include <string.h>
21 #include <stdlib.h>
22 #include <stdint.h>
23 #include <libusb.h>
24
25 #include <config.h>
26
27 #define DRIVER_NAME_LEN 1024
28 #define USB_BUF_LEN 1024
29
30 #define LEVEL_GREEN 1000
31 #define LEVEL_YELLOW 1500
32 #define LEVEL_RED 4000
33 #define LEVEL_NO_DATA 450
34
35 #define USB_VENDOR_CO2_STICK 0x03eb
36 #define USB_PRODUCT_CO2_STICK 0x2013
37
38 #ifdef HAVE_GETOPT_LONG
39 #include <getopt.h>
40
41 static const struct option longopts[] = {
42 {"help", 0, NULL, 'h'},
43 {"version", 0, NULL, 'v'},
44 {NULL, 0, NULL, 0}
45 };
46 #endif
47
48 enum led_state
49 {
50 GREEN = 0,
51 YELLOW,
52 RED,
53 NO_DATA,
54 };
55
56 static const char *const air_quality[] = {
57 [GREEN] = "GREEN",
58 [YELLOW] = "YELLOW",
59 [RED] = "RED",
60 [NO_DATA] = "NO_DATA",
61 };
62
63 static int
64 read_one_sensor (struct libusb_device *dev)
65 {
66 int ret;
67 uint16_t value;
68 int len;
69 enum led_state colour;
70 struct libusb_device_handle *devh;
71 char driver_name[DRIVER_NAME_LEN] = "";
72 unsigned char usb_io_buf[USB_BUF_LEN] = "\x40\x68\x2a\x54"
73 "\x52\x0a\x40\x40" "\x40\x40\x40\x40" "\x40\x40\x40\x40";
74 struct libusb_device *uplink;
75
76 /* Open USB device. */
77 ret = libusb_open (dev, &devh);
78 if (ret)
79 {
80 fprintf (stderr, "Failed to libusb_open(%p)\n", (void *) dev);
81 ret = -1;
82 goto out;
83 }
84
85 /* Ensure that the device isn't claimed. */
86 if (libusb_kernel_driver_active (devh, 0 /*intrf */ ))
87 {
88 fprintf (stderr, "Warning: device is claimed by driver %s, "
89 "trying to unbind it.\n", driver_name);
90 ret = libusb_detach_kernel_driver (devh, 0 /*intrf */ );
91 if (ret)
92 {
93 fprintf (stderr, "Failed to detatch kernel driver.\n");
94 ret = -2;
95 goto out;
96 }
97 }
98
99 /* Claim device. */
100 ret = libusb_claim_interface (devh, 0 /*intrf */ );
101 if (ret)
102 {
103 fprintf (stderr, "usb_claim_interface() failed with error %d=%s\n",
104 ret, strerror (-ret));
105 ret = -3;
106 goto out;
107 }
108
109 /* Send query command. */
110 ret = libusb_interrupt_transfer (devh, 0x0002 /*endpoint */ ,
111 usb_io_buf, 0x10 /*len */ , &len,
112 1000 /*msec */ );
113 if (ret < 0)
114 {
115 fprintf (stderr,
116 "Failed to usb_interrupt_write() the initial buffer, ret = %d\n",
117 ret);
118 ret = -4;
119 goto out_unlock;
120 }
121
122 /* Read answer. */
123 ret = libusb_interrupt_transfer (devh, 0x0081 /*endpoint */ ,
124 usb_io_buf, 0x10 /*len */ , &len,
125 1000 /*msec */ );
126 if (ret < 0)
127 {
128 fprintf (stderr, "Failed to usb_interrupt_read() #1\n");
129 ret = -5;
130 goto out_unlock;
131 }
132
133 /* First read returned 0 bytes, do again. */
134 if (ret == 0)
135 {
136 ret = libusb_interrupt_transfer (devh, 0x0081 /*endpoint */ ,
137 usb_io_buf, 0x10 /*len */ , &len,
138 1000 /*msec */ );
139 }
140
141 /* Prepare value from first read. */
142 value = ((unsigned char *) usb_io_buf)[3] << 8
143 | ((unsigned char *) usb_io_buf)[2] << 0;
144
145 /* Classify `value'. */
146 if (value == LEVEL_NO_DATA)
147 colour = NO_DATA;
148 else if (value <= LEVEL_GREEN)
149 colour = GREEN;
150 else if (value <= LEVEL_YELLOW)
151 colour = YELLOW;
152 else
153 colour = RED;
154
155 /* Output values. */
156 #ifndef LIBUSB_OLD
157 /* libusb_get_parent and libusb_get_port_number have been introduced in
158 * https://github.com/libusb/libusb/blob/cfb8610242394d532778a483570089c2bed52c84/libusb/libusb.h
159 * Everything from before is considered "old" in config.h
160 */
161 printf ("Device ");
162 for (uplink = dev; uplink; uplink = libusb_get_parent (uplink))
163 printf ("%d:", libusb_get_port_number (uplink));
164 #else
165 printf ("Bus %03d Device %03d",
166 libusb_get_bus_number (dev), libusb_get_device_address (dev));
167 #endif
168 printf (" value = %u, quality = %s\n",
169 (unsigned int) value, air_quality[colour]);
170
171 out_unlock:
172 ret = libusb_release_interface (devh, 0 /*intrf */ );
173 if (ret)
174 {
175 fprintf (stderr, "Failed to usb_release_interface()\n");
176 ret = -5;
177 }
178 out:
179 return ret;
180 }
181
182 static int
183 find_devices (int vendor, int product)
184 {
185 int ret = 0, ret2;
186 struct libusb_device **devs;
187 struct libusb_device *dev;
188 struct libusb_device_descriptor desc;
189 ssize_t num_devices;
190 int i = 0;
191
192 num_devices = libusb_get_device_list (NULL, &devs);
193 if (num_devices > 0)
194 {
195 while ((dev = devs[i++]) != NULL)
196 {
197 ret2 = libusb_get_device_descriptor (dev, &desc);
198 if (ret2)
199 {
200 ret |= ret2;
201 }
202 else
203 {
204 if (desc.idVendor == vendor && desc.idProduct == product)
205 ret |= read_one_sensor (dev);
206 }
207 }
208
209 libusb_free_device_list (devs, 1);
210 }
211
212 return ret;
213 }
214
215 void
216 print_help ()
217 {
218 printf (("Usage: %s [OPTION]\n\
219 Read the current air quality from a compatible attached sensor\n\n\
220 -h, --help display this help and exit\n\
221 -v, --version display version information and exit\n\n\
222 Report bugs to: esperanto@benedikt-wildenhain.de\n\
223 Home page: <https://github.com/bwildenhain/air-quality-sensor>\n\
224 "), PACKAGE_NAME);
225 }
226
227 void
228 print_version ()
229 {
230 printf ("%s (%s) %s\n", PACKAGE, PACKAGE_NAME, VERSION);
231
232 printf (("\
233 Copyright (C) %d Jan-Benedict Glaw\n\
234 Copyright (C) %d Benedikt Wildenhain\n\n\
235 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n\
236 This is free software: you are free to change and redistribute it.\n\
237 There is NO WARRANTY, to the extent permitted by law.\n"), COPYRIGHT_YEAR, COPYRIGHT_YEAR);
238 }
239
240 int
241 main (int argc, char *argv[])
242 {
243 int ret;
244
245
246 #ifdef HAVE_GETOPT_LONG
247 char c;
248 int option_index = 0;
249 while ((c = getopt_long (argc, argv, "hv", longopts, &option_index)) != -1)
250 {
251 switch (c)
252 {
253 case 'h':
254 print_help ();
255 exit (EXIT_SUCCESS);
256 break;
257 case 'v':
258 print_version ();
259 exit (EXIT_SUCCESS);
260 break;
261 case '?':
262 print_help ();
263 exit (EXIT_FAILURE);
264 break;
265 }
266 }
267 #else
268 if (argc > 1)
269 {
270 fprintf (stderr,
271 "Compiled without GNU getopt, cannot handle any command line arguments");
272 print_version ();
273 exit (EXIT_FAILURE);
274 }
275
276 #endif
277
278 ret = libusb_init (NULL);
279 if (ret)
280 {
281 fprintf (stderr, "Failed to libusb_init()\n");
282 exit (EXIT_FAILURE);
283 }
284
285 ret = find_devices (USB_VENDOR_CO2_STICK, USB_PRODUCT_CO2_STICK);
286
287 libusb_exit (NULL);
288
289 exit (ret ? EXIT_FAILURE : EXIT_SUCCESS);
290 }