From dd808656ab6e9f789ceaaf09c28712ab6ecbb1ab Mon Sep 17 00:00:00 2001 From: Packit Date: Sep 23 2020 10:39:29 +0000 Subject: libcdio-2.0.0 base --- diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..c689ff6 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,2 @@ +Herbert Valerio Riedel +Rocky Bernstein diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..94a9ed0 --- /dev/null +++ b/COPYING @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..7e409e2 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,17678 @@ +2017-12-31 R. Bernstein + + * NEWS, THANKS, configure.ac, doc/how-to-make-a-release.txt: Get + ready for release 2.0.0 + +2017-12-29 R. Bernstein + + * configure.ac, example/mmc3.c, example/sample4.c, + lib/driver/gnu_linux.c, lib/driver/image/bincue.c, + lib/driver/image/cdrdao.c, lib/driver/image/nrg.c, + lib/iso9660/iso9660.c, lib/iso9660/iso9660_fs.c, + lib/iso9660/rock.c, src/cdda-player.c, test/driver/cdda.c, + test/driver/mmc_read.c, test/testgetdevices.c, test/testiso9660.c, + test/testisocd.c: Memory leaks and lint found from clang + "scan_build" + +2017-12-24 R. Bernstein + + * configure.ac: RC3 + +2017-12-23 R. Bernstein + + * configure.ac, lib/driver/_cdio_generic.c: Removed wrong line + +2017-12-22 R. Bernstein + + * lib/driver/_cdio_generic.c: Fix double free courtesy of Chris + Clayton + +2017-12-21 R. Bernstein + + * NEWS: Update NEWS again + +2017-12-21 R. Bernstein + + * : commit 48176cc51a183ff52fab338f6bca3033746e3a5f Merge: 872898b6 + 6dc697d2 Author: R. Bernstein Date: Thu Dec 21 + 23:26:02 2017 -0500 + +2017-12-21 R. Bernstein + + * : commit 6dc697d29a885d87ce37897ba977bd2421c0b32d Author: R. + Bernstein Date: Thu Dec 21 23:16:17 2017 -0500 + +2017-12-21 R. Bernstein + + * NEWS: Wordsmith NEWS + +2017-12-21 R. Bernstein + + * NEWS, configure.ac, lib/cdio++/Makefile.am, + lib/driver/Makefile.am, lib/iso9660/Makefile.am, + lib/udf/Makefile.am: rc1 candidate - update news, bump SO numbers + +2017-12-21 R. Bernstein + + * lib/driver/device.c, lib/driver/netbsd.c, src/cd-info.c: Add + NetBSD drive detection; correct drive detection in cd-info.c Patches from Onno van der Linden + +2017-12-20 R. Bernstein + + * example/cdtext-raw.c: Windows tolerance in cdtest-raw program + +2017-12-20 R. Bernstein + + * test/testgetdevices.c: Remove MingGW compile warning in a test + +2017-12-20 R. Bernstein + + * src/Makefile.am, test/check_common_fn.in, test/driver/realpath.c: + Correct realpath for memleaks and MinGW; fix src/Makefile clean + target + +2017-12-19 R. Bernstein + + * example/.gitignore, example/Makefile.am, src/Makefile.am: "make + clean" administrivia Clean OSX schmutz and .libs + +2017-12-19 R. Bernstein + + * NEWS: Note API breakage in 1.1.0 and 1.0.0 + +2017-12-10 R. Bernstein + + * doc/how-to-make-a-release.txt: Administrivia + +2017-12-10 R. Bernstein + + * include/cdio/iso9660.h: Doxygen fixups + +2017-12-10 R. Bernstein + + * NEWS, configure.ac, doc/how-to-make-a-release.txt: Get ready for + release 1.1.0 + +2017-12-09 R. Bernstein + + * src/cd-drive.c, src/cd-info.c, src/cd-read.c, src/iso-info.c, + src/iso-read.c, src/mmc-tool.c: DRY/Regularize src programs + +2017-12-09 R. Bernstein + + * src/cd-drive.c: Small cd-drive.c tweak + +2017-12-09 R. Bernstein + + * src/cd-drive.c, src/iso-info.c: More memory leak and invalid + access removal + +2017-12-09 R. Bernstein + + * lib/driver/osx.c: Fix some of the memory leaks on OSX... more to come + +2017-12-09 R. Bernstein + + * lib/driver/MSWindows/win32.c: Reduce MSWindows leaks + +2017-12-08 R. Bernstein + + * lib/driver/FreeBSD/freebsd.c, lib/driver/gnu_linux.c, + lib/driver/netbsd.c: DRY code. More leak removal. + +2017-12-08 R. Bernstein + + * lib/driver/FreeBSD/freebsd.c, lib/driver/image/cdrdao.c, + test/testisocd_joliet.c: Reduce memory leaks + +2017-12-07 R. Bernstein + + * lib/driver/_cdio_generic.c, lib/driver/aix.c, + lib/driver/solaris.c, src/iso-info.c, src/mmc-tool.c: Another pass + at removing memory leaks + +2017-12-07 R. Bernstein + + * example/C++/Makefile.am, example/C++/OO/Makefile.am, + example/C++/OO/iso4.cpp, lib/driver/gnu_linux.c, + lib/iso9660/iso9660_fs.c, test/testisocd.c: Reduce memory leaks and + invalid pointer accesses + +2017-12-06 R. Bernstein + + * src/iso-info.c: iso-info: free memory on error + +2017-12-06 R. Bernstein + + * lib/driver/_cdio_generic.c: Remove duplicate free... Now that cdio_destroy cleans up after itself better + +2017-12-06 R. Bernstein + + * lib/iso9660/iso9660.c: Another #if -> #ifdef + +2017-12-05 R. Bernstein + + * NEWS: Typo + +2017-12-05 R. Bernstein + + * NEWS, configure.ac, doc/how-to-make-a-release.txt: Things in + preparation for a release + +2017-12-05 R. Bernstein + + * lib/iso9660/Makefile.am: Bump revision + +2017-12-05 R. Bernstein + + * lib/iso9660/iso9660.c, lib/iso9660/libiso9660.sym: Small stuff.. Includes to patcheds from Ozkan Sezer + +2017-12-05 R. Bernstein + + * include/cdio/iso9660.h, lib/iso9660/iso9660_fs.c, src/cd-info.c, + src/iso-info.c: Add Cdio9660DirList type, new() and free() + +2017-12-05 R. Bernstein + + * : commit fef44a73d92998e34980daa0211959b5f3a2a1b8 Author: R. + Bernstein Date: Tue Dec 5 17:00:33 2017 -0500 + +2017-12-02 R. Bernstein + + * example/C++/eject.cpp, example/eject.c, lib/driver/device.c: + Remove memory leak in cdio_eject_media_drive + +2017-12-01 R. Bernstein + + * example/C++/Makefile.am, example/C++/OO/isolist.cpp, + example/C++/isolist.cpp, include/cdio++/iso9660.hpp: Start C++ + cleanup + +2017-12-01 R. Bernstein + + * example/extract.c, example/isofuzzy.c, example/isolist.c, + include/cdio/iso9660.h, lib/iso9660/iso9660.c, + lib/iso9660/iso9660_fs.c, src/cd-info.c, src/iso-info.c: Add custom + readdir statbuf list... and free routine + +2017-12-01 R. Bernstein + + * lib/driver/gnu_linux.c, lib/driver/mmc/mmc_cmd_helper.h, + test/driver/mmc_read.c, test/driver/mmc_write.c: Remove test leaks + and uninitialized access + +2017-11-30 R. Bernstein + + * configure.ac, example/Makefile.am, lib/iso9660/iso9660.c, + test/Makefile.am, test/testisocd.c, test/testisocd_joliet.c: More + valgrind warnings... configure.ac, iso9660.c: initialize tm_zone in tm if that exists + example/Makefile.am: add make leak-check target + testisocd{_joliet,}.c: remove memory leaks + +2017-11-30 R. Bernstein + + * lib/iso9660/iso9660_fs.c: Remove invalid access in RR handling + +2017-11-30 R. Bernstein + + * test/testudf.c: Plug memory leaks in testudf.c + +2017-11-30 R. Bernstein + + * configure.ac, include/cdio++/iso9660.hpp, include/cdio/iso9660.h, + lib/cdio++/iso9660.cpp, lib/iso9660/iso9660_fs.c, src/cd-info.c, + test/Makefile.am, test/driver/Makefile.am, test/testisocd2.c: Lots + of cleanups... isio9660.h, iso9660.c, iso9660.hpp remove mode2 from is9660_fs_stat_translate() and in C++ version go over doxygen comments. (More is needed) iso-info.c, cd-info.c: use alloca() instead of malloc() where + possible test/Mamefile.am: correct remake comments for check-leaks testisocd2.c: make leak free iso9660_fs.c: fix memory leak in + iso9660_ifs_find_lsn + +2017-11-28 R. Bernstein + + * configure.ac, example/extract.c, example/isofuzzy.c, + example/isolist.c, example/udf1.c, example/udffile.c, + include/cdio++/iso9660.hpp, include/cdio/ds.h, + include/cdio/types.h, lib/cdio++/iso9660.cpp, + lib/driver/_cdio_stream.c, lib/driver/ds.c, lib/driver/image/nrg.c, + lib/iso9660/iso9660_fs.c, src/cd-info.c, src/iso-info.c, + test/testisocd2.c: WIP: deal with memory leaks from cdio_lists TODO: * create function for dirlist free; is: _cdio_list_free (dirlist, true, free); * create function for statbuf free; is: _cdio_list_free (entlist, true, (CdioDataFree_t) + iso9660_stat_free); * Add targets to run valgrind to look for memory leaks * Fix remaining memory leaks + +2017-11-25 R. Bernstein + + * lib/driver/MSWindows/aspi32.c, src/cdda-player.c: Restore -x mode + change + +2017-11-25 R. Bernstein + + * lib/driver/MSWindows/aspi32.c, src/cdda-player.c: Rename some + shadowed variables + +2017-11-25 R. Bernstein + + * example/cdchange.c, test/driver/mmc_read.c, + test/driver/mmc_write.c: do not use sleep() for MS Windows. From Ozkan Sezer: _sleep() has long been deprecated and no longer prototyped in + stdlib.h, despite the fact that msvcrt.dll still exports it. + therefore, undefine HAVE_SLEEP when targeting windows, use Sleep + win32 api function instead. + +2017-11-25 R. Bernstein + + * lib/driver/cdio_private.h: fix 'strndup shadows a built-in + function' warnings From Ozkan Sezer: if strndup() is not available, the build log is plagued with the + following warnings: lib/driver/cdio_private.h:46:21: warning: + declaration of 'strndup' shadows a built-in function So, rename the replacement inline strndup to libcdio_strdup, and + define strndup as libcdio_strndup. + +2017-11-25 R. Bernstein + + * lib/driver/MSWindows/win32_ioctl.c: fix mixed declarations and + code in win32_ioctl.c from Ozkan Sezer + +2017-11-25 R. Bernstein + + * : commit 4305bc1e093e4341aeddb857bd1e6203228000cb Author: R. + Bernstein Date: Sat Nov 25 14:03:37 2017 -0500 + +2017-11-24 R. Bernstein + + * configure.ac, src/cdda-player.c: Bug introduced by unshadowing + variables Patch from Bernard Cafarelli . See + https://savannah.gnu.org/bugs/?52495 + +2017-11-23 R. Bernstein + + * configure.ac: Set LIBCDIO_VERSION in a more consistent way we'll use the convention x.y.zjunk => x*10000 + y*100 + z Savannah bug #52491 + +2017-11-21 R. Bernstein + + * configure.ac, doc/how-to-make-a-release.txt: Now in 1.0.1git land + +2017-11-21 R. Bernstein + + * include/cdio/mmc_ll_cmds.h: FIx doxygen-noted problems + +2017-11-21 R. Bernstein + + * NEWS: What's new in 1.0.0 (update) + +2017-11-21 R. Bernstein + + * configure.ac: 1.0.0 release + +2017-11-21 R. Bernstein + + * configure.ac, lib/driver/FreeBSD/freebsd.c, src/cdda-player.c, + src/getopt.c: Remove more warnings/spurious code + +2017-11-20 R. Bernstein + + * NEWS, src/iso-info.c, test/check_bad_iso.sh: Fixes for bad iso9660 + detection ... from Thomas Schmitt + +2017-11-20 R. Bernstein + + * lib/udf/udf_fs.c: Slight udf tweak + +2017-11-20 R. Bernstein + + * include/cdio/ds.h, lib/iso9660/iso9660_fs.c: Another small memory + leak plugged. + +2017-11-20 R. Bernstein + + * include/cdio/ds.h, lib/driver/device.c, lib/iso9660/iso9660_fs.c, + test/testisocd.c: Reduce memory leaks... remove depricated things in dh.h Note: a reworking of ds.h is needed to handle data which has alloc + memory. + +2017-11-20 R. Bernstein + + * lib/driver/MSWindows/win32_ioctl.c: Move another C decl + +2017-11-20 R. Bernstein + + * configure.ac, test/testisocd_joliet.c: Add CC -Wbad-function-cast + when possible + +2017-11-20 R. Bernstein + + * configure.ac, example/mmc1.c, lib/driver/abs_path.c, + src/iso-info.c, test/driver/bincue.c, test/testgetdevices.c, + test/testisocd2.c: Make sure C decls are not mixed after code + +2017-11-19 R. Bernstein + + * include/cdio/util.h, lib/driver/image/bincue.c, + lib/driver/image_common.c, lib/driver/image_common.h, + lib/iso9660/iso9660_fs.c, src/util.c, test/Makefile.am, + test/driver/Makefile.am, test/testisocd2.c: Remove more memory + leaks; remove more #ifdefs + +2017-11-19 R. Bernstein + + * lib/driver/gnu_linux.c: Another #if -> #ifdef + +2017-11-19 R. Bernstein + + * test/driver/realpath.c: Remove memory leaks in realpath test + +2017-11-19 R. Bernstein + + * NEWS, lib/driver/image/nrg.c, test/driver/logger.c: Remove more + memory leaks (via valgrind) + +2017-11-19 R. Bernstein + + * lib/driver/cdtext.c: More complete CD-Text free + +2017-11-19 R. Bernstein + + * README.libcdio, lib/driver/MSWindows/win32.c, + lib/driver/MSWindows/win32_ioctl.c: MSWindows updates; Update + README.libcdio; + +2017-11-19 R. Bernstein + + * lib/driver/FreeBSD/freebsd.c: FreeBSD lint Tidy code now that we assume CAM always + +2017-11-19 R. Bernstein + + * lib/driver/netbsd.c: Fix NetBSD return type in get_track_format + +2017-11-18 R. Bernstein + + * include/cdio/types.h, lib/driver/netbsd.c, src/cdda-player.c: + NetBSD fixes + +2017-11-18 R. Bernstein + + * lib/driver/solaris.c: Bring solaris in line with recent changes + +2017-11-18 R. Bernstein + + * NEWS, src/cd-info.c: bug introduced in unshadowing... found by clang. Update NEWS + +2017-11-18 R. Bernstein + + * configure.ac, include/cdio/device.h, + lib/driver/FreeBSD/freebsd.h, lib/driver/Makefile.am, + lib/driver/bsdi.c, lib/driver/device.c, lib/driver/gnu_linux.c, + lib/driver/image/bincue.c, src/cd-info.c, src/util.c, + test/testiso9660.c: Remove BSDI remnants. Remove -wundef warnings + +2017-11-18 R. Bernstein + + * configure.ac, example/audio.c, example/mmc1.c, example/mmc2.c, + lib/driver/image/bincue.c, src/cd-info.c, src/cdda-player.c, + src/mmc-tool.c, src/util.c, test/Makefile.am: Don't shadowing + variables ... add CC -wshadow + +2017-11-18 R. Bernstein + + * lib/driver/gnu_linux.c: Fix small bug in GNU/Linux access-mode + setting + +2017-11-18 R. Bernstein + + * lib/driver/mmc/mmc.c, test/Makefile.am, test/check_bad_iso.sh: I + said remove get_trace_isrc_mmc + +2017-11-18 R. Bernstein + + * test/check_bad_iso.sh: Remove abs_srcdir + +2017-11-17 R. Bernstein + + * lib/driver/Makefile.am: Bump libcdio_la_CURRENT... We have removed OS/2 and some deprecations + +2017-11-16 R. Bernstein + + * NEWS: What's happened in the last year + +2017-11-16 R. Bernstein + + * include/cdio/device.h, include/cdio/mmc.h, + lib/driver/Makefile.am, lib/driver/cdio_private.h, + lib/driver/device.c, lib/driver/os2.c: Remove deprecated stuff... - OS/2 driver - mmc_isrc_track_read_subchannel - CDIO_MIN_DRIVER, CDIO_MIN_DEVICE_DRIVER, CDIO_MAX_DRIVER, + CDIO_MAX_DEVICE_DRIVER Apple Darwin OS X -> macOS + +2017-11-16 R. Bernstein + + * README.libcdio, configure.ac, lib/iso9660/iso9660_fs.c, + lib/iso9660/rock.c: Merge Thomas' changes and ... Try release 1.0.0rc1 Some grammar changes made in comments. + +2017-11-16 R. Bernstein + + * : commit ddd984854b09c1a8203867534c087c0d83ff8622 Author: R. + Bernstein Date: Mon Oct 9 12:35:54 2017 -0400 + +2017-09-26 R. Bernstein + + * lib/iso9660/iso9660_fs.c, src/iso-info.c, src/util.c, + test/Makefile.am, test/check_bad_iso.sh, test/check_iso.sh.in, + test/data/Makefile.am: handle bad iso 9660 better. Fixes bug #52091 src/iso-info.c: reflect errors in getting information back in exit + code lib/iso9660_fs.c: bail when we there is bad stat info for a + directory change interface to report failure src/util.h: bump + copyright test/data/bad-dir.iso: bad ISO 9660 test/check_bad_iso.sh: + test program test/check_iso.sh.in: expect nonzero RC on failures + +2017-09-16 R. Bernstein + + * : commit 266aa360193dc66ec7650e8804cdcb354b657633 Author: R. + Bernstein Date: Sat Sep 16 08:43:33 2017 -0400 + +2017-09-16 R. Bernstein + + * README.libcdio: Note --enable-maintainer-mode + +2017-09-15 R. Bernstein + + * lib/driver/osx.c, test/check_cdtext.sh: (High) Sierra compatiablity... osx.c: Use libcdio version of assert, not OSX's. check_cdtext.sh: + return should only be used inside functions + +2017-08-25 R. Bernstein + + * configure.ac, lib/driver/utf8.c: iconv is need to build libcdio... Add check in configure.ac (was just for joliet) and add check in + code that needs it. + +2017-08-22 R. Bernstein + + * lib/driver/netbsd.c: Add NetBSD patch-ad + +2017-07-30 R. Bernstein + + * lib/iso9660/iso9660_fs.c: Fix type bug, and attempt to improve + comments. + +2017-07-30 Thomas Schmitt + + * lib/iso9660/iso9660_fs.c: Hopefully final fix for + https://savannah.gnu.org/bugs/?45015 + +2017-07-29 R. Bernstein + + * lib/iso9660/iso9660_fs.c, lib/iso9660/rock.c: Thomas Schmitt's + fixes for Rock Ridge SUSP See the thread in + + http://lists.gnu.org/archive/html/libcdio-devel/2017-07/msg00000.html + +2017-03-25 R. Bernstein + + * include/cdio/udf_time.h: change MinGW guard around rolling our own + timespec + +2017-03-14 R. Bernstein + + * autogen.sh: Force creating stamp-vti update in autogen.sh + +2017-03-14 R. Bernstein + + * : commit 251bb7082c7073f4c2073673d29b59c1c12d765f Author: Pete + Batard Date: Mon Mar 13 11:56:46 2017 +0100 + +2017-03-13 Pete Batard + + * lib/driver/_cdio_stdio.c, lib/driver/_cdio_stream.c, + lib/driver/ds.c, lib/driver/utf8.c, lib/driver/util.c, + lib/iso9660/iso9660_fs.c, lib/udf/udf_fs.c: add asserts to test + memory allocations Also use the common breakdown for calloc() parameters, add a missing + closing parenthesis in a log statement and NUL terminate a string + after the srtncpy() call. + +2017-02-05 R. Bernstein + + * : commit 8b90e80cd30b5dbb1b10054c8792b644e1dabdae Author: R. + Bernstein Date: Sun Feb 5 07:28:49 2017 -0500 + +2016-11-29 enzo1982 + + * configure.ac: Enable CD drivers on current and future versions of + FreeBSD and Darwin (OS X), so we do not have to add every new OS + version explicitly. + +2016-11-20 R. Bernstein + + * lib/driver/MSWindows/win32_ioctl.c, lib/iso9660/iso9660_fs.c: + Remove minor print cast warnings From Ozkan Sezer + +2016-11-20 R. Bernstein + + * configure.ac: ross-compiling friendliness part 3 check /bin/bash.exe result only if not cross-compiling. From Ozkan Sezer + +2016-11-20 R. Bernstein + + * lib/driver/Makefile.am, lib/iso9660/Makefile.am: Cross-compile + friendliness part 2 Do not call 'nm' directly, use the NM variable instead. From Ozkan Sezer + +2016-11-20 R. Bernstein + + * lib/driver/cdio_private.h: cross-compile friendliness - part 1 stdlib.h and string.h are needed for malloc, strlen and strncpy From Ozkan Sezer + +2016-11-20 R. Bernstein + + * doc/libcdio.texi: Documentation fixes by Wieland Hoffmann See https://savannah.gnu.org/patch/index.php?8915 - Remove a duplicate example program entry - Move a period to the correct place + +2016-10-22 R. Bernstein + + * : commit 8815de6f669c29a0639c9a567dd49f4d9ebe4801 Author: R. + Bernstein Date: Sat Oct 22 20:43:43 2016 -0400 + +2016-10-22 R. Bernstein + + * Makefile.am, configure.ac, doc/Makefile.am, + doc/how-to-make-a-release.txt, include/cdio/mmc.h, + include/cdio/mmc_ll_cmds.h: Get ready for release 0.94 + +2016-10-16 R. Bernstein + + * NEWS: NEWS typos and updates + +2016-10-16 enzo1982 + + * configure.ac: Use Darwin driver on macOS versions through Sierra. + +2016-10-15 R. Bernstein + + * NEWS, configure.ac, doc/Makefile.am, + lib/driver/FreeBSD/freebsd_cam.c, + lib/driver/FreeBSD/freebsd_ioctl.c, lib/driver/_cdio_stdio.c, + lib/driver/_cdio_stream.c, lib/driver/cdio.c, lib/driver/ds.c, + lib/driver/sector.c, lib/iso9660/iso9660.c: 0.94 release candidate 1 * gcc -Wend-labels -> -Wendif-labels * remove rcsid's and some trailing blanks in those files + +2016-09-16 R. Bernstein + + * autogen.sh: Add code to get version.texi to get built + +2016-08-12 R. Bernstein + + * .gitignore: More ignore + +2016-08-12 R. Bernstein + + * include/cdio/types.h: g++ greater than 4.0 handles "pack" Fixes bug #48759 where example/C++/isolist.cpp built with g++ fails + on gcc 5.0 and greater + +2016-08-12 R. Bernstein + + * include/cdio/types.h: g++ > 4.0 handles pack Fixes bug #48759 hwere isoilst examples built with g++ >5 are + failing + +2016-07-11 R. Bernstein + + * Makefile.am, lib/driver/abs_path.c, lib/driver/cdio_private.h: + conditional GIT2CL; host stndup replacment GIT2CL only if --maintainer-mode stndump in cdio_private.h for those + systems that don't ahve it Changes suggested by Thomas Schmitt + +2016-06-04 Leon Merten Lohse + + * doc/CD-TEXT-testfiles: Add documentation for Thomas Schmitts' + CD-TEXT test files + +2016-06-03 Leon Merten Lohse + + * test/Makefile.am, test/cdtext-libburnia.right, test/cdtext.right, + test/check_cdtext.sh, test/data/Makefile.am, test/data/cdtext.cue: + Add dedicated unit test for the CD-Text parser Adds a dedicated test script (bash) for the CD-Text parser, using + one of the example tools (cdtext-raw) to call libcdio's CD-Text + parser and display the fields. Tests are performed for two files, + one generated by libburnia, the other one by a win95 reference tool. + +2016-06-01 Leon Merten Lohse + + * : Merge remote-tracking branch + 'origin/source-configured-via-compile-switches' into cdtext-testing + +2016-06-01 Leon Merten Lohse + + * include/cdio/mmc.h, lib/driver/_cdio_generic.c, + lib/driver/libcdio.sym, lib/driver/mmc/mmc.c, + lib/driver/mmc/mmc_private.h: Expose mmc_read_cdtext as a publicly + accessable function Removes some redundant error reporting in mmc_read_cdtext (was + mmc_read_cdtext_private) and make the function public. Also fixes + some incorrect lengths for isrc and mcn. + +2016-06-01 Leon Merten Lohse + + * example/.gitignore: Add cdtext-raw to gitignore + +2016-05-31 Leon Merten Lohse + + * lib/driver/mmc/mmc.c: Fix inconsistent maximal length in CD-Text + extraction + +2016-05-31 Leon Merten Lohse + + * configure.ac, test/.gitignore, test/Makefile.am, + test/check_common_fn.in, test/check_cue.sh.in, + test/driver/.gitignore, test/driver/Makefile.am, + test/driver/{bincue.c.in => bincue.c}, test/driver/{cdrdao.c.in => + cdrdao.c}, test/driver/{nrg.c.in => nrg.c}, test/driver/{track.c.in + => track.c}, test/{testgetdevices.c.in => testgetdevices.c}, + test/{testisocd2.c.in => testisocd2.c}, test/{testisocd_joliet.c.in + => testisocd_joliet.c}, test/{testisorr.c.in => testisorr.c}, + test/{testpregap.c.in => testpregap.c}, test/{testudf.c.in => + testudf.c}: Make test sources independent of configure variables The binary tests need the location of the data files. This was + previously achieved by generating the sources with configure. This + commit passes it via -DDATA_DIR to the preprocessor so that the + sources can be static. + +2016-05-30 Leon Merten Lohse + + * lib/driver/mmc/mmc.c: Delete debug printf's + +2016-05-30 Leon Merten Lohse + + * include/cdio/mmc_ll_cmds.h, lib/driver/_cdio_generic.c, + lib/driver/mmc/mmc.c, lib/driver/mmc/mmc_ll_cmds.c, + lib/driver/mmc/mmc_private.h: Untangle mmc code for isrc/mmc and + cdtext This implements (not exclusively) changes proposed by Thomas + Schmitt. Added new low level functions for READ SUB-CHANNEL and + READ TOC/PMA/ATIP for CD-TEXT extraction. + +2016-04-13 Leon Merten Lohse + + * example/Makefile.am, example/README, example/cdtext-raw.c: Add + example demonstrating the raw cdtext parser This example demonstrates the new API functions. + +2016-04-13 Leon Merten Lohse + + * include/cdio/cdtext.h, lib/driver/cdtext.c, + lib/driver/cdtext_private.h, lib/driver/libcdio.sym: Add cdtext + binary parser and track number to public api This introduces 3 new functions to initialize a cdtext struct from + raw cdtext blob and to access the stored first and last track + numbers. The latter is necessary to use the parsed raw cdtext blob + without the corresponding table of contents. + +2016-04-04 Leon Merten Lohse + + * lib/driver/cdtext.c: Avoid buffer overflow in CD-Text parser A malicious binary CD-Text blob could cause the buffer of the parser + to overflow. Add a check for buffer length. + +2016-04-04 Leon Merten Lohse + + * lib/driver/cdtext.c: Interpret TAB indicators in CD-Text parser ASCII TAB (0x9) is a special character in the binary CD-Text format + that is used for consecutive copies of the same string. Correctly + interpret this character. + +2016-04-03 R. Bernstein + + * : Increase track # for short CD-Text fields Bug reported by James Olin Oden in + https://bugzilla.redhat.com/show_bug.cgi?id=1321677 See also + + http://lists.gnu.org/archive/html/libcdio-devel/2016-03/msg00015.html + +2016-04-03 R. Bernstein + + * : Increase track # for short CD-Text fields Bug reported by James Olin Oden in + https://bugzilla.redhat.com/show_bug.cgi?id=1321677 See also + + http://lists.gnu.org/archive/html/libcdio-devel/2016-03/msg00015.htmlOn branch parsing-CD-Text-short-fields + +2016-04-02 R. Bernstein + + * lib/driver/cdtext.c, test/cdtext.right: Increase track # for short + CD-Text fields Bug reported by James Olin Oden in + https://bugzilla.redhat.com/show_bug.cgi?id=1321677 See also + + http://lists.gnu.org/archive/html/libcdio-devel/2016-03/msg00015.html + +2016-04-03 R. Bernstein + + * : commit 90b6276c21cc994e1ba10234bae640f478b21cbe Author: R. + Bernstein Date: Sat Apr 2 21:41:38 2016 -0400 + +2016-04-02 R. Bernstein + + * lib/driver/cdtext.c, test/cdtext.right: fix incorrect parsing of + CD-Text with short fields See + + http://lists.gnu.org/archive/html/libcdio-devel/2016-03/msg00015.html + +2015-07-28 R. Bernstein + + * configure.ac, test/driver/logger.c: Fix warning from automake. + From Adrian Reber During ./autogen.sh following message was printed out: lib/driver/Makefile.am:54: warning: source file 'FreeBSD/freebsd.c' + is in a subdirectory, lib/driver/Makefile.am:54: but option + 'subdir-objects' is disabled automake: warning: possible + forward-incompatibility. automake: At least a source file is in a + subdirectory, but the 'subdir-objects' automake: automake option + hasn't been enabled. For now, the corresponding output automake: + object file(s) will be placed in the top-level directory. However, + automake: this behaviour will change in future Automake versions: + they will automake: unconditionally cause object files to be placed + in the same subdirectory automake: of the corresponding sources. + automake: You are advised to start using 'subdir-objects' option + throughout your automake: project, to avoid future + incompatibilities. Adding the 'subdir-objects' option to AM_INIT_AUTOMAKE removes this + warning. + +2015-07-28 R. Bernstein + + * .gitignore, configure.ac, doc/libcdio.texi, example/.gitignore, + lib/driver/MSWindows/aspi32.c, lib/driver/image/bincue.c, + lib/driver/image/cdrdao.c, lib/driver/sector.c, lib/driver/util.c, + src/getopt.c, test/.gitignore, test/Makefile.am, + test/copying-rr-mingw.right, test/driver/logger.c, + test/driver/mmc_write.c, test/testgetdevices.c.in, + test/testisocd2.c.in: Remove executable bit from files. From Adrian + Reber https://bugzilla.redhat.com/show_bug.cgi?id=1247351 + +2015-06-15 enzo1982 + + * lib/driver/memory.c: Fixed cdio_free leaking instead of freeing + the passed pointer. + +2015-06-14 enzo1982 + + * lib/driver/osx.c: Fix disc eject for Cocoa apps and support + ejecting CD-Extra discs on OS X. + +2015-06-12 enzo1982 + + * lib/driver/gnu_linux.c: Make sure device is opend in read/write + mode when trying to eject. + +2015-05-26 R. Bernstein + + * lib/driver/logging.c: Document better the cdio_logv recursion + situtation + +2015-05-26 R. Bernstein + + * lib/driver/logging.c: Recursion checking in cdio_logv() can't use + cdio_assert_not_reached() which causes more recursion. To reduce the + possibility concurrent log writes, we'll eliminate those that are + ignored earlier. sr #108751: + +2015-05-08 R. Bernstein + + * include/cdio/bytesex.h, lib/iso9660/iso9660_fs.c: Add an error + reporting from_733_with_err bug #45014 + +2015-05-08 R. Bernstein + + * lib/iso9660/rock.c, src/util.c: Guard against malformed rockridge + iso. See bug #45015 + +2015-05-08 R. Bernstein + + * configure.ac, lib/iso9660/iso9660_fs.c, test/driver/logger.c, + test/driver/realpath.c: iso9660_fs.c: DRY free code a little + logger.c: remove gcc warning configure.ac: start testing for mkstemp + for possible use in the future. + +2015-05-08 R. Bernstein + + * lib/iso9660/iso9660_fs.c, test/Makefile.am, test/check_iso.sh.in, + test/data/Makefile.am, test/malformed2.right: bug #45013: malformed + iso crashes iso-info + +2015-05-08 R. Bernstein + + * lib/iso9660/iso9660_fs.c, test/Makefile.am, test/check_iso.sh.in, + test/data/Makefile.am, test/data/malformed.iso, + test/malformed.right: guard against 0-size calloc bug #45016 + +2015-02-23 R. Bernstein + + * configure.ac, example/logging.c, lib/driver/device.c, + lib/driver/image/cdrdao.c, src/cd-drive.c, src/cdda-player.c: Scale + back on CC warning opts used - for now. Address some warnings + though. + +2015-02-23 R. Bernstein + + * configure.ac: Fix configure gcc warning flags test/set + +2015-01-19 R. Bernstein + + * doc/libcdio.texi: Typo: Logical Sector Number -> Logical Block + Address. Correction from Matthew Gambrell - + +2015-01-13 R. Bernstein + + * lib/udf/udf_fs.c: testudf segfaults/fails on big endian arches + because few values are not converted from LE to native number. + Savannah bug #43995. Patch from Dan Horak. + +2014-10-20 R. Bernstein + + * lib/driver/MSWindows/win32.c, lib/driver/MSWindows/win32.h, + lib/driver/MSWindows/win32_ioctl.c: Add get_last_session to the + win32 driver. Also fixes cd-paranoia behavior. Savannah bug #43446. + +2014-10-19 R. Bernstein + + * doc/how-to-make-a-release.txt, lib/driver/mmc/mmc_hl_cmds.c: + mmc_set_drive_speed: GNU/Linux ioctl treats <= 0 as max speed, so + we'll do that here as well. Savannah bug #43428 + +2014-09-29 R. Bernstein + + * configure.ac, doc/how-to-make-a-release.txt: In 0.94git now + +2014-09-29 R. Bernstein + + * NEWS, configure.ac: Release 0.93 + +2014-09-26 R. Bernstein + + * lib/cdio++/Makefile.am: INCLUDES->AM_CPPFLAGS + +2014-09-26 enzo1982 + + * configure.ac, lib/driver/sector.c: Two files still mentioned + GPLv2. + +2014-09-25 R. Bernstein + + * lib/driver/utf8.c: One more gcc warning removed + +2014-09-24 R. Bernstein + + * lib/driver/FreeBSD/freebsd.c, lib/driver/device.c, + lib/driver/image/bincue.c, lib/driver/mmc/mmc.c, src/cd-drive.c: + Silence more gcc warnings + +2014-09-24 R. Bernstein + + * NEWS, lib/driver/Makefile.am, lib/driver/mmc/mmc.c, + lib/iso9660/Makefile.am, lib/udf/Makefile.am, src/cd-info.c, + test/Makefile.am: lib/*/Makefile.am: bump version in preparation of + relase 0.93 test/Makefile.am: add proper dependency on test/example + NEWS: not coverty work + +2014-09-24 R. Bernstein + + * : commit cdc3cfa07cf1059b63c145a32aa62f2b1fdcb065 Author: R. + Bernstein Date: Wed Sep 24 20:26:50 2014 -0400 + +2014-09-24 R. Bernstein + + * NEWS, src/Makefile.am: Perparation for 0.93 release. + +2014-09-24 enzo1982 + + * doc/libcdio.texi: Update docs for change in cdio-paranoia. + +2014-09-24 enzo1982 + + * example/isolsn.c, include/cdio++/iso9660.hpp, + include/cdio/iso9660.h, include/cdio/xa.h, lib/cdio++/iso9660.cpp, + lib/iso9660/iso9660_fs.c, lib/iso9660/libiso9660.sym, + lib/iso9660/xa.c: Add iso9660_stat_free and iso9660_xa_free + functions. + +2014-09-24 enzo1982 + + * include/cdio++/cdtext.hpp, include/cdio++/disc.hpp, + include/cdio++/mmc.hpp, include/cdio/Makefile.am, + include/cdio/cdio.h, include/cdio/cdtext.h, include/cdio/disc.h, + include/cdio/memory.h, include/cdio/mmc.h, include/cdio/track.h, + include/cdio/utf8.h, include/cdio/util.h, lib/driver/Makefile.am, + lib/driver/_cdio_stdio.c, lib/driver/cdtext.c, lib/driver/disc.c, + lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/libcdio.sym, lib/driver/memory.c, lib/driver/mmc/mmc.c, + lib/driver/track.c, lib/driver/utf8.c, lib/driver/util.c, + src/cd-info.c, src/mmc-tool.c, test/driver/mmc_read.c, + test/driver/mmc_write.c: Add cdio_free function for freeing memory + allocated by libcdio. + +2014-07-30 R. Bernstein + + * lib/driver/os2.c, src/getopt.h: Make high memory safe on OS/2 - + from KO + +2014-07-27 R. Bernstein + + * .gitignore, THANKS: More ignore. Update OS/2 email contact. + +2014-06-22 R. Bernstein + + * example/audio.c, include/cdio++/cdio.hpp, + lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/image/nrg.c, lib/driver/mmc/mmc.c, src/cd-info.c, + src/iso-read.c, src/mmc-tool.c: A couple more coverty-found + problems, none serious + +2014-06-22 R. Bernstein + + * lib/iso9660/iso9660_fs.c, src/iso-read.c: A couple more + coverty-found memory leaks in minor code + +2014-06-22 R. Bernstein + + * example/udf1.c, src/cd-info.c, src/iso-info.c: A couple more + coverty-found memory leaks in minor code + +2014-06-22 R. Bernstein + + * lib/iso9660/iso9660_fs.c, src/iso-read.c, src/util.c: Some minor + coverty-found memory leaks + +2014-06-21 R. Bernstein + + * lib/driver/mmc/mmc.c: Remove possible illegal access in mmc.c + suggested by coverty + +2014-06-21 R. Bernstein + + * lib/udf/udf_fs.c: Coverty-informed error fixed: cd-info: don't + overrun _fullname. This time, for sure! + +2014-06-20 R. Bernstein + + * src/cd-info.c: Coverty-informed error fixed: cd-info: don't + overrun _fullname + +2014-06-20 R. Bernstein + + * lib/iso9660/iso9660.c, lib/udf/udf_fs.c, src/iso-info.c: Coverty + informed errors fixed: Make sure tokenline ends in '\0'; make sure + we don't leak on multiple storage iso-info -i switches + +2014-06-20 R. Bernstein + + * example/extract.c, lib/driver/image/bincue.c, src/iso-info.c: + Reduce coverty-found errors + +2014-06-20 R. Bernstein + + * lib/driver/image/cdrdao.c: Fix compilation error. Simplify by + reducing scope of psz_dirname and psz_filename. + +2014-06-18 R. Bernstein + + * doc/libcdio.texi, example/mmc2.c, include/cdio/mmc.h, + lib/driver/FreeBSD/freebsd.c, lib/driver/MSWindows/win32.c, + lib/driver/MSWindows/win32.h, lib/driver/MSWindows/win32_ioctl.c, + lib/driver/aix.c, lib/driver/bsdi.c, lib/driver/gnu_linux.c, + lib/driver/libcdio.sym, lib/driver/mmc/mmc.c, + lib/driver/mmc/mmc_private.h, lib/driver/netbsd.c, + lib/driver/os2.c, lib/driver/solaris.c, src/cd-info.c: Merge commit + '2561384' into static-analysis. Remove Illegal address computation + +2014-06-18 R. Bernstein + + * src/getopt_int.h: This file is now needed for getopt + +2014-06-18 R. Bernstein + + * example/mmc2.c: Remove illegal address computation caught by + coverty + +2014-06-13 R. Bernstein + + * src/getopt.c, src/getopt.h, src/getopt1.c: Updated getopt to the + version included with glibc 2.19. [robert kausch] + +2014-06-13 R. Bernstein + + * lib/iso9660/iso9660_fs.c: Fixed ISO 9660 bugs reported by + Frantisek Kluknavsky. + +2014-06-14 enzo1982 + + * src/getopt.c, src/getopt.h, src/getopt1.c, src/getopt_int.h: + Updated getopt to the version included with glibc 2.19. + +2014-06-14 enzo1982 + + * lib/driver/abs_path.c, lib/driver/cdio_private.h, + lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + test/driver/abs_path.c: Avoid memory leaks with cdio_dirname and + cdio_abspath. The functions were changed to always allocate memory to be freed by + the caller. Before, callers were unable to know if the returned + string was stack- or heap-allocated and thus unable to free + heap-allocated strings. + +2014-06-13 enzo1982 + + * lib/iso9660/iso9660_fs.c, lib/udf/udf_fs.c: Fixed bugs reported by + Frantisek Kluknavsky. + +2014-06-08 R. Bernstein + + * doc/libcdio.texi: Some doc typos. Add mention of mmc-tool. Note + that paraonia is separate and is GPL2 + +2014-06-07 Robert Kausch + + * : commit 6550d3a654b4beb708d6ea296cf9110e75320100 Author: Robert + Kausch Date: Sat Jun 7 13:28:06 2014 + +0200 + +2014-06-07 Robert Kausch + + * lib/driver/FreeBSD/freebsd.c, lib/driver/MSWindows/win32.c, + lib/driver/MSWindows/win32.h, lib/driver/MSWindows/win32_ioctl.c, + lib/driver/aix.c, lib/driver/bsdi.c, lib/driver/gnu_linux.c, + lib/driver/netbsd.c, lib/driver/os2.c, lib/driver/solaris.c: Enable + cdio_get_track_isrc in drivers. + +2014-06-07 Robert Kausch + + * include/cdio/mmc.h, src/cd-info.c: Deprecate + mmc_isrc_track_read_subchannel. + +2014-06-07 Robert Kausch + + * include/cdio/mmc.h, lib/driver/libcdio.sym, lib/driver/mmc/mmc.c, + lib/driver/mmc/mmc_private.h: Add mmc_get_track_isrc function. + +2014-06-06 Robert Kausch + + * configure.ac: configure.ac: recognize Darwin 13 and 14 (OS X 10.9 + and 10.10) + +2014-06-05 Robert Kausch + + * lib/driver/osx.c: lib/driver/osx.c: probe devices before querying + media list The problem with IOServiceGetMatchingServices is that the result is + cached by the system so if you insert or remove a disc between two + calls, you won't get updated information. To get an up to date media list, we need to probe the storage + devices using IOServiceRequestProbe before each call. + +2014-06-05 R. Bernstein + + * THANKS: Add Robert Kausch + +2014-06-04 R. Bernstein + + * configure.ac, lib/driver/netbsd.c: From Robert Kausch: configure + recognizes OpenBSD (via the NetBSD driver) which Robert says he has + tested + +2014-06-04 R. Bernstein + + * configure.ac: From Robert Kausch: configure recognizes FreeBSD 10 + which Robert says he has tested + +2014-06-04 R. Bernstein + + * .gitignore, config_extract.rb, example/Makefile.am, + lib/driver/MSWindows/win32.c, src/cd-read.c, test/Makefile.am: From + Robert Kausch: Binary file I/O on MS Windows. More ignore, and + remove schmutz files created in testing + +2014-06-04 R. Bernstein + + * lib/driver/MSWindows/win32_ioctl.c: More great work from From + Robert Kausch (https://savannah.gnu.org/patch/index.php?8302): - make buffer size unlimited again in buffered mode - do not set Spt.Cdb[4] to buffer size as position of allocation + size field depends on CDB size and is not always at byte 4, rely on + caller to set the field as in direct mode - fix memory leak in case of an error in buffered mode (p_sptwb was + not freed) - use stack allocated structure in direct mode to prevent constant + reallocation of memory (note that before the patch, memory was + allocated to include the buffer as well, which was pointless as an + already allocated buffer is passed in direct mode) - rename direct mode unsigned int parameters u_* to match buffered + mode parameter names - fix top comment to use correct parameter names and include u_cdb + Direct mode is functionally unchanged. + +2014-03-13 R. Bernstein + + * lib/iso9660/rock.c: From Pete Batard: Fix unwanted 'Unsupported NM + flag settings' messages + +2014-03-08 R. Bernstein + + * configure.ac: Bump version to 0.93git + +2014-03-08 R. Bernstein + + * lib/driver/Makefile.am: Bug #41811 linking libcdio.dylib on OSX - + missing libraries from $DARWIN_PKG_LIB_HACK + +2014-02-22 rocky + + * : commit c8eb88a0fdfe1dd0808c0a02025a3ffe7072d12c Author: Pete + Batard Date: Sun Feb 23 02:28:55 2014 +0000 + +2014-02-23 Pete Batard + + * : Add new UDF test image + +2014-02-21 R. Bernstein + + * lib/driver/utf8.c, lib/udf/udf_fs.c, test/check_fuzzyiso.sh, + test/testudf.c.in: Unicode support to udf_fs and return UTF-8 + strings where relevant. From Pete Batard + +2014-02-01 R. Bernstein + + * lib/driver/osx.c, test/driver/osx.c: patch #8292: Do not list + slice devices on OS X. Thanks to robert.kausch@freac.org + +2014-02-01 R. Bernstein + + * lib/driver/sector.c: patch #8293: Fix minute truncation in + cdio_lsn_to_msf thanks to Eric Hattow + +2013-12-15 R. Bernstein + + * NEWS, configure.ac, lib/driver/Makefile.am, + lib/iso9660/Makefile.am, lib/udf/Makefile.am: Get ready for release + 0.92 + +2013-12-14 R. Bernstein + + * configure.ac: Get ready for release 0.91 + +2013-12-14 R. Bernstein + + * NEWS, include/cdio/iso9660.h, lib/driver/FreeBSD/freebsd.c, + lib/driver/Makefile.am, lib/iso9660/Makefile.am, + lib/udf/Makefile.am: Bump age in libudf, libiso966 and libcdio: only + interfaces added. + +2013-12-14 R. Bernstein + + * configure.ac: Respect --disable-cxx + +2013-12-14 rocky + + * example/cdchange.c, lib/driver/cdtext.c, src/iso-read.c: Remove + remaining compilation warnings. Thanks again to Thomas Schmitt. + +2013-12-14 rocky + + * lib/driver/cdtext.c, test/driver/mmc_read.c: mmc_read.c: no need + to special case FreeBSD. cdtext.c: Remove unnecessary > 0 tests on + an unsigned int type. Thanks to Thomas Schmitt. + +2013-12-12 R. Bernstein + + * lib/driver/_cdio_generic.c, test/driver/mmc_read.c: + _cdio_generic.c: correct confusing debug message + test/driver/mmc_read.c: skip until someone understand what to do + here. + +2013-12-12 R. Bernstein + + * lib/driver/FreeBSD/freebsd_ioctl.c: Remove compile warning. + +2013-12-09 R. Bernstein + + * NEWS, lib/udf/udf_fs.c: Fix UDF library bug on BigEndian CPUs + (POWER, SPARC, HP/UX) + +2013-12-09 R. Bernstein + + * lib/udf/udf_fs.c: Towards getting this to be big-endian + compatible. More work is needed though. + +2013-12-08 R. Bernstein + + * test/check_iso_read.sh.in: check_iso_read.sh.in: Solaris doesn't + do test -e, it does test -f. Allow VERBOSE=1 to have this give more + output + +2013-12-08 R. Bernstein + + * test/check_iso_read.sh.in: Silence ceck_iso_read.sh. Also don't + assume tar has -z option. (Solaris for example doesn't) + +2013-12-08 R. Bernstein + + * Makefile.am, make-check-filter.pl: Add a Perl version of + make-check-filter.pl for those environments like MinGW that find it + hard to get Ruby installed. Sigh + +2013-12-08 R. Bernstein + + * configure.ac, example/Makefile.am: Make 0.91rc1 + +2013-12-08 R. Bernstein + + * test/data/Makefile.am, test/testudf.c.in: Move udf102.iso to the + place data other test images are located. + +2013-11-12 R. Bernstein + + * src/iso-info.c: Typo in iso-info usage help corrected by Leo + Baschy + +2013-10-30 R. Bernstein + + * test/testudf.c.in: From Pete Batard: Add UDF test for Logical + Volume ID + +2013-10-29 R. Bernstein + + * configure.ac, test/.gitignore, test/Makefile.am: From Pete Batard: + Add UDF test for Logical Volume ID + +2013-10-29 R. Bernstein + + * lib/iso9660/iso9660_fs.c: Don't need to free rr symlink which + isn't allocated. + +2013-10-27 R. Bernstein + + * example/Makefile.am, example/isorr.c, include/cdio/iso9660.h, + lib/iso9660/iso9660_fs.c, src/iso-info.c, test/testisorr.c.in: Put + limit on amount of file traversion for rock-ridge requested. + +2013-10-26 R. Bernstein + + * src/iso-info.c: Change report format for showing whether Rock + Ridge Extensions are used in iso-info + +2013-10-24 R. Bernstein + + * : commit ed9594d386fa85fde79cfeb5b9fff2dca2425428 Author: R. + Bernstein Date: Thu Oct 24 06:04:46 2013 -0400 + +2013-10-21 R. Bernstein + + * visualC-config.rb: A stray test/ goit in filename suffixes; chmod + +x /visualC-config.rb + +2013-10-20 R. Bernstein + + * test/check_iso_read.sh.in: Revise for POSIX shell (remove bash + extensions) so it works on systems that don't do /bin/bash, e.g. + FreeBSD. + +2013-10-20 R. Bernstein + + * visualC-config.rb: Remove debug puts + +2013-10-20 R. Bernstein + + * visualC-config.rb: Add LIBCDIO_SOURCE_PATH and substitute in + doc/doxygen/Doxyfile + +2013-10-20 R. Bernstein + + * visualC-config.rb: Correct comment for visualC-config's + perform_substitutions + +2013-10-20 R. Bernstein + + * NEWS, include/cdio/version.h.in, visualC-config.rb: Start + alternate method of config OS's that aren't POSIX + +2013-10-20 R. Bernstein + + * test/Makefile.am: Add special "right" file for mingw32 for + check_cue.sh + +2013-10-20 R. Bernstein + + * .gitignore, example/.gitignore, test/.gitignore, + test/copying-rr-mingw.right: More ignore + +2013-10-20 R. Bernstein + + * configure.ac, test/check_iso.sh.in: Ignore with MINGW32 RR oddity + +2013-10-20 R. Bernstein + + * test/Makefile.am, test/check_cue.sh.in, test/testdefault.c, + test/testgetdevices.c.in, test/testisocd2.c.in: Remove + test/testdefault.c which is now covered by getdevices.c ; Limp along + check_cue.sh on cygwin + +2013-10-20 R. Bernstein + + * test/driver/logger.c: For some reason comparing fn handle on + MS/Windows does not work. We will see if that is true on other + platforms too. + +2013-10-19 rocky + + * test/driver/logger.c: Cast for debug output + +2013-10-19 R. Bernstein + + * configure.ac: Have to put back in more of the C++ tests. Sigh + +2013-10-19 rocky + + * configure.ac, test/driver/logger.c: Disable C++ more aggressively + if disabling C++ desired. + +2013-10-19 R. Bernstein + + * lib/driver/device.c, lib/driver/utf8.c: Remove 'p_driver_id' may + be used uninitialized in cdio_close_try. Remove conflicting types in + cdio_charset_to_utf8. Patches from Pete Batard. + +2013-10-19 R. Bernstein + + * test/Makefile.am: Better test and linking for isofs-m1.{bin,cue}. + Problem reported by Pete Batart. + +2013-10-14 rocky + + * include/cdio/udf.h, lib/udf/udf_fs.c: From Pete Batard: * Add udf_get_logical_valume_id to retreive a UDF Logical Volume + Identifier string * Fix a possible NULL deref in udf_ff_traverse() * Fix comments that were referencing wrong variable names + +2013-10-09 R. Bernstein + + * test/testisocd_joliet.c.in: Check that Joliet was configured for + some tests. + +2013-10-09 R. Bernstein + + * Makefile.am, configure.ac, lib/driver/_cdio_generic.c, + lib/driver/cd_types.c, lib/driver/generic.h, lib/iso9660/iso9660.c, + src/util.c, test/.gitignore, test/Makefile.am, + test/testisocd2.c.in, test/testisocd_joliet.c.in: Add joliet test + and joliet level tests + +2013-10-08 R. Bernstein + + * : commit 4c8361f12c1cb7c2cc4f7246069a0f12b53e59a0 Author: R. + Bernstein Date: Tue Oct 8 03:04:24 2013 -0400 + +2013-10-08 R. Bernstein + + * lib/driver/_cdio_generic.c, lib/driver/aix.c, + lib/driver/cd_types.c, lib/driver/generic.h, lib/driver/track.c, + lib/iso9660/iso9660.c, lib/iso9660/iso9660_fs.c, src/iso-info.c, + src/util.c: List joliet level on iso-info. i_joliet_level -> + u_joliet_level. Not in p_iso whether we've read superblock or not. + Strip blanks in effected files. + +2013-09-26 R. Bernstein + + * test/check_iso_read.sh.in: As Leo Baschy suggests, we need + /bin/bash (or ksh) since we use [[ in this program. + +2013-09-21 R. Bernstein + + * doc/libcdio.texi, example/extract.c, example/logging.c, + include/cdio/logging.h, lib/driver/libcdio.sym, + lib/driver/logging.c, test/Makefile.am, test/driver/.gitignore, + test/driver/Makefile.am, test/driver/logger.c: Rename and expose + cdio_default_loghandler as the default log handler. + test/driver/logger.c: Add logging unit test. doc/libcdio.texi: + Correct documentation on CDIO_LOG_ASSERT and CDIO_LOG_ERROR. + +2013-09-20 R. Bernstein + + * doc/libcdio.texi: Update copyright on doc + +2013-09-20 R. Bernstein + + * doc/libcdio.texi, example/logging.c: Add information about setting + the log level. + +2013-09-20 R. Bernstein + + * example/isofile2.c, lib/driver/read.c: More debug logging in + reading lsn sectors. + +2013-09-20 R. Bernstein + + * example/logging.c: Add a custom log handler. + +2013-09-20 R. Bernstein + + * example/Makefile.am, example/isofile2.c, example/logging.c, + lib/driver/_cdio_generic.c, lib/driver/device.c: example/isofile2.c: + correct location of ISO9660 file Makefile.am: use logging in list of + tests logging.c: allow argument to be "debug", "info", "warn", etc. + or a number _cdio_generic.c: remove stray blanks + +2013-09-19 R. Bernstein + + * example/.gitignore, example/Makefile.am, example/logging.c, + include/cdio/device.h, lib/driver/device.c, test/driver/mmc_read.c, + test/driver/mmc_write.c: include/cdio/device.h: add + cdio_get_driver_name_from_id lib/driver/device.c: more logging + example/logging.c: example of how to increase verbosity of logging. + mmc_read.c, mmc_write.c: don't show info logging by default. + +2013-09-15 R. Bernstein + + * lib/iso9660/iso9660_fs.c, test/Makefile.am: 2nd try at but #39373. + Add target check-iso-read-large and check-iso-read-large-terse to + test. + +2013-09-15 R. Bernstein + + * lib/iso9660/iso9660_fs.c: Remove old shmutz + +2013-09-15 R. Bernstein + + * lib/iso9660/iso9660_fs.c: Update copyright date + +2013-09-15 R. Bernstein + + * lib/iso9660/iso9660_fs.c: patch for bug #39373 from Leo Baschy + +2013-09-01 R. Bernstein + + * .gitignore, configure.ac, test/.gitignore, test/Makefile.am, + test/check_iso_read.sh.in: Adapt and add Leo Baschy's test of + iso-read. + +2013-09-01 R. Bernstein + + * .gitignore, configure.ac, test/Makefile.am, test/check_cue.sh.in, + test/isofs-m1-test2.right, test/isofs-m1.right: We weren't enabling + Rock-Ridge by default as intended. Thanks to Mike Frysinger for + catching this. + +2013-05-28 Eric Shattow + + * src/Makefile.am: Remove 'lt-' prefix using help2man --libtool + +2013-05-28 Brendan O'Dea + + * src/cd-drive.help2man, src/cd-info.help2man, + src/cd-read.help2man, src/iso-info.help2man, src/iso-read.help2man: + Fix NAME paragraph in man pages. Closes #39095 + +2013-05-16 R. Bernstein + + * lib/driver/track.c: Squash another bug in cdio_get_track() + +2013-05-15 R. Bernstein + + * lib/driver/image_common.c: Test whther TOC is init'd and init if + not when asking for track number. + +2013-05-15 R. Bernstein + + * test/driver/track.c.in, test/testpregap.c.in: Update comments in + test programs for how to compile outside of "make". + +2013-05-15 R. Bernstein + + * configure.ac, lib/driver/track.c, test/data/cdda.toc, + test/driver/.gitignore, test/driver/Makefile.am, + test/driver/track.c.in, test/testpregap.c.in: lib/driver/track.c: + was returning last_track+1 for leadout LSN, Use + CDIO_CROM_LEADOUT_TRACK instaead. ltest/driver/track.c.in: start + test of lib/driver/track.c. cdda.toc: CDRDAO CD-DA image. Trim + blanks off of varousl files. + +2013-04-11 R. Bernstein + + * lib/driver/track.c, test/Makefile.am: We broke things in to fix + #38421 we broke the things. + +2013-04-09 rocky + + * lib/driver/MSWindows/win32_ioctl.c: Fix up mmc_read for + SCSI_PASS_THROUGH_DIRECT + +2013-04-07 R. Bernstein + + * configure.ac, example/C++/Makefile.am, + example/C++/OO/Makefile.am, example/Makefile.am, + include/cdio/udf_time.h, lib/driver/MSWindows/win32.c, + lib/driver/MSWindows/win32_ioctl.c, lib/driver/Makefile.am, + lib/iso9660/Makefile.am, lib/udf/Makefile.am, src/Makefile.am, + test/Makefile.am, test/driver/Makefile.am: Savannah #38678, mostly + from LRN: mingw-w64 compatibility, fixes Windows ioctl code for + PASSTHROUGH_DIRECT. Other changes: INCLUDES => AM_CPPFLAGS. + test/Makefile.am: fix up test for whether to run ln -s or not. + compatibility, the other fixes up old code that went stale. The + third patch is already in HEAD. + +2013-04-06 R. Bernstein + + * configure.ac: It is AC_CONFIG_HEADERS -- with an "S" + +2013-04-06 R. Bernstein + + * configure.ac: Savannah bug #38663 . Thanks to LRN. + +2013-03-31 R. Bernstein + + * include/cdio/track.h, lib/driver/cdtext.c, + lib/driver/cdtext_private.h, lib/driver/gnu_linux.c, + lib/driver/sector.c: One more attempt to give a guard against using + more than 99 tracks. + +2013-03-03 R. Bernstein + + * lib/driver/gnu_linux.c: Remove debug code + +2013-03-03 R. Bernstein + + * lib/driver/gnu_linux.c, lib/driver/track.c: 2nd attempt at + Savannah #38421 + +2013-02-26 R. Bernstein + + * lib/driver/gnu_linux.c: Correct calculation in listing number of + bad tracks + +2013-02-26 R. Bernstein + + * lib/driver/gnu_linux.c: Wrong calculation for number of tracks. + Savannah #bug #38421 + +2013-02-06 R. Bernstein + + * : commit 9a14bd745c609880994fc5689b215e555fe93fc7 Author: R. + Bernstein Date: Wed Feb 6 19:06:31 2013 -0500 + +2013-02-02 R. Bernstein + + * lib/driver/MSWindows/win32_ioctl.c: DDynamically allocate + passthrough buffer based on info LRN in libcdio-devel Sun Jan 20, + 2013 + +2012-11-23 R. Bernstein + + * : commit 6c0251d145e44b7cdfeb9767c615646fb8f51320 Author: + Christophe Fergeau Date: Thu Nov 22 13:53:15 + 2012 +0100 + +2012-11-20 R. Bernstein + + * doc/libcdio.texi: Try to clearify LBA versus LSN in libcdio. + +2012-11-04 R. Bernstein + + * lib/driver/Makefile.am: Bump library number + +2012-10-27 R. Bernstein + + * doc/doxygen/Doxyfile.in, include/cdio/cdtext.h, + include/cdio/mmc.h, include/cdio/mmc_cmds.h, + include/cdio/mmc_hl_cmds.h, include/cdio/mmc_ll_cmds.h, + include/cdio/utf8.h, lib/driver/mmc/mmc_ll_cmds.c: Doxygen update, + fixes, tweaks for release. + +2012-10-27 R. Bernstein + + * make-check-filter.rb: make-check-short.rb: ignore gmake as you + would make or remake + +2012-10-27 R. Bernstein + + * NEWS, configure.ac: Make configure SED environment aware, e.g. for + OSX (Robert William Fuller). Get ready for release 0.90 + +2012-10-27 R. Bernstein + + * lib/driver/MSWindows/win32_ioctl.c: Try to mitigate some of the + Windows driver brokenness + +2012-10-24 R. Bernstein + + * THANKS: Christophe Fergeau added UDF reading to iso-info as well + +2012-10-24 R. Bernstein + + * : commit 2cda07957f08f07304f63cc158f881735fb24003 Author: Leon + Merten Lohse Date: Wed Oct 24 20:06:08 2012 + +0200 + +2012-10-22 rocky + + * src/iso-info.c, src/iso-read.c: -U option-processing fixes. + +2012-10-21 R. Bernstein + + * : commit 906462c731edee99910f4a67f7e75085a5e50ff4 Author: R. + Bernstein Date: Sun Oct 21 22:42:50 2012 -0400 + +2012-10-21 R. Bernstein + + * NEWS: Update NEWS + +2012-10-21 R. Bernstein + + * src/Makefile.am, src/iso-info.c, src/iso-read.c: Add allow + iso-read and iso-info to handle UDF format via options --udf or -U. + Modified patch #7865 + +2012-10-22 rocky + + * make-check-filter.rb: make-check-filter.rb: Ignore older "make: .. + is up to date." message + +2012-10-21 R. Bernstein + + * make-check-filter.rb: make-check-filter.rb: Correct remake + separator string + +2012-10-21 rocky + + * configure.ac, lib/driver/MSWindows/win32_ioctl.c: Convert + win32_ioctl.c to use header-tested includes from configure + +2012-10-21 R. Bernstein + + * configure.ac: Towards getting MinGW and cygwin ddk includes + correct. + +2012-10-21 rocky + + * lib/driver/MSWindows/win32_ioctl.c: Revise to make cygwin work + again. Warning - more checking is needed. + +2012-10-21 R. Bernstein + + * .gitignore, lib/driver/MSWindows/win32_ioctl.c: Small stuff: + Indent win32_ioctl.c defines. ignore all ~'s + +2012-10-19 R. Bernstein + + * NEWS, THANKS, src/iso-read.c: Add UDF support to iso-read + +2012-10-19 R. Bernstein + + * src/Makefile.am, src/iso-read.c: Move ISO9660 specific code to a + helper function; adding UDF support to iso-read. From Christophe + Fergeau patch #7865 + +2012-10-18 Leon Merten Lohse + + * lib/driver/image/bincue.c: Fix bin/cue cdtext parsing using wrong + track number. Thanks to Robert William Fuller + +2012-10-18 Leon Merten Lohse + + * include/cdio/cdtext.h, lib/driver/cdtext.c, + lib/driver/libcdio.sym, src/cd-info.c, test/cdtext.right: Add + cdtext_get_genre Add GENRE_CODE output to cd-info and update test + +2012-10-17 R. Bernstein + + * THANKS: Note Robert William Fuller's fixes to CD-Text for Nero. + +2012-10-15 R. Bernstein + + * include/cdio/Makefile.am: More liberal space after #define + suggested by Robert William Fuller + +2012-10-10 R. Bernstein + + * lib/driver/gnu_linux.c: Reduce level of severity resolving + realpath in GNU/Linux driver is_mounted(). Adrian Reber post to + libcdio-devel + +2012-10-02 R. Bernstein + + * NEWS, include/cdio/mmc.h, lib/driver/gnu_linux.c, + lib/driver/libcdio.sym, lib/driver/mmc/mmc.c, make-check-filter.rb, + test/driver/mmc_read.c: Add mmc_cmd2str() + +2012-10-02 R. Bernstein + + * NEWS, include/cdio/mmc.h: Add MMC5 commands. Thanks yet again to + Thomash Schmitt for doing the heavy lifting. + +2012-10-02 R. Bernstein + + * lib/driver/MSWindows/aspi32.c, lib/driver/MSWindows/win32.c, + lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/sector.c, lib/driver/util.c, src/getopt.c, + test/driver/mmc_write.c: Remove some gcc warnings and change wording + of a test warning message + +2012-10-01 rocky + + * README.libcdio: Make note that gcc 4.0 or greater is needed on + MinGW + +2012-10-01 R. Bernstein + + * lib/driver/MSWindows/win32_ioctl.c, lib/driver/gnu_linux.c: Show + opcode in linux on a MMC error if loglevel is info or more detailed. + +2012-10-01 rocky + + * lib/driver/MSWindows/win32_ioctl.c: Show MMC opcode on a bad MMC + command + +2012-09-30 R. Bernstein + + * include/cdio/mmc.h, make-check-filter.rb: mmc.h: Add additional + MMC4/ATAPI command codes from + http://wiki.osdev.org/ATAPI#Complete_Command_Set . + make-check-filter.rb: remove C++ compile and loads + +2012-09-27 rocky + + * configure.ac: This time, for sure? + +2012-09-27 R. Bernstein + + * configure.ac, test/testisocd2.c.in, test/testpregap.c.in: + Recalculate native_top_srcdir one more time + +2012-09-27 rocky + + * configure.ac, test/testisocd2.c.in, test/testpregap.c.in: Add + native_top_srcdir MinGW and DOS/Windows. + +2012-09-26 rocky + + * configure.ac: Limit MINGW native path the srcdir and + abs_top_srcdir + +2012-09-26 rocky + + * configure.ac: A more specific use of bash's pwd builtin + +2012-09-26 rocky + + * configure.ac: MINGW wants native paths in regression tests bug + #37447 + +2012-09-26 rocky + + * example/mmc2a.c: More places where -- prefix output added on + examples + +2012-09-26 rocky + + * test/driver/mmc_write.c: Shorten output for mmc_write.exe + +2012-09-26 R. Bernstein + + * Makefile.am, example/Makefile.am, example/README, + example/cdchange.c, example/cdtext.c, example/device.c, + example/drives.c, example/extract.c, example/isofuzzy.c, + example/mmc1.c, example/mmc2.c, example/mmc2a.c, example/mmc3.c, + example/sample4.c, make-check-filter.rb, test/Makefile.am, + test/check_common_fn.in, test/check_cue.sh.in, + test/check_nrg.sh.in, test/check_sizeof.c, test/driver/Makefile.am, + test/driver/realpath.c, test/testgetdevices.c.in, + test/testischar.c, test/testisocd.c, test/testpregap.c.in: Add "make + check-short" target to run tests without bloated output. + +2012-09-26 rocky + + * include/cdio/types.h: Work on packed definition for MinGW + +2012-09-25 R. Bernstein + + * lib/driver/MSWindows/win32_ioctl.c: Fix text in warning message + +2012-09-25 rocky + + * lib/driver/MSWindows/win32_ioctl.c: Small change + +2012-09-24 R. Bernstein + + * include/cdio/types.h, lib/iso9660/iso9660.c, + lib/iso9660/iso9660_private.h: Make bool be 8-bit. Rather switch + than find where in ISO9660 there was a discrepency between stdbool + and the type.h definition. + +2012-09-23 R. Bernstein + + * lib/iso9660/iso9660_fs.c, lib/iso9660/iso9660_private.h, + lib/udf/udf_private.h, src/cdda-player.c: Try again for more + consistent use of booleans. WARNING libiso9660 is broke. Last known + good commit is 6137ddb73763bcdc524f65dde2048bc639695dc4. + +2012-09-23 rocky + + * lib/driver/MSWindows/win32_ioctl.c, lib/driver/device.c, + lib/driver/disc.c, lib/driver/generic.h, lib/driver/image.h, + lib/driver/image/nrg.c, lib/driver/mmc/mmc.c, + lib/driver/mmc/mmc_ll_cmds.c, lib/driver/read.c, lib/driver/track.c: + Make sure stdbool is used in driver when it is defined. I think this + fixes bug #37394 + +2012-09-23 rocky + + * example/C++/.gitignore, lib/driver/MSWindows/win32_ioctl.c: Follow + MS SCSI Passthrough more closely. Still some bugs... + +2012-09-22 rocky + + * lib/driver/MSWindows/win32_ioctl.c: Provisional changes based on + bug 37394 + +2012-09-19 R. Bernstein + + * configure.ac: Update where to report bugs + +2012-09-18 rocky + + * lib/driver/MSWindows/win32_ioctl.c: Need to include stdbool.h so + _Bool does not get defined as int on Windows win32_ioctl.c + +2012-09-15 R. Bernstein + + * lib/driver/image/bincue.c, test/driver/mmc_read.c, + test/driver/mmc_write.c: image/bincue.c: remove gcc warning. + mmc_read.c, mmc_write.c: use usleep if that's avalable; fall back to + "for" loop if sleep, usleep, and MSwindows Sleep isn't avialable. + +2012-04-29 rocky + + * THANKS: Add Natalia Portillo to the hall of fame + +2012-04-29 Natalia Portillo + + * lib/driver/osx.c: Changed Mac OS X SDK check so it detects correct + path for 10.3 and 10.4, not only >=10.5. Tested it compiles and + works on 10.3, 10.4, 10.5, 10.6 and 10.7. If Mac OS X SDK is 10.5, + include bluray headers, if not manually define the BD media class + for IOKit travelling. When searching for an optical drive, search + also for BD media class, so if drive is a BD with a BD disc it will + be found (BD with CD or DVD discs were found before). + +2012-04-29 R. Bernstein + + * configure.ac, lib/driver/_cdio_generic.c: _cdio_generic.c: + Initialize new scsi_tuple field. Removes SEGV in OSX and others. + configure.ac: Try sed -r and -E rather than rely on OS type. + +2012-04-28 R. Bernstein + + * lib/driver/aix.c, lib/driver/bsdi.c, lib/driver/netbsd.c, + lib/driver/os2.c, lib/driver/osx.c, lib/driver/solaris.c, + src/Makefile.am: osx.c: try to eliminate invalid free of an + uninitialized structure. untabify various drivers and get this more + in-sync with gnu_linux.c driver. + +2012-04-28 R. Bernstein + + * : commit 07711418d09c1b709759021d1157eb9521990072 Author: R. + Bernstein Date: Sat Apr 28 21:06:50 2012 -0400 + +2012-04-28 R. Bernstein + + * configure.ac, include/cdio/Makefile.am: OSX and BSD use -E for + extended re's rather than GNU -r + +2012-04-28 rocky + + * configure.ac, lib/driver/osx.c: Do not need DARWIN_10_OR_GREATER + but can use __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ instead + courtesy Natalia Portillo. Savannah Bug #36330 + https://savannah.gnu.org/bugs/?36330 + +2012-04-26 R. Bernstein + + * THANKS, lib/driver/osx.c: Fix #30467 cdio_get_default_device() + returns non-cdrom removable. From Nigel Pearson. + +2012-04-23 R. Bernstein + + * configure.ac: Need to allow darwin10.8 etc. + +2012-04-23 rocky + + * lib/driver/FreeBSD/freebsd.h, lib/driver/MSWindows/win32.c, + lib/driver/MSWindows/win32.h, lib/driver/aix.c, + lib/driver/netbsd.c, lib/driver/os2.c: Pete's changes require a more + aggressive use of stdbool.h. + +2012-04-22 R. Bernstein + + * configure.ac: configure architecture fixes from Nigel Pearson. + +2012-04-22 R. Bernstein + + * NEWS: Make a stab at recording what's changed. + +2012-04-21 R. Bernstein + + * configure.ac, lib/driver/osx.c: OSX fixes: test for stdbool.h, + allow darwin10-12 and set DARWINT_10_OR_GREATER. Use generic CD-Text + routines. + +2012-04-17 rocky + + * lib/driver/cdtext_private.h: Use typedefs for enums. OSX 10.6's C + compiler seems to create storage for enums. + +2012-04-16 R. Bernstein + + * configure.ac, lib/driver/aix.c, lib/driver/bsdi.c, + lib/driver/image/nrg.c, lib/driver/mmc/mmc.c, lib/driver/osx.c, + lib/driver/solaris.c: Reduce use of cdtext_private.h. Let's see if + autoconf 2.61 (circa 6 years ago) is okay. Some MacBooks seem to + still use this. + +2012-04-16 R. Bernstein + + * lib/driver/gnu_linux.c: ld: duplicate symbol _cdtext_format_enum + in .libs/gnu_linux.o and .libs/cdtext.o for architecture x86_64 on + OSX. I don't think it needs to be included in gnu_linux.c anyway. + Comment #7, bug #30019 + +2012-04-16 rocky + + * include/cdio/cdtext.h: Add back in MIN_CDTEXT_FIELD. It's + compatible too. + +2012-04-15 R. Bernstein + + * lib/driver/disc.c, test/driver/.gitignore, + test/driver/Makefile.am, test/driver/cdda.c, + test/driver/gnu_linux.c: Add guard around get_mcn for null p_cdio. + +2012-04-14 R. Bernstein + + * lib/driver/_cdio_generic.c: Update copyright + +2012-04-14 R. Bernstein + + * lib/driver/_cdio_generic.c: Wasn't testing CD-Text error return + properly. (Bug found via rbcdio/example/cdtext.rb) + +2012-04-10 R. Bernstein + + * : commit 844578d2042aff813a397f711e422048d8e1176d Author: R. + Bernstein Date: Tue Apr 10 03:29:32 2012 -0400 + +2012-03-27 Leon Merten Lohse + + * : commit 3940726aa77d102096117fb2f47aa2bb41c8abdc Author: Leon + Merten Lohse Date: Tue Mar 27 17:45:09 2012 + +0200 + +2012-03-26 R. Bernstein + + * README, README.libcdio: Update some README's to reflect the + current situation. + +2012-03-25 rocky + + * Makefile.am, configure.ac, example/Makefile.am, test/Makefile.am, + test/driver/Makefile.am: test/Makefile.am: test example files, some + of which are used in tests, is no longer optional other Makefile.am: + remove some cruft. + +2012-03-25 rocky + + * configure.ac, libcdtext.pc.in: Getting back to before cdtext + library + +2012-03-25 rocky + + * : commit 8a3f964baa48e95abf50a75490a013f785c7702a Author: rocky + Date: Sun Mar 25 17:16:55 2012 -0400 + +2012-03-25 R. Bernstein + + * src/util.c, test/check_opts0.right, test/check_opts1.right, + test/check_opts2.right, test/check_opts3.right, + test/check_opts4.right, test/check_opts5.right, + test/check_opts6.right, test/check_opts7.right, + test/data/isofs-m1.cue: Add catalog number to ISO 9660 cue file. + +2012-03-25 R. Bernstein + + * example/Makefile.am, lib/driver/gnu_linux.c, lib/driver/track.c: + track.c, gnu_linux.c: Test for exceding max track limit but allow + specifying the leadout track in some cases. Makefile.am: need to + build extract unconditionally since that is used in testing + +2012-03-25 R. Bernstein + + * include/cdio/sector.h: Typo in C preprocessor symbol Comment #3 + Savannah #35818 + +2012-03-25 R. Bernstein + + * test/driver/gnu_linux.c, test/driver/helper.c, + test/driver/helper.h: Expand driver test framework a little and the + tests we do. + +2012-03-19 rocky + + * include/cdio/utf8.h: MinGW seems to need for FILE in + utf8.h now + +2012-03-18 R. Bernstein + + * include/cdio/Makefile.am, include/cdio/cdda.h, + test/check_cue.sh.in: Small changes. + +2012-03-18 R. Bernstein + + * include/cdio/dvd.h, include/cdio/sector.h: Replace a few + collections of preprocessor #define's with enum's. Savannah bug + #35746 https://savannah.gnu.org/bugs/?35746 . Patch from Markus + Elfring. + +2012-03-18 R. Bernstein + + * example/audio.c: Recent header work by Pete Batard eliminates the + need to set __CDIO_H__ here. + +2012-03-18 R. Bernstein + + * include/cdio++/cdio.hpp, include/cdio++/cdtext.hpp, + include/cdio++/device.hpp, include/cdio++/devices.hpp, + include/cdio++/iso9660.hpp, include/cdio/audio.h, + include/cdio/bytesex.h, include/cdio/bytesex_asm.h, + include/cdio/cd_types.h, include/cdio/cdtext.h, + include/cdio/device.h, include/cdio/disc.h, include/cdio/ds.h, + include/cdio/dvd.h, include/cdio/ecma_167.h, + include/cdio/iso9660.h, include/cdio/logging.h, include/cdio/mmc.h, + include/cdio/mmc_cmds.h, include/cdio/mmc_hl_cmds.h, + include/cdio/mmc_ll_cmds.h, include/cdio/mmc_util.h, + include/cdio/posix.h, include/cdio/read.h, include/cdio/rock.h, + include/cdio/sector.h, include/cdio/track.h, include/cdio/types.h, + include/cdio/util.h, include/cdio/xa.h, lib/driver/_cdio_stdio.h, + lib/driver/_cdio_stream.h, lib/driver/cdio_assert.h, + lib/driver/cdio_private.h, lib/driver/cdtext_private.h, + lib/driver/filemode.h, lib/driver/generic.h, lib/driver/image.h, + lib/driver/image_common.h, lib/driver/mmc/mmc_cmd_helper.h, + lib/driver/portable.h, lib/iso9660/iso9660_private.h, + lib/udf/udf_fs.h, lib/udf/udf_private.h, src/getopt.h: More small + header changes: * Remove leading underscores in header preprocessor names * Regularize names to include directory parts in the file name * Untabify files * Update copyright and remove unmaintained cvs $Id$ line The justification for removing leading underscores comes from a + CERTS Secure Coding recommendation: + + https://www.securecoding.cert.org/confluence/display/cplusplus/DCL32-CPP.+Do+not+declare+or+define+a+reserved+identifierSee also Savannah bug #35745 https://savannah.gnu.org/bugs/?35745 + +2012-03-14 rocky + + * .gitignore, configure.ac, lib/Makefile.am, lib/cdtext/.gitignore, + lib/cdtext/Makefile.am, lib/cdtext/cdtext.c, + lib/cdtext/cdtext_private.h, lib/cdtext/libcdtext.sym, + libcdtext.pc.in: Create CD-Text library - first round. (Second round + will remove from lib/driver) + +2012-03-25 R. Bernstein + + * src/util.c, test/check_opts0.right, test/check_opts1.right, + test/check_opts2.right, test/check_opts3.right, + test/check_opts4.right, test/check_opts5.right, + test/check_opts6.right, test/check_opts7.right, + test/data/isofs-m1.cue: Add catalog number to ISO 9660 cue file. + +2012-03-25 R. Bernstein + + * example/Makefile.am, lib/driver/gnu_linux.c, lib/driver/track.c: + track.c, gnu_linux.c: Test for exceding max track limit but allow + specifying the leadout track in some cases. Makefile.am: need to + build extract unconditionally since that is used in testing + +2012-03-25 R. Bernstein + + * include/cdio/sector.h: Typo in C preprocessor symbol Comment #3 + Savannah #35818 + +2012-03-25 R. Bernstein + + * test/driver/gnu_linux.c, test/driver/helper.c, + test/driver/helper.h: Expand driver test framework a little and the + tests we do. + +2012-03-22 Leon Merten Lohse + + * : commit 591c23ee48d44936535e0f5b13c2d8e025ac7dea Author: Leon + Merten Lohse Date: Thu Mar 22 22:21:52 2012 + +0100 + +2012-03-19 rocky + + * include/cdio/utf8.h: MinGW seems to need for FILE in + utf8.h now + +2012-03-18 R. Bernstein + + * include/cdio/Makefile.am, include/cdio/cdda.h, + test/check_cue.sh.in: Small changes. + +2012-03-18 R. Bernstein + + * include/cdio/dvd.h, include/cdio/sector.h: Replace a few + collections of preprocessor #define's with enum's. Savannah bug + #35746 https://savannah.gnu.org/bugs/?35746 . Patch from Markus + Elfring. + +2012-03-18 R. Bernstein + + * example/audio.c: Recent header work by Pete Batard eliminates the + need to set __CDIO_H__ here. + +2012-03-18 R. Bernstein + + * include/cdio++/cdio.hpp, include/cdio++/cdtext.hpp, + include/cdio++/device.hpp, include/cdio++/devices.hpp, + include/cdio++/iso9660.hpp, include/cdio/audio.h, + include/cdio/bytesex.h, include/cdio/bytesex_asm.h, + include/cdio/cd_types.h, include/cdio/cdtext.h, + include/cdio/device.h, include/cdio/disc.h, include/cdio/ds.h, + include/cdio/dvd.h, include/cdio/ecma_167.h, + include/cdio/iso9660.h, include/cdio/logging.h, include/cdio/mmc.h, + include/cdio/mmc_cmds.h, include/cdio/mmc_hl_cmds.h, + include/cdio/mmc_ll_cmds.h, include/cdio/mmc_util.h, + include/cdio/posix.h, include/cdio/read.h, include/cdio/rock.h, + include/cdio/sector.h, include/cdio/track.h, include/cdio/types.h, + include/cdio/util.h, include/cdio/xa.h, lib/driver/_cdio_stdio.h, + lib/driver/_cdio_stream.h, lib/driver/cdio_assert.h, + lib/driver/cdio_private.h, lib/driver/cdtext_private.h, + lib/driver/filemode.h, lib/driver/generic.h, lib/driver/image.h, + lib/driver/image_common.h, lib/driver/mmc/mmc_cmd_helper.h, + lib/driver/portable.h, lib/iso9660/iso9660_private.h, + lib/udf/udf_fs.h, lib/udf/udf_private.h, src/getopt.h: More small + header changes: * Remove leading underscores in header preprocessor names * Regularize names to include directory parts in the file name * Untabify files * Update copyright and remove unmaintained cvs $Id$ line The justification for removing leading underscores comes from a + CERTS Secure Coding recommendation: + + https://www.securecoding.cert.org/confluence/display/cplusplus/DCL32-CPP.+Do+not+declare+or+define+a+reserved+identifierSee also Savannah bug #35745 https://savannah.gnu.org/bugs/?35745 + +2012-03-12 R. Bernstein + + * NEWS: Update NEWS for some small typos + +2012-03-12 R. Bernstein + + * lib/iso9660/iso9660.c: Set timezone compatible with previous + version. Patch from N. Boullis. + +2012-03-11 Leon Merten Lohse + + * example/C++/OO/cdtext.cpp, example/cdtext.c, + include/cdio++/cdio.hpp, include/cdio++/cdtext.hpp, + include/cdio++/disc.hpp, include/cdio/cdtext.h, + lib/driver/cdtext.c, lib/driver/libcdio.sym, src/cd-info.c: + [renamed] cdtext_languages_available to cdtext_list_languages + [fixed] C++ CD-Text API [fixed] C++ CD-Text example + +2012-03-07 Pete Batard + + * include/cdio/cdio_unconfig.h, test/cd-paranoia-log.right: More + paranoia and unconfig removal + +2012-03-10 R. Bernstein + + * example/cdtext.c: cdtext.c: Correct cdtext cue file name. + +2012-03-10 R. Bernstein + + * : commit 0c7c1104fd7aafd7167bdc70e29140ed7091ff87 Author: R. + Bernstein Date: Sat Mar 10 13:46:22 2012 -0500 + +2012-03-10 R. Bernstein + + * lib/driver/cdtext.c: Don't set crc field outside of the limit of + the cdtext_pack_t structure. + +2012-03-09 Leon Merten Lohse + + * lib/driver/cdtext.c, lib/driver/image/bincue.c: Redo some of + rocky's beautifications. + +2012-03-05 R. Bernstein + + * Makefile.am, configure.ac, libcdio_cdda.pc.in: Remove paranoia + libcdio_cdda.pc.in + +2012-03-05 R. Bernstein + + * example/cdtext.c, include/cdio++/cdio.hpp, + include/cdio++/cdtext.hpp, include/cdio/cdio.h, + include/cdio/cdtext.h, include/cdio/disc.h, include/cdio/utf8.h, + lib/driver/FreeBSD/freebsd_cam.c, lib/driver/MSWindows/aspi32.c, + lib/driver/MSWindows/aspi32.h, lib/driver/MSWindows/win32.h, + lib/driver/MSWindows/win32_ioctl.c, lib/driver/_cdio_generic.c, + lib/driver/cdtext.c, lib/driver/cdtext_private.h, + lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/image/nrg.c, lib/driver/libcdio.sym, + lib/driver/mmc/mmc.c, lib/driver/utf8.c, src/cd-info.c, + src/cdda-player.c, test/cdda.right, test/cdtext.right, + test/check_cue.sh.in, test/driver/nrg.c.in: Multilanguage CD-Text + from greenleon + +2012-03-05 Pete Batard + + * test/driver/bincue.c.in: Fix an "unused but set warning" in bincue + test + +2012-03-05 Pete Batard + + * doc/.cvsignore, doc/doxygen/.cvsignore, example/C++/.cvsignore, + example/C++/OO/.cvsignore, include/.cvsignore, + include/cdio++/.cvsignore, include/cdio/.cvsignore, + include/cdio/paranoia.h, lib/cdio++/.cvsignore, + lib/driver/.cvsignore, lib/iso9660/.cvsignore, lib/udf/.cvsignore, + m4/.cvsignore, package/.cvsignore, src/.cvsignore: Remove .cvsignore + as well as cdio/paranoia.h + +2012-03-05 Pete Batard + + * include/cdio/ecma_167.h, lib/udf/udf_fs.c: Apply MSVC + compatibility workaround to ecma_167.h * An union of empty arrays is not size zero in MSVC * this causes issues with various sections of the UDF code that use sizeof and can prevent structures from being read properly * group empty array unions with at least one non zero-sized member + +2012-03-05 Pete Batard + + * lib/driver/image/bincue.c, lib/driver/image/nrg.c: Add missing + glob() equivalent for Windows platforms + +2012-03-05 Pete Batard + + * example/cdchange.c, lib/driver/cdio.c, lib/driver/image/bincue.c, + lib/driver/image/cdrdao.c, lib/driver/realpath.c, + src/cdda-player.c, test/check_sizeof.c, test/driver/abs_path.c, + test/driver/freebsd.c, test/driver/gnu_linux.c, + test/driver/helper.c, test/driver/mmc_read.c, + test/driver/mmc_write.c, test/driver/osx.c, test/driver/realpath.c, + test/driver/solaris.c, test/driver/win32.c, + test/test_lib_driver_util.c, test/testassert.c, test/testdefault.c, + test/testgetdevices.c.in, test/testischar.c, test/testiso9660.c, + test/testisocd2.c.in, test/testpregap.c.in: More source headers + harmonization * fix missing #ifdefs * remove spaces and page feeds * follow same set of rules everywhere, with cdio includes coming after standard C includes. + +2012-03-05 Pete Batard + + * lib/driver/FreeBSD/freebsd_cam.c, lib/driver/MSWindows/win32.c, + lib/driver/MSWindows/win32.h, lib/iso9660/iso9660_fs.c, + src/cd-read.c, test/check_legal.regex: Fix various issues * bzero is obsolete * use HMODULE instead of long win win32 for 64 bit compatibility * iso9660_seek_read_framesize fails seeking to a position higher + than 4 GB * cd-read produces a warning * legal-regex should allow for years > 2009 + +2012-03-05 Pete Batard + + * include/cdio/utf8.h, lib/driver/_cdio_stdio.c, + lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/utf8.c: Make fopen() and stat() support UTF-8 paths on + Windows + +2012-03-05 Pete Batard + + * example/extract.c, lib/driver/utf8.c, lib/iso9660/iso9660_fs.c: + Joliet improvements * support discs with more than one secondary volume descriptors * add Joliet support for extract sample * add fallback to non-Joliet if non-Joliet may be longer + +2012-03-05 Pete Batard + + * include/cdio/util.h, lib/driver/_cdio_stdio.c, + lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/util.c: Add _cdio_strdup_fixpath for absolute paths + handling in MinGW * MinGW may provide absolute paths in the form /c/directory/... to native calls that require instead c:/directory + +2012-03-05 Pete Batard + + * libcdio_paranoia.pc.in, test/check_paranoia.sh.in: Additional + fixups for paranoia removal Should libcdio_cdda.pc.in be removed as well? + +2012-03-05 Pete Batard + + * .gitignore, Makefile.am, example/.gitignore, + example/C++/.cvsignore, example/C++/.gitignore, + example/C++/paranoia.cpp, example/C++/paranoia2.cpp, + example/Makefile.am, include/cdio/Makefile.am, + lib/driver/Makefile.am, lib/driver/logging.c, test/.gitignore, + test/Makefile.am, test/testparanoia.c: More paranoia removal * Also some silencing of makefile operations + +2012-03-05 R. Bernstein + + * doc/cd-text-format.texi: Minor expository changes + +2012-03-04 R. Bernstein + + * src/cd-paranoia/.gitignore, src/cd-paranoia/Makefile.am, + src/cd-paranoia/buffering_write.c, + src/cd-paranoia/buffering_write.h, src/cd-paranoia/cd-paranoia.c, + src/cd-paranoia/doc/.gitignore, src/cd-paranoia/doc/FAQ.txt, + src/cd-paranoia/doc/Makefile.am, src/cd-paranoia/doc/en/.gitignore, + src/cd-paranoia/doc/en/Makefile.am, + src/cd-paranoia/doc/en/cd-paranoia.1.in, + src/cd-paranoia/doc/ja/.gitignore, + src/cd-paranoia/doc/ja/Makefile.am, + src/cd-paranoia/doc/ja/cd-paranoia.1.in, + src/cd-paranoia/doc/overlapdef.txt, src/cd-paranoia/getopt.c, + src/cd-paranoia/getopt.h, src/cd-paranoia/getopt1.c, + src/cd-paranoia/header.c, src/cd-paranoia/header.h, + src/cd-paranoia/pod2c.pl, src/cd-paranoia/report.c, + src/cd-paranoia/report.h, src/cd-paranoia/usage-copy.h, + src/cd-paranoia/usage.txt.in, src/cd-paranoia/utils.h, + src/cd-paranoia/version.h: Remove more paranoia code + +2012-03-04 R. Bernstein + + * test/testgetdevices.c.in: test/testgetdevices.c.in Remove some + warnings on MingGW + +2012-03-04 R. Bernstein + + * test/Makefile.am: test/Makefile.am: Remove test/unconfig -- this + time, for sure! + +2012-03-04 rocky + + * test/Makefile.am, test/testunconfig.c: Remove testunconfig. We + have removed unconfig.h + +2012-03-04 R. Bernstein + + * src/util.h, test/driver/freebsd.c, test/driver/gnu_linux.c: More + pbatard patches + +2012-03-04 R. Bernstein + + * src/util.c: More pbatard patches + +2012-03-04 R. Bernstein + + * MSVC/README, lib/driver/MSWindows/win32_ioctl.c, + lib/driver/realpath.c, lib/driver/sector.c, lib/driver/util.c, + lib/iso9660/Makefile.am, lib/iso9660/rock.c, lib/iso9660/xa.c, + lib/udf/filemode.c, lib/udf/udf_private.h, src/getopt.h, + src/iso-info.c, src/iso-read.c, src/mmc-tool.c: More patches from + the pbatard branch. + +2012-03-04 R. Bernstein + + * configure.ac, lib/driver/ds.c, lib/driver/mmc/mmc_ll_cmds.c: Some + more pbatard patches + +2012-03-04 R. Bernstein + + * example/extract.c, include/cdio/Makefile.am: Makefile.am: add + CDIO_ to all #defines in cdio_config.h extract.c: give filename on + extract errors and convert encoding to unix. + +2012-03-04 rocky + + * lib/driver/MSWindows/win32.c, lib/driver/solaris.c: Remove some + driver compilation warnings + +2012-03-04 R. Bernstein + + * lib/driver/os2.c: merge another warning fix from the + pbatard-branch + +2012-03-04 rocky + + * : I hate conflicted merges + +2012-03-04 R. Bernstein + + * test/check_udf.sh: check_udf.sh is derived and thus should not be + in git + +2012-03-04 R. Bernstein + + * configure.ac, test/.gitignore, test/check_udf.sh, + test/check_udf.sh.in, test/data/Makefile.am: test/check_udf.sh works + when building outside source tree. With this "make distcheck" should + work again + +2012-03-04 R. Bernstein + + * test/Makefile.am, test/check_cd_read.sh, test/check_common_fn.in, + test/check_udf.sh: test/*: Add first UDF test - test sequential file + extraction. example/extract.c: give non-zero return code if we + can't find UDF image test/* + +2012-03-04 rocky + + * test/check_common_fn.in: This time, for sure! + +2012-03-03 R. Bernstein + + * INSTALL: Revert inadvertanet INSTALL update + +2012-03-04 rocky + + * INSTALL, test/check_common_fn.in: Tolerancefor Solaris /bin/sh and + grep + +2012-03-03 R. Bernstein + + * test/Makefile.am: Add test/cdtext.right to distribution. + +2012-03-03 R. Bernstein + + * test/data/Makefile.am: Add test/data/cdtext.cue to distribution. + +2012-03-03 R. Bernstein + + * test/testgetdevices.c.in: Skip testgetdevices on MinGW for now + +2012-03-03 R. Bernstein + + * test/driver/mmc_write.c: Had messed up on pbatard mmc_write.c + sleep patch for MinGW + +2012-03-03 R. Bernstein + + * src/cd-info.c: More pbatard patches + +2012-03-03 R. Bernstein + + * lib/driver/MSWindows/win32.c, lib/udf/udf.c, lib/udf/udf_time.c: + More pbatard patches + +2012-03-03 R. Bernstein + + * lib/driver/portable.h: Forgot to add back in protable.h + +2012-03-03 R. Bernstein + + * example/isofile.c, example/isofile2.c, example/isofuzzy.c, + lib/driver/Makefile.am, lib/driver/filemode.h, + lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/image/nrg.c, lib/driver/logging.c, lib/driver/sector.c, + src/iso-read.c, test/testisocd.c, test/testisocd2.c.in: More patches + from pbatard to reduce warnings, etc. + +2012-03-03 R. Bernstein + + * lib/driver/MSWindows/win32.c: Reduce complation warnings via + changes in pbatard branch + +2012-03-03 R. Bernstein + + * lib/driver/MSWindows/aspi32.c, lib/driver/cdtext.c, + lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/mmc/mmc.c: Reduce complation warnings via changes in + pbatard branch + +2012-03-03 R. Bernstein + + * test/driver/bincue.c.in, test/driver/cdrdao.c.in, + test/driver/mmc_write.c: Remove a couple of warnings, some of which + were removed in the pbatard branch. + +2012-03-03 R. Bernstein + + * test/check_legal.regex: check_legal.regex: wrong regexp. This + time, for sure! + +2012-03-03 R. Bernstein + + * test/check_common_fn.in, test/check_legal.regex: + check_legal.regex: allow matching cd-info.exe. check_common_fn.in: + don't erase file cd-info_legal.dump if there is an error. + +2012-03-03 R. Bernstein + + * THANKS: More things Pete has done + +2012-03-03 R. Bernstein + + * test/driver/nrg.c.in: Reinstate nrg test for MinGW. + +2012-03-03 R. Bernstein + + * example/isofile.c, example/isofile2.c, example/isofuzzy.c, + include/cdio/udf.h, include/cdio/udf_time.h, include/cdio/util.h, + lib/driver/Makefile.am, lib/driver/_cdio_generic.c, + lib/driver/_cdio_stdio.c, lib/driver/_cdio_stream.c, + lib/driver/_cdio_stream.h, lib/driver/abs_path.c, + lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/logging.c, src/iso-read.c, test/testisocd.c, + test/testisocd2.c.in: Pete Batard's patches offset types especially + for MinGW and MS Visual C. + +2012-03-03 R. Bernstein + + * lib/driver/{portable.h => filemode.h}: Pete Batard's patches + offset types especially for MinGW and MS Visual C. + +2012-03-03 R. Bernstein + + * include/cdio/iso9660.h, lib/iso9660/iso9660.c, + lib/iso9660/iso9660_fs.c: pbatard empty array changes for iso9660.h. + I think the last of the header patches. + +2012-03-03 R. Bernstein + + * include/cdio/ecma_167.h, lib/udf/udf_file.c, lib/udf/udf_fs.c: + pbatard flexible array for ecma_167.h header + +2012-03-03 R. Bernstein + + * test/check_common_fn.in: test/check_common.sh.in: Avoid $(...) for + sh of Solaris 10 + +2012-03-03 R. Bernstein + + * example/Makefile.am: A foolish consistency with respect to the + ordering of making example programs + +2012-03-03 R. Bernstein + + * include/cdio/bytesex.h, include/cdio/bytesex_asm.h, + include/cdio/cdio.h, include/cdio/read.h, include/cdio/rock.h, + include/cdio/types.h, lib/driver/utf8.c, lib/udf/udf_fs.c: Reduce + differences in pbatard branch for headers. (Still need to add empty + array/union differences). + +2012-03-03 R. Bernstein + + * THANKS, configure.ac, example/.gitignore, example/Makefile.am, + example/README, example/extract.c, example/udffile.c: Reduce + differences between master and pbatard branch. + +2012-03-03 R. Bernstein + + * example/C++/OO/cdtext.cpp, example/cdtext.c, + include/cdio++/disc.hpp: Revise OO CD-Text CPP for different + interface. Update copyright and untabify some files. + +2012-03-03 R. Bernstein + + * example/C++/OO/cdtext.cpp, example/C++/OO/device.cpp, + example/C++/OO/drives.cpp, example/C++/OO/eject.cpp, + example/C++/OO/iso4.cpp, example/C++/OO/isofile.cpp, + example/C++/OO/isofile2.cpp, example/C++/OO/isolist.cpp, + example/C++/OO/mmc1.cpp, example/C++/OO/mmc2.cpp, + example/C++/OO/tracks.cpp, example/C++/device.cpp, + example/C++/eject.cpp, example/C++/isofile.cpp, + example/C++/isofile2.cpp, example/C++/isolist.cpp, + example/C++/mmc1.cpp, example/C++/mmc2.cpp, + example/C++/paranoia.cpp, example/C++/paranoia2.cpp: Harmonize + source headers: C++ examples [PATCH 3/5] from pbatard. + +2012-03-03 R. Bernstein + + * test/driver/nrg.c.in: Change headers as per pbatard branch to make + MinGW work out. + +2012-03-02 R. Bernstein + + * example/audio.c, example/cdchange.c, example/cdio-eject.c, + example/cdtext.c, example/device.c, example/discid.c, + example/drives.c, example/eject.c, example/isofile.c, + example/isofile2.c, example/isofuzzy.c, example/isolist.c, + example/isolsn.c, example/mmc1.c, example/mmc2.c, example/mmc2a.c, + example/mmc3.c, example/sample3.c, example/sample4.c, + example/tracks.c, example/udf1.c, example/udf2.c, example/udffile.c: + Harmonize source headers: C examples (Patch 4/5) + +2012-03-02 R. Bernstein + + * lib/iso9660/iso9660_fs.c, test/check_common_fn.in: + check_common_fn.in: show command name when we hit an error + +2012-03-02 R. Bernstein + + * lib/iso9660/iso9660_fs.c: Properly address 'len' MinGW shadow + variable warnings in ISO9660. From pbatard branch. + +2012-02-26 R. Bernstein + + * test/check_common_fn.in: A slightly better locale-missing fix + +2012-02-26 rocky + + * test/check_common_fn.in: MinGW doesn't have a locale command + +2012-02-26 rocky + + * test/driver/nrg.c.in: Skip test/driver/nrg until we work out off_t + issues + +2012-02-25 R. Bernstein + + * include/cdio/udf_time.h, lib/driver/MSWindows/aspi32.c, + lib/driver/MSWindows/win32_ioctl.c, lib/driver/cdio_assert.h, + lib/iso9660/rock.c: Silence 'cont_###' set but not used warnings on + MinGW From pbatard branch. Update copyright date on recently + changed files. + +2012-02-25 R. Bernstein + + * test/check_common_fn.in: Fix "setlocale: LC_TIME: cannot change + locale (en_US" warning during tests. Both 'en_US' and 'en_US.utf8' + might be defined on some platforms From pbatard branch. + +2012-02-25 R. Bernstein + + * lib/driver/MSWindows/aspi32.c, lib/driver/MSWindows/win32.c: Fix + missing logging header for aspi32.c/win32.c From pbatard branch + +2012-02-25 R. Bernstein + + * include/cdio/udf_time.h: Fix 'struct timespec declared inside + parameter list' MinGW warning. From pbatard branch. + +2012-02-25 R. Bernstein + + * lib/driver/cdio_assert.h: Use native Windows assert for MinGW. + This also avoids false positive warnings with Clang static analyzer, + as the default libcdio assert does return. From pbatard branch. + +2012-02-24 R. Bernstein + + * example/cdchange.c, test/driver/mmc_read.c, + test/driver/mmc_write.c, test/driver/realpath.c: Fix some of the + tests for MinGW and fix the use of Sleep/usleep for MinGW & MSVC + platforms * Sleep takes ms, not s * Use sleep/Sleep rather than usleep in the cdchange sample, as + usleep is not available on recent MinGW platforms From pbatard branch. + +2012-02-24 R. Bernstein + + * .gitattributes, configure.ac: * use "Define to" as this is the comment default from autotools * use quotes and x prefix for string tests * add detection for MinGW required LFS calls and remove unneeded + AC_FUNC_FSEEKO * set LFS support for MinGW * disable cdda_player for MinGW * enable Joliet support without iconv on MinGW * also fix an issue with CRLF in config.rpath Above from Pete Batard. + +2012-02-24 R. Bernstein + + * include/cdio/device.h, include/cdio/types.h: types.h: gcc before + 4.5 has a no-argument form of deprecated. device.h: use + LIBCIO_DEPRECATED macro rather than assume gcc. + +2012-02-24 R. Bernstein + + * lib/driver/osx.c: lib/driver/osx.c: duplicate transport error enum + - cdio/cdda.h removed + +2012-02-23 R. Bernstein + + * include/cdio/Makefile.am, test/Makefile.am: Make "distcheck" works + again. include/cdio/Makefile.am: was missing inclusion of cdtext.h + test/Makefile.am: remove paranoia test. + +2012-02-19 rocky + + * Makefile.am, configure.ac, example/C++/.gitignore, + example/C++/Makefile.am, example/C++/OO/.gitignore, + example/Makefile.am, example/paranoia.c, example/paranoia2.c, + include/cdio/Makefile.am, lib/Makefile.am, + lib/cdda_interface/.cvsignore, lib/cdda_interface/.gitignore, + lib/cdda_interface/Makefile.am, + lib/cdda_interface/cddap_interface.c, + lib/cdda_interface/common_interface.c, + lib/cdda_interface/common_interface.h, + lib/cdda_interface/drive_exceptions.c, + lib/cdda_interface/drive_exceptions.h, + lib/cdda_interface/interface.c, + lib/cdda_interface/libcdio_cdda.sym, + lib/cdda_interface/low_interface.h, + lib/cdda_interface/scan_devices.c, + lib/cdda_interface/scsi_interface.c, lib/cdda_interface/smallft.c, + lib/cdda_interface/smallft.h, lib/cdda_interface/test_interface.c, + lib/cdda_interface/toc.c, lib/cdda_interface/utils.c, + lib/cdda_interface/utils.h, lib/iso9660/.gitignore, + lib/paranoia/.cvsignore, lib/paranoia/.gitignore, + lib/paranoia/Makefile.am, lib/paranoia/gap.c, lib/paranoia/gap.h, + lib/paranoia/isort.c, lib/paranoia/isort.h, + lib/paranoia/libcdio_paranoia.sym, lib/paranoia/overlap.c, + lib/paranoia/overlap.h, lib/paranoia/p_block.c, + lib/paranoia/p_block.h, lib/paranoia/paranoia.c, src/Makefile.am, + test/Makefile.am, test/driver/realpath.c: paranoia code removed. Is + now in separate tree under GPL v2+. realpath.c: patch from Debian + and N. Boullis + +2012-02-19 rocky + + * test/driver/realpath.c: Debian POSIXness fix from N. Boullis + +2012-02-19 rocky + + * NEWS, include/cdio/device.h: Deprecate some defines - patch from + Nicolas Boullis. + +2012-02-19 rocky + + * src/Makefile.am, src/cd-info.c: manual page corrections. + +2012-02-12 R. Bernstein + + * test/check_cue.sh.in: $abs_top_path now seems to really refer to + the absolute top path. Adjust data/check locations accordingly. + +2012-02-12 R. Bernstein + + * test/check_cue.sh.in: $abs_top_path now seems to really refer to + the absolute top path. Adjust data/check locations accordingly. + +2012-02-08 R. Bernstein + + * doc/cd-text-format.texi: Incorporate Leon'suggestions + +2012-02-08 R. Bernstein + + * doc/cd-text-format.texi: Other Pack Types -> Miscellaneous Pack + Types + +2012-02-08 R. Bernstein + + * doc/cd-text-format.texi: One more time + +2012-02-08 R. Bernstein + + * doc/cd-text-format.texi: One small little change + +2012-02-08 R. Bernstein + + * doc/cd-text-format.texi: Work a little on the grammar in the + beginning of section "Pack Contents" + +2012-02-08 R. Bernstein + + * doc/cd-text-format.texi: Revision based on latest comments from + Thomas + +2012-02-07 R. Bernstein + + * doc/cd-text-format.texi: Refine sectioning yet again, add pack + numbers to appropriate sections. Other small changes. + +2012-02-06 R. Bernstein + + * doc/cd-text-format.texi: Make two top-level sections to separate + lower-level decode/encode from higher-level CD-TEXT entry. Go over + references -- another pass is needed. Corrections from Thomas. CD + Text -> CD-TEXT since that's how docs list it. + +2012-02-06 R. Bernstein + + * doc/.gitignore, doc/Makefile.am, doc/{cd-text.texi => + cd-text-format.texi}: Add an introduction. Make less machine-centric + and more Human-centric. Regularize terminology more, e.g. CD Text, + Pack Types. + +2012-02-05 R. Bernstein + + * doc/cd-text.texi: Correct makeinfo sectioning. Use unnumbered for + references + +2012-02-05 R. Bernstein + + * doc/cd-text.texi: More small cd-text.texi changes + +2012-02-05 R. Bernstein + + * doc/cd-text.texi: Clarifications and typos suggested by Thomas + Schmitt. + +2012-02-05 R. Bernstein + + * doc/cd-text.texi, doc/libcdio.texi: libcdio.texi: Encorporate + Thomas' suggestions cd-text.texi: Encorporate Thomas' suggestions, + revise sectioning; Start using floats in tables, and small + corrections. + +2012-02-04 R. Bernstein + + * doc/cd-text.texi: More little changes + +2012-02-04 R. Bernstein + + * doc/cd-text.texi: More formatting changes + +2012-02-04 R. Bernstein + + * doc/cd-text.texi: Ooops name spelling correction + +2012-02-04 R. Bernstein + + * doc/Makefile.am, doc/libcdio.texi: Add rules to make + cd-text.{html,pdf,ps}. Update CD-Text info as per discussion in + libcdio-devel. + +2012-02-04 R. Bernstein + + * doc/cd-text.texi: Misc small formatting changes and corrections. + Work on references. + +2012-02-04 R. Bernstein + + * doc/cd-text.texi: Add Thomas Schmitt's cdtext.txt converted to + texinfo + +2012-02-04 R. Bernstein + + * doc/libcdio.texi: Split one paragraph into 3 as suggested by + Thomas Schmitt + +2012-01-28 R. Bernstein + + * test/driver/realpath.c: realpath.c(main): Remove duplicate if + condition. + +2012-01-28 R. Bernstein + + * test/check_cue.sh.in: Wasn't showing full command name when + check_cue.sh failed. + +2012-01-28 R. Bernstein + + * lib/driver/mmc/mmc_hl_cmds.c, lib/driver/solaris.c, + test/check_cue.sh.in: mmc_hl_cmds.c: remove gcc warning solaris.c: + remove unused fn warning when not on solaris check_cue.sh.in: fix so + we can build outside of source tree. With this, "make distcheck" + works again. + +2012-01-26 R. Bernstein + + * lib/driver/image/bincue.c, test/check_cue.sh.in: CDTEXTFILE + directifile should be relative to CUE file. + +2012-01-25 R. Bernstein + + * lib/driver/image/cdrdao.c, test/data/vcd2.toc: Find/fix another + place in TOC reader where we need to use relative paths. Here in a + branch of code for the DATAFILE statement. + +2012-01-25 R. Bernstein + + * .gitignore, COPYING, configure.ac: Administrivia: Don't recreate + INSTALL when doing autoreconf. COPYING is now in .git too. + +2012-01-17 R. Bernstein + + * configure.ac, example/sample3.c, example/sample4.c: Enable + automake enable silent rules which makes it easier to spot warnings. + If Automake v1.10 or earlier is used, AM_SILENT_RESULES is be + ignored. Patch also from Pete Batard. + +2012-01-17 R. Bernstein + + * example/sample3.c, example/sample4.c: Remove a couple of "possibly + unused variable" warnings. Patch from Pete Batard. + +2012-01-17 R. Bernstein + + * .gitattributes: Make sure shell, automake, and autoconf files end + in Unixish LF, the default autocrlf. Patch again from Pete Batard. + +2012-01-17 R. Bernstein + + * : Add cdda.bin which is used in tests + +2012-01-16 rocky + + * configure.ac, lib/driver/abs_path.c: Add replacement for + strndup(). MinGW doesn't have it. From Pete Batard again. + +2012-01-16 rocky + + * configure.ac: Remove -mwindows for MinGw and cygwin since it + prevents stdout/stderr from reaching the console. From Pete Batard, + see libcdio-devel Jan 16, 2012. + +2012-01-16 rocky + + * lib/iso9660/iso9660_fs.c, lib/udf/udf_fs.c: Plug memory leak in + iso9660_ifs_readdir() and udf_open(). Patches from Pete Batard. See + libcdio_devel from Jan 16, 2012. + +2011-12-25 rocky + + * test/cdtext.right, test/data/cdtext.cue: Double length of cdtext + cue/bin example. Thomas reports on libcdio-devel that the helps some + LG drives and wodim. + +2011-12-16 rocky + + * lib/cdda_interface/libcdio_cdda.sym: Add fft_foward to externs. + Used in linking libcdio_cdda + +2011-12-15 R. Bernstein + + * configure.ac: Allow FreeBSD9. John Wehle says it works + +2011-12-11 R. Bernstein + + * lib/driver/abs_path.c, lib/driver/cdio_private.h, + lib/driver/image.h, lib/driver/image/bincue.c, + lib/driver/image/cdrdao.c, lib/driver/image_common.h: Issue #33636 + make path names toc/cue files be relative to the toc/cue when no + absolute path is specified in toc/cue FILENAME statements. + +2011-12-11 R. Bernstein + + * lib/driver/abs_path.c, lib/driver/libcdio.sym, + test/driver/.gitignore, test/driver/Makefile.am, + test/driver/abs_path.c: Add cdio_dirname which I think should + complete what we need. Also add test of abs_path and dirname + +2011-12-11 R. Bernstein + + * lib/driver/abs_path.c: Start abs_path and basename to be used in + cue files. + +2011-12-10 R. Bernstein + + * lib/driver/.gitignore, lib/driver/Makefile.am, + lib/driver/abs_path.c, lib/driver/libcdio.sym: Start abs_path and + basename to be used in cue files. + +2011-12-05 R. Bernstein + + * include/cdio/Makefile.am, src/util.h, test/check_common_fn.in: + Incorporate patch #7628 for building outside of source tree. Check + for locale en-US. + +2011-12-04 R. Bernstein + + * include/cdio/cdtext.h, lib/driver/_cdio_generic.c, + lib/driver/cdtext.c, lib/driver/image/bincue.c, + lib/driver/image/nrg.c, lib/driver/mmc/mmc.c, test/cdtext.right, + test/check_cue.sh.in: Patch from Leon Merten Lohse: Correct the + length of the CD-TEXT block. + +2011-11-30 rocky + + * INSTALL: Reinstate INSTALL - I need a better way to keep INSTALL + from getting destroyed + +2011-11-30 rocky + + * INSTALL, configure.ac, src/cdda-player.c: cygwin has ncurses.h in + + +2011-11-28 R. Bernstein + + * test/data/cdtext.cue: This cue is burnable via the command: + cdrecord -text cuefile=cdtext.cue + +2011-11-27 R. Bernstein + + * lib/driver/mmc/mmc_ll_cmds.c, test/driver/mmc_read.c: Look for a + NULL destination buffer in mmc_read_cd and return + DRIVER_OP_BAD_POINTER in this particular situation. + +2011-11-27 R. Bernstein + + * doc/glossary.texi: Better CD Text information via Rob Fuller. + +2011-11-27 R. Bernstein + + * doc/glossary.texi: Add a couple of URLs for CD Text information. + +2011-11-27 R. Bernstein + + * lib/driver/image/cdrdao.c, test/data/cdda.cue, test/data/vcd2.toc: + Move a little bit forward in implementing SILENCE in cdrdao. cdrdao + tests now work while being a little more strict. + +2011-11-25 R. Bernstein + + * lib/driver/image/cdrdao.c, test/data/Makefile.am: Add Leon Merten + Lohse's cdtext test images. cdrdao.c reduse severity of not finding + source - may change my mind later about this... + +2011-11-25 rocky + + * configure.ac: If we don't have ncurses.h don't try to look for + libncurses + +2011-11-25 rocky + + * lib/driver/image/cdrdao.c: Check that we can find data source and + give error when we can't + +2011-11-24 R. Bernstein + + * configure.ac: up release to 0.84git + +2011-11-24 R. Bernstein + + * THANKS, example/cdtext.c, include/cdio++/cdtext.hpp, + include/cdio++/device.hpp, include/cdio++/disc.hpp, + include/cdio++/track.hpp, include/cdio/cdio.h, + include/cdio/cdtext.h, include/cdio/disc.h, include/cdio/track.h, + lib/driver/FreeBSD/freebsd.c, lib/driver/MSWindows/win32.c, + lib/driver/_cdio_generic.c, lib/driver/aix.c, lib/driver/bsdi.c, + lib/driver/cdio.c, lib/driver/cdio_private.h, lib/driver/cdtext.c, + lib/driver/cdtext_private.h, lib/driver/disc.c, + lib/driver/generic.h, lib/driver/gnu_linux.c, lib/driver/image.h, + lib/driver/image/.gitignore, lib/driver/image/bincue.c, + lib/driver/image/cdrdao.c, lib/driver/image/nrg.c, + lib/driver/image_common.c, lib/driver/image_common.h, + lib/driver/libcdio.sym, lib/driver/mmc/mmc.c, + lib/driver/mmc/mmc_private.h, lib/driver/netbsd.c, + lib/driver/os2.c, lib/driver/osx.c, lib/driver/solaris.c, + src/cd-info.c, src/cdda-player.c, test/cdtext.right, + test/check_cue.sh.in, test/check_fuzzyiso.sh, test/data/cdtext.cue, + test/driver/nrg.c.in: 1) cdtext objects are no longer associated with a track but with the + disc. 2) - cdio_get_cdtext no longer takes track as an argument - cdtext_get, cdtext_get_const, cdtext_set require track argument 3) Language, Genre, Genre Code and Encoding Fields are now properly + parsed and stored in the cdtext object 4) Added public function cdio_get_cdtext_raw to extract the binary + CD-Text 5) Added CDTEXTFILE keyword logic in cue sheet parser. Parses + binary/raw CD-Text files 6) Added cdtext_genre2str to convert genre code 7) altered the example programs, test drivers, cdda-player and + cd-info to work with these changes 8) Added test case 9) A few smaller changes A disc either holds CD-Text for all the + tracks or does not hold any. Therefore a CD-Text object for the + whole disc seems more natural to me. It also enables us to store + global fields, like genre, encoding, language. Patch was tested on GNU/Linux 32 bit running Gentoo. + +2011-11-16 R. Bernstein + + * configure.ac, include/cdio/device.h, lib/driver/image/cdrdao.c, + test/data/Makefile.am, test/data/data5.toc, test/data/data6.toc, + test/data/data7.toc, test/data/t10.toc, test/driver/cdrdao.c.in: + Don't error out on handling "NO PRE_EMPHASIS" in cdrdao TOC. + Savannah bug #34826: + +2011-11-05 R. Bernstein + + * example/.gitignore, example/Makefile.am, example/README, + example/discid.c, lib/.gitignore: discid + (http://discid.sourceforge.net/) using libcdio. + +2011-10-27 R. Bernstein + + * Makefile.am: Change -perm -777 to -perm -755 so gnu.ftp.org will + accept upload. + +2011-10-26 R. Bernstein + + * doc/how-to-make-a-release.txt: Administrivia. + +2011-10-26 R. Bernstein + + * include/cdio/mmc.h, include/cdio/mmc_hl_cmds.h, + include/cdio/mmc_ll_cmds.h: Reduce doxygen warnings regarding + documenting some parameters. + +2011-10-26 R. Bernstein + + * configure.ac: Get ready for 0.83 release + +2011-10-21 rocky + + * INSTALL: INSTALL got clobbered + +2011-10-21 R. Bernstein + + * INSTALL, configure.ac, lib/cdda_interface/Makefile.am, + lib/driver/Makefile.am, lib/iso9660/Makefile.am, + lib/paranoia/Makefile.am, lib/udf/Makefile.am: Makefile.am: Increase + shared library "current" numbers, zeroing "revision" and "age ". + configure.ac: require autoconf at least 2.67 + +2011-10-21 rocky + + * test/Makefile.am: Forgot to add check_legal.regex + +2011-10-21 rocky + + * README.develop: Add version numbers for autoconf and automake. + +2011-10-21 rocky + + * : commit 3dfffd589cad5ed04a3c72ead29f0407db424d76 Author: R. + Bernstein Date: Fri Oct 21 06:05:17 2011 -0400 + +2011-10-20 R. Bernstein + + * README: Note there is limited support for writing via MMC as noted + by Thomash Schmitt. + +2011-10-20 R. Bernstein + + * include/cdio/Makefile.am, src/cd-paranoia/Makefile.am: + src/cd-paranoia.h and include/cdio/cdio_config.h are derived files, + so don't include them in the distribution. + +2011-10-20 R. Bernstein + + * include/cdio/Makefile.am, include/cdio/cdio_unconfig.h, + test/.gitignore, test/Makefile.am, test/testunconfig.c: Add an + include to remove any C Preprocessor symbol libcdio's config.h + creates. Programs using libcdio can do this: // for cdio: // for your program + +2011-10-20 R. Bernstein + + * example/cdchange.c, example/isolist.c, example/isolsn.c, + example/mmc1.c, example/mmc2.c, example/mmc2a.c, example/mmc3.c, + example/paranoia.c, example/udffile.c, include/cdio/Makefile.am, + lib/cdda_interface/common_interface.c, + lib/cdda_interface/common_interface.h, + lib/cdda_interface/drive_exceptions.c, lib/cdda_interface/toc.c, + lib/cdda_interface/utils.c, lib/cdio++/devices.cpp, + lib/cdio++/iso9660.cpp, lib/driver/FreeBSD/freebsd.c, + lib/driver/MSWindows/aspi32.c, lib/driver/MSWindows/win32.c, + lib/driver/_cdio_generic.c, lib/driver/_cdio_stdio.c, + lib/driver/_cdio_stream.c, lib/driver/aix.c, lib/driver/audio.c, + lib/driver/bsdi.c, lib/driver/cd_types.c, lib/driver/cdio.c, + lib/driver/cdio_assert.h, lib/driver/cdtext.c, lib/driver/device.c, + lib/driver/disc.c, lib/driver/ds.c, lib/driver/gnu_linux.c, + lib/driver/image.h, lib/driver/image/bincue.c, + lib/driver/image/nrg.c, lib/driver/image_common.c, + lib/driver/logging.c, lib/driver/mmc/mmc.c, + lib/driver/mmc/mmc_hl_cmds.c, lib/driver/mmc/mmc_ll_cmds.c, + lib/driver/mmc/mmc_util.c, lib/driver/netbsd.c, lib/driver/os2.c, + lib/driver/osx.c, lib/driver/portable.h, lib/driver/read.c, + lib/driver/realpath.c, lib/driver/sector.c, lib/driver/solaris.c, + lib/driver/track.c, lib/driver/utf8.c, lib/driver/util.c, + lib/iso9660/iso9660_fs.c, lib/iso9660/iso9660_private.h, + lib/iso9660/xa.c, lib/paranoia/gap.c, lib/paranoia/isort.c, + lib/paranoia/overlap.c, lib/paranoia/p_block.c, + lib/paranoia/paranoia.c, lib/udf/filemode.c, lib/udf/udf_fs.c, + lib/udf/udf_private.h, lib/udf/udf_time.c, + src/cd-paranoia/cd-paranoia.c, src/cd-paranoia/report.c, + src/cdda-player.c, src/cddb.c, src/mmc-tool.c, src/util.h, + test/check_sizeof.c, test/driver/bincue.c.in, + test/driver/cdrdao.c.in, test/driver/freebsd.c, + test/driver/gnu_linux.c, test/driver/helper.c, + test/driver/mmc_read.c, test/driver/mmc_write.c, + test/driver/nrg.c.in, test/driver/osx.c, test/driver/realpath.c, + test/driver/solaris.c, test/driver/win32.c, + test/test_lib_driver_util.c, test/testassert.c, test/testdefault.c, + test/testgetdevices.c.in, test/testischar.c, test/testiso9660.c, + test/testisocd.c, test/testparanoia.c, test/testpregap.c.in: Make + sure config.h or the copy of that gets included only once to reduce + duplicate include warnings. + +2011-10-20 R. Bernstein + + * configure.ac, include/cdio/Makefile.am, lib/driver/cdtext.c, + lib/driver/utf8.c, src/cd-info.c: Correct test for enable_cdda to + accept either curses.h *or* ncurses.h Add in more places + that use bzero. Checks suggested by Blake Jones. Add preprocessor symbol CDIO_CONFIG_H to + +2011-10-20 rocky + + * THANKS: Add Dagobert Michelson to the growing list. + +2011-10-20 R. Bernstein + + * example/README: Note that some adjustments might be needed to + compile example programs + +2011-10-20 R. Bernstein + + * Makefile.am, doc/Makefile.am, src/cd-paranoia/Makefile.am: Add + remake --task documentation + +2011-10-19 R. Bernstein + + * src/util.h: Add to pick up definition of bzero. + +2011-10-19 R. Bernstein + + * README.develop, example/sample3.c, include/cdio++/iso9660.hpp, + src/cd-drive.c, src/cd-paranoia/Makefile.am, test/check_legal.regex: + Remove CVS $Id$ line which is no longer automatically updated. + ios9660.hpp under FS because of Solaris macro conflict as suggested + by Thomas Schmitt. cd-drive.c: add some casts to remove gcc + warnings src/cd-paranoia/Makefile.am: remove a GNU make idiom. + README.develop: note needing GNU make or remake + +2011-10-19 R. Bernstein + + * example/mmc3.c, example/sample3.c, example/sample4.c: Remove some + warnings + +2011-10-19 R. Bernstein + + * lib/driver/gnu_linux.c: sprintf -> snprintf + +2011-10-20 rocky + + * lib/driver/solaris.c: solaris.c: sprintf->snprintf as implicitly + suggested by Thomas Schmitt + +2011-10-20 rocky + + * lib/iso9660/rock.c, test/check_common_fn.in: rock.c: small + C-Preprocessor bug noticed on Solaris 10 sparc. check_common_fn.in: + avoid == for older /bin/sh as Solaris has + +2011-10-18 R. Bernstein + + * : commit 47e4844390cb801a3dcd8e38cad4cc7e559962d4 Author: R. + Bernstein Date: Tue Oct 18 20:00:56 2011 -0400 + +2011-10-18 rocky + + * NEWS: Update NEWS for pending 0.83 release. + +2011-10-04 R. Bernstein + + * src/util.c, test/cdda-mcn.right, test/cdda-read.right, + test/cdda.right, test/check_common_fn.in, test/check_opts.sh, + test/check_opts0.right, test/check_opts1.right, + test/check_opts2.right, test/check_opts3.right, + test/check_opts4.right, test/check_opts5.right, + test/check_opts6.right, test/check_opts7.right, + test/copying-rr.right, test/copying.right, test/fsf.right, + test/isofs-m1-no-rr.right, test/isofs-m1-read.right, + test/isofs-m1.right, test/joliet-nojoliet.right, test/joliet.right, + test/monvoisin.right, test/svcd_ogt_test_ntsc.right, + test/svcdgs.right, test/vcd_demo.right, + test/vcd_demo_vcdinfo.right, test/vcd_demo_vcdinfo_toc.right, + test/videocd.right: --no-header omits warranty. Patch from Martin + von Gagem. Savannah #29307. + +2011-09-12 R. Bernstein + + * src/cd-info.c: Give CDDB info if *any* tracks are found to be + audio tracks. + +2011-08-25 rocky + + * lib/driver/MSWindows/win32_ioctl.c: Fix a couple of sizeof syntax + errors in converting sprintf to snprintf. See bug #34125. + +2011-07-08 rocky + + * configure.ac, include/cdio/Makefile.am: Use "make" to create + include/cdio/cdio_config.h rather than do it in the configure + script. + +2011-07-08 rocky + + * include/cdio/paranoia.h, lib/paranoia/paranoia.c: Reduce range of + seek in paranoia_seek to be int32_t. CDDA's definitely live within + this range. off_t is influenced by _FILE_OFFSET_BITS and can cause + problems on a 32-bit system where _FILE_OFFSET_BITS is set to 64. + See Bastiaan Timmer's posting to libcdio-help on July 7, 2011. + +2011-07-07 rocky + + * configure.ac: Copy all of config.h in order to get + _FILE_OFFSET_BITS. + +2011-05-31 R. Bernstein + + * lib/iso9660/iso9660_fs.c, src/iso-info.c: Two more Coverty static + analysis issues addressed by Honza Horak. + +2011-05-30 rocky + + * example/audio.c, example/mmc2a.c, example/paranoia.c, + lib/cdda_interface/cddap_interface.c, + lib/cdda_interface/common_interface.c, + lib/cdda_interface/scan_devices.c, lib/driver/device.c, + lib/driver/gnu_linux.c, lib/driver/image/cdrdao.c, + lib/driver/image/nrg.c, lib/driver/mmc/mmc.c, lib/driver/read.c, + lib/iso9660/iso9660_fs.c, lib/paranoia/paranoia.c, + lib/udf/udf_file.c, lib/udf/udf_fs.c, src/cd-info.c, + src/cd-paranoia/cd-paranoia.c, src/cd-read.c, src/iso-info.c: patch + from Honza Horak using Coverity's static analysis tool. + +2011-05-27 R. Bernstein + + * lib/driver/MSWindows/win32_ioctl.c, lib/driver/solaris.c, + src/cdda-player.c: Change a number of sprintf's to snprintf. + +2011-05-20 R. Bernstein + + * README.libcdio, configure.ac: configure.ac: remove no + AC_LANG_SOURCE call detected. (From Christopher Yeleighton) + +2011-05-19 R. Bernstein + + * INSTALL: Typo + +2011-05-19 R. Bernstein + + * .gitignore, INSTALL: More specific install instructions + +2011-05-19 R. Bernstein + + * INSTALL.git: INSTALL.git information is in README.develop + +2011-05-19 R. Bernstein + + * README.develop, README.libcdio: Update development install + instructions and libcdio-specific "configure" options. + +2011-05-19 R. Bernstein + + * test/cdda.right: Adjust test output - track now has width for two + digits. + +2011-05-19 R. Bernstein + + * INSTALL.git, Makefile.am, README, doc/Makefile.am, + doc/doxygen/html/.cvsignore, example/audio.c, + include/cdio++/enum.hpp, include/cdio++/read.hpp, + include/cdio/rock.h, include/cdio/scsi_mmc.h, + lib/driver/portable.h, lib/driver/sector.c, lib/iso9660/xa.c, + package/libcdio.spec.in, parse/toc.y, src/Makefile.am, + src/cd-drive.help2man, src/cd-info.help2man, + src/cd-paranoia/doc/en/cd-paranoia.1.in, src/cd-paranoia/header.c, + src/cd-read.help2man, src/cdda-player.c, src/cdinfo-linux.c, + src/iso-info.help2man, src/iso-read.help2man, src/util.c, + src/util.h: Add git install instructions. Simplify and customize + INSTALL. Add dependency to cause version.texi to get created. Update + my email address. + +2011-05-18 rocky + + * THANKS, include/cdio/audio.h, include/cdio/types.h, + include/cdio/udf_file.h, lib/driver/mmc/mmc.c, src/cd-info.c: Add + ISRC track info to cd-info output. Code from Scot C. Bontrager. + +2011-05-18 R. Bernstein + + * src/cdda-player.c: Correct wording in cdda-player comments. For + Christopher Yeleighton, among others. + +2011-05-18 R. Bernstein + + * src/cdda-player.c: Don't wrap-around volume adjustment for + cdda-player. The rationale is that folks might not look at the + volume indicator or know what the max or min values are. See issue + #33333 by Christopher Yeleighton. + +2011-05-17 rocky + + * lib/driver/libcdio.sym: Make sure mmc_isrc_track_read_subchannel + is a global symbol + +2011-05-17 rocky + + * THANKS, include/cdio/mmc.h, lib/driver/mmc/mmc.c: Add mmc routine + to get the ISRC information on a CD that is in the q subchannel but + not showing up in the CDTEXT. Contributed by Scot C. Bontrager. + +2011-04-23 R. Bernstein + + * example/cdtext.c, lib/driver/cdtext.c, + lib/driver/cdtext_private.h: From Leon Merten Lohse + https://savannah.gnu.org/patch/?7532: * discid field extraction * genre field extraction (experimental) * blocksize field extraction * read charcode from blocksize field * some unneeded comments removed * unneeded local variables removed * typos + +2011-03-28 R. Bernstein + + * : commit 66a3e4689efe80897648ca0e4b0faf36845a1fed Author: R. + Bernstein Date: Mon Mar 28 12:30:36 2011 -0400 + +2011-03-28 R. Bernstein + + * lib/driver/cdtext.c: CD-text patches from Leon Merten Lohse to + handle double-byte strings. See https://savannah.gnu.org/patch/?7516 + +2011-02-24 rocky + + * src/cd-read.c: Correct erroneous error message. Thanks to Bas + Timmer via libcdio-help. + +2010-11-30 R. Bernstein + + * lib/iso9660/rock.c, src/util.c: Guard against not having S_ISLNK + and S_ISSOCK. + +2010-11-10 R. Bernstein + + * lib/cdda_interface/scan_devices.c: Memoery leak reported in + paranoia-dev. Fix from billy.donahue. + +2010-10-26 R. Bernstein + + * Makefile.am, lib/udf/udf_file.c: Makefile.am: Variable was + misspelled + +2010-10-22 R. Bernstein + + * : commit 122aecc0a93cd3613379059d8983af5acf390ad8 Author: R. + Bernstein Date: Fri Oct 22 23:39:19 2010 -0400 + +2010-08-27 rocky + + * : commit e3226cdd2bf02d6934f928a70898facbbbc98009 Author: rocky + Date: Fri Aug 27 17:09:14 2010 -0400 + +2010-05-30 R. Bernstein + + * example/cdchange.c, example/isofile.c, example/isofile2.c, + example/isofuzzy.c, example/paranoia.c, example/udffile.c: config.h + has to come first else _FILE_OFFSET_BITS are redefined in say + opensolaris. Part 2 of patch from Thomas Schmitt + +2010-05-30 R. Bernstein + + * : commit 789a90472a461ec9f4ec19d1f3417aa9c81e5b10 Author: R. + Bernstein Date: Sun May 30 01:24:59 2010 -0400 + +2010-05-11 R. Bernstein + + * include/cdio/dvd.h: uint8_t -> unsigned int. + http://en.wikipedia.org/wiki/C_syntax#Bit_fields via Thomas Schmitt + +2010-05-11 R. Bernstein + + * src/cdda-player.c: Silence another GCC warning. Thanks to Thomas + Schmitt for this. + +2010-05-11 R. Bernstein + + * include/cdio/mmc.h: Typo found by Thomas Schmitt. + +2010-05-07 rocky + + * lib/driver/FreeBSD/freebsd_cam.c: From Thomas Schmitt: in order to + preserve the current behavior over the CAM changes. + +2010-03-23 R. Bernstein + + * lib/iso9660/iso9660.c: Compile error when Rock Ridge support is + disabled. Savannah bug #29308. + +2010-03-23 R. Bernstein + + * configure.ac: Savannah Patch #7129 from Mike Frysinger: specifies user-visible e-mail address in AC_INIT - uses AC_HELP_STRING() for enable/with options - uses AC_MSG_* instead of `echo` for user notices - removes redundant test checks for enable/with options - fixes 3rd arg handling with AC_ARG_ENABLE and --enable-rock and + --enable-cddb and --enable-vcd-info - properly quotes enable/with variables in case someone passes a + value with spaces as the enable/with value + +2010-03-23 R. Bernstein + + * lib/driver/disc.c: Track discmode_t (include/disc.h) enumeration + changes + +2010-02-22 R. Bernstein + + * include/cdio/Makefile.am, include/cdio/device.h, + include/cdio/mmc.h, include/cdio/mmc_util.h, + lib/driver/Makefile.am, lib/driver/mmc/mmc.c, + lib/driver/mmc/mmc_util.c, test/driver/.gitignore: mmc_util.{c,h} + Break simpler non-dependent mmc helper or utility routines from + mmc.{c,h} + +2010-02-11 R. Bernstein + + * configure.ac, example/cdchange.c: Start to remove sleep in favor + of usleep. Bug #28543. + +2010-02-11 R. Bernstein + + * lib/driver/mmc/mmc_hl_cmds.c: Small change + +2010-02-11 R. Bernstein + + * include/cdio/mmc.h, include/cdio/mmc_hl_cmds.h, + lib/driver/mmc/mmc.c, lib/driver/mmc/mmc_hl_cmds.c, + test/driver/mmc_read.c: Move another routine from mmc.c into + mmc_hl_cmds.c + +2010-02-11 R. Bernstein + + * test/driver/mmc_read.c: Fix Minor test bug + +2010-02-11 R. Bernstein + + * test/driver/mmc_read.c, test/driver/mmc_write.c: Go over for + coding and code style. + +2010-02-10 R. Bernstein + + * test/driver/mmc_write.c: Small changes + +2010-02-10 R. Bernstein + + * include/cdio/mmc_ll_cmds.h, lib/driver/mmc/mmc_ll_cmds.c, + test/driver/Makefile.am, test/driver/mmc_read.c, test/driver/{mmc.c + => mmc_write.c}: Split off MMC tests which don't involve exclusive + access from those that do. + +2010-02-09 R. Bernstein + + * example/mmc1.c, include/cdio/Makefile.am, include/cdio/mmc.h, + include/cdio/mmc_cmds.h, include/cdio/mmc_hl_cmds.h, + include/cdio/mmc_ll_cmds.h, lib/driver/libcdio.sym, + lib/driver/mmc/mmc.c, lib/driver/mmc/mmc_hl_cmds.c, + lib/driver/mmc/mmc_ll_cmds.c, test/driver/mmc.c: Add + mmc_read_disc_information. Change get_disctype to use it and thus it + moves from mmc.c into mmc_hl_cmds.c. Status is now the return type, + not erasable. Split mmc_cmds.h into mmc_ll_cmds.h and mmc_hl_cmds.h. + test/driver/mmc.c for invalid page check we get the right sense key, + asc, and ascq. + +2010-02-09 R. Bernstein + + * lib/driver/MSWindows/win32_ioctl.c: Clear sense request valid + flag. + +2010-02-09 R. Bernstein + + * test/driver/mmc.c: Test sense key, sense code and additional sense + code on invalid page. + +2010-02-09 R. Bernstein + + * include/cdio/mmc.h: Add CDIO_MMC_GPCMD_READ_TRACK_INFORMATION + +2010-02-09 R. Bernstein + + * lib/driver/libcdio.sym, test/driver/mmc.c: sort libcdio.sym. + Remove duplicated tests. + +2010-02-09 R. Bernstein + + * lib/driver/libcdio.sym, test/driver/Makefile.am: Missing some more + externals and a file which needs to go into the distribution + tarball. + +2010-02-09 R. Bernstein + + * configure.ac, lib/driver/libcdio.sym: Drop version number on + automake. Add missing externals to libcdio.sym + +2010-02-08 R. Bernstein + + * include/cdio/mmc.h: Comment spelling typos + +2010-02-08 R. Bernstein + + * example/mmc1.c, test/driver/mmc.c: Use mmc_get_disctype in mmc + example. + +2010-02-08 R. Bernstein + + * include/cdio/mmc.h, include/cdio/mmc_cmds.h, + lib/driver/mmc/mmc.c, lib/driver/mmc/mmc_hl_cmds.c, + test/driver/mmc.c: Remove duplicate cdio_mmc_disctype_t. + +2010-02-08 R. Bernstein + + * lib/driver/mmc/mmc_cmd_helper.h, lib/driver/mmc/mmc_hl_cmds.c, + lib/driver/mmc/mmc_ll_cmds.c, test/driver/mmc.c: Fix all fo the bugs + I introduced "improving" the code of others. mmc_ll_cmds.c: + mmc_mode_select and mmc_get_configuration now work. mmc_hl_cmds.c: + bug introduced by turning a var into a pointer to that variable. + +2010-02-08 R. Bernstein + + * doc/glossary.texi, test/driver/mmc.c: glossary.texi: disctype + additions/corrections mmc.c: start test of get_disctype, stylisting + convention changes. Warning: mmc_get_configuration and + mmc_get_mode_select are broken. + +2010-02-07 R. Bernstein + + * doc/glossary.texi: See above. + +2010-02-07 R. Bernstein + + * doc/glossary.texi: Add DVD-R DL, HD DVD-R and HD DVD-RAM. + +2010-02-07 R. Bernstein + + * include/cdio++/mmc.hpp, include/cdio/mmc.h, + include/cdio/mmc_cmds.h, lib/driver/MSWindows/win32_ioctl.c, + lib/driver/gnu_linux.c, lib/driver/libcdio.sym, + lib/driver/mmc/mmc.c, lib/driver/mmc/mmc_hl_cmds.c, + lib/driver/mmc/mmc_ll_cmds.c, src/mmc-tool.c, test/driver/mmc.c: Add + SCSI-MMC GET CONFIGURATION. Add Frank Endres' disc type + determination via MMC. Be more careful to suffix with CDIO_MMC + which I hope will reduce possible name conflicts. + +2010-02-07 R. Bernstein + + * include/cdio/mmc.h, include/cdio/mmc_cmds.h, + lib/driver/gnu_linux.c, lib/driver/mmc/mmc.c, + lib/driver/mmc/mmc_hl_cmds.c, lib/driver/mmc/mmc_ll_cmds.c: Start + populating mmc/mmc_hl_cmds.c. Create mmc directory in preparation + for making it a library. mmc.h: CDIO_MMC_GPCMD_ALLOW_MEDIUM_REMOVAL -> CDIO_MMC_GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL mmc.c: Move + mm_eject_media and mmc_set_drive_speed to mmc/mmc_hl_cmds.c + mmc_ll_cmds.c: add mmc_prevent_allow_medium_removal, move mmc_mode_sense to mmc/mmc_hl_cmds.c + +2010-02-07 R. Bernstein + + * include/cdio++/mmc.hpp, include/cdio/mmc_cmds.h, + lib/driver/Makefile.am, lib/driver/cdio_private.h, + lib/driver/mmc/.gitignore, lib/driver/mmc/Makefile, lib/driver/{ => + mmc}/mmc.c, lib/driver/mmc/mmc_cmd_helper.h, + lib/driver/mmc/mmc_hl_cmds.c, lib/driver/{mmc_cmds.c => + mmc/mmc_ll_cmds.c}, lib/driver/{ => mmc}/mmc_private.h, + src/mmc-tool.c, test/driver/mmc.c: Move more towards making MMC a + library. Start to reorganize more to break out 1-1 SCSI-MMC commands + (in mmc_ll_cmds.c) from higher-level commands which use the + lower-level ones. + +2010-02-07 R. Bernstein + + * include/cdio/mmc.h, include/cdio/mmc_cmds.h, + lib/driver/mmc_cmds.c, test/driver/mmc.c: Add mcc_test_unit_ready + and mmc_mode_select (buggy). Allow for timeouts on mmc commands - + more work needed here too. + +2010-02-06 R. Bernstein + + * include/cdio/mmc.h, include/cdio/mmc_cmds.h, lib/driver/mmc.c, + lib/driver/mmc_cmds.c: Small cleanups + +2010-02-06 R. Bernstein + + * include/cdio++/mmc.hpp, include/cdio/mmc.h, + include/cdio/mmc_cmds.h, lib/driver/mmc.c, lib/driver/mmc_cmds.c, + src/mmc-tool.c, test/driver/mmc.c: lib/driver/mmc.c - DRY code. + Warning - might have introduced breakage here *mmc*: + mmc_start_stop_media -> mmc_start_stop_unit, + CDIO_MMC_GPCMD_START_STOP -> CDIO_MMC_GPCMD_START_STOP_UNIT + cdio++/mmc.hpp: Regularize Doxygen comment format. + +2010-02-06 R. Bernstein + + * example/mmc2a.c, include/cdio++/cdio.hpp, + include/cdio/Makefile.am, include/cdio/mmc.h, + include/cdio/mmc_cmds.h, lib/driver/Makefile.am, + lib/driver/device.c, lib/driver/mmc.c, lib/driver/mmc_cmds.c, + src/mmc-tool.c, test/driver/mmc.c: Start to split off specific mmc + commands from the lower-level internals. + +2010-02-06 R. Bernstein + + * include/cdio/disc.h, include/cdio/dvd.h, + lib/driver/_cdio_generic.c: Add CDIO_DISC_MODEs to correspond to + updated DVD Book types. + +2010-02-06 R. Bernstein + + * include/cdio/dvd.h: See above + +2010-02-06 R. Bernstein + + * NEWS, include/cdio/dvd.h, lib/driver/disc.c: dvd.h: Update DVD + book types disc.c: Add CDIO_DISC_MODE_DVD_OTHER Thanks to Frank Endes and Thomas Schmitt for observing the problem + and suggesting the fixes. + +2010-02-06 R. Bernstein + + * lib/driver/disc.c: Had erroneously omitted + CDIO_DISC_MODE_DVD_OTHER. Omission pointed out by Frank Endres. + +2010-02-05 R. Bernstein + + * doc/glossary.texi, include/cdio/mmc.h, lib/driver/mmc.c, + test/driver/mmc.c: glossary.texi, mmc.h: note acronyms SPC-3, MMC-5, + SBC-2. glossary.texi: start using texinfo cross references + test/driver/mmc.c: use provided routine for start/stop unit. + Warning: might have broken things here. + +2010-02-05 R. Bernstein + + * include/cdio/mmc.h, lib/driver/mmc.c, test/driver/mmc.c: Revise + with info from dpANS SCSI Primary Commands-3 (SPC-3). Use sense data + structure in mmc_last_cmd_sense. + +2010-02-05 R. Bernstein + + * include/cdio/mmc.h, lib/driver/mmc.c: Add SCSI sense key values. + +2010-02-04 R. Bernstein + + * include/cdio/mmc.h, lib/driver/mmc.c, test/driver/mmc.c: mmc.h: + Big endian bytes is not the same as big_endian bitfield mmc.c: more + pervasive use of cdio's mmc definitions. + +2010-02-03 R. Bernstein + + * include/cdio/device.h, include/cdio/mmc.h, + lib/driver/MSWindows/win32_ioctl.c, test/driver/mmc.c: mmc.h: + TEST_UNIT_READY MMC command opcode device.h: Add DRIVER_OP_MMC_SENSE to driver_return_code_t. win32_ioctl.c: work around MS bug where buffer sizes are 0 or 1. Set + return code status if sense data passed back. Translate bad + parameter MS Windows error into a driver_return_code_t error. test/driver/mmc.c: Reinstate old logic now that the MS Windows + driver has been made to work more like other drivers and copes with + some of the MS Windows causing failure here. + +2010-02-03 R. Bernstein + + * lib/driver/gnu_linux.c: Fix in changing data types. + +2010-02-03 R. Bernstein + + * include/cdio/mmc.h, lib/driver/MSWindows/win32_ioctl.c, + lib/driver/gnu_linux.c: Add more doxygen comments as to sense + request information means and add a typedef for mmc_sense_request. + Use this in win32_ioctl.c. + +2010-02-03 R. Bernstein + + * include/cdio/mmc.h, include/cdio/types.h, lib/driver/gnu_linux.c: + Add type definition for SCSI sense data. + +2010-02-02 R. Bernstein + + * test/driver/mmc.c: Comment out some MMC tests which are failing on + GNU/Linux where we are *not* getting sense data back but we are + getting failures from ioctl(.. CDROM_SEND_PACKET) + +2010-02-02 R. Bernstein + + * : commit 60b237a16126b6e538a5fbea863f64ef5dfe92d6 Author: R. + Bernstein Date: Tue Feb 2 22:15:55 2010 -0500 + +2010-02-01 R. Bernstein + + * lib/driver/osx.c: Handle SCSI_MMC_DATA_NONE and copy sense data. + Not working since SCSI Pass is still broken. Presumably after that's + solved there will be less catch-up work. + +2010-01-31 R. Bernstein + + * lib/driver/MSWindows/win32_ioctl.c: Format windows error messages + better. + +2010-01-31 R. Bernstein + + * : commit 5f10331adb59fbc25e4817e74624781642a5c0bd Author: R. + Bernstein Date: Sun Jan 31 21:31:08 2010 -0500 + +2010-01-31 R. Bernstein + + * include/cdio/mmc.h, lib/driver/mmc.c, test/driver/mmc.c: Allow a + status parameter in mmc_get_disc_eraseable to be NULL. Suggested by + Frank Endres on libcdio-devel mailing list. + +2010-01-30 R. Bernstein + + * example/mmc1.c: Update date + +2010-01-30 R. Bernstein + + * example/mmc1.c, test/driver/mmc.c: Linguistic purity. + +2010-01-30 R. Bernstein + + * example/mmc1.c: Show off drive_erasable() in MMC example. + +2010-01-29 R. Bernstein + + * lib/driver/MSWindows/win32.c, lib/driver/MSWindows/win32_ioctl.c, + test/driver/gnu_linux.c, test/driver/win32.c: Add + cdio_get_arg("scsi-tuple") for Win32 ioctl. + +2010-01-29 R. Bernstein + + * NEWS, include/cdio/mmc.h, lib/driver/mmc.c: Update MMC Feature + Profile list + +2010-01-29 R. Bernstein + + * include/cdio/mmc.h, lib/driver/mmc.c, test/driver/mmc.c: Add a + driver return code parameter to mmc_get_get_disc_erasable. + +2010-01-28 R. Bernstein + + * NEWS, THANKS, include/cdio/mmc.h, lib/driver/mmc.c, + lib/driver/mmc_private.h, test/driver/mmc.c: Add + mmc_get_disc_erasable courtesy of Frank Endres. + +2010-01-28 R. Bernstein + + * include/cdio/mmc.h, lib/driver/mmc.c: Fill out parameter + descriptions to remove doxygen warnings. + +2010-01-28 R. Bernstein + + * include/cdio/mmc.h, lib/driver/mmc.c, test/driver/bincue.c.in: + Regularis some of the mmc Doxygen comments. + +2010-01-27 R. Bernstein + + * src/cd-paranoia/getopt.h: Assume nowadays Standard C is Standard C + +2010-01-24 R. Bernstein + + * test/driver/.gitignore, test/driver/Makefile.am, + test/driver/bincue.c.in, test/driver/cdrdao.c.in, + test/driver/gnu_linux.c, test/driver/helper.c, + test/driver/helper.h, test/driver/nrg.c.in: Start to DRY driver unit + tests. + +2010-01-23 R. Bernstein + + * test/driver/bincue.c.in, test/driver/cdrdao.c.in: Reduce verbosity + of test programs. For additional verbosity pass a param to the test + program. + +2010-01-23 R. Bernstein + + * configure.ac, doc/.gitignore, test/Makefile.am, + test/driver/.gitignore, test/driver/Makefile.am, test/{testtoc.c => + driver/cdrdao.c.in}: testtoc -> driver/cdrdao.c.in + +2010-01-23 R. Bernstein + + * lib/driver/MSWindows/aspi32.c, lib/driver/MSWindows/win32.c, + src/cd-paranoia/.gitignore, test/driver/.gitignore: Better + diagnostic messages for MS Window driver. + +2010-01-22 R. Bernstein + + * doc/glossary.texi, doc/libcdio.texi: libcdio.texi: More sectioning + with respect to the libraries glossary.texi: Add Thomas Schmitt's + DVD Blu-Ray and media information. + +2010-01-22 R. Bernstein + + * doc/libcdio.texi: Input and Control -> Input, Output, and Control + thanks to Thomas Schmitt + +2010-01-22 R. Bernstein + + * doc/libcdio.texi, test/driver/.gitignore: Revise section regarding + "SCSI, SCSI commands, and MMC commands" + +2010-01-21 R. Bernstein + + * doc/glossary.texi: Thomas Schmitt's corrections and additions. + +2010-01-21 R. Bernstein + + * doc/libcdio.texi: Document corrections courtesy of Thomas Schmitt. + +2010-01-21 R. Bernstein + + * test/driver/.gitignore, test/driver/bincue.c: Document corrections + courtesy of Thomas Schmitt. + +2010-01-21 R. Bernstein + + * configure.ac: Allow automake 1.10 + +2010-01-21 R. Bernstein + + * test/.gitignore, test/cdda.bin, test/isofs-m1.bin: Remove derived + files. + +2010-01-21 R. Bernstein + + * test/Makefile.am, test/cdda.bin, test/driver/bincue.c, + test/driver/mmc.c, test/isofs-m1.bin: cygwin fixes. + +2010-01-21 R. Bernstein + + * configure.ac, example/paranoia.c, lib/cdda_interface/utils.c, + src/cd-read.c, test/Makefile.am, test/driver/Makefile.am, + test/driver/bincue.c, test/driver/bincue.c.in, test/{testnrg.c.in + => driver/nrg.c.in}: Remove more warnings. test/testnrg.c.in -> + test/driver/nrg.c.in + +2010-01-20 R. Bernstein + + * test/driver/bincue.c, test/driver/bincue.c.in, + test/driver/gnu_linux.c: Fold more tests into bi/ncue driver. + +2010-01-20 R. Bernstein + + * test/Makefile.am, test/data/isofs-m1.cue, test/driver/.gitignore, + test/driver/Makefile.am, test/driver/bincue.c: Make "make dist" + package everything again. + +2010-01-20 R. Bernstein + + * configure.ac, doc/.gitignore, doc/doxygen/.gitignore, + test/Makefile.am, test/check_cd_read.sh, test/check_cue.sh.in, + test/check_fuzzyiso.sh, test/check_iso.sh.in, test/check_nrg.sh.in, + test/check_opts.sh, test/check_paranoia.sh.in, + test/data/.gitignore, test/data/Makefile.am, test/{ => + data}/bad-cat1.cue, test/{ => data}/bad-cat1.toc, test/{ => + data}/bad-cat2.cue, test/{ => data}/bad-cat2.toc, test/{ => + data}/bad-cat3.cue, test/{ => data}/bad-cat3.toc, test/{ => + data}/bad-file.toc, test/{ => data}/bad-mode1.cue, test/{ => + data}/bad-mode1.toc, test/{ => data}/bad-msf-1.cue, test/{ => + data}/bad-msf-1.toc, test/{ => data}/bad-msf-2.cue, test/{ => + data}/bad-msf-2.toc, test/{ => data}/bad-msf-3.cue, test/{ => + data}/bad-msf-3.toc, test/{ => data}/cdda.cue, test/{ => + data}/cdda.toc, test/{ => data}/cdtext.toc, test/{ => + data}/data1.toc, test/{ => data}/data2.toc, test/{ => + data}/data5.toc, test/{ => data}/data6.toc, test/{ => + data}/data7.toc, test/{ => data}/isofs-m1.toc, test/{ => + data}/p1.cue, test/{ => data}/t1.toc, test/{ => data}/t2.toc, + test/{ => data}/t3.toc, test/{ => data}/t4.toc, test/{ => + data}/t5.toc, test/{ => data}/t6.toc, test/{ => data}/t7.toc, + test/{ => data}/t8.toc, test/{ => data}/t9.toc, test/{ => + data}/vcd2.toc, test/{ => data}/vcd_demo.toc, + test/driver/.gitignore, test/driver/Makefile.am, + test/{testbincue.c.in => driver/bincue.c.in}, test/isofs-m1.cue, + test/testgetdevices.c.in, test/testisocd2.c.in, test/testnrg.c.in, + test/testpregap.c.in, test/testtoc.c: Reorganize test data for + future growth. + +2010-01-18 R. Bernstein + + * doc/libcdio.texi, example/cdchange.c, lib/driver/aix.c, + lib/driver/gnu_linux.c: More information around access modes for + specific drivers. + +2010-01-18 R. Bernstein + + * lib/driver/MSWindows/aspi32.c, lib/driver/MSWindows/win32.c, + test/driver/win32.c: Extend win32 test to check + get_arg("mmc-supported?"). Turn ASPI load failer into an info + message + +2010-01-18 R. Bernstein + + * lib/driver/MSWindows/win32.c, test/driver/realpath.c: Bug fixes in + test/driver programs + +2010-01-17 R. Bernstein + + * doc/libcdio.texi: Start a section on access modes and + cdio_get_args. + +2010-01-17 R. Bernstein + + * example/cdchange.c, example/paranoia.c, lib/driver/aix.c, + lib/driver/image_common.c, lib/driver/netbsd.c, + test/driver/gnu_linux.c: driver/*.c: Add response for + get_arg("mmc-supported?") example/*.c: remove compiler wranings. + +2010-01-17 R. Bernstein + + * : commit 67c86230519db22b3731e789e0e86381e8d29ff6 Author: R. + Bernstein Date: Sun Jan 17 04:49:47 2010 -0500 + +2010-01-17 R. Bernstein + + * test/driver/realpath.c: Test was erroneously failing when temp + directory had a symbolic link in it (as it does on OSX). + +2010-01-16 R. Bernstein + + * lib/cdda_interface/scan_devices.c: realpath -> cdio_realpath which + pretends to be more portable. + +2010-01-16 R. Bernstein + + * lib/driver/gnu_linux.c: Add way to determine if MMC commands are + available: get_arg("mmc-supported?") + +2010-01-16 R. Bernstein + + * NEWS, lib/driver/FreeBSD/freebsd.c, lib/driver/FreeBSD/freebsd.h, + lib/driver/FreeBSD/freebsd_cam.c, + lib/driver/FreeBSD/freebsd_ioctl.c, lib/driver/gnu_linux.c, + test/driver/mmc.c: FreeBSD read/write and most-recent scsi sense + access courtesy of Thomas Schmitt. + +2010-01-16 R. Bernstein + + * configure.ac, include/cdio/util.h, lib/driver/Makefile.am, + lib/driver/_cdio_generic.c, lib/driver/gnu_linux.c, + lib/driver/{follow_symlink.c => realpath.c}, + lib/iso9660/iso9660_fs.c, test/driver/Makefile.am, + test/driver/{follow_symlink.c => realpath.c}: cdio_follow_symlink -> + cdio_realpath which is really POSIX realpath. (Suggestion via Thomas + Schmitt.) gnu_linux.c: report errors when they occur. + +2010-01-15 R. Bernstein + + * test/driver/follow_symlink.c: Add doxyen comment for + follow_symlink. Add another follow_symlink test. + +2010-01-14 R. Bernstein + + * test/driver/follow_symlink.c: CLean up better by remove temporary + symbolic link file. + +2010-01-14 R. Bernstein + + * test/driver/.gitignore, test/driver/Makefile.am, + test/driver/follow_symlink.c: include/cdio/util.h: document + cdio_follow_symlink. lib/is9660/iso966O_fs.c: Remove a gcc warning + test/driver/follow_symlink.c First test of cdio_follow_symlink. Doc + +2010-01-13 R. Bernstein + + * lib/driver/.gitignore, lib/driver/Makefile.am, + lib/driver/follow_symlink.c, lib/driver/util.c: Add Thomas Schmitt's + bug fixes and standalone code. + +2010-01-07 R. Bernstein + + * lib/driver/FreeBSD/freebsd.c, lib/driver/FreeBSD/freebsd.h: Start + to add read-write access mode for FreeBSD. Not working yet. + +2010-01-06 R. Bernstein + + * lib/driver/FreeBSD/freebsd.c, test/driver/freebsd.c: Correct + cdio_get_devices for FreeBSD. + +2010-01-06 R. Bernstein + + * test/driver/freebsd.c: First functional (if minimal) FreeBSD test + program. + +2010-01-06 R. Bernstein + + * lib/driver/FreeBSD/freebsd_cam.c, test/.gitignore, + test/driver/.gitignore, test/driver/Makefile.am, + test/driver/freebsd.c: Start FreeBSD driver test. Not currently + working though. freebsd.cam: check for error in ioctl. + +2010-01-03 R. Bernstein + + * configure.ac: Let's try FreeBSD driver on FreeBSD 8.x + +2010-01-01 R. Bernstein + + * lib/driver/MSWindows/win32_ioctl.c, lib/driver/gnu_linux.c: Start + to request sense data in DeviceIOControl of MS Windows. gnu_linux.c: + small changes. + +2009-12-31 R. Bernstein + + * lib/driver/MSWindows/win32.c, lib/driver/MSWindows/win32.h: Closer + to having RW access working + +2009-12-31 R. Bernstein + + * test/driver/mmc.c: mmc.c: use OS driver open, not the specific + GNU/Linux one + +2009-12-31 WIndows XP + + * lib/driver/MSWindows/win32.c, lib/driver/gnu_linux.c: Last change + to gnu_linux.c broke things on non GNU/Linux + +2009-12-31 R. Bernstein + + * NEWS: Update NEWS with scsi-tuple* + +2009-12-31 R. Bernstein + + * lib/driver/_cdio_generic.c, lib/driver/generic.h, + lib/driver/gnu_linux.c, test/driver/gnu_linux.c: Add ability to + retrieve SCSI tuple for a name and/or fake one up. This helps + programs that want to be cd-record compatible. In particular to + parameters were added to cdio_get_arg, "scsi-tuple", and + "scsi-tuple-linux". Code from Thomas Schmitt. + +2009-12-31 R. Bernstein + + * lib/driver/mmc.c, test/driver/Makefile.am, test/driver/mmc.c: + lib/driver/mmc.c: remove bug in dereferencing NULL pointer. (Found + in testing ;-) test/driver/mmc.c: MMC command testing code from + Thomas Schmitt. + +2009-12-26 R. Bernstein + + * test/driver/Makefile.am, test/driver/osx.c: Start OSX driver test + +2009-12-26 R. Bernstein + + * example/mmc3.c: Don't eject a CDROM drive door in testing. + +2009-12-26 WIndows XP + + * test/driver/Makefile.am, test/driver/win32.c: Start unit test for + lib/driver/MSWindows/win32.c + +2009-12-26 rocky + + * example/cdtext.c, example/mmc1.c, example/mmc2.c, + example/mmc2a.c, example/mmc3.c, example/paranoia.c, + example/paranoia2.c, example/sample4.c, test/testiso9660.c: + example/* change failures so the record as skipped tests when + running 'make check'. + +2009-12-26 R. Bernstein + + * configure.ac, include/cdio/version.h.in, test/Makefile.am, + test/driver/.gitignore, test/driver/Makefile.am, test/{testlinux.c + => driver/gnu_linux.c}, test/{testsolaris.c => driver/solaris.c}: + Move driver tests into a separate directory. + +2009-12-26 WIndows XP + + * test/testlinux.c, test/testsolaris.c: Small changes + +2009-12-26 rocky + + * : commit e7911dcb697d34373ca9ef670f27555551db7cbc Author: rocky + Date: Sat Dec 26 13:25:35 2009 +0100 + +2009-12-25 R. Bernstein + + * : commit 5aec1e053615018b84f7779953232853073bb44b Author: R. + Bernstein Date: Fri Dec 25 19:45:09 2009 -0500 + +2009-12-25 WIndows XP + + * lib/driver/MSWindows/aspi32.c, lib/driver/gnu_linux.c: First + attempt to add sense retrieval in Windows driver. Clean up return + code in run_mmc_cmd_aspi. + +2009-12-25 R. Bernstein + + * configure.ac: Show whether we are building C++ programs in + configure output. + +2009-12-25 R. Bernstein + + * include/cdio/version.h.in, lib/driver/libcdio.sym, + lib/driver/util.c, test/.gitignore, test/Makefile.am, + test/test_lib_driver_util.c: Add run-time variables for libcdio + version number/string. + +2009-12-25 R. Bernstein + + * NEWS, THANKS, lib/driver/gnu_linux.c, lib/driver/solaris.c: + Recording and retrieval of SCSI sense reply for GNU/Linux. + +2009-12-25 R. Bernstein + + * NEWS, THANKS, include/cdio/mmc.h, lib/driver/generic.h, + lib/driver/gnu_linux.c, lib/driver/libcdio.sym, lib/driver/mmc.c, + lib/iso9660/iso9660.c: Add interface for retrieval of last SCSI + sense command. + +2009-12-24 R. Bernstein + + * lib/driver/gnu_linux.c: Keep indentions the same as the others. + +2009-12-24 R. Bernstein + + * configure.ac: cddb configure patch #6904 for gentoo bug #272788. + +2009-12-24 R. Bernstein + + * lib/driver/gnu_linux.c, lib/driver/solaris.c: On ioctl's, a + negative number is considered an unspecified error while a positive + number is not. Replace tabs in lines with blanks. + +2009-12-23 R. Bernstein + + * lib/driver/gnu_linux.c, test/testiso9660.c: gnu_linux.c: + run_mmc_cmd_linux: be sure to set return return code. + testiso9660.c: broke things working when on hacking on Solaris + +2009-12-24 rocky + + * lib/driver/solaris.c, lib/iso9660/iso9660.c, test/.gitignore, + test/Makefile.am, test/testsolaris.c: Start Solaris driver test. + Driver MMC sets cdio return codes better. + +2009-12-24 rocky + + * lib/iso9660/iso9660.c, test/testiso9660.c: Real test of + testiso9660 on Solaris which does not have HAVE_GMTOFF + +2009-12-23 R. Bernstein + + * test/testiso9660.c: Add small test for + iso9660_set_dtime_with_timezone and iso9660_get_dtime which is + especially useful on systems that don't have the gmtoff. + +2009-12-23 R. Bernstein + + * include/cdio/iso9660.h, lib/iso9660/iso9660.c, + lib/iso9660/libiso9660.sym: Start set/get time routines that + tolerate no timezone structure in struct tm. Solaris is like that. + (I think cygwin too.) + +2009-12-20 R. Bernstein + + * lib/driver/gnu_linux.c: NONBLOCK inadvertently removed. + +2009-12-20 R. Bernstein + + * lib/driver/gnu_linux.c: Writing opens drive exclusive, not + nonblock. + +2009-12-20 R. Bernstein + + * .gitignore, lib/driver/gnu_linux.c, test/.gitignore, + test/Makefile.am, test/testlinux.c: Add MMC_RDWR access mode - open + drive R/W only with this access. Start GNU/Linux test driver. + +2009-12-20 Rocky Bernstein (VCDImager Developer) + + * : commit 5908486078359d4ca93c178b5efc5a2654f12c1c Author: Rocky + Bernstein (VCDImager Developer) Date: Sun + Dec 20 05:55:53 2009 +0100 + +2009-12-19 R. Bernstein + + * : commit 4e8eff137e4912f13f6740c3abf52e44430bcff8 Author: R. + Bernstein Date: Sat Dec 19 18:17:18 2009 -0500 + +2009-11-26 R. Bernstein + + * example/Makefile.am: Remove one more example program from + distcheck + +2009-11-26 R. Bernstein + + * example/Makefile.am: Remove some example program from make check + to make "make distcheck" work easier. I would Rather remove programs + than coddle automake. + +2009-11-26 R. Bernstein + + * example/C++/Makefile.am, example/C++/OO/Makefile.am, + example/C++/OO/cdtext.cpp, example/C++/OO/device.cpp, + example/C++/OO/drives.cpp, example/C++/OO/eject.cpp, + example/C++/OO/iso4.cpp, example/C++/OO/isofile.cpp, + example/C++/OO/isofile2.cpp, example/C++/OO/isolist.cpp, + example/C++/OO/mmc1.cpp, example/C++/OO/mmc2.cpp, + example/C++/OO/tracks.cpp, example/C++/device.cpp, + example/C++/eject.cpp, example/C++/isofile.cpp, + example/C++/isofile2.cpp, example/C++/isolist.cpp, + example/C++/mmc1.cpp, example/C++/mmc2.cpp, + example/C++/paranoia.cpp, example/C++/paranoia2.cpp, + example/Makefile.am, example/audio.c, example/cdchange.c, + example/cdio-eject.c, example/cdtext.c, example/device.c, + example/drives.c, example/eject.c, example/isofile.c, + example/isofile2.c, example/isofuzzy.c, example/paranoia.c, + example/paranoia2.c, example/sample3.c, example/sample4.c, + example/tracks.c, example/udf1.c, example/udf2.c, + example/udffile.c, include/cdio/cdio.h: Possibly make compiling + example programs easier from the outside - don't assume + HAVE_CONFIG_H is defined but pick up values from the runtime version + of that file. We also now run example programs as tests if they are + built. + +2009-10-29 R. Bernstein + + * configure.ac: Change tests for S_ISLNK and S_ISSOCK macros from + AC_COMPILE_IFELSE to AC_LINK_IFELSE. On Mingw 4.4.0 these macros + succeed when they should fail. Patch by carlo.bramix to + libcdio-devel + +2009-10-27 R. Bernstein + + * lib/driver/image/bincue.c: Revert one cppcheck style change since + gcc complains about it. + +2009-10-27 R. Bernstein + + * example/paranoia.c, lib/cdda_interface/common_interface.c, + lib/cdda_interface/smallft.c, lib/cdda_interface/test_interface.c, + lib/driver/gnu_linux.c, lib/driver/image/bincue.c, + lib/driver/image/nrg.c, test/testparanoia.c: Remove some cppcheck + style warnings + +2009-10-27 R. Bernstein + + * lib/cdda_interface/scsi_interface.c, lib/driver/device.c: A couple + more memory leaks from cppcheck + +2009-10-27 R. Bernstein + + * configure.ac, doc/doxygen/.gitignore, + doc/how-to-make-a-release.txt, example/C++/OO/cdtext.cpp, + lib/driver/FreeBSD/freebsd.c, lib/driver/device.c, + lib/driver/netbsd.c, lib/iso9660/iso9660_fs.c, src/cd-info.c, + src/iso-info.c, test/.gitignore: In 0.83git now. Fix minor leaks in + libcdio 0.82 detected by cppcheck via Eric Sesterhenn. + +2009-10-27 R. Bernstein + + * configure.ac, doc/how-to-make-a-release.txt, + include/cdio/iso9660.h: Make doxygen clean. Get ready for 0.82 + release. + +2009-10-22 R. Bernstein + + * THANKS: Thanks Geoff Bailey. + +2009-10-22 R. Bernstein + + * config.rpath, lib/driver/FreeBSD/freebsd.c: Perhaps adding a real + config.rpath will help some of the iconv problems. Remove a + compiler warning when not compling in FreeBSD. + +2009-10-22 R. Bernstein + + * lib/driver/FreeBSD/freebsd.c, lib/driver/FreeBSD/freebsd.h: Remove + dupicated code caused by mixup with existing get-media-changed code. + +2009-10-21 R. Bernstein + + * example/.gitignore, src/.gitignore, test/.gitignore: Ignore + windows executables and stack dumps. + +2009-10-21 R. Bernstein + + * NEWS, lib/driver/FreeBSD/freebsd.c, lib/driver/FreeBSD/freebsd.h, + lib/driver/FreeBSD/freebsd_ioctl.c, lib/driver/Makefile.am: NEWS: + update what's up lib/driver/Makefile.am: increment library number + lib/driver/FreeBSD/*: FreeBSD get_media_changed fixes for ioctl. + +2009-07-12 Nicolas Boullis + + * include/cdio/device.h: Update the documentation in + include/cdio/device.h as well. + +2009-07-12 Nicolas Boullis + + * doc/libcdio.texi, example/C++/OO/device.cpp, + example/C++/device.cpp, example/device.c, src/cd-drive.c, + src/util.c: Remove all remaining uses of CDIO_MIN_DRIVER, + CDIO_MAX_DRIVER, CDIO_MIN_DEVICE_DRIVER or CDIO_MAX_DEVICE_DRIVER. + +2009-07-12 Nicolas Boullis + + * lib/driver/libcdio.sym: Export the cdio_drivers and + cdio_device_drivers arrays. + +2009-07-12 Nicolas Boullis + + * lib/driver/cdio_private.h, lib/driver/device.c: Remove all other + uses of CDIO_MIN_DRIVER, CDIO_MAX_DRIVER, CDIO_MIN_DEVICE_DRIVER or + CDIO_MAX_DEVICE_DRIVER within the libcdio library. + +2009-07-12 Nicolas Boullis + + * lib/driver/device.c: Change scan_for_driver to use cdio_drivers + and cdio_device_drivers. + +2009-07-12 Nicolas Boullis + + * include/cdio/device.h, lib/driver/device.c: Add new cdio_drivers + and cdio_device_drivers arrays. + +2009-07-11 R. Bernstein + + * src/cd-paranoia/cd-paranoia.c: Removed cd-paranoia.c by accident. + +2009-07-03 R. Bernstein + + * src/Makefile.am: MOSTLYCLEANFILES subsumes MAINTAINERCLEANFILES. + As Nicolas Boulis points out, want only the latter. + +2009-07-02 R. Bernstein + + * : commit 2522c26ec8082be46ee4012cfac76467bb0fb350 Author: R. + Bernstein Date: Thu Jul 2 20:26:39 2009 -0400 + +2009-06-15 R. Bernstein + + * : commit 7f8f0f806af7800652d352e6428be7d3fdd1a176 Author: R. + Bernstein Date: Mon Jun 15 09:31:54 2009 -0400 + +2009-05-16 R. Bernstein + + * : commit cc08ce617f81eecb1112ec9b50b01f272da613d9 Author: rocky + Date: Sat May 16 23:01:39 2009 -0400 + +2009-05-14 R. Bernstein + + * lib/driver/cdtext.c: Guard against dereferncing a null cdtext + pointer. + +2009-04-23 rocky + + * lib/driver/FreeBSD/freebsd_cam.c: Patch from John Wehle: A side + effect of opening the cdrom device on FreeBSD is it locks the drive. + This makes cdio_get_media_changed less useful and prevents you from + being able to switch disks when using things such as the audacious + media player. This patch simply unlocks the drive right after it's opened prior to + opening the cam passthrough device. + +2009-04-20 rocky + + * example/C++/README, example/README: Revise for new paranoia + descriptions. + +2009-04-20 rocky + + * example/C++/Makefile.am, example/C++/README, + example/C++/paranoia.cpp, example/Makefile.am, example/README, + example/paranoia.c: paranoia.cpp: write WAV file of up to the first + 300 sectors of the first track */Makefile.am remove any created WAV + files. README: update paranoia descriptions parananoia.c: + track-01.wav -> track01s.wav + +2009-04-20 rocky + + * example/C++/.gitignore, example/C++/OO/.gitignore, + example/C++/OO/eject.cpp, example/C++/OO/isofile.cpp, + example/C++/isofile.cpp, example/C++/isofile2.cpp, + example/paranoia.c: paranoia.c: slight code touch-up. *.cpp remove + lint warnings, e.g. int -> unsigned int + +2009-04-19 rocky + + * example/.gitignore: Administrivia + +2009-04-19 rocky + + * doc/libcdio.texi, example/README, example/paranoia.c: Extend + paranoia program to write a file with a WAV header + +2009-04-19 rocky + + * .gitignore, example/C++/.gitignore, example/C++/OO/.gitignore: + Administrivia + +2009-04-05 rocky + + * README.develop, README.libcdio: Revise installation instructions + and add what you need to do if you want to develop libcdio + +2009-02-20 R. Bernstein + + * doc/libcdio.texi: Display copying in texinfo. Patch thanks to + Jesse Weinstein. + +2009-02-08 R. Bernstein + + * THANKS, configure.ac, include/cdio/device.h, + lib/cdda_interface/common_interface.h, lib/driver/Makefile.am, + lib/driver/cdio_private.h, lib/driver/device.c, + lib/driver/generic.h, lib/driver/os2.c, + src/cd-paranoia/cd-paranoia.c, src/cd-paranoia/report.c, + src/cdda-player.c, src/util.c: Add OS/2 driver courtesy of KO + Myung-Hun. Security: Add "%s" to cdparanoia's fprintfs + +2008-12-30 R. Bernstein + + * lib/driver/gnu_linux.c: Endless loop when no CD-rom drives. Patch + thanks to Adrian Reber + +2008-12-28 R. Bernstein + + * src/Makefile.am: Fix manpage generation on platforms with + non-empty EXEEXT, and fix the VPATH build as well. + +2008-12-28 R. Bernstein + + * configure.ac, include/cdio/paranoia.h, include/cdio/sector.h, + lib/cdio++/Makefile.am, lib/iso9660/Makefile.am, libcdio.pc.in, + libiso9660++.pc.in, libiso9660.pc.in: Use LTLIBICONV instead of + LIBICONV. Bug #25201 from Yaakov Selkowitz + +2008-12-28 R. Bernstein + + * Makefile.am: The installation of libcdio++.pc and libiso9660++.pc + should be dependent on ENABLE_CXX_BINDINGS, not ENABLE_CPP. Bug + #25202 from Yaakov Selkowitz + +2008-12-28 R. Bernstein + + * lib/driver/device.c: Fix Solaris and Win32 conditionals bug #25201 + from Yaakov Selkowitz + +2008-12-13 R. Bernstein + + * doc/libcdio.texi: Some small typos. + +2008-12-07 R. Bernstein + + * .gitignore, INSTALL: INSTALL isn't really ours - yet + +2008-12-07 R. Bernstein + + * test/testgetdevices.c: Remove trailing spaces on some lines + +2008-12-07 R. Bernstein + + * test/testgetdevices.c: More verbose about driver installed + +2008-12-07 R. Bernstein + + * INSTALL, test/testgetdevices.c: Correct name for OSX in uname + +2008-12-07 R. Bernstein + + * test/testgetdevices.c: Add more tests for drivers in more OS's. + +2008-12-07 R. Bernstein + + * configure.ac, include/cdio/.gitignore, test/testgetdevices.c: Add + check against GNU/Linux driver. More info in include/cdio/config. + +2008-12-06 R. Bernstein + + * example/.gitignore, lib/driver/.gitignore, test/.gitignore: + Resolve conflicted files. + +2008-12-06 R. Bernstein + + * : I hate conflicted merges + +2008-12-06 R. Bernstein + + * example/.gitignore, lib/driver/.gitignore, lib/driver/device.c, + test/.gitignore, test/Makefile.am, test/testdefault.c, + test/testgetdevices.c: Wasn't checking the range of the device id in + cdio_have_driver. Add regression test for checking this too. More + git administrivia. + +2008-12-06 R. Bernstein + + * .cvsignore, .gitignore, Makefile.am, NEWS, configure.ac, + cvs2cl_header, cvs2cl_usermap, doc/.gitignore, + doc/doxygen/.gitignore, example/.cvsignore, example/.gitignore, + example/C++/.gitignore, example/C++/OO/.gitignore, + include/.gitignore, include/cdio++/.gitignore, + include/cdio/.gitignore, lib/.cvsignore, lib/.gitignore, + lib/cdda_interface/.gitignore, lib/cdio++/.gitignore, + lib/driver/.gitignore, lib/iso9660/.gitignore, + lib/paranoia/.gitignore, lib/udf/.gitignore, parse/.cvsignore, + parse/.gitignore, src/.gitignore, src/cd-paranoia/.cvsignore, + src/cd-paranoia/.gitignore, src/cd-paranoia/doc/.cvsignore, + src/cd-paranoia/doc/.gitignore, src/cd-paranoia/doc/en/.cvsignore, + src/cd-paranoia/doc/en/.gitignore, + src/cd-paranoia/doc/ja/.cvsignore, + src/cd-paranoia/doc/ja/.gitignore, test/.cvsignore, test/.gitignore: + Makefile.am: Redo target for ChangeLog to use git2cl. NEWS: Note + NetBSD driver added. Reset: git administrivia. + +2008-11-29 R. Bernstein + + * : More conversion weirdnesses + +2008-11-29 R. Bernstein + + * .gitignore: Administrivia + +2008-11-29 R. Bernstein + + * : . + +2008-11-29 R. Bernstein + + * .gitignore, INSTALL, MSVC/README, MSVC/cd-info.vcproj, + MSVC/config.h, MSVC/libcdio.sln, MSVC/libcdio.vcproj, Makefile.am, + README, README.libcdio, THANKS, TODO, autogen.sh, configure.ac, + cvs2cl_header, cvs2cl_usermap, doc/.gitignore, doc/Makefile.am, + doc/doxygen/.gitignore, doc/doxygen/Doxyfile.in, + doc/doxygen/run_doxygen, doc/fdl.texi, doc/glossary.texi, + doc/libcdio.texi, example/.gitignore, example/C++/.cvsignore, + example/C++/.gitignore, example/C++/Makefile.am, + example/C++/OO/.cvsignore, example/C++/OO/.gitignore, + example/C++/OO/Makefile.am, example/C++/OO/cdtext.cpp, + example/C++/OO/device.cpp, example/C++/OO/drives.cpp, + example/C++/OO/eject.cpp, example/C++/OO/iso4.cpp, + example/C++/OO/isofile.cpp, example/C++/OO/isofile2.cpp, + example/C++/OO/isolist.cpp, example/C++/OO/mmc1.cpp, + example/C++/OO/mmc2.cpp, example/C++/OO/tracks.cpp, + example/C++/README, example/C++/device.cpp, example/C++/eject.cpp, + example/C++/isofile.cpp, example/C++/isofile2.cpp, + example/C++/isolist.cpp, example/C++/mmc1.cpp, + example/C++/mmc2.cpp, example/C++/paranoia.cpp, + example/C++/paranoia2.cpp, example/Makefile.am, example/README, + example/audio.c, example/cdchange.c, example/cdio-eject.c, + example/cdtext.c, example/device.c, example/drives.c, + example/eject.c, example/isofile.c, example/isofile2.c, + example/isofuzzy.c, example/isolist.c, example/isolsn.c, + example/mmc1.c, example/mmc2.c, example/mmc2a.c, example/mmc3.c, + example/paranoia.c, example/paranoia2.c, example/sample3.c, + example/sample4.c, example/tracks.c, example/udf1.c, + example/udf2.c, example/udffile.c, include/.gitignore, + include/Makefile.am, include/cdio++/.cvsignore, + include/cdio++/.gitignore, include/cdio++/Makefile.am, + include/cdio++/cdio.hpp, include/cdio++/cdtext.hpp, + include/cdio++/device.hpp, include/cdio++/devices.hpp, + include/cdio++/disc.hpp, include/cdio++/enum.hpp, + include/cdio++/iso9660.hpp, include/cdio++/mmc.hpp, + include/cdio++/read.hpp, include/cdio++/track.hpp, + include/cdio/.cvsignore, include/cdio/.gitignore, + include/cdio/Makefile.am, include/cdio/audio.h, + include/cdio/bytesex.h, include/cdio/bytesex_asm.h, + include/cdio/cd_types.h, include/cdio/cdda.h, include/cdio/cdio.h, + include/cdio/cdtext.h, include/cdio/device.h, include/cdio/disc.h, + include/cdio/ds.h, include/cdio/dvd.h, include/cdio/ecma_167.h, + include/cdio/iso9660.h, include/cdio/logging.h, include/cdio/mmc.h, + include/cdio/paranoia.h, include/cdio/posix.h, include/cdio/read.h, + include/cdio/rock.h, include/cdio/scsi_mmc.h, + include/cdio/sector.h, include/cdio/track.h, include/cdio/types.h, + include/cdio/udf.h, include/cdio/udf_file.h, + include/cdio/udf_time.h, include/cdio/utf8.h, include/cdio/util.h, + include/cdio/version.h.in, include/cdio/xa.h, lib/.gitignore, + lib/Makefile.am, lib/cdda_interface/.cvsignore, + lib/cdda_interface/.gitignore, lib/cdda_interface/Makefile.am, + lib/cdda_interface/cddap_interface.c, + lib/cdda_interface/common_interface.c, + lib/cdda_interface/common_interface.h, + lib/cdda_interface/drive_exceptions.c, + lib/cdda_interface/drive_exceptions.h, + lib/cdda_interface/interface.c, + lib/cdda_interface/libcdio_cdda.sym, + lib/cdda_interface/low_interface.h, + lib/cdda_interface/scan_devices.c, + lib/cdda_interface/scsi_interface.c, lib/cdda_interface/smallft.c, + lib/cdda_interface/smallft.h, lib/cdda_interface/test_interface.c, + lib/cdda_interface/toc.c, lib/cdda_interface/utils.c, + lib/cdda_interface/utils.h, lib/cdio++/.gitignore, + lib/cdio++/Makefile.am, lib/cdio++/cdio.cpp, + lib/cdio++/devices.cpp, lib/cdio++/iso9660.cpp, + lib/driver/.gitignore, lib/driver/FreeBSD/Makefile, + lib/driver/FreeBSD/freebsd.c, lib/driver/FreeBSD/freebsd.h, + lib/driver/FreeBSD/freebsd_cam.c, + lib/driver/FreeBSD/freebsd_ioctl.c, lib/driver/MSWindows/Makefile, + lib/driver/MSWindows/aspi32.c, lib/driver/MSWindows/aspi32.h, + lib/driver/MSWindows/win32.c, lib/driver/MSWindows/win32.h, + lib/driver/MSWindows/win32_ioctl.c, lib/driver/Makefile.am, + lib/driver/_cdio_generic.c, lib/driver/_cdio_stdio.c, + lib/driver/_cdio_stdio.h, lib/driver/_cdio_stream.c, + lib/driver/_cdio_stream.h, lib/driver/aix.c, lib/driver/audio.c, + lib/driver/bsdi.c, lib/driver/cd_types.c, lib/driver/cdio.c, + lib/driver/cdio_assert.h, lib/driver/cdio_private.h, + lib/driver/cdtext.c, lib/driver/cdtext_private.h, + lib/driver/device.c, lib/driver/disc.c, lib/driver/ds.c, + lib/driver/generic.h, lib/driver/gnu_linux.c, lib/driver/image.h, + lib/driver/image/Makefile, lib/driver/image/bincue.c, + lib/driver/image/cdrdao.c, lib/driver/image/nrg.c, + lib/driver/image/nrg.h, lib/driver/image_common.c, + lib/driver/image_common.h, lib/driver/libcdio.sym, + lib/driver/logging.c, lib/driver/mmc.c, lib/driver/mmc_private.h, + lib/driver/netbsd.c, lib/driver/osx.c, lib/driver/portable.h, + lib/driver/read.c, lib/driver/sector.c, lib/driver/solaris.c, + lib/driver/track.c, lib/driver/utf8.c, lib/driver/util.c, + lib/iso9660/.cvsignore, lib/iso9660/.gitignore, + lib/iso9660/Makefile.am, lib/iso9660/iso9660.c, + lib/iso9660/iso9660_fs.c, lib/iso9660/iso9660_private.h, + lib/iso9660/libiso9660.sym, lib/iso9660/rock.c, lib/iso9660/xa.c, + lib/paranoia/.cvsignore, lib/paranoia/.gitignore, + lib/paranoia/Makefile.am, lib/paranoia/gap.c, lib/paranoia/gap.h, + lib/paranoia/isort.c, lib/paranoia/isort.h, + lib/paranoia/libcdio_paranoia.sym, lib/paranoia/overlap.c, + lib/paranoia/overlap.h, lib/paranoia/p_block.c, + lib/paranoia/p_block.h, lib/paranoia/paranoia.c, + lib/udf/.cvsignore, lib/udf/.gitignore, lib/udf/Makefile.am, + lib/udf/filemode.c, lib/udf/libudf.sym, lib/udf/udf.c, + lib/udf/udf_file.c, lib/udf/udf_fs.c, lib/udf/udf_fs.h, + lib/udf/udf_private.h, lib/udf/udf_time.c, libcdio++.pc.in, + libcdio.pc.in, libcdio_cdda.pc.in, libcdio_paranoia.pc.in, + libiso9660++.pc.in, libiso9660.pc.in, libudf.pc.in, m4/codeset.m4, + m4/iconv.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4, + m4/pkg.m4, misc/libcdio.ebuild, package/.gitignore, + package/libcdio.spec.in, parse/Makefile, parse/cue.L, parse/cue.y, + parse/test/runall, parse/test/t1.cue, parse/test/t2.cue, + parse/test/t3.cue, parse/toc.L, parse/toc.y, parse/toclexer.c, + parse/toclexer.h, src/.gitignore, src/Makefile.am, src/cd-drive.c, + src/cd-drive.help2man, src/cd-info.c, src/cd-info.help2man, + src/cd-paranoia/.cvsignore, src/cd-paranoia/.gitignore, + src/cd-paranoia/Makefile.am, src/cd-paranoia/buffering_write.c, + src/cd-paranoia/buffering_write.h, src/cd-paranoia/cd-paranoia.c, + src/cd-paranoia/doc/.cvsignore, src/cd-paranoia/doc/.gitignore, + src/cd-paranoia/doc/FAQ.txt, src/cd-paranoia/doc/Makefile.am, + src/cd-paranoia/doc/en/.cvsignore, + src/cd-paranoia/doc/en/.gitignore, + src/cd-paranoia/doc/en/Makefile.am, + src/cd-paranoia/doc/en/cd-paranoia.1.in, + src/cd-paranoia/doc/ja/.cvsignore, + src/cd-paranoia/doc/ja/.gitignore, + src/cd-paranoia/doc/ja/Makefile.am, + src/cd-paranoia/doc/ja/cd-paranoia.1.in, + src/cd-paranoia/doc/overlapdef.txt, src/cd-paranoia/getopt.c, + src/cd-paranoia/getopt.h, src/cd-paranoia/getopt1.c, + src/cd-paranoia/header.c, src/cd-paranoia/header.h, + src/cd-paranoia/pod2c.pl, src/cd-paranoia/report.c, + src/cd-paranoia/report.h, src/cd-paranoia/usage-copy.h, + src/cd-paranoia/usage.txt.in, src/cd-paranoia/utils.h, + src/cd-paranoia/version.h, src/cd-read.c, src/cd-read.help2man, + src/cdda-player.c, src/cddb.c, src/cddb.h, src/cdinfo-linux.c, + src/getopt.c, src/getopt.h, src/getopt1.c, src/iso-info.c, + src/iso-info.help2man, src/iso-read.c, src/iso-read.help2man, + src/mmc-tool.c, src/util.c, src/util.h, test/.gitignore, + test/Makefile.am, test/bad-cat1.cue, test/bad-cat1.toc, + test/bad-cat2.cue, test/bad-cat2.toc, test/bad-cat3.cue, + test/bad-cat3.toc, test/bad-file.toc, test/bad-mode1.cue, + test/bad-mode1.toc, test/bad-msf-1.cue, test/bad-msf-1.toc, + test/bad-msf-2.cue, test/bad-msf-2.toc, test/bad-msf-3.cue, + test/bad-msf-3.toc, test/cd-paranoia-log.right, + test/cdda-mcn.right, test/cdda-read.right, test/cdda.right, + test/cdtext.toc, test/check_cd_read.sh, test/check_common_fn.in, + test/check_cue.sh.in, test/check_fuzzyiso.sh, test/check_iso.sh.in, + test/check_nrg.sh.in, test/check_opts.sh, test/check_opts0.right, + test/check_opts1.right, test/check_opts2.right, + test/check_opts3.right, test/check_opts4.right, + test/check_opts5.right, test/check_opts6.right, + test/check_opts7.right, test/check_paranoia.sh.in, + test/check_sizeof.c, test/copying-rr.gpl, test/copying-rr.right, + test/copying.gpl, test/copying.right, test/data1.toc, + test/data2.toc, test/data5.toc, test/data6.toc, test/data7.toc, + test/fsf.right, test/isofs-m1-no-rr.right, + test/isofs-m1-read.right, test/isofs-m1.cue, test/isofs-m1.right, + test/isofs-m1.toc, test/joliet-nojoliet.right, test/joliet.right, + test/monvoisin.right, test/p1.cue, test/svcd_ogt_test_ntsc.right, + test/svcdgs.right, test/t1.toc, test/t2.toc, test/t3.toc, + test/t4.toc, test/t5.toc, test/t6.toc, test/t7.toc, test/t8.toc, + test/t9.toc, test/testassert.c, test/testbincue.c.in, + test/testdefault.c, test/testischar.c, test/testiso9660.c, + test/testisocd.c, test/testisocd2.c.in, test/testnrg.c.in, + test/testparanoia.c, test/testpregap.c.in, test/testtoc.c, + test/vcd2.toc, test/vcd_demo.cue, test/vcd_demo.right, + test/vcd_demo.toc, test/vcd_demo_vcdinfo.right, + test/vcd_demo_vcdinfo_toc.right, test/videocd.right: First commit + after CVS conversion. Should be just administrative changes. + +2008-11-28 R. Bernstein + + * .gitignore, AUTHORS, MANIFEST.in, Makefile, NEWS, README.txt, + cdio.py, data/isofs-m1.cue, example/README, example/audio.py, + example/cd-read.py, example/cdchange.py, example/device.py, + example/drives.py, example/eject.py, example/iso1.py, + example/iso2.py, example/iso3.py, example/tracks.py, iso9660.py, + pycdio.py, pyiso9660.py, setup.cfg, setup.py, swig/.gitignore, + swig/audio.swg, swig/compat.swg, swig/device.swg, + swig/device_const.swg, swig/disc.swg, swig/pycdio.i, + swig/pyiso9660.i, swig/read.swg, swig/track.swg, swig/types.swg, + test/.gitignore, test/cdda.toc, test/test-cdio.py, + test/test-iso.py, test/test-isocopy.py: Initial commit after + git-cvsimport (import from CVS). + +2008-11-28 R. Bernstein + + * Makefile, example/audio.py, example/cd-read.py, + example/cdchange.py, example/device.py, example/drives.py, + example/eject.py, example/iso1.py, example/iso2.py, + example/iso3.py, example/tracks.py: Remove import path hard-coding. + Will have to deal with in a Pythonic way and some package somewhere. + +2008-11-28 R. Bernstein + + * .gitignore, setup.py: Tighter module creation code, and a module + name typo from cut and paste. + +2008-11-28 R. Bernstein + + * .gitignore, AUTHORS, Makefile, NEWS, setup.cfg, setup.py, + swig/.gitignore, test/.gitignore: Get link arguments from + pkg-config. Add more files. + +2008-11-28 R. Bernstein + + * setup.py, swig/.gitignore, test/test-cdio.py, test/test-iso.py, + test/test-isocopy.py: Include libcdio libraries as appropriate when + making pycdio libraries. + +2008-11-27 R. Bernstein + + * .gitignore, setup.py, swig/{pycdio.swg => pycdio.i}, + swig/{pyiso9660.swg => pyiso9660.i}, test/test-cdio.py, + test/test-iso.py, test/test-isocopy.py: swig compilation and + invoking unixcompiler now works. Closer to having setup.py bdist working. Still need to figure out + how add libcdio libraries and how to get the test import working. + +2008-11-27 rocky + + * configure.ac: Patch by Mike Frysinger to facilitate + cross-compilation. sr #106338 + +2008-11-25 rocky + + * configure.ac: Erroneous initialization. See sr #106271 + +2008-11-25 rocky + + * configure.ac: Treat uclinux like GNU/Linux. sr #106336 from Mike + Frysinger. + +2008-11-25 rocky + + * INSTALL, configure.ac: Remove bit-ordering test in configure.ac + since we don't seem to use this at compile time and it fouls up + cross compilation. cd-paranoia has tests at run-time. libcdio inherited this from + vcdimager which needs it in writing images. It is possible that when + libcdio does writing this may come back. Untill then, simplify. + +2008-11-23 R. Bernstein + + * .gitignore, example/README: Add more of the files we need + +2008-11-23 R. Bernstein + + * .gitignore, MANIFEST.in, README.txt, cdio.py, data/isofs-m1.cue, + example/audio.py, example/cd-read.py, example/cdchange.py, + example/device.py, example/drives.py, example/eject.py, + example/iso1.py, example/iso2.py, example/iso3.py, + example/tracks.py, iso9660.py, pycdio.py, pyiso9660.py, setup.py, + swig/audio.swg, swig/compat.swg, swig/device.swg, + swig/device_const.swg, swig/disc.swg, swig/pycdio.swg, + swig/pyiso9660.swg, swig/read.swg, swig/track.swg, swig/types.swg, + test/cdda.cue, test/cdda.toc, test/test-cdio.py, test/test-iso.py, + test/test-isocopy.py: First semblance of distutils setuptools. Not + complete yet though. + +2008-10-29 rocky + + * configure.ac: Typo in comment + +2008-10-29 rocky + + * configure.ac, lib/cdio++/Makefile.am: Bug fix to allow linker + flags --as-needed and --no-undefined. Thanks to G�tz Waschk + +2008-10-25 rocky + + * .cvsignore: One more. + +2008-10-25 rocky + + * Makefile.am: Create a tar.bz2 dist as well as tar.gz. + +2008-10-20 rocky + + * lib/cdda_interface/Makefile.am, lib/cdio++/Makefile.am, + lib/driver/Makefile.am, lib/iso9660/Makefile.am, + lib/paranoia/Makefile.am: Increment library numbers + +2008-10-20 rocky + + * NEWS: What's up + +2008-10-17 rocky + + * lib/driver/osx.c: patch #6548: fix osx handling. See that for more + information + +2008-10-17 rocky + + * test/check_common_fn.in, test/check_iso.sh.in, + test/check_paranoia.sh.in: Allow for more cygwin tests to pass + +2008-09-29 flameeyes + + * configure.ac: Don't use echo -n, use subshells instead. echo -n is not working on all shells, in particular it does not seem + to work on Sun /bin/sh shell; instead use subshells to have the same + output everywhere. + +2008-09-22 rocky + + * doc/libcdio.texi: Typo + +2008-09-09 rocky + + * src/cd-info.c: Nuke cddb disc ID if --no-cddb option is given. + +2008-09-09 rocky + + * test/cdda-mcn.right, test/cdda.right: Output changed when + --no-cddb option added. + +2008-09-08 rocky + + * INSTALL, src/cd-info.c: Allow compiling cd-info without cddb. + Patch thanks to Fabrice Ménard. + +2008-08-31 rocky + + * lib/driver/Makefile.am: Remove stray @ character in Makefile.am. + Thanks yet again to Steve Schultz for finding/fixing. + +2008-08-31 flameeyes + + * example/C++/Makefile.am, example/C++/OO/Makefile.am, + example/Makefile.am, lib/driver/Makefile.am, src/Makefile.am, + src/cd-paranoia/Makefile.am, test/Makefile.am: Use the LTLIBICONV + variable rather than LIBICONV. With this change, instead of using the fully qualified path to the + shared object (or the one that the configure think is the fully + qualified path), the path where the library is found will be added + to the search path and just a generic -liconv will be used. The old variable would be fooled up when /usr/lib/libiconv.so is an + LD script that redirects to /lib/libiconv.so, causing failures with + some linkers. Also, replace @LIBICONV@ for libcdio itself also with $(LTLIBICONV) + or it will fail to link against on uClibc. + +2008-08-30 rocky + + * lib/driver/osx.c: Free memory when recovering from errors. + +2008-07-27 rocky + + * INSTALL, autogen.sh: Pass additional autogen.sh options to + configure. + +2008-07-27 pjcreath + + * autogen.sh, config.rpath: Replaced old, messy autogen.sh with a + call to autoreconf. (empty config.rpath added for automake 1.10 + compatibility) + +2008-07-16 rocky + + * include/cdio/iso9660.h: Another small tweak - make sure macro is + undefine'd first. + +2008-07-15 rocky + + * config.rpath, include/cdio/iso9660.h: Undefine ISODCL and note + where this comes from. + +2008-07-15 rocky + + * include/cdio/iso9660.h: Remove cdrtools GPL "v2 only" pollution. + iso9660.h is from Eric Youngdale's 1993 GPL v2 or later header from + mkisofs + +2008-06-25 rocky + + * THANKS, configure.ac, example/cdchange.c, + lib/cdda_interface/Makefile.am, + lib/cdda_interface/scsi_interface.c, lib/cdio++/Makefile.am, + lib/iso9660/Makefile.am, lib/iso9660/iso9660.c, + lib/paranoia/Makefile.am, lib/udf/Makefile.am, src/cddb.c, + src/cddb.h: Fixes for Mingw+MSYS and DLL support from Carlo Bramini * configure.ac: Added AC_LIBTOOL_WIN32_DLL for enabling the creation + of shared libraries. * configure.ac: Added -I$(top_srcdir)/include to LIBCDIO_CFLAGS, it + allows to build outside the source tree. * configure.ac: Added LT_NO_UNDEFINED for adding '-no-undefined' + switch to libtool when building win32 shared libraries. * configure.ac: Check for Windows.h presence if under Mingw + (included for using Sleep() function). * configure.ac: Check for more missing functions: setenv(), + unsetenv(), sleep(), gmtime_r(), localtime_r(). * example/cdchange.c: If sleep() function does not exist, it tries + to emulate it with a similar code (require inclusion of Windows.h) * src/cddb.c: * lib/cdda_interface/scsi_interface.c: Compilation fails because + u_int32_t is undefined. It has been changed to uint32_t to be + compliant to all other parts of the libraries. * lib/cdda_interface/Makefile.am: * lib/iso9660/Makefile.am: * lib/cdio++/Makefile.am: * lib/paranoia/Makefile.am: * lib/udf/Makefile.am: * lib/driver/Makefile.am: added LT_NO_UNDEFINED to libtool flags. * lib/iso9660/iso9660.c: Added replacements for setenv(), + unsetenv(), gmtime_r\ (), localtime_r(). + +2008-06-25 rocky + + * lib/driver/Makefile.am, lib/driver/gnu_linux.c: Was accessing + outside of check2list causing wild looping. Turn all sprintf's to + snprintf's and check the return. Turn check1list and check2list looping into a fixed constant number + of iterations rather than rely on a sentinal. + +2008-06-19 flameeyes + + * example/audio.c, src/cd-drive.c, src/cd-info.c, + src/cd-paranoia/buffering_write.c, + src/cd-paranoia/buffering_write.h, src/cd-paranoia/cd-paranoia.c, + src/cd-paranoia/pod2c.pl, src/cd-read.c, src/cdda-player.c, + src/iso-info.c, src/iso-read.c, src/mmc-tool.c, test/testparanoia.c: + Mark variables and constant as static in source tools, examples and + tests. Also replace some char pointers with char arrays. + +2008-06-19 flameeyes + + * configure.ac: Fix AC_ARG_WITH and AC_ARG_ENABLE call to use the + un-translated option name (that is, using dash rather than + underscore). + +2008-06-16 flameeyes + + * lib/driver/cdtext.c: Make cdtext_keywords a static array of + arrays. + +2008-06-16 flameeyes + + * .cvsignore: Ignore a few more scripts created by autoreconf -i. + +2008-06-16 flameeyes + + * m4/.cvsignore: Ignore the m4 macro files created by libtool 2.2. + +2008-06-16 flameeyes + + * Makefile.am, configure.ac: Put all macros in the m4 directory, + this avoids cluttering the main directory with libtool 2.2 (that + split the macros in multiple files). + +2008-06-16 flameeyes + + * lib/cdda_interface/scan_devices.c: Replace character pointers with + character arrays, mark constants as static as they are not used + outside this translation unit (and some not at all). + +2008-06-16 flameeyes + + * lib/driver/cd_types.c: Replace character pointers in signature_t + with properly-sized character arrays. The size of sigs has increased a bit but now the sigs array can stay + entirely in .rodata section, with no runtime relocations. Having 128 bytes sized elements also allows for direct random access + on the array without multiplications. + +2008-06-14 rocky + + * configure.ac, test/.cvsignore: --disable-example-progs help text + wording change Ignore test/testpregap.c since that's now derived + testpregap.c.in + +2008-06-14 flameeyes + + * lib/cdda_interface/drive_exceptions.c: Check in the missing file. + +2008-06-14 flameeyes + + * test/Makefile.am: Make testdefault an extra program, so that it's + only built explicitly and not during make all. + +2008-06-13 flameeyes + + * lib/driver/gnu_linux.c: Make checklists fit entirely in .rodata + sections, by marking them constant and using an array of characters + rather than a pointer to character. + +2008-06-13 flameeyes + + * lib/cdda_interface/Makefile.am, + lib/cdda_interface/cddap_interface.c, + lib/cdda_interface/drive_exceptions.h, + lib/cdda_interface/scsi_interface.c, + lib/cdda_interface/test_interface.c: Make drive exceptions + non-static objects that are shared between multiple units. Also + replace the three Dummy functions wth dummy_exception (also common). Bump the revision. This reduces the memory footprint of libcdda_interface of about 200 + bytes. + +2008-06-13 flameeyes + + * include/cdio++/iso9660.hpp: Cleanup includes, don't include + twice, and include rather than . + +2008-06-13 flameeyes + + * Makefile.am: Remove trailing backslash. + +2008-06-13 flameeyes + + * Makefile.am: Only install libcdio++ and libiso9660++ pkg-config + files if C++ bindings are being built and installed. + +2008-06-10 pjcreath + + * config.rpath, m4/libtool.m4: Fix for automake 1.10 and removal of + unnecessary m4. + +2008-06-10 pjcreath + + * lib/driver/image/nrg.h, test/testpregap.c.in: Fixed pregap + regression failure on non-Intel architectures, removed warnings + +2008-06-09 rocky + + * autogen.sh, m4/.cvsignore, m4/codeset.m4, m4/iconv.m4, + m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4, m4/libtool.m4, + m4/pkg.m4: Copies of distribution m4 macros included to avoid extra + installation on OSX. Patch from Peter Creath. + +2008-06-03 rocky + + * NEWS, lib/iso9660/iso9660.c, test/testiso9660.c: More time + setting/getting patches - the last of the patches from N. Boullis. + Make testiso9660 more stringent now that bugs have been removed. + +2008-05-31 rocky + + * configure.ac, lib/iso9660/iso9660.c: Replace last vestige of + non-reentrant gmtime with timegm. Problem determination and fix + again from Nicolas Boullis. + +2008-05-31 rocky + + * lib/iso9660/iso9660.c: iso9660_get_ltime: the TZ environment + variable was set using a local buffer that disappears when the + function terminates. This might lead to segmentation faults. Reset + to the old TZ value (if any) or unset the variable if it was + previously not set. Problem noted and fixed by Nicolas Boullis. + +2008-05-29 rocky + + * doc/libcdio.texi, lib/iso9660/iso9660.c: iso9660.c: On some + architectures (like my powerpc), char is unsigned. So when libcdio + tries to adjust "converted ISO9660 timezones" in iso9660_set_ltime + on such architectures, it would replace legitimate negative values + with 52. Cast &_pv_date[16] to "iso712_t *" and then dereference. Patch from Nicolas Boullis: doc: small spelling typos. + +2008-05-28 rocky + + * include/cdio/iso9660.h, lib/iso9660/iso9660.c, test/testiso9660.c: + iso9660.h: parameter name change to match implementation. + iso9660.c: use reentrant version of localtime and gettime (most of + the time) Patch from Nicolas Boullis. testiso9660.c: Change a memcmp for a test_compare which gives more + detailed information on failure. + +2008-05-11 rocky + + * lib/driver/FreeBSD/freebsd.h: Fix prototype mismatch. Savannah Bug + #23228 + +2008-05-09 edsdead + + * lib/driver/mmc.c: don't shift read_sector_type into reserved field + of read cd cdb (resulting in every call being treated as + CDIO_MMC_READ_TYPE_ANY) + +2008-05-09 edsdead + + * lib/driver/mmc.c: fix incorrect behavior and potential buffer + overrun in mmc_read_cd when i_blocks exceeds MAX_CD_READ_BLOCKS + +2008-05-09 edsdead + + * include/cdio/mmc.h: fix up return type of mmc_run_cmd and + mmc_run_cmd_len + +2008-05-05 rocky + + * configure.ac, test/Makefile.am, test/{testpregap.c => + testpregap.c.in}: Changes to testpregap.c to allow to build outside + of the source tree. + +2008-04-26 rocky + + * src/Makefile.am: restore tab which got lost in cut-and-past. -- A + pox on "make". Thanks to Steve Schultz again for keeping us (more) honest. + +2008-04-24 rocky + + * NEWS, THANKS, configure.ac, lib/driver/gnu_linux.c, + lib/iso9660/xa.c, lib/udf/udf.c, lib/udf/udf_time.c, + src/Makefile.am: Patch from Peter Hartley to allow Cross-compiling + to mingw32: - MinGW doesn't have struct timespec, so udf_time.c doesn't compile (changes lib/udf/udf_time.c, configure.ac, config.h.in) - The configure test for bitfield ordering uses AC_TRY_RUN and thus doesn't work when cross-compiling; use sneakiness to try and determine it at compile time, falling back to the existing + runtime check if the sneakiness doesn't work (changes configure.ac; tested on x86_64-linux-gnu and + i586-mingw32 which are bf_lsbf=1, plus sparc64-linux-gnu which is + bf_lsbf=0) - The configure test for "extern long timezone" needlessly uses AC_TRY_RUN when in fact AC_LINK_IFELSE is all we need to know, + and that latter works when cross-compiling (changes configure.ac) - MinGW sys/stat.h doesn't have the *GRP or *OTH macros, nor + S_IFLNK or S_IFSOCK, nor S_ISUID etc (changes lib/udf/udf.c and lib/iso9660/xa.c) - MinGW doesn't have , so even the header-inclusion bit of the Linux driver doesn't compile unless it's moved inside the "ifdef HAVE_LINUX_CDROM" (changes lib/driver/gnu_linux.c) - Because the man pages cd-info.1 etc depend on the binaries + themselves (for help2man reasons), the configure options + --without-cd-info etc don't actually stop them being compiled. Fixed + by only depending on man pages for programs that are actually built, + which also stops the installation of man pages of programs which + aren't themselves installed (changes src/Makefile.am) + +2008-04-22 karl + + * lib/driver/_cdio_generic.c, lib/driver/_cdio_stdio.c, + lib/driver/_cdio_stdio.h, lib/driver/_cdio_stream.c, + lib/driver/_cdio_stream.h, lib/driver/aix.c, lib/driver/audio.c, + lib/driver/bsdi.c, lib/driver/cd_types.c, lib/driver/cdio.c, + lib/driver/cdio_assert.h, lib/driver/cdio_private.h, + lib/driver/cdtext.c, lib/driver/cdtext_private.h, + lib/driver/device.c, lib/driver/disc.c, lib/driver/ds.c, + lib/driver/generic.h, lib/driver/gnu_linux.c, lib/driver/image.h, + lib/driver/image_common.c, lib/driver/image_common.h, + lib/driver/logging.c, lib/driver/mmc.c, lib/driver/mmc_private.h, + lib/driver/netbsd.c, lib/driver/osx.c, lib/driver/portable.h, + lib/driver/read.c, lib/driver/solaris.c, lib/driver/track.c, + lib/driver/utf8.c, lib/driver/util.c: gplv3+ + +2008-04-21 karl + + * lib/driver/FreeBSD/Makefile, lib/driver/FreeBSD/freebsd.c, + lib/driver/FreeBSD/freebsd.h, lib/driver/FreeBSD/freebsd_cam.c, + lib/driver/FreeBSD/freebsd_ioctl.c, lib/driver/MSWindows/Makefile, + lib/driver/MSWindows/aspi32.c, lib/driver/MSWindows/aspi32.h, + lib/driver/MSWindows/win32.c, lib/driver/MSWindows/win32.h, + lib/driver/MSWindows/win32_ioctl.c, lib/driver/image/Makefile, + lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/image/nrg.c, lib/driver/image/nrg.h: gplv3+ + +2008-04-20 karl + + * lib/cdio++/cdio.cpp, lib/cdio++/devices.cpp, + lib/cdio++/iso9660.cpp: gplv3+ + +2008-04-18 karl + + * lib/iso9660/iso9660.c, lib/iso9660/iso9660_fs.c, + lib/iso9660/iso9660_private.h, lib/iso9660/rock.c, + lib/iso9660/xa.c, lib/udf/filemode.c, lib/udf/udf.c, + lib/udf/udf_file.c, lib/udf/udf_fs.c, lib/udf/udf_fs.h, + lib/udf/udf_private.h, lib/udf/udf_time.c: gplv3+ + +2008-04-17 karl + + * doc/Makefile.am, lib/cdda_interface/scsi_interface.c, + lib/paranoia/gap.c, lib/paranoia/gap.h, lib/paranoia/isort.c, + lib/paranoia/isort.h, lib/paranoia/overlap.c, + lib/paranoia/overlap.h, lib/paranoia/p_block.c, + lib/paranoia/p_block.h, lib/paranoia/paranoia.c, + src/cd-paranoia/doc/Makefile.am, + src/cd-paranoia/doc/en/Makefile.am, + src/cd-paranoia/doc/ja/Makefile.am: gplv3+ + +2008-04-16 karl + + * lib/cdda_interface/cddap_interface.c, + lib/cdda_interface/common_interface.c, + lib/cdda_interface/common_interface.h, + lib/cdda_interface/drive_exceptions.h, + lib/cdda_interface/interface.c, lib/cdda_interface/low_interface.h, + lib/cdda_interface/scan_devices.c, lib/cdda_interface/smallft.c, + lib/cdda_interface/smallft.h, lib/cdda_interface/test_interface.c, + lib/cdda_interface/toc.c, lib/cdda_interface/utils.c, + lib/cdda_interface/utils.h: gplv3+ + +2008-04-15 rocky + + * Makefile.am: Install libcdio_paranoia.pc and libcdio_cdda.pc when + cdparnaoia is enabled. Thanks to Geotz Waschk for catching this. + +2008-04-14 karl + + * src/cd-drive.c, src/cd-info.c, src/cd-paranoia/pod2c.pl, + src/cd-read.c, src/cdda-player.c, src/cddb.c, src/cddb.h, + src/cdinfo-linux.c, src/iso-info.c, src/iso-read.c, src/mmc-tool.c, + src/util.c, src/util.h: gplv3+ + +2008-04-11 karl + + * src/cd-paranoia/buffering_write.c, + src/cd-paranoia/buffering_write.h, src/cd-paranoia/cd-paranoia.c, + src/cd-paranoia/header.c, src/cd-paranoia/header.h, + src/cd-paranoia/report.c, src/cd-paranoia/report.h, + src/cd-paranoia/usage-copy.h, src/cd-paranoia/utils.h, + src/cd-paranoia/version.h: gplv3+ + +2008-03-28 rocky + + * lib/driver/gnu_linux.c, lib/driver/netbsd.c: netbsd.c: add more + ops. Doc functions, bring more in line with other drivers. + +2008-03-28 rocky + + * include/cdio/device.h, lib/driver/cdio_private.h, + lib/driver/netbsd.c, test/Makefile.am: cdio_have_xxx is now private. + Add p1.bin to distribution. + +2008-03-27 rocky + + * configure.ac, include/cdio/device.h, lib/driver/Makefile.am, + lib/driver/cdio_private.h, lib/driver/device.c, + lib/driver/libcdio.sym, lib/driver/netbsd.c, test/Makefile.am: Start + NetBSD driver + +2008-03-27 edsdead + + * NEWS: add ISRC updates to NEWS + +2008-03-25 karl + + * include/cdio++/cdio.hpp, include/cdio++/cdtext.hpp, + include/cdio++/device.hpp, include/cdio++/devices.hpp, + include/cdio++/disc.hpp, include/cdio++/enum.hpp, + include/cdio++/iso9660.hpp, include/cdio++/mmc.hpp, + include/cdio++/read.hpp, include/cdio++/track.hpp, + include/cdio/audio.h, include/cdio/bytesex.h, + include/cdio/bytesex_asm.h, include/cdio/cd_types.h, + include/cdio/cdda.h, include/cdio/cdio.h, include/cdio/cdtext.h, + include/cdio/device.h, include/cdio/disc.h, include/cdio/ds.h, + include/cdio/dvd.h, include/cdio/ecma_167.h, + include/cdio/iso9660.h, include/cdio/logging.h, include/cdio/mmc.h, + include/cdio/paranoia.h, include/cdio/posix.h, include/cdio/read.h, + include/cdio/rock.h, include/cdio/scsi_mmc.h, + include/cdio/sector.h, include/cdio/track.h, include/cdio/types.h, + include/cdio/udf.h, include/cdio/udf_file.h, + include/cdio/udf_time.h, include/cdio/utf8.h, include/cdio/util.h, + include/cdio/xa.h: gplv3 + +2008-03-24 karl + + * example/C++/OO/cdtext.cpp, example/C++/OO/device.cpp, + example/C++/OO/drives.cpp, example/C++/OO/eject.cpp, + example/C++/OO/iso4.cpp, example/C++/OO/isofile.cpp, + example/C++/OO/isofile2.cpp, example/C++/OO/isolist.cpp, + example/C++/OO/mmc1.cpp, example/C++/OO/mmc2.cpp, + example/C++/OO/tracks.cpp, example/C++/device.cpp, + example/C++/eject.cpp, example/C++/isofile.cpp, + example/C++/isofile2.cpp, example/C++/isolist.cpp, + example/C++/mmc1.cpp, example/C++/mmc2.cpp, + example/C++/paranoia.cpp, example/C++/paranoia2.cpp, + example/audio.c, example/cdchange.c, example/cdio-eject.c, + example/cdtext.c, example/device.c, example/drives.c, + example/eject.c, example/isofile.c, example/isofile2.c, + example/isofuzzy.c, example/isolist.c, example/isolsn.c, + example/mmc1.c, example/mmc2.c, example/mmc2a.c, example/mmc3.c, + example/paranoia.c, example/paranoia2.c, example/sample3.c, + example/sample4.c, example/tracks.c, example/udf1.c, + example/udf2.c, example/udffile.c: gplv3 + +2008-03-23 karl + + * parse/Makefile, parse/cue.L, parse/cue.y, parse/toc.L, + parse/toc.y, parse/toclexer.c, parse/toclexer.h: gplv3 + +2008-03-22 rocky + + * README.libcdio: NetBSD *can* be included in libcdio. Thanks to + Karl Berry for pointing out. + +2008-03-22 rocky + + * configure.ac, test/.cvsignore, test/Makefile.am, + test/testnrg.c.in: Start a nrg image reading test. + +2008-03-22 karl + + * test/check_cd_read.sh, test/check_common_fn.in, + test/check_sizeof.c, test/testassert.c, test/testbincue.c.in, + test/testdefault.c, test/testischar.c, test/testiso9660.c, + test/testisocd.c, test/testisocd2.c.in, test/testparanoia.c, + test/testpregap.c, test/testtoc.c: gplv3 + +2008-03-21 rocky + + * NEWS: More Housekeeping + +2008-03-21 rocky + + * test/.cvsignore: Bookkeeping + +2008-03-21 rocky + + * doc/Makefile.am: We no longer use gpl.texi. + +2008-03-21 rocky + + * NEWS, cvs2cl_usermap, lib/driver/cdio_private.h, + lib/driver/image/nrg.c: cdio_private.h: Remove type mismatch warning + on get_track_pregap_lba when compiling image drivers. nrg.c: initialize previously uninitialzied field. Bug found by + Robert William Fuller. cvs2cl_usermap: add esdead and karl NEWS: try to track what's been happening. + +2008-03-21 edsdead + + * lib/driver/image/nrg.c: support cd-text + +2008-03-20 karl + + * INSTALL, Makefile.am, doc/gpl.texi, example/C++/Makefile.am, + example/C++/OO/Makefile.am, example/Makefile.am, + include/Makefile.am, include/cdio++/Makefile.am, + include/cdio/Makefile.am, lib/Makefile.am, + lib/cdda_interface/Makefile.am, lib/cdio++/Makefile.am, + lib/driver/Makefile.am, lib/iso9660/Makefile.am, + lib/paranoia/Makefile.am, lib/udf/Makefile.am, src/Makefile.am, + src/cd-paranoia/Makefile.am, test/Makefile.am: update Makefiles to + GPLv3+ + +2008-03-20 rocky + + * doc/libcdio.texi: Change some ALL CAPS emphasis to @emph emphasis + +2008-03-20 edsdead + + * lib/driver/image/nrg.c: minor correction to prior commit + +2008-03-20 edsdead + + * lib/driver/image/nrg.c: handle DAO in nrg_read_audio_sectors + +2008-03-20 edsdead + + * test/check_fuzzyiso.sh: expect failure on p1.bin and p1.nrg b/c + they are not iso9660 images + +2008-03-20 edsdead + + * include/cdio/track.h, lib/driver/cdio_private.h, + lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/image/nrg.c, lib/driver/image/nrg.h, + lib/driver/image_common.c, lib/driver/image_common.h, + lib/driver/libcdio.sym, lib/driver/track.c: get isrc from nrg files + AND new API char * cdio_get_track_isrc(CdIo_t *,track_t); + +2008-03-20 edsdead + + * test/check_paranoia.sh.in: don't need # of blocks without offset + +2008-03-19 edsdead + + * lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + test/cdda-read.right, test/check_paranoia.sh.in: remove 272 byte + offset that emulated 68 sample read offset in author's drive + +2008-03-19 edsdead + + * doc/libcdio.texi: added authorship to section on track pre-gaps + and cd-da + +2008-03-18 edsdead + + * test/p1.cue, test/testpregap.c: tests for pregap api + +2008-03-18 edsdead + + * test/Makefile.am: add testpregap + +2008-03-18 karl + + * NEWS, doc/fdl.texi, doc/libcdio.texi: switch manual to GFDL1.2+ + and no invariant sections; systematize front matter; etc. + +2008-03-16 rocky + + * THANKS, configure.ac, doc/libcdio.texi, include/cdio/track.h, + lib/driver/Makefile.am, lib/driver/cdio_private.h, + lib/driver/image.h, lib/driver/image/bincue.c, + lib/driver/image/cdrdao.c, lib/driver/image/nrg.c, + lib/driver/image/nrg.h, lib/driver/image_common.c, + lib/driver/image_common.h, lib/driver/libcdio.sym, + lib/driver/track.c: get_track_pregap_lba, get_track_pregap_lsn. + Section on "CD-DA pregap" in libcdio manual. All changes from + Robert William Fuller. + +2008-03-15 rocky + + * doc/doxygen/Doxyfile.in: Update for doxygen 1.5.3 + +2008-03-15 rocky + + * configure.ac: Assume darwin9 is like darwin8. + +2008-03-15 rocky + + * example/Makefile.am, src/cd-paranoia/Makefile.am, + test/Makefile.am: More libiconv escallation. Sigh. + +2008-03-15 rocky + + * test/Makefile.am: libiconv needed in test programs probably as + part of the subversive iconv escallation that's been going on. + +2008-03-15 rocky + + * NEWS: Revise before release. + +2008-03-15 rocky + + * Makefile.am, src/Makefile.am: Install pkgconfig files libudf.pc, + libcdio++.pc and libiso9660++.pc. Distribute manual pages for + standalone utilities. Suggestions thanks to Nicolas Boullis. + +2008-03-09 rocky + + * autogen.sh: Try to undo the damage gettextize does on configure.ac + and Makefile.am + +2008-03-09 rocky + + * autogen.sh: fix syntax error + +2008-03-09 rocky + + * Makefile.am, autogen.sh, configure.ac: . + +2008-03-09 rocky + + * Makefile.am: gettext stuff pulled in by gettextize + +2008-03-08 rocky + + * src/cd-paranoia/version.h, test/cd-paranoia-log.right, + test/check_paranoia.sh.in: test/check_paranoia.sh.in: need to ignore + variance in status. + +2008-03-08 rocky + + * include/cdio/Makefile.am, test/check_paranoia.sh.in: Things needed + to make "make distcheck" work. Makefile.am: forgot paranoia.h header. check_paranoia.sh.in: need + to compare with "right" file $srcdir not "." + +2008-03-08 rocky + + * autogen.sh: Looks like we need to run gettextize first now + +2008-03-06 rocky + + * test/Makefile.am, test/cd-paranoia-log.right, + test/check_paranoia.sh.in: Add a test of new -l option on + cd-paranoia. + +2008-03-06 rocky + + * NEWS, src/cd-read.c, src/util.c, src/util.h, + test/check_cd_read.sh: cd-read add --mode='any' which is basically a + mmc_read_cd with CDIO_MMC_READ_TYPE_ANY. + +2008-03-04 rocky + + * lib/driver/mmc.c: Comment typo + +2008-03-03 rocky + + * src/cd-paranoia/cd-paranoia.c: Remove what looks like a spurious + --output-info (-i) option. + +2008-02-29 rocky + + * NEWS, THANKS, src/cd-paranoia/cd-paranoia.c, + src/cd-paranoia/doc/en/cd-paranoia.1.in, + src/cd-paranoia/usage-copy.h, src/cd-paranoia/usage.txt.in, + test/check_paranoia.sh.in: Add option to cd-paranoia to log summary + output to a file. Patch from and thanks to Daniel Schwarz. + +2008-02-08 rocky + + * lib/driver/utf8.c, lib/iso9660/iso9660_fs.c: Add checks for memory + allocation failures. Patch from Mandriva folks by Gustavo De Nardin + via Vincent Danen. Originally for libcdio 0.78.2 See also https://savannah.gnu.org/patch/?6413 + +2008-01-19 rocky + + * src/cd-paranoia/cd-paranoia.c: Cast to integer because function it + seems really might not be paranoia_mode_t but seems augmented by to + additional values below 0. Ugh. + +2008-01-18 rocky + + * AUTHORS: email address change. + +2008-01-09 rocky + + * example/udf1.c: Was accessing out of array bounds. Caught by + Stanislav Brabec. + +2008-01-09 rocky + + * include/cdio++/iso9660.hpp, src/cd-info.c, src/iso-info.c, + src/mmc-tool.c: cd-info.c iso-info.c More error-tolerant patch from + Stanislav Brabec at SuSE. iso9660.hpp: patch to compile libcdio with gcc 4.3 from Cristian + Rodriguez via Stanislav Brabec. Add return statement in function + returning non-void. mmc-tool.c: remove out-of-bound array access. + +2008-01-05 rocky + + * NEWS, include/cdio/iso9660.h, lib/iso9660/iso9660_fs.c: Note that + iso9660_dir_to_name can return NULL if memory allocation fails. + +2008-01-05 rocky + + * lib/iso9660/iso9660_fs.c: Another case of potentially accessing + outside of array bounds. Bug caught by Nico Golde. + +2008-01-03 rocky + + * src/cd-info.c, src/iso-info.c: Improper +1 on alloc. + +2008-01-01 flameeyes + + * configure.ac, example/C++/Makefile.am, example/Makefile.am: Add a + configure option to disable examples building (useful for + distributions, as adding them to noinst will still build them during + make all wasting build time. + +2007-12-30 rocky + + * lib/driver/FreeBSD/freebsd.c: get_media_changed is static and + shouldn't be compiled unless we are on FreeBSD. + +2007-12-30 rocky + + * src/cd-info.c, src/iso-info.c: Remove possible buffer overrun when + long joliet names are used. Savannah Bug #21910. + +2007-12-28 rocky + + * NEWS, configure.ac, test/check_cd_read.sh, test/check_cue.sh.in, + test/check_iso.sh.in, test/check_nrg.sh.in, test/check_opts.sh: + Build outside of source fixes for TEST. We're in 0.80 land now. + +2007-12-28 rocky + + * lib/driver/FreeBSD/freebsd.c, lib/driver/FreeBSD/freebsd.h: Add + get_media_changed method on FreeBSD for drives accessed via CAM + (SCSI or ATAPICAM). Patch thanks to Andriy Gapon. + +2007-12-15 rocky + + * configure.ac, doc/how-to-make-a-release.txt, + lib/driver/FreeBSD/freebsd.h: Apply kfreebsd patch from Debian. + +2007-12-10 rocky + + * doc/libcdio.texi: Another reference to IEC 60908. Update copyright + and email + +2007-12-10 rocky + + * doc/glossary.texi: Add mention of IEC 60908 + +2007-12-10 rocky + + * doc/glossary.texi, doc/libcdio.texi: Add wiki reference to the + Philips Red Book. + +2007-11-21 rocky + + * include/cdio/mmc.h, lib/driver/libcdio.sym, lib/driver/mmc.c: Run + a Multimedia command (MMC) specifying the CDB length. The + motivation here is for example ot use in is an undocumented debug + command for LG drives (namely E7), whose length is being + miscalculated by mmc_get_cmd_len(); it doesn't follow the usual code + number to length conventions. Patch supplied by SukkoPera. + +2007-11-19 flameeyes + + * include/cdio++/iso9660.hpp: Add missing include (for GCC 4.3). + Patch by Ryan Hill (dirtyepic at gentoo). Patch #6271 at Savannah. + +2007-11-17 flameeyes + + * src/cd-paranoia/Makefile.am: Don't try to use a generic rule for + building usage.h or it will fail make distcheck when builddir != + srcdir + +2007-11-16 flameeyes + + * lib/iso9660/iso9660.c: Fix logic. + +2007-11-16 flameeyes + + * test/testiso9660.c: Fix name of function. + +2007-11-16 flameeyes + + * lib/iso9660/iso9660.c: Fix typo. + +2007-11-16 flameeyes + + * test/Makefile.am: Don't compile the test programs during make all, + make check will take care of that. + +2007-11-16 flameeyes + + * Makefile.am: Fix make dist when run on $builddir != $srcdir. + +2007-11-16 flameeyes + + * test/check_cd_read.sh, test/check_cue.sh.in, + test/check_iso.sh.in, test/check_nrg.sh.in, test/check_opts.sh: + check_common_fn is in the current dir (build dir), not in $srcdir. + +2007-11-16 flameeyes + + * include/cdio/Makefile.am: Don't install the cdparanoia headers + when cd-paranoia is not built nor installed. + +2007-11-16 flameeyes + + * Makefile.am: Do not install the libcdio_paranoia.pc and + libcdio_cdda.pc files if cd-paranoia is not built. If we do, the + pkg-config based checks will report the presence of libraries that + are not present in the system. + +2007-11-16 flameeyes + + * lib/iso9660/iso9660.c: Do not assume that sizeof(int) == + sizeof(long), the assumption is wrong on 64-bit arches. Reduce the + size of strtol range when filling a struct tm variable. + +2007-11-16 flameeyes + + * lib/driver/utf8.c: Include config.h before checking for + HAVE_JOLIET or it will never build the function. + +2007-11-16 flameeyes + + * configure.ac: Unbreak --enable/--disable joliet support. Use + AS_HELP_STRING to pretty-print the help message. + +2007-11-09 rocky + + * src/cd-paranoia/pod2c.pl: Apparently cygwin's perl sometimes puts + in \r's for linefeeds. Patch from Gary Parks. + +2007-10-27 rocky + + * INSTALL, NEWS, configure.ac: Final 0.79 release + +2007-10-21 rocky + + * src/util.c: Update copyright. + +2007-10-17 rocky + + * src/cd-paranoia/doc/jp/.cvsignore, + src/cd-paranoia/doc/jp/Makefile.am, + src/cd-paranoia/doc/jp/cd-paranoia.1.in: jp -> ja + +2007-10-16 rocky + + * configure.ac, lib/cdda_interface/cddap_interface.c: libcdio + cdparanoia doing the wrong thing on a single-sector read. Savannah + patch #5999. + +2007-10-15 rocky + + * NEWS, configure.ac, lib/cdda_interface/Makefile.am, + lib/cdio++/Makefile.am, lib/driver/Makefile.am, + lib/iso9660/Makefile.am, lib/paranoia/Makefile.am, + lib/udf/Makefile.am, src/Makefile.am, src/cd-paranoia/Makefile.am: + Remove := in Makefiles for portability. autoconf 1.10 complains + about adding AM_PROC_CC_C_O - pander to it. + +2007-10-13 rocky + + * NEWS, lib/cdda_interface/Makefile.am, lib/cdio++/Makefile.am, + lib/driver/Makefile.am, lib/iso9660/Makefile.am: Go over shared + library revision numbers and NEWS in advance of a Oct 27 0.79 + release. + +2007-09-28 rocky + + * lib/paranoia/p_block.c: Ooops - typedef typo + +2007-09-28 rocky + + * include/cdio/paranoia.h, lib/cdda_interface/common_interface.c, + lib/paranoia/p_block.c: paranoia.h, p_block.c: Add + paranoia_set_range and correct #define in paranoia.h + common_interface.c: try to give credit where it is due. + +2007-09-28 rocky + + * THANKS: Add Patrick Guimond + +2007-09-28 rocky + + * lib/cdda_interface/common_interface.c: Not just lead-out gap, but + lead-out + pregap + +2007-09-28 rocky + + * lib/cdda_interface/common_interface.c, lib/cdda_interface/toc.c, + test/testiso9660.c: Support for multisession CD Extra Discs courtesy + of Patrick Guimond. testiso9660.c: remove ltime comparison check. :-( + +2007-09-26 rocky + + * lib/iso9660/iso9660_fs.c: iso9660_open_ext_private(): close image + filecupon error. Leds to an open file descriptor making it impossible of e.g. + unmounting a CDROM containing the file. Savannah bug #21147. + +2007-09-05 rocky + + * lib/iso9660/iso9660.c, lib/iso9660/iso9660_fs.c, + test/check_common_fn.in: iso9660.c: off-by-one bug which was causing + dates to come out wrong. Thanks to Nicolas Boullis for finding and + fixing. iso9660_fs.c: remove bugs merging code from the last round of + changes/enhancements check_common_fn.in: show full iso_read command when it fails. + +2007-08-12 rocky + + * example/.cvsignore: Yet another program, yet another ignore + +2007-08-12 rocky + + * configure.ac, lib/iso9660/iso9660_fs.c, test/.cvsignore, + test/Makefile.am, test/testisocd.c, test/testisocd2.c.in: + iso9660_fs.c: remove some (but not all) of the redundancy + testisocd2.c.in: a test of working with an ISO 9660 image. + +2007-08-12 rocky + + * example/Makefile.am, example/README, example/isolist.c, + example/isolsn.c, lib/iso9660/iso9660_fs.c: iso9660_fs.c: remove + some bugs in freeing here. isolsn.c: Add a sample program for + showing the path for given LSN. + +2007-08-11 rocky + + * include/cdio/iso9660.h, lib/iso9660/Makefile.am, + lib/iso9660/iso9660_fs.c, lib/iso9660/libiso9660.sym, + test/testisocd.c: Add iso9660_fs_find_lsn_with_path and + iso9660_ifs_find_lsn_with_path to report the full filename path of + lsn. + +2007-08-11 flameeyes + + * lib/driver/osx.c: Workaround a missing callback, failures are + called immediately, sucesses are queued and might not be called + properly. + +2007-08-09 flameeyes + + * example/.cvsignore: Ignore udffile too. + +2007-08-09 flameeyes + + * configure.ac, lib/driver/osx.c: Borrow the eject code for OSX from + xine-lib-1.2-macos branch, as contributed by Matt Messier. This + allows to eject disks on Mac OS X without having to call an external + utility. Incidentally this fixes libcdio eject function on Mac OS X 10.4 and + later, as hditool was moved from /usr/sbin to /usr/bin. + +2007-08-09 flameeyes + + * example/cdio-eject.c: Include config.h, or the build will fail on + at least Mac OS X. + +2007-08-09 flameeyes + + * autogen.sh: Let autogen.sh work on OSX: test for glibtool presence + (GNU libtool versus Apple libtool). + +2007-08-09 flameeyes + + * autogen.sh: Accept automake 1.10 as a version greater than1.6. + +2007-08-04 rocky + + * lib/driver/_cdio_generic.c: Small changes + +2007-08-04 rocky + + * lib/iso9660/iso9660.c: Add note about funny strtol test and + correct test. Thanks to Nicolas Boullis for finding this. + +2007-07-19 rocky + + * test/testiso9660.c: Check for error status of iso9660_get_dtime + and iso9660_get_ltime + +2007-06-18 rocky + + * NEWS: Note last two bugs reported by Eric Shattow. + +2007-06-18 rocky + + * src/cd-paranoia/cd-paranoia.c: Don't expect TOC reading to report + audio mode if we are trying to rip prior to the very first track. + And don't give an error here either. + +2007-06-16 rocky + + * src/cd-info.c, src/cddb.c, src/cddb.h: CDDB disc id is an unsigned + 32-bit integer, not long which could be 64-bits. + +2007-05-27 rocky + + * NEWS: Bugs, bugs, bugs! + +2007-05-27 rocky + + * lib/cdda_interface/scan_devices.c: Remove possible access of + uninitialized cdio_hwinfo structure. + +2007-05-27 rocky + + * lib/driver/_cdio_generic.c: Update copyright and email address. + +2007-05-27 rocky + + * lib/driver/_cdio_generic.c: Fix bug in trying to free cd-text when + it hasn't been initialized. + +2007-05-16 rocky + + * configure.ac, src/cd-paranoia/doc/Makefile.am, + src/cd-paranoia/doc/ja/.cvsignore, + src/cd-paranoia/doc/ja/Makefile.am, + src/cd-paranoia/doc/ja/cd-paranoia.1.in: Rename Japan locale to ja. + Bug #19880. + +2007-04-15 rocky + + * example/cdchange.c: cdchange doesn't use off_t, ssize or any fancy + types so it shouldn't #include SYS_TYPES. Furthermore if cdio needs + it, it should #include it on its own. + +2007-04-15 rocky + + * example/cdchange.c: Take gcc's suggestion regarding adding + parenthesis + +2007-04-15 rocky + + * configure.ac: Was chopping off HAVE_SYS_TYPES declaration. + +2007-04-15 rocky + + * example/cdio-eject.c, include/cdio/read.h: read.h: include + sys/types.h since some OS's need it. cdio-eject.c: no real changes. + Add copyright. + +2007-03-16 rocky + + * include/cdio/audio.h, include/cdio/read.h: audio.h: doxygenation + Address, Copyright change. + +2007-03-10 rocky + + * lib/cdio++/devices.cpp, lib/cdio++/iso9660.cpp: Patches from sms + to deal with off_t not getting defined. + +2007-03-09 rocky + + * src/cd-paranoia/doc/en/cd-paranoia.1.in: More potential cdparanoia + -> cd-paranoia changes. Note how this differes from cdparanoia (i.e. + not much). + +2007-03-09 rocky + + * src/cd-drive.c: Use "getopt.h" , not + +2007-03-07 rocky + + * example/cdchange.c, lib/driver/gnu_linux.c: + lib/driver/gnu_linux.c: bug #19221 (possibly): memory Leak opening + an inaccessible device. cdchange.c: a stray character got added to + the file + +2007-03-05 rocky + + * configure.ac, example/cdchange.c, lib/driver/image/cdrdao.c, + lib/iso9660/iso9660.c, src/cd-paranoia/cd-paranoia.c: Better strtol + fix based on SMS's remark. + +2007-03-05 rocky + + * example/cdchange.c, lib/driver/image/cdrdao.c, + lib/iso9660/iso9660.c, src/cd-paranoia/cd-paranoia.c: Set errno=0 + before calling strtol(). bug #18131 + +2007-02-25 rocky + + * include/cdio/read.h, lib/driver/read.c: Update cdio_read + documentation. + +2006-12-20 rocky + + * lib/iso9660/iso9660_fs.c: Symlinks were sharing stat_buf so + freeing one made the pointer to the other invalid. Allocate a + separate entry for each symlink. Bug report and patch provided by Antti Per�l�. Savannah bug #18563 + +2006-12-14 rocky + + * lib/driver/utf8.c: Patch by Gergely Sz�sz to respect + --disable-joliet. (Things may change when UDF is more in use + though.) Bug report #18522 + +2006-12-14 rocky + + * configure.ac: Typo in configure.ac reported by Gergely Sz�sz, bug + report #18522. + +2006-12-04 rocky + + * src/iso-read.c: Had one too many field in structure. + +2006-11-30 rocky + + * configure.ac: Disable libvcdinfo - 2nd try. + +2006-11-30 rocky + + * configure.ac: Disable vcdinfo in cd-info by default. It causes too + much of a hassle for too many people. + +2006-11-28 gmerlin + + * lib/driver/util.c: * Fixed potential security issues + +2006-11-27 gmerlin + + * configure.ac, include/cdio/util.h, lib/driver/_cdio_generic.c, + lib/driver/gnu_linux.c, lib/driver/util.c: * Better drive detection for Linux * cdio_add_device_list() now adds devices with symlinks only once + +2006-11-16 rocky + + * test/Makefile.am, test/check_iso.sh.in, test/copying-rr.gpl: Add + --ignore to iso-read and add a iso-read copying-rr extraction test. + +2006-11-16 rocky + + * NEWS, configure.ac: We really are in 0.79cvs now. + +2006-11-16 rocky + + * src/iso-read.c: Add --ignore (-k). Thanks to Justin F. Hallett for + suggesting and testing + +2006-11-13 rocky + + * rbcdio/AUTHORS, rbcdio/Makefile.am, rbcdio/NEWS, rbcdio/README, + rbcdio/autogen.sh, rbcdio/configure.ac, rbcdio/example/device.rb, + rbcdio/example/eject.rb, rbcdio/example/tracks.rb, + rbcdio/lib/cdio.rb, rbcdio/lib/extconf.rb, rbcdio/rubycdio.m4, + rbcdio/swig/Makefile, rbcdio/swig/audio.swg, + rbcdio/swig/compat.swg, rbcdio/swig/device.swg, + rbcdio/swig/device_const.swg, rbcdio/swig/disc.swg, + rbcdio/swig/rubycdio.swg, rbcdio/swig/track.swg, + rbcdio/swig/types.swg: Remove files checked into the wrong place + +2006-11-13 rocky + + * rbcdio/AUTHORS, rbcdio/Makefile.am, rbcdio/NEWS, rbcdio/README, + rbcdio/autogen.sh, rbcdio/configure.ac, rbcdio/example/device.rb, + rbcdio/example/eject.rb, rbcdio/example/tracks.rb, + rbcdio/lib/cdio.rb, rbcdio/lib/extconf.rb, rbcdio/rubycdio.m4, + rbcdio/swig/Makefile, rbcdio/swig/audio.swg, + rbcdio/swig/compat.swg, rbcdio/swig/device.swg, + rbcdio/swig/device_const.swg, rbcdio/swig/disc.swg, + rbcdio/swig/rubycdio.swg, rbcdio/swig/track.swg, + rbcdio/swig/types.swg: Initial revision + +2006-11-01 rocky + + * NEWS: Get ready for release. Note preprocessor symbol + LIBCDIO_VERSION number has to be an integer. (Bug caused by naming + version 0.78.1) + +2006-10-30 rocky + + * configure.ac: A stray quote got inserted into the "cut". This + time, for sure! + +2006-10-30 rocky + + * configure.ac: Get reeady for 0.78.2 release? + +2006-10-30 flameeyes + + * configure.ac: Use cut rather than sed for removing the micro + version. + +2006-10-29 rocky + + * configure.ac: This time, for sure! (See previous.) + +2006-10-29 rocky + + * configure.ac: Remove .1 in LIBCDIO_VERSION_NUM + +2006-10-28 rocky + + * NEWS: What's changed. + +2006-10-28 rocky + + * configure.ac, doc/how-to-make-a-release.txt, + lib/driver/Makefile.am: Prepare a release that doesn't have the .so + problem. + +2006-10-27 rocky + + * example/.cvsignore: Add cdio-eject + +2006-10-27 rocky + + * configure.ac: Make iconv more necessary. + +2006-10-27 rocky + + * include/cdio/cdda.h, include/cdio/iso9660.h, include/cdio/mmc.h, + include/cdio/paranoia.h: Remove doxygen warnings. + +2006-10-27 rocky + + * configure.ac: Get ready for release. + +2006-10-27 rocky + + * NEWS: Revies NEWS version/date for release. + +2006-10-21 rocky + + * NEWS, example/README, lib/driver/gnu_linux.c: gnu_linux.c: Fix bug + reported by Burkhard in eject_media_linux() where we were closing an + open tray. NEWS/README: note current changes + +2006-10-21 gmerlin + + * example/Makefile.am, example/cdio-eject.c, lib/driver/gnu_linux.c: * Umount before ejecting * Ultra simple eject command + +2006-10-11 rocky + + * example/.cvsignore, example/Makefile.am, example/mmc3.c, + include/cdio/mmc.h, lib/driver/Makefile.am, lib/driver/libcdio.sym, + lib/driver/mmc.c, lib/driver/mmc_private.h, lib/iso9660/Makefile.am: + Add routine to get tray status (open/closed) and sample program. + Seems broken at least on SuSE 10.1 if not other GNU/Linux's though. + +2006-09-26 flameeyes + + * lib/iso9660/iso9660_fs.c: Check for the pointers before + dereference them. Found by Coverity Scan on xine-lib. + +2006-09-26 flameeyes + + * lib/driver/MSWindows/win32.c: Check for the validity of the + pointer before using strlen on it. Found by Coverity Scan on + xine-lib. + +2006-09-26 flameeyes + + * lib/iso9660/iso9660.c: Fix a possible off-by-one in strip_trail() + identified by Coverity Scan on xine sources. + +2006-08-20 rocky + + * lib/driver/Makefile.am, libcdio.pc.in: Patches from Steve Schultz + to handle libiconv inclusion on BSDI (and possibly other BSD's) + +2006-08-02 rocky + + * lib/driver/gnu_linux.c: Yet another guess at what happened to the + CDROMREADTOCENTRY ioctl call. I haven't been able to find anything + that documents in any detail how to use this ioctl let alone the + weird behavior where CDROMREADTOC header beforehand turns and + "invalid parameter" into a valid one. It's not the way other 'nix's + work. + +2006-07-30 rocky + + * test/testiso9660.c: Take out some checks until daylight savings + time thing is resolved. + +2006-07-30 rocky + + * NEWS, example/tracks.c, lib/driver/gnu_linux.c: gnu_linux: + get_disc_last_lsn: cdte_format seems to want to be CDROM_MSF + example/tracks.c: add a call to cdio_get_disc_last_lsn() NEWS - note + UDF limitation. correct spelling typo. + +2006-06-12 gmerlin + + * NEWS: * Updated NEWS + +2006-06-03 gmerlin + + * include/cdio/utf8.h, lib/driver/utf8.c: * UTF-8 support + +2006-06-03 rocky + + * lib/udf/udf_file.c: C lint. + +2006-06-03 rocky + + * test/Makefile.am, test/check_iso.sh.in, test/copying.gpl: Add our + own version of copying.gpl rather than rely on FSF's to be + unchanging. + +2006-06-02 gmerlin + + * include/cdio/Makefile.am, include/cdio/iso9660.h, + include/cdio/types.h, lib/driver/Makefile.am, + lib/driver/libcdio.sym, lib/iso9660/iso9660_fs.c: * UTF-8 support patch + +2006-05-06 rocky + + * include/cdio/iso9660.h, lib/iso9660/iso9660.c: Add missing field + in SVD structure. Document correspondencies with ECMA 119 better. + +2006-05-03 rocky + + * include/cdio/cdda.h: Note what nsectors does. + +2006-04-28 rocky + + * lib/udf/udf_fs.c: gcc 2.9 fix remove ;; - thanks to sms + +2006-04-17 rocky + + * doc/2006-summer-of-code.txt: Remove API overhaul. + +2006-04-17 rocky + + * example/udffile.c, test/Makefile.am: Add UDF 1.02 image and use + that in the default file-extraction test. + +2006-04-17 rocky + + * example/Makefile.am, example/udffile.c: udf2.c becomes the more + general udffile.c + +2006-04-17 rocky + + * include/cdio/ecma_167.h, lib/udf/udf.c, lib/udf/udf_file.c, + lib/udf/udf_fs.c, lib/udf/udf_fs.h, lib/udf/udf_private.h: UDF file + reading works for strategy 4. What a pain in the ass. + +2006-04-16 rocky + + * doc/libcdio.texi, example/Makefile.am, include/cdio/ecma_167.h, + include/cdio/udf.h, lib/udf/udf.c, lib/udf/udf_file.c, + lib/udf/udf_private.h: Remove some bugs in udf_file.c Others remain. + +2006-04-15 rocky + + * example/C++/Makefile.am, example/C++/OO/Makefile.am, + example/C++/README, example/Makefile.am, example/README: . + +2006-04-15 rocky + + * example/C++/Makefile.am, example/C++/isofile.cpp: + iso3.cpp->isofile.cpp + +2006-04-15 rocky + + * example/C++/isolist.cpp: iso1.cpp->isolist.cpp + +2006-04-15 rocky + + * example/C++/OO/{iso3.cpp => isofile.cpp}, + example/C++/OO/{iso2.cpp => isofile2.cpp}, example/C++/OO/{iso1.cpp + => isolist.cpp}, example/C++/iso1.cpp, example/C++/iso2.cpp, + example/C++/{iso3.cpp => isofile2.cpp}: iso1->isolist iso2->isofile2 + iso3->isofile + +2006-04-15 rocky + + * example/.cvsignore, example/C++/.cvsignore, + example/C++/OO/.cvsignore, example/C++/README: iso1->isolist + iso2->isofile2 iso3->isofile + +2006-04-15 rocky + + * example/C++/Makefile.am, example/C++/OO/Makefile.am, + example/Makefile.am, example/README, example/{iso3.c => isofile.c}, + example/{iso2.c => isofile2.c}, example/{iso1.c => isolist.c}: + iso1.c->isolist.c iso2.c -> isofile2.c iso3.c -> isofile.c + +2006-04-15 rocky + + * doc/2006-summer-of-code.txt: Proposed 2006 Summer of Code tasks + +2006-04-15 rocky + + * include/cdio/udf_file.h, lib/driver/_cdio_stream.c, + lib/driver/_cdio_stream.h, lib/driver/libcdio.sym, + lib/udf/udf_file.c, lib/udf/udf_fs.c, lib/udf/udf_private.h: stream: + add getpos routine udf: save last read position. + +2006-04-14 rocky + + * lib/driver/libcdio.sym, src/cdda-player.c, src/mmc-tool.c: + libcdio.sym: add mmc_close_tray cdda-player.c, mmc-tool.c: remove + possibility of uninitialized return code variables + +2006-04-14 rocky + + * include/cdio/udf_file.h: Fix prototype mismatch. Thanks yet again + to the every vigilant Steve Schultz. + +2006-04-12 rocky + + * src/mmc-tool.c: doc fix + +2006-04-12 rocky + + * src/mmc-tool.c: Add access to GPCMD_INQUIRY + +2006-04-12 rocky + + * doc/libcdio.texi, example/README: Note newer example programs like + udf1.c udf2.c libcdio.texi also has some other small typo + corrections. + +2006-04-12 rocky + + * NEWS, configure.ac, example/mmc2a.c: configure.ac: in 0.78cvs now + mmc2a.c: small changes from and synch with mmc-tool. + +2006-04-12 rocky + + * example/mmc2a.c, include/cdio/cd_types.h, include/cdio/device.h, + include/cdio/ecma_167.h, include/cdio/mmc.h, + include/cdio/udf_file.h, lib/driver/mmc.c, src/mmc-tool.c: mmc: add + mmc_close_tray(). mmc-tool: add option for close tray and to get + mode-sense 2A data. + +2006-04-12 rocky + + * src/mmc-tool.c: Allow multiple sequence of operations. + +2006-04-11 rocky + + * example/udf2.c, lib/udf/udf_fs.c: udf_fs.c: was freeing freed + memory when searching for a file that doesn't exist. udf2.c: print error when looking for a non-existent file. + +2006-04-11 rocky + + * include/cdio/udf_file.h, lib/udf/Makefile.am, lib/udf/udf_file.c, + lib/udf/udf_fs.c, lib/udf/udf_fs.h, lib/udf/udf_private.h: Make + udf_read_block more like 2 read. Implementation is closer to the + description (although it needs more work.) udf_fs.h: break out + udf_check_tag() *.h: /*! -> /** - is more like Javadoc. + +2006-04-11 rocky + + * lib/udf/udf_file.c: Handle error condition better. + +2006-04-11 rocky + + * example/udf2.c: Print out entire file. (File must fit in memory + though.) + +2006-04-11 rocky + + * include/cdio/ecma_167.h, lib/udf/udf.c, lib/udf/udf_file.c, + lib/udf/udf_fs.c, lib/udf/udf_private.h: UDF fixes. + +2006-04-07 rocky + + * src/cdda-player.c, src/mmc-tool.c: Wrapping fixes + +2006-04-07 rocky + + * src/cdda-player.c: If a driver doesn't have cdio_get_audio_volume, + increase/decrease volume arbitrarily start off with 50 (midway in + range) and we've arranged that cdda-player will do it's own + bookkeeping to figure out what the current volume level is. + +2006-04-05 rocky + + * src/cdda-player.c: Add ability to interactively set volume levels. + Keys +/- + +2006-04-05 rocky + + * src/cdda-player.c: Tidy up a little. + +2006-04-05 rocky + + * lib/driver/.cvsignore: . + +2006-04-05 rocky + + * src/.cvsignore: [no log message] + +2006-04-05 rocky + + * src/cdda-player.c: Figure out last line from screen paramaters. + (I'm embarrassed it this wasn't put in earlier.) Play *only* if we + weren't previously paused or playing. + +2006-04-05 rocky + + * src/cdda-player.c: Start off playing all tracks. Set status to + show playing all tracks. + +2006-04-05 rocky + + * lib/driver/mmc.c, lib/driver/mmc_private.h: Make so we can call + from driver. Some comment changes too. + +2006-04-04 rocky + + * src/mmc-tool.c: typo + +2006-04-04 rocky + + * include/cdio/device.h, include/cdio/mmc.h, + lib/driver/MSWindows/win32.c, lib/driver/device.c, + lib/driver/gnu_linux.c, lib/driver/libcdio.sym, lib/driver/mmc.c, + src/mmc-tool.c: Clarify the difference betweeen speed as it is + defined in the MMC spec and drive unit speeds. Add a new mmc routine + for the latter. + +2006-04-04 rocky + + * src/mmc-tool.c: mmc-tool: tool do issue libcdio mmc commands. + +2006-04-04 rocky + + * src/Makefile.am: Add get/set blocksize and MCN commands. + +2006-04-03 rocky + + * example/mmc2a.c: typos + +2006-04-03 rocky + + * example/.cvsignore: .cvsignore + +2006-04-03 rocky + + * lib/driver/gnu_linux.c, lib/driver/mmc.c: gnu_linux: Use internal + routine to set the speed. mmc.c: add more debug_ variables for new + enums and extern vars in mmc.h set speed is in the write direction + not read + +2006-04-03 rocky + + * include/cdio/mmc.h: More #defines become enums. Add CDIO_MMC_GETPOS_LEN16. Is like CDIO_MMC_GETPOS_LEN16 with extra + position parameter. + +2006-04-03 rocky + + * example/Makefile.am, example/README, example/mmc2a.c: Add example + program to show MODE_SENSE page 2A: CD/DVD Capabilities and + Mechanical Status Page. + +2006-03-30 flameeyes + + * configure.ac, include/Makefile.am, lib/Makefile.am: Add a + --disable-cxx configure parameter so that the C++ bindings can be + skipped. + +2006-03-28 rocky + + * README: README + +2006-03-28 rocky + + * README, package/libcdio.spec.in: README + +2006-03-28 rocky + + * lib/driver/MSWindows/win32.c: For read_data_sectors, try first MMC + commands and then cooked I/O. + +2006-03-28 rocky + + * example/C++/OO/drives.cpp, example/drives.c, + include/cdio/cd_types.h, include/cdio/device.h, + lib/driver/cd_types.c, lib/driver/device.c, test/testisocd.c: Yet + another attempt to get "get_drives_with_cap" working in a rational + fashion. + +2006-03-27 rocky + + * example/C++/OO/drives.cpp, example/drives.c, + include/cdio/device.h, lib/driver/device.c: One more time, go over + logic of get_drives_with_cap. + +2006-03-26 rocky + + * include/cdio/cd_types.h, lib/driver/device.c, test/testisocd.c: + Bug in get_drive_types_with_cap: Had wrong boolean logic. + +2006-03-26 rocky + + * test/.cvsignore: . + +2006-03-26 rocky + + * test/testisocd.c: Add ISO 9660 CD reading test. + +2006-03-26 rocky + + * include/cdio/iso9660.h: A more stringent ISO 9660 CD reading test. + +2006-03-26 rocky + + * test/Makefile.am: Add test of reading an ISO 9660 CD. + +2006-03-26 rocky + + * lib/driver/_cdio_generic.c: Untabify + +2006-03-26 rocky + + * lib/driver/_cdio_generic.c, lib/driver/osx.c: Add/correct + comments. osx.c: remove tabs. + +2006-03-25 rocky + + * configure.ac: We'll accept FreeBSD 7. + +2006-03-25 rocky + + * include/cdio/iso9660.h: Document iso9660_iso_seek_read better. + Well, the old doc at least had me confused. + +2006-03-25 rocky + + * lib/cdda_interface/scan_devices.c: Store passed in messagedest in + initializing drive object. + +2006-03-18 rocky + + * include/cdio/cdda.h, include/cdio/paranoia.h, + lib/cdda_interface/cddap_interface.c, lib/paranoia/paranoia.c: + documentation additions, mostly doxygen. More #defines become + enumerations. + +2006-03-18 rocky + + * NEWS: Forgot to update release date. + +2006-03-18 rocky + + * test/testiso9660.c: sourceforge openpower is now giving problems + in changing timezone. Will it ever end? + +2006-03-18 rocky + + * Makefile.am, test/testiso9660.c: Makefile.am: failed bad attempt + to get Sun 9's make work. But this is probably more correct anyway. + testiso9660.c: I give up on getting localtime working. + +2006-03-18 rocky + + * NEWS, configure.ac, doc/how-to-make-a-release.txt, + include/cdio/iso9660.h, lib/iso9660/iso9660.c: iso9660.h: remove + doxygen formatting warning. configure.ac, NEWS: get ready for 0.77 + release + +2006-03-18 rocky + + * lib/driver/FreeBSD/freebsd.h: typo + +2006-03-18 rocky + + * example/cdtext.c, example/iso2.c, example/paranoia.c, + example/paranoia2.c, src/cd-paranoia/cd-paranoia.c: More strcat, + sprintf, and strcpy replacements. + +2006-03-18 rocky + + * README, README.libcdio: Update instructions + +2006-03-18 rocky + + * test/testiso9660.c: The latest wrinkle in the maze of twisty + timezones all different. + +2006-03-18 rocky + + * NEWS, include/cdio/util.h, lib/cdda_interface/utils.c, + lib/driver/gnu_linux.c, lib/driver/util.c, lib/udf/udf_fs.c: + Security: replace all uses of strcat and strcpy with strncat and + strncpy + +2006-03-17 rocky + + * src/cd-read.c, test/cdda-read.right, test/check_cd_read.sh: Add + --just-hex option to cd-read. Not all OS's agree on what's + printable. + +2006-03-17 rocky + + * lib/iso9660/iso9660.c, lib/iso9660/iso9660_fs.c, + lib/iso9660/rock.c: Replace strcat and strcpy with strncat, strncpy. + +2006-03-17 rocky + + * configure.ac, src/Makefile.am, src/cd-info.c, + src/cd-paranoia/Makefile.am, src/cd-paranoia/cd-paranoia.c, + src/cd-paranoia/getopt.c, src/cd-paranoia/getopt.h, + src/cd-paranoia/getopt1.c, src/cd-read.c, src/cdda-player.c, + src/getopt.c, src/getopt.h, src/getopt1.c, src/iso-info.c, + src/iso-read.c: Put back in getopt.h, getopt.c, getopt1.c. Solaris + doesn't always have it and it's really too much of a hassle to do + all that configuration code to figure out where it is and what has + to be done to get it to work. + +2006-03-17 rocky + + * lib/driver/aix.c, lib/driver/solaris.c: mmc_direction_t -> + cdio_mmc_direction_t + +2006-03-17 rocky + + * src/cd-drive.c: It's now mmc.h, not scsi_mmc.h + +2006-03-17 rocky + + * test/testiso9660.c: Address one more glitch - NULL tm_zone's + +2006-03-17 rocky + + * test/testiso9660.c: Even more dancing around the different tm + mktime variations on different OS's. I think we have GNU/Linux, + cygwin, and BSDI now. + +2006-03-17 rocky + + * NEWS: NEWS + +2006-03-17 rocky + + * test/testiso9660.c: Need more sophisticated way to compare times. + +2006-03-17 rocky + + * lib/iso9660/iso9660.c, test/testiso9660.c: More time corrections + in the presense of timezones, daylight savings time, and + HAVE_TM_GMTOFF + +2006-03-17 rocky + + * lib/iso9660/iso9660.c: use tzset to try to get GMT read. + +2006-03-17 rocky + + * lib/driver/MSWindows/aspi32.c, lib/driver/MSWindows/aspi32.h, + lib/driver/MSWindows/win32.c, lib/driver/MSWindows/win32.h, + lib/driver/MSWindows/win32_ioctl.c: mmc_direction_t -> + cdio_mmc_direction_t + +2006-03-17 rocky + + * NEWS, lib/iso9660/iso9660.c, test/testiso9660.c: + iso9660_get_{l,d}time() anot accounting for the timezone properly. + Some other small bugs removed. + +2006-03-14 rocky + + * cvs2cl_usermap: Remove email addresses -- spammers are winning + +2006-03-14 rocky + + * cvs2cl_usermap: Add flameeyes + +2006-03-14 rocky + + * NEWS, lib/cdda_interface/Makefile.am, lib/driver/Makefile.am, + lib/iso9660/Makefile.am, lib/paranoia/Makefile.am: Update library + version numbers for possible release. FSF address change. + +2006-03-14 rocky + + * include/cdio/iso9660.h, lib/iso9660/iso9660_fs.c, + src/cdda-player.c: iso9660.h: note b_mode2 parameter is not used any + more cdda-player.c FSF address change. + +2006-03-13 rocky + + * lib/paranoia/paranoia.c: comment change - 0x2->FLAGS_UNREAD + +2006-03-11 rocky + + * include/cdio++/cdio.hpp: Try p_cdio as protected. + +2006-03-07 rocky + + * include/cdio/disc.h: Put back cdio_stat_size tolerance. + +2006-03-07 rocky + + * .cvsignore, example/C++/OO/.cvsignore: . + +2006-03-07 rocky + + * include/cdio++/iso9660.hpp, lib/cdio++/iso9660.cpp: Go back to + inlining various functions because older STL's can't handle not + having the bodies. (I think this is what's going on, but I'm not + completely sure. Deals with failure on older BSDI and gcc 2.95 + server) + +2006-03-07 rocky + + * lib/cdio++/devices.cpp: Code for Cdio::Devices Class + +2006-03-07 rocky + + * .cvsignore: .cvsignore + +2006-03-07 rocky + + * example/C++/OO/Makefile.am, example/C++/OO/iso1.cpp, + example/C++/OO/iso4.cpp, include/cdio++/iso9660.hpp, + lib/cdio++/iso9660.cpp: Change list of files from a list to a + vector. read_pvd() for ISO9660::FS works. iso4.cpp: show ISO 9660 + info for CD-images (like iso1 for ISO images). + +2006-03-07 rocky + + * test/.cvsignore: [no log message] + +2006-03-07 rocky + + * lib/cdda_interface/Makefile.am, lib/driver/Makefile.am, + lib/iso9660/Makefile.am, lib/paranoia/Makefile.am: Don't do library + versioning if there no object files to look at. This removes + spurious "nm: no a.out" messages when --disable-shared is in effect. + +2006-03-07 rocky + + * configure.ac, example/C++/OO/Makefile.am, + include/cdio++/cdio.hpp, include/cdio++/devices.hpp, + include/cdio++/iso9660.hpp, lib/cdio++/Makefile.am, + lib/cdio++/cdio.cpp, lib/cdio++/cdio_stub.cpp, + lib/cdio++/iso9660.cpp, lib/cdio++/iso9660_stub.cpp: Move code from + devices.hpp and iso9660.hpp headers into external files - cdio.cpp, + device.cpp, iso9660.cpp configure.ac, C++/OO/Makefile.am: Found some bugs libraries acces in + doing the above move. + +2006-03-07 rocky + + * configure.ac, test/Makefile.am, test/{testbincue.c => + testbincue.c.in}: testbincue.c.in: set @srcdir@. Make gcc 2.95 + compatible. + +2006-03-07 rocky + + * include/cdio/iso9660.h, lib/iso9660/libiso9660.sym, + test/testbincue.c: Have to have iso9660_find_fs_lsn linker symbol + around. (At least for now.) + +2006-03-06 rocky + + * Makefile.am, configure.ac, include/cdio++/Makefile.am, + libcdio++.pc.in, libiso9660++.pc.in: Distribute pkg-config files. + Add iso9600.hpp to distribution. + +2006-03-06 rocky + + * NEWS, example/C++/OO/Makefile.am: Cosmetic changes. + +2006-03-06 rocky + + * example/C++/OO/Makefile.am, example/C++/OO/iso2.cpp, + include/cdio++/cdio.hpp, include/cdio++/iso9660.hpp, + include/cdio/iso9660.h, lib/iso9660/iso9660_fs.c, + lib/iso9660/libiso9660.sym: Add ISO9660::FS - the cdio portion of + ISO9660 reading. iso9600.h: another function rename to be more + consistent. + +2006-03-06 rocky + + * doc/libcdio.texi, example/C++/OO/iso1.cpp, + include/cdio++/iso9660.hpp, include/cdio/iso9660.h, + lib/iso9660/iso9660.c, lib/iso9660/libiso9660.sym, + test/testischar.c, test/testiso9660.c: iso9660.hpp, iso1.cpp get + list iterators working. rest: add _ to isachar and isadchar + +2006-03-06 rocky + + * example/C++/OO/Makefile.am, example/C++/OO/iso1.cpp, + example/C++/OO/iso3.cpp, example/C++/iso1.cpp, + include/cdio++/iso9660.hpp, lib/cdio++/Makefile.am: Start OO + iso1.cpp. iso3.cpp: valgrind lint. iso1.cpp: tidy more. + +2006-03-06 rocky + + * configure.ac, example/C++/OO/.cvsignore, + example/C++/OO/Makefile.am, example/C++/OO/iso3.cpp, + include/cdio++/iso9660.hpp, lib/cdio++/Makefile.am: Get first + libiso9660++ OO program (iso3) working. + +2006-03-05 rocky + + * include/cdio++/iso9660.hpp, include/cdio/iso9660.h: Add more C++ + ISO 9660 methods and some classes (for C structs). + +2006-03-05 rocky + + * example/C++/device.cpp, include/cdio++/cdio.hpp, + include/cdio++/device.hpp, include/cdio++/iso9660.hpp, + include/cdio/iso9660.h, lib/cdio++/Makefile.am, + lib/cdio++/{stub.cpp => cdio_stub.cpp}, lib/cdio++/iso9660_stub.cpp: + lib/cdio++/Makeifle.am iso9660.hpp iso9660_stub.cpp: start C++ + libiso9660 library iso9660.h: documentation changes. device.hpp: + reduce number of methods stub.cpp->cdio_stub.cpp + +2006-03-03 flameeyes + + * example/.cvsignore: Add cdchange to ignored files. + +2006-03-03 flameeyes + + * lib/driver/FreeBSD/freebsd.c, lib/driver/FreeBSD/freebsd.h, + lib/driver/FreeBSD/freebsd_cam.c: scsi_mmc_cdb_t -> mmc_cdb_t; + scsi_mmc_direction_t -> cdio_mmc_direction_t; make FreeBSD driver + build again. + +2006-03-02 flameeyes + + * lib/driver/FreeBSD/freebsd.c: Add missing include in freebsd + driver (fix implicit declaration of htonl). + +2006-03-02 rocky + + * include/cdio/iso9660.h, lib/iso9660/iso9660.c: Mostly doc changes. + However there was a field-name misspelling in iso9660.h + +2006-03-02 rocky + + * example/C++/README, example/C++/iso1.cpp, example/README, + example/iso1.c: iso1.c{,pp} Show PVD info as well. README: revise + for the programs we've got. + +2006-03-02 rocky + + * example/C++/iso2.cpp, example/C++/iso3.cpp, example/iso2.c, + example/iso3.c: Simplify code. Add usage. + +2006-03-02 rocky + + * example/C++/iso1.cpp, example/iso1.c, example/iso3.c: Some small + changes inspired by correspoinding Perl programs. + +2006-03-01 rocky + + * lib/iso9660/iso9660.c: Date changed + +2006-03-01 rocky + + * include/cdio/iso9660.h, lib/iso9660/iso9660.c: Document + iso9660_name_translate{,_ext} more accurately. + +2006-03-01 rocky + + * example/iso1.c: Remove duplicate free + +2006-03-01 rocky + + * include/cdio/iso9660.h: Improve some comments. + +2006-03-01 rocky + + * example/C++/iso1.cpp, example/iso1.c: iso1.c, iso1.cpp: add p_ + prefix to some pointers iso1.cpp: add iso1.c improvements: allow for + an optional ISO name. + +2006-02-27 flameeyes + + * lib/driver/_cdio_stdio.c, lib/driver/cd_types.c, + lib/driver/device.c: Use complete struct initialization to avoid + spurious pointers. + +2006-02-27 flameeyes + + * example/audio.c: Fix keywords ordering. + +2006-02-27 flameeyes + + * lib/driver/image/cdrdao.c: Don't put two strcmp() calls in + bodyless if costructs when building the release version. Use -DTODO + in CFLAGS to get the warning again. + +2006-02-27 flameeyes + + * lib/driver/image/nrg.c: Don't check for an unsigned value to be >= + 0. + +2006-02-27 flameeyes + + * include/cdio/Makefile.am: Remove cdio_include.h at distclean + rather than in clean, as it's done for config.h. Doesn't require to + re-run ./configure at make clean. + +2006-02-27 flameeyes + + * lib/driver/portable.h: Use preprocessor's #error instead of adding + invalid code, makes the error more verbose and waste less time (as + it stops during preprocessing instead of compiling). + +2006-02-25 rocky + + * test/testiso9660.c: Small comment changes + +2006-02-25 rocky + + * test/testiso9660.c: Revise test to be more informative + +2006-02-25 rocky + + * test/testiso9660.c: Revise test to be more informative + +2006-02-18 rocky + + * lib/driver/osx.c: Was accessing outside of legal range. Addresses + bug #15787 Thanks to demo-n. + +2006-02-18 rocky + + * .cvsignore: .cvsignore + +2006-02-18 rocky + + * lib/driver/osx.c: Comment change. + +2006-02-18 rocky + + * lib/driver/bsdi.c, lib/driver/device.c, lib/driver/osx.c: + scsi_mmc_direction_t -> cdio_mmc_direction_t + +2006-02-16 rocky + + * NEWS, doc/libcdio.texi: NEWS: Note strncpy problem libcdio.texi: + Update copyright date. + +2006-02-16 rocky + + * include/cdio/Makefile.am, include/cdio/cdda.h, + include/cdio/disc.h, include/cdio/mmc.h, include/cdio/util.h: Remove + some deprecated things. + +2006-02-13 rocky + + * lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/image/nrg.c, lib/driver/mmc.c: image/* Wrong sizeof. + mmc: remove some deprecated things. + +2006-02-13 rocky + + * include/cdio/cd_types.h, lib/driver/cd_types.c: Replace yet + another set of #defines with an enum. + +2006-02-13 rocky + + * example/.cvsignore, lib/udf/udf_time.c, src/.cvsignore: + udf_time.c: make sure offset is initialzed (Darwin doesn'thave + TIMEZONE var). .cvsignore: add .gdb_history + +2006-02-13 rocky + + * NEWS: What's up. + +2006-02-13 rocky + + * lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/image/nrg.c: Use strncopy rather than strcpy in + get_hwinfo. Make sure all strings have null byte at the end. + +2006-02-12 rocky + + * lib/driver/image/nrg.c: Put in a much more stringent NRG image + test. This means that for now we won't require the .NRG extension. + +2006-02-12 rocky + + * test/testbincue.c: Add at least an attempt to call + get_default_devices(). + +2006-02-12 rocky + + * lib/driver/image/nrg.c: Fix bugs on accessing outside of string. + Patch thanks to Diego 'Flameeyes' Petten�. And he cleaned up and + shortened the code too! + +2006-02-12 rocky + + * configure.ac: Allow DragonFly which so far is exactly like + FreeBSD. Guidance suggested and provided by Diego 'Flameeyes' + Petten�. + +2006-02-10 rocky + + * include/cdio/cd_types.h: Change another set of #defines to an + enum. + +2006-02-10 rocky + + * lib/driver/cd_types.c, lib/driver/image/bincue.c: bincue.c: was + using NRG default devices! cd_types.c: declare variable so we pick + up debug info. + +2006-02-09 rocky + + * example/C++/OO/drives.cpp, example/drives.c: Clean up code a + little. + +2006-02-02 rocky + + * src/cdda-player.c: Fix another bug in cdda-player? I think b_cd + was there only for interactive use. + +2006-02-02 rocky + + * example/udf2.c, include/cdio++/cdio.hpp, include/cdio/device.h, + lib/driver/device.c, lib/driver/libcdio.sym: + cdio_driver_return_code_to_str -> cdio_driver_errmsg + +2006-02-01 rocky + + * NEWS: Go over. + +2006-02-01 rocky + + * lib/driver/device.c, test/testparanoia.c: Fix bug in is_device + when driver_id = DRIVER_UNKNOWN or DRIVER_DEVICE + +2006-01-26 rocky + + * lib/udf/udf_file.c, lib/udf/udf_fs.c, lib/udf/udf_private.h: + Commit some of the temporary UDF stuff. It will either be completed + or disabled later. + +2006-01-25 rocky + + * src/cdda-player.c: Install a CDDB log handler. + +2006-01-25 rocky + + * example/README: Add cdchange. + +2006-01-25 rocky + + * example/C++/OO/device.cpp, example/C++/OO/drives.cpp, + example/C++/OO/eject.cpp, include/cdio++/cdio.hpp, + include/cdio++/device.hpp, include/cdio++/devices.hpp: Move the + device routines which don't refer to an object private info (e.g. + closign a tray) out of the Device class. + +2006-01-25 rocky + + * include/cdio++/cdio.hpp, include/cdio++/devices.hpp: devices.hpp: + Add default values on some parameters. cdio.hpp: Remove bogus + class. + +2006-01-25 rocky + + * example/C++/OO/.cvsignore, example/C++/OO/Makefile.am, + example/C++/OO/drives.cpp: Add routine to show drives attached. Not + really OO, but it is a little nicer than the corresponding C + program. + +2006-01-24 rocky + + * example/Makefile.am, example/README: Add cdchange program. + +2006-01-24 rocky + + * example/cdchange.c: Allow parameter to specify seconds to wait. + +2006-01-24 rocky + + * example/cdchange.c: Example to show media changed routine. + +2006-01-23 rocky + + * doc/.cvsignore, doc/doxygen/html/.cvsignore: more lint. + +2006-01-23 rocky + + * lib/driver/cdio_private.h, lib/driver/generic.h: Now check to see + if we have config.h *AND* it hasn't been included before. + +2006-01-23 rocky + + * include/cdio/read.h, include/cdio/types.h: LIBCDIO_CONFIG_H -> + EXTERNAL_LIBCDIO_CONFIG_H so we don't get conflicting includes with + the local config.h. + +2006-01-23 rocky + + * include/cdio/read.h: Some small corrections to comments. + +2006-01-23 rocky + + * lib/driver/cdio_private.h, lib/udf/udf_private.h: config.h now + seems to get included. + +2006-01-23 rocky + + * include/cdio/track.h: Move some more #defines into an enumeration. + +2006-01-23 rocky + + * configure.ac: Probably this is the right way (or a better way?) to + ensure derived scripts in test are made executable. + +2006-01-22 rocky + + * example/tracks.c: We were assuming first_track is 1. It isn't + always. + +2006-01-21 rocky + + * NEWS, configure.ac, include/cdio/device.h, include/cdio/read.h, + include/cdio/types.h: read.h needs Add it into + cdio_config.h and include only once. Fixed based on observation and + suggestion of Steve Schultz. + +2006-01-21 rocky + + * lib/cdda_interface/test_interface.c: Note that this is not used + and probably hasn't been in a while. + +2006-01-21 rocky + + * test/testbincue.c: Add test of set blocksize and set speed. + +2006-01-21 rocky + + * lib/driver/image/bincue.c: Had uninitialized set_speed and + set_blocksize opts caused core dumps if called. + +2006-01-18 rocky + + * include/cdio++/mmc.hpp, include/cdio++/read.hpp: Use exception + handling. Set some default parameters like number of blocks=1. + +2006-01-18 rocky + + * include/cdio++/device.hpp: Add a default value for drive paramater + of CloseTray(). + +2006-01-18 rocky + + * example/C++/OO/eject.cpp: Add close status message. Remove uneeded + driver_id parameter. Fix a grammatical mistake. + +2006-01-17 rocky + + * include/cdio/disc.h: Some typos. + +2006-01-17 rocky + + * example/C++/OO/eject.cpp, include/cdio++/cdio.hpp, + include/cdio++/device.hpp: Went the subclassed exception route (at + the expense of lots of extra code and possibly extra maintenance). + It will match the Python interface and it's I guess what Stroustrup + recommends. + +2006-01-15 rocky + + * example/C++/OO/eject.cpp, include/cdio++/cdio.hpp, + include/cdio++/device.hpp: Convert routines in device.hpp into + raising an exception rather than giving a return code. Sort of a + test. More may follow. + +2006-01-15 rocky + + * include/cdio/device.h, lib/driver/device.c, + lib/driver/libcdio.sym: Add cdio_driver_return_code_to_str() to give + a string interpretation of a driver return code. + +2006-01-14 rocky + + * example/C++/eject.cpp, example/eject.c: Forgot to change (C) on + that last change. + +2006-01-14 rocky + + * example/C++/eject.cpp, example/eject.c: Add tests of + opening/closing without specifying a drive. + +2006-01-14 rocky + + * NEWS: What's up. + +2006-01-14 rocky + + * lib/driver/device.c: Document behavior of cdio_open* and + media_eject when no device given. + +2006-01-14 rocky + + * include/cdio/device.h: Document behavior of eject and cdio_open* + when no device is given. + +2006-01-14 rocky + + * lib/iso9660/xa.c: Fix compiler error introduced by last enum + change. + +2006-01-14 rocky + + * lib/driver/device.c, lib/driver/image/nrg.c, + lib/driver/image/nrg.h: More enumerations. *.c: add "debugger" + enumeration variables. + +2006-01-14 rocky + + * include/cdio/cdda.h, include/cdio/device.h, + include/cdio/ecma_167.h, include/cdio/iso9660.h, + include/cdio/read.h, include/cdio/rock.h, include/cdio/sector.h, + include/cdio/track.h, include/cdio/udf.h, include/cdio/xa.h: Doxygen + lint to change #define to \#define in comments. Add more + enumerations. + +2006-01-14 rocky + + * doc/doxygen/Doxyfile.in: Use ABBREVIATE_BRIEF setting used in + another of my projects. + +2006-01-14 rocky + + * lib/driver/image/nrg.h: Remove GCC 4 warning about ignored + "packed". + +2006-01-08 rocky + + * Makefile.am, largefile.m4: Go back to using standard + autoconf-suppled AC_SYS_LARGEFILE + +2006-01-06 rocky + + * doc/libcdio.texi: Smutz seems to get into file at the beginning. + +2006-01-05 rocky + + * doc/how-to-make-a-release.txt: More explicit about directory + location. + +2006-01-05 rocky + + * lib/cdio++/stub.cpp: In C++ read.h needs . Don't know + if this should be fixed here (where we could concievably check for + HAVE_SYS_TYPES_H or in read.h (where it would be inde via + cdio_config.h, but for now we'll do it this way. + +2006-01-05 rocky + + * lib/paranoia/p_block.c: Using inline seems to cause a linking + problem. Don't know exactly under what conditions or why, but + "inline" isn't all that vital. + +2006-01-05 rocky + + * configure.ac, largefile.m4: Add largefile support. For example ISO + images over 2G. Problem and suggestion of where to look for a + solution from Colossus. + +2006-01-05 rocky + + * test/copying.right: Looks like FSF has changed their address. + +2005-12-22 rocky + + * doc/libcdio.texi: Small typo iso-info->iso-read + +2005-12-22 rocky + + * doc/glossary.texi: texi2html seems to have problems with @table + @acronym so use @table @dfn. + +2005-12-17 rocky + + * src/cd-paranoia/Makefile.am: We no longer use variable + $(getopt_sources) + +2005-11-29 rocky + + * include/cdio/device.h: #define mistake -- caught by SWIG, believe + it or not. + +2005-11-29 rocky + + * include/cdio++/Makefile.am: Forgot to include mmc.hpp + +2005-11-14 rocky + + * example/C++/OO/mmc2.cpp: Add corresponding mmc2 OO C++ program. + +2005-11-14 rocky + + * example/C++/OO/Makefile.am, example/C++/OO/cdtext.cpp, + example/C++/OO/mmc1.cpp, example/C++/mmc1.cpp, example/mmc1.c, + example/mmc2.c, include/cdio++/cdio.hpp, include/cdio++/mmc.hpp: Add + C++ wrapper routines for MMC commands inside CdioDevice class. Some + comments/code in sample programs gone over and new onse added for + libcdio++. + +2005-11-12 rocky + + * example/Makefile.am: Typo causing compilation failure on OSX. + Thanks to Steve Schultz. + +2005-11-11 rocky + + * src/cd-read.c: Use new read_sector routine. + +2005-11-11 rocky + + * example/C++/OO/cdtext.cpp, example/C++/OO/device.cpp, + example/C++/OO/eject.cpp, example/cdtext.c, example/device.c, + example/eject.c, include/cdio++/Makefile.am, + include/cdio++/cdio.hpp, include/cdio++/enum.hpp, + include/cdio/cdtext.h, include/cdio/device.h: include/cdio++ Add + pre- and post- increment/decrement operators for libcdio enums that + it makes sense to iterate over. example/C++/OO/*: use these example/*: match up C and C++ programs + better. + +2005-11-10 rocky + + * example/.cvsignore, include/cdio++/.cvsignore, + lib/udf/.cvsignore, test/.cvsignore: [no log message] + +2005-11-10 rocky + + * example/C++/iso2.cpp, example/C++/iso3.cpp: Remove a couple of + signed/unsigned comparisons. + +2005-11-10 rocky + + * example/C++/OO/Makefile.am: automake Makefile for new C++ OO + programs. + +2005-11-10 rocky + + * configure.ac, example/C++/Makefile.am, example/C++/OO/.cvsignore, + example/C++/OO/cdtext.cpp, example/C++/OO/device.cpp, + example/C++/OO/eject.cpp, example/C++/OO/tracks.cpp, + include/Makefile.am, include/cdio++/Makefile.am, + include/cdio++/cdio.hpp, include/cdio++/cdtext.hpp, + include/cdio++/device.hpp, include/cdio++/devices.hpp, + include/cdio++/disc.hpp, include/cdio++/read.hpp, + include/cdio++/track.hpp, lib/Makefile.am, lib/cdio++/.cvsignore, + lib/cdio++/Makefile.am, lib/cdio++/stub.cpp: First cut at a C++ + wrapper for libcdio libcdio++. What's not done are audio and MMC + commands. No doubt it may be a little rough and I expect further + changes. + +2005-11-10 rocky + + * example/Makefile.am: Note more LIBCDIO dependencies for more + programs. Pity automake doesn't handle this more automatically. + +2005-11-10 rocky + + * example/Makefile.am: Add eject example program and the + LIBCDIO_DEPS dependencies. + +2005-11-10 rocky + + * example/tracks.c: Add C Preprocessor HAVE_SYS_TYPES_H test. + +2005-11-10 rocky + + * example/iso1.c: Small comment change. + +2005-11-10 rocky + + * include/cdio/cdtext.h, include/cdio/read.h, + lib/driver/libcdio.sym, lib/driver/read.c: add read_sector{s} + cdtext.h: Small typo. + +2005-11-08 pjcreath + + * lib/paranoia/gap.c, lib/paranoia/paranoia.c: Documented silence + matching + +2005-11-07 pjcreath + + * lib/paranoia/gap.c, lib/paranoia/overlap.c, + lib/paranoia/paranoia.c: Commented stage 2 extensively. + +2005-11-07 pjcreath + + * lib/cdda_interface/cddap_interface.c, lib/paranoia/paranoia.c: + Cleaned up TRACE_PARANOIA and added some messages for the skip case. + +2005-11-07 rocky + + * example/.cvsignore, example/C++/.cvsignore: Add eject + +2005-11-07 rocky + + * lib/driver/libcdio.sym: Add cdio_eject_media_drive. + +2005-11-07 rocky + + * example/C++/Makefile.am, example/C++/eject.cpp: C eject works as + C++ too. Makefile.am: Add some of the dependency tracking. + +2005-11-07 rocky + + * example/README: Update to list various programs. I'm having + trouble keeping track of all them. + +2005-11-07 rocky + + * example/README: Add eject.c. + +2005-11-07 rocky + + * example/C++/iso2.cpp, example/eject.c, example/iso1.c, + example/iso2.c, example/iso3.c, example/isofuzzy.c, + include/cdio/cdio.h, include/cdio/device.h, lib/driver/device.c: Add + interface to eject CD-ROM by device name. eject.c: new routine to + test/show this. example/*.c iso2.cpp: Note in comment allowance of + an optional argument. + +2005-11-07 rocky + + * lib/driver/gnu_linux.c: Was giving a failure status on eject when + it succeeded. The failure was because ioctl(fd, BLKRRPART) didn't + succeed. Turn this into a cdio_info warning instead. + +2005-11-06 rocky + + * include/cdio/device.h: Small typos. + +2005-11-06 rocky + + * include/cdio/rock.h, lib/iso9660/rock.c: More separation between + posix_mode_t and mode_t. + +2005-11-06 rocky + + * include/cdio/udf.h: posix_mode_t -> mode_t + +2005-11-06 rocky + + * include/cdio/iso9660.h, lib/iso9660/iso9660.c: Return type of + iso9660_get_posix_mode should be mode_t (the OS-specific version), + not posix_mode_t (cdio's internally consistent version. + +2005-11-06 rocky + + * include/cdio/udf_file.h: I think mode_t (not posix_mode_t) is + correct here. The goal is to use in normal OS file operations. + +2005-11-06 rocky + + * lib/udf/filemode.c: Need #include + +2005-11-06 rocky + + * include/cdio/Makefile.am, include/cdio/ecma_167.h, + include/cdio/iso9660.h, include/cdio/posix.h, include/cdio/rock.h, + include/cdio/types.h, include/cdio/udf.h, include/cdio/udf_file.h, + include/cdio/xa.h, lib/iso9660/iso9660.c, lib/iso9660/iso9660_fs.c, + lib/iso9660/iso9660_private.h, lib/iso9660/libiso9660.sym, + lib/iso9660/rock.c, lib/iso9660/xa.c: Break out POSIX-like + definitions to posix.h Add ISO9660 routines to convert to mode_t + Record whether XA or not in iso9660_stat_t. And other definition + shifting around. + +2005-11-04 rocky + + * src/cd-paranoia/Makefile.am: Patch from Steve Schultz + @LIBGETOPT_LIB@ may have -l in it. + +2005-11-04 rocky + + * example/udf2.c: Don't have udf_read_block yet... + +2005-11-04 rocky + + * example/udf2.c: New test program for reading files. (Doesn't work + yet.) + +2005-11-02 rocky + + * include/cdio/udf_file.h, lib/udf/udf_file.c: A couple of + corrections on udf_get_file_length(). + +2005-11-02 rocky + + * example/udf1.c, include/cdio/udf_file.h, lib/udf/libudf.sym, + lib/udf/udf_file.c, lib/udf/udf_fs.c: Add routine to get file + length. Fix bug in retrieving dirent for root. Reduce overhead in + udf_get_link_count() + +2005-11-01 rocky + + * example/Makefile.am, example/udf1.c, include/cdio/udf.h, + lib/udf/udf_file.c, lib/udf/udf_fs.c: udf_find_file -> udf_fopen and + made closer to fopen(). It also simplifies things a little bit. + Start testing. + +2005-11-01 rocky + + * example/udf1.c, include/cdio/udf_file.h, lib/udf/udf_fs.c: Remove + extraneous parameter on udf_opendir(). + +2005-11-01 rocky + + * example/udf1.c, include/cdio/udf.h, include/cdio/udf_file.h, + include/cdio/udf_time.h, lib/udf/libudf.sym, lib/udf/udf.c, + lib/udf/udf_file.c, lib/udf/udf_fs.c, lib/udf/udf_private.h, + lib/udf/udf_time.c: Rename some functions to be more like POSIX file + reading, i.e. add udf_opendir() and udf_readdir(). udf_file_entry_t + -> udf_dirent_t. + +2005-10-30 rocky + + * src/iso-info.c: Remove small valgrind memory leak. + +2005-10-30 rocky + + * example/udf1.c: Fix small valgrind leak. + +2005-10-30 rocky + + * example/udf1.c, src/iso-info.c: udf1.c: Do better about dealing + with recursive directories. iso-info.c: small variable name change + +2005-10-30 rocky + + * example/iso2.c: Minor misspelling in comment. + +2005-10-30 rocky + + * example/C++/iso2.cpp: Minor typographical misspellings in comment + +2005-10-30 rocky + + * include/cdio/udf_time.h, lib/udf/udf_time.c: udf_times_to_stamp -> + udf_timespec_to_stamp + +2005-10-30 rocky + + * include/cdio/udf_file.h: Break off udf_file routines from udf.h + +2005-10-30 rocky + + * example/udf1.c, include/cdio/Makefile.am, include/cdio/udf.h, + lib/udf/Makefile.am, lib/udf/filemode.c, lib/udf/libudf.sym, + lib/udf/udf.c, lib/udf/udf_file.c: Break of file routines into + udf_file.{c,h} udf1: Add link count + +2005-10-30 rocky + + * lib/udf/udf_time.c: Replace some numbers with enum "constants". + +2005-10-30 rocky + + * example/udf1.c, include/cdio/ecma_167.h, include/cdio/udf.h, + lib/udf/Makefile.am, lib/udf/filemode.c, lib/udf/libudf.sym, + lib/udf/udf.c: Fill out file modes better and clean up interface + more by trying to funnel into POSIX file mode_t. FIXME: something + needs to be done to merge ISO9660 interfaces and UDF and probably + the right thing is to make it look like POSIX. Would be nice if + there were a library e.g. from GNU fileutils I could use to help. + +2005-10-29 rocky + + * example/udf1.c, lib/udf/udf.c: Fill out posix attributes a little. + Add directory listing to output. + +2005-10-29 rocky + + * include/cdio/udf.h, lib/udf/libudf.sym, lib/udf/udf.c: Add more + access functions. + +2005-10-29 rocky + + * include/cdio/ecma_167.h: OS/X's linker does not permit common + symbols in shared libs. + +2005-10-28 rocky + + * lib/driver/MSWindows/win32.c: Use MMC routine for reading data + blocks. At leat on XP home it seems to work better than generic read + which is a cooked read. + +2005-10-27 rocky + + * parse/toc.L: Lex/Flex cdrdao TOC scanner + +2005-10-27 rocky + + * include/cdio/ecma_167.h, include/cdio/udf.h, + include/cdio/udf_time.h, lib/udf/libudf.sym, lib/udf/udf.c, + lib/udf/udf_fs.c, lib/udf/udf_time.c: More documentation of ecma + 167. Some fields changed names. More #defines removed/replaced by + enum type and variables. + +2005-10-27 rocky + + * configure.ac: Need to move long timezone test lower for Cygwin + +2005-10-27 rocky + + * configure.ac, lib/udf/udf_time.c: Attempt to deal with OS's (like + BSDI) that don't have an extern long timezone. + +2005-10-27 rocky + + * configure.ac, lib/udf/udf_private.h, lib/udf/udf_time.c: Changes + to make work on Cygwin. However probably need a more general test + for timezone being extern long. + +2005-10-27 rocky + + * example/udf1.c, include/cdio/udf.h, lib/udf/libudf.sym, + lib/udf/udf.c, lib/udf/udf_fs.c: File entry update fixed on + udf_get_next(). More access functions added to return a UDF file + entry and to interpret a permission string. + +2005-10-26 rocky + + * include/cdio/track.h: Typo. + +2005-10-26 rocky + + * example/udf1.c, include/cdio/Makefile.am, include/cdio/udf.h, + include/cdio/udf_time.h, lib/udf/Makefile.am, lib/udf/libudf.sym, + lib/udf/udf_fs.c, lib/udf/udf_private.h, lib/udf/udf_time.c: Add + some UDF time routines and time-conversion routines. Note: + udf_get_next() needs to advance file entry info + +2005-10-25 pjcreath + + * configure.ac, example/Makefile.am, src/cd-paranoia/Makefile.am: + Fixed Darwin builds broken by dependency tracking. + +2005-10-25 rocky + + * example/udf1.c: libiso9660 -> libudf + +2005-10-25 rocky + + * example/udf1.c, include/cdio/udf.h, lib/udf/udf_fs.c: Add routine + to get volumeset id + +2005-10-25 rocky + + * README.libcdio: Much needed revision. + +2005-10-25 rocky + + * README: We *are* now adding UDF support. + +2005-10-25 rocky + + * example/udf1.c, include/cdio/ecma_167.h, include/cdio/udf.h, + lib/udf/libudf.sym, lib/udf/udf_fs.c: Add silly volume identifier. + More #defines removed in favor of enums. + +2005-10-25 rocky + + * example/udf1.c, lib/udf/udf_fs.c: Remove memory leak and invalid + write references thanks to valgrind. Now lists all files correctly + - at least in the absense of directories under /. + +2005-10-24 pjcreath + + * lib/paranoia/p_block.c, lib/paranoia/paranoia.c, + src/cd-paranoia/cd-paranoia.c: Added TRACE_PARANOIA, which differs + from cdparanoia's NOISY compile-time flag in that it's designed to + help someone understand how cdparanoia works, rather than + troubleshoot. Setting TRACE_PARANOIA to 1 traces stage 1, 2 trace + stage 2, and 3 traces both (and is extremely verbose). Additionally, committed a tentative bugfix to paranoia itself, which + was causing the libcdio test case to break. If it introduces + unexpected behavior, it should be backed out. So far it seems to + fix all test cases. + +2005-10-24 rocky + + * example/udf1.c, include/cdio/udf.h, lib/udf/Makefile.am, + lib/udf/libudf.sym, lib/udf/udf.c, lib/udf/udf_fs.c, + lib/udf/udf_private.h: UDF file is now opaque. Access routines then + added. Note: there are valgrind and free() errors that need going + over. + +2005-10-24 rocky + + * lib/udf/libudf.sym: List more of the external routines + (udf_get_next, udf_get_sub) + +2005-10-24 rocky + + * lib/udf/.cvsignore: Ignore the usual. + +2005-10-24 rocky + + * .cvsignore: Now have a libudf.pc + +2005-10-24 rocky + + * lib/udf/Makefile.am: Makefile.am for libudf + +2005-10-24 rocky + + * configure.ac, example/.cvsignore, example/Makefile.am, + example/udf1.c, include/cdio/ecma_167.h, include/cdio/udf.h, + lib/Makefile.am, lib/udf/udf_fs.c: First inkling of code for UDF + support. + +2005-10-24 rocky + + * src/cd-paranoia/cd-paranoia.c: MinGW tolerance. Patches based on + those by Eric Lunchpail + +2005-10-24 rocky + + * src/cd-info.c: Follow 0.76 (and below) behaviour: we don't require + a device to explicitly be given. + +2005-10-23 rocky + + * configure.ac: Add tests for gettimeofday(), {sete,get}{u,g}id() + More of the UDF library code mechanism put in. + +2005-10-23 rocky + + * lib/paranoia/paranoia.c: Remove a #define we don't need. + +2005-10-23 rocky + + * lib/cdda_interface/low_interface.h: Rmove references to external + (SCSI) routines that don't in fact exist. + +2005-10-23 rocky + + * lib/cdda_interface/cddap_interface.c: Patch by Erik Lunchpail to + accomodate systems (e.g. MinGW) that don't have drand48 but have + rand. + +2005-10-21 rocky + + * lib/udf/libudf.sym: Start list of external symbols for Nicholas. + +2005-10-21 rocky + + * include/cdio/ecma_167.h, include/cdio/udf.h: udf.h: Mostly add a + couple more routines and more fields in udf_file_t ecma_167.h: more + udf_ prefixes, add extern debugger symbols. + +2005-10-21 rocky + + * lib/udf/udf_fs.c: Start some UDF routines. Very preliminary. + +2005-10-21 rocky + + * include/cdio/iso9660.h: Minor comment change. + +2005-10-21 rocky + + * include/cdio/iso9660.h: Remove some #defines covered by enums. + +2005-10-21 rocky + + * include/cdio/mmc.h, lib/driver/libcdio.sym, lib/driver/mmc.c: Turn + one more set of #define into an enum + +2005-10-21 rocky + + * include/cdio/mmc.h, lib/driver/gnu_linux.c, + lib/driver/libcdio.sym, lib/driver/mmc.c, lib/driver/mmc_private.h: + Try to regularize naming better. More mmc_ -> cdio_mmc_ Add more + debug variables to be able to get at enum values in a debugger. + +2005-10-20 rocky + + * autogen.sh: Add --include-deps based on a suggestion by Burkhard + Plaum. + +2005-10-19 rocky + + * include/cdio/udf.h: Redo UDF_BLOCKSIZE so we can use symbol in + debugging. + +2005-10-19 rocky + + * include/cdio/ecma_167.h, include/cdio/udf.h: More changes based on + use. + +2005-10-19 rocky + + * include/cdio/ecma_167.h: Add udf_fileid_desc_t: were getting + closer to being able to deal with files now. Add remaining udf_ prefixes extent_ad_{s,t} and lb_addr_{s,t} + +2005-10-19 rocky + + * include/cdio/udf.h: Add udf_close(). udf_seek_read() renamed to + udf_read_sectors(). First (lame) attempt to define UDF file entry + structure. + +2005-10-18 rocky + + * include/cdio/ecma_167.h: Typo. + +2005-10-18 rocky + + * include/cdio/ecma_167.h: Add udf_ to another type (udf_icbtag) + +2005-10-18 rocky + + * include/cdio/ecma_167.h: More changes based on use. + +2005-10-18 rocky + + * src/cd-paranoia/Makefile.am: Not sure if this commit is correct + and/or why it should be needed (if it is correct). We note a dependencies between cd-paranoia and its libraries. + Section 7.4 "Program and Library Variables" of the automake 1.9.5 + manual says: If `_DEPENDENCIES' is not supplied, it is computed by Automake. The automatically-assigned value is the contents of `_LDADD' or `_LIBADD', with most configure substitutions, `-l', `-L', `-dlopen' and `-dlpreopen' options removed. The configure substitutions that are left in are only `$(LIBOBJS)' and `$(ALLOCA)'; these are left because it is known that they will + not cause an invalid value for `_DEPENDENCIES' to be generated. + +2005-10-17 rocky + + * lib/iso9660/libiso9660.sym: Allow folks to refer to and use + ISO_STANDARD_ID + +2005-10-17 pjcreath + + * lib/paranoia/isort.h: Added comments to the sort_info_t macros, + including the scary pointer arithmetic that makes ipos() tick. + +2005-10-17 pjcreath + + * lib/paranoia/paranoia.c: Extensively commented cdparanoia's stage + 1 matching. No code changes apart from added white space for + improved readability. Comments containing "???" suggest areas for + further study and documentation. + +2005-10-17 pjcreath + + * test/check_paranoia.sh.in: Changed the underrun+jitter test to use + small jitter, since medium jitter is now broken. The test should be + returned to its former rigor (if not better) once we squash the + medium jitter bug. + +2005-10-17 rocky + + * include/cdio/ecma_167.h: Add a couple more udf_ prefixes to some + types. + +2005-10-17 rocky + + * include/cdio/ecma_167.h: Add constants for some string #defines. + +2005-10-17 rocky + + * libudf.pc.in: Standard dance for pkg-config and libudf. + +2005-10-17 rocky + + * NEWS: What's shaken. + +2005-10-17 rocky + + * include/cdio/ecma_167.h: Shortten some field names, add udf_ + prefixes to aid with namespace problem; turn logical volume + descriptor content use into something more useable. + +2005-10-17 rocky + + * src/cdda-player.c: artist field was clobbering author field in + list. Uninitialized title/artist data cause core dumps. + +2005-10-16 rocky + + * src/Makefile.am: One more libgetopt for BSD from Steve Schultz. + +2005-10-16 rocky + + * include/cdio/ecma_167.h: Datatypes closer to matching terms used + in ECMA 167 spec. Combine/remove duplicate tag identifer + definitions. + +2005-10-16 rocky + + * configure.ac, src/Makefile.am, src/cd-paranoia/Makefile.am: BSDI + needs to test for libgnugetopt. Patch from Steven Schultz + +2005-10-15 rocky + + * lib/paranoia/isort.c, lib/paranoia/isort.h: Analysis and comments + courtesy of Peter J. Creath, again. (I believe this will be the last + commit I'll make on his behalf.) + +2005-10-14 rocky + + * include/cdio/paranoia.h, lib/paranoia/paranoia.c: Minor formatting + changes. + +2005-10-14 rocky + + * lib/paranoia/paranoia.c: Many informative comments courtesy of + Peter J. Creath. External accessible routines renamed to their libcdio name. + +2005-10-14 rocky + + * include/cdio/paranoia.h: Revise as per analysis of Peter J. + Creath. + +2005-10-13 rocky + + * include/cdio/ecma_167.h, include/cdio/udf.h: ecma_167.h: doxygen + description changes a little. udf.h: First external function added. + +2005-10-13 rocky + + * include/cdio/Makefile.am, include/cdio/ecma_167.h: ecma_167.h: + shorten some tags based on use Makefile.am: add udf.h - Oops that + file will be added in the next commit. + +2005-10-13 rocky + + * include/cdio/ecma_167.h: Already 1st slight improvement: move + #include after test if we've been included before. + +2005-10-13 rocky + + * include/cdio/ecma_167.h: The top-level interface header for + libudf: the UDF library; applications include this. First file checked in towards UDF support! (Admittedly not very + exciting.) + +2005-10-12 rocky + + * include/cdio/cdda.h, include/cdio/iso9660.h: Fix some typos. + +2005-10-12 rocky + + * lib/iso9660/iso9660_fs.c: pathname ->psz_name + +2005-10-08 rocky + + * lib/paranoia/isort.c, lib/paranoia/isort.h, + lib/paranoia/paranoia.c, libpopt.m4: libpopt no longer use sort_link + -> sort_link_t. + +2005-10-07 rocky + + * src/cd-paranoia/cd-paranoia.c: Let compiler figure out size of + dispcache. + +2005-10-07 rocky + + * lib/driver/read.c: All multiple-block reading routines now return + success when asked to read 0 blocks and the lsn's are valid. Idea + suggested by Peter J. Creath. + +2005-10-07 rocky + + * lib/driver/read.c: Two patches from Peter J. Creath Fix bug in handling arithmetic with unsigned numbers Return success if reading 0 audio blocks. + +2005-10-06 rocky + + * src/cd-read.help2man: Fill in manual page more. + +2005-10-06 rocky + + * src/Makefile.am, src/cd-drive.help2man, src/cd-info.help2man, + src/iso-info.help2man, src/iso-read.help2man: Add AUTHOR field to + help2man's + +2005-10-06 rocky + + * src/cd-read.c, src/iso-read.c: More stdout->stderr and + exit(EXIT_INFO) on help. + +2005-10-06 rocky + + * src/Makefile.am, src/cd-drive.c, src/cd-drive.help2man, + src/cd-info.c, src/cd-info.help2man, src/iso-info.c, + src/iso-info.help2man, src/util.c, src/util.h: Improve manual pages. * help output needs to be to stdout not stderr for help2man + (*.c,*.h) * Add EXIT_INFO return code. (*.c,*.h) * Start filling out man pages, e.g. add SEE ALSO. *.help2man * Remove non-existent reference to Info pages Makefile.am + +2005-10-06 rocky + + * example/C++/Makefile.am: Was building paranoia programs when + --without-cd-paranoia was given. + +2005-10-05 rocky + + * NEWS: What's just gone on. + +2005-10-05 rocky + + * MSVC/cd-info.vcproj, Makefile.am, THANKS, configure.ac, + lib/driver/osx.c, src/Makefile.am, src/cd-drive.c, src/cd-info.c, + src/cd-paranoia/Makefile.am, src/cd-paranoia/cd-paranoia.c, + src/cd-paranoia/getopt.c, src/cd-paranoia/getopt.h, + src/cd-paranoia/getopt1.c, src/cd-read.c, src/iso-info.c, + src/iso-read.c, src/util.h: Remove libpopt. cd-drive, cd-info: some + source option bug fixes osx.c: bug in duplicate free in add-device Patches and bug fixes courtesy Peter J. Creath + +2005-10-05 rocky + + * lib/paranoia/paranoia.c: Just a little more clear about the + enum/#define thing. + +2005-10-05 rocky + + * lib/paranoia/paranoia.c: Use #defines (and enums for debugging) + for paranoia read flags. Patch from Peter J. Creath. + +2005-10-04 rocky + + * include/cdio/rock.h, lib/iso9660/rock.c: Some provision for + handling Rock-Ridge device numbers. + +2005-10-04 rocky + + * lib/cdda_interface/interface.c, lib/paranoia/paranoia.c: Remove + the comments about the bug that was just addressed. Thanks again to + Peter J. Creath + +2005-10-03 rocky + + * lib/cdda_interface/cddap_interface.c, lib/paranoia/paranoia.c: Bug + fix in overallocated analyzed and fixed courtesy of Peter J. Creath + +2005-09-30 rocky + + * configure.ac: Add doxygen file identification to + cdio/cdio_config.h. + +2005-09-30 rocky + + * configure.ac: Add darwin8* to list - thanks to Peter J. Creath; + Oh, and we are iIn version 0.77cvs now + +2005-09-30 rocky + + * lib/driver/osx.c: Remove double free of str_bsd_path. Thanks to + Peter J. Creath for finding/fixing. + +2005-09-24 rocky + + * doc/how-to-make-a-release.txt: Wrong directory - ouch. + +2005-09-23 rocky + + * NEWS, configure.ac: Final preparation for 0.76 release. + +2005-09-22 rocky + + * NEWS: Release date. + +2005-09-22 rocky + + * libcdio_cdda.pc.in: Reinstate -lm in libcdio_cdda.pc + +2005-09-22 rocky + + * libiso9660.pc.in: Needs libcdio library. + +2005-09-22 rocky + + * libcdio_cdda.pc.in, libcdio_paranoia.pc.in: libcdio_paranoia and + libcdio_cdda need to include libcdio + +2005-09-22 rocky + + * libcdio_cdda.pc.in: Remove potential -lm as it should be linked in + to the library now. + +2005-09-21 nboullis + + * lib/cdda_interface/Makefile.am: Link libcdio_cdda with libm as + needed for cos and sin. + +2005-09-21 rocky + + * example/C++/paranoia.cpp, example/paranoia.c, + include/cdio/cdda.h, include/cdio/paranoia.h, test/testparanoia.c: + Move lower-level cdrom_drive_t from paranoia.h into cdda.h This may + cause some incompatibilty in applications that did #include + without #include As of now it's okay to just #include or include + both, but #includ'ing only will be a problem. + +2005-09-21 rocky + + * NEWS, configure.ac, libcdio_cdda.pc.in: Add -lm in libcdio_cdda + where it's needed. + +2005-09-20 nboullis + + * lib/paranoia/Makefile.am: Fix the version of symbols in the + libcdio_paranoia library. + +2005-09-20 rocky + + * lib/cdda_interface/Makefile.am: Wrong name. + +2005-09-20 rocky + + * lib/paranoia/Makefile.am: Wrong name. + +2005-09-20 rocky + + * NEWS, example/.cvsignore, example/C++/.cvsignore, + lib/cdda_interface/Makefile.am, + lib/cdda_interface/libcdio_cdda.sym, lib/iso9660/Makefile.am, + lib/iso9660/iso9660.c, lib/paranoia/Makefile.am, + lib/paranoia/libcdio_paranoia.sym, lib/paranoia/p_block.c, + lib/paranoia/p_block.h: Add --with-versioned-libs for + libcdio_paranioa and libcdio_cdda Remove use of "new" even in + private C parts. Changes and patch from Nicholas Boullis. + +2005-09-18 rocky + + * NEWS: [no log message] + +2005-09-18 rocky + + * src/cd-info.c, src/cd-read.c: The type of (option) opt needs to be + int not char and this is noticable on ppc where char is unsigned by + default. Furthermore, poptGetNextOpt() returns an int, not a char. Bug noticed and patch all thanks to Nicolas Boullis. + +2005-09-18 rocky + + * configure.ac: Change needed for building cdda-player: -lcdrom + needs to come after -ldvd Problem determination and patch all from Steve Schultz. Thanks! + +2005-09-17 rocky + + * NEWS, include/cdio/types.h, lib/cdda_interface/Makefile.am, + lib/driver/Makefile.am, lib/iso9660/Makefile.am: include + only if not C++. + +2005-09-17 rocky + + * configure.ac: disable cdda_player if lib curses test fails. + Previous position of test was faulty. + +2005-09-17 rocky + + * NEWS: Allow building cd-paranoia if Perl is not installed. + +2005-09-17 rocky + + * configure.ac: Change of heart. Stay with CVS until right up until + release. + +2005-09-17 rocky + + * configure.ac, src/cd-paranoia/Makefile.am, + src/cd-paranoia/usage-copy.h: Allow building cd-paranoia even if + Perl isn't installed. (Sad in this day and age one still can't + assume Perl.) + +2005-09-16 rocky + + * configure.ac, example/C++/Makefile.am, example/Makefile.am: + configure.ac: make it explicit that --without-cd-paranoia also means + without the library If --without-cd-paranoia don't try to build paranoia programs in + example and example/C++. Thanks to Elio Blanca for reporting the problems. + +2005-09-15 rocky + + * NEWS: [no log message] + +2005-09-15 rocky + + * configure.ac, example/Makefile.am, include/cdio/rock.h, + lib/iso9660/Makefile.am, lib/iso9660/iso9660_fs.c, src/cd-info.c, + src/cdda-player.c, src/cddb.c, src/util.c, test/check_cue.sh.in, + test/check_iso.sh.in: Add option to disable Rock-Ridge support + --disable-rock Add IS_ISSOCK() or S_ISLNK() macros for Rock-Ridge when environment + doesn't have it, e.g. MSYS 1.0.10 with MinGW 3.4.2. Go over --enable settings. --disable-cpp-progs now works. Require libcddb 1.0.1 or better + +2005-09-09 rocky + + * NEWS: What's new in 0.76 + +2005-09-09 rocky + + * THANKS: Add Diego 'Flameeyes' Petten� + +2005-08-28 rocky + + * lib/driver/MSWindows/aspi32.c: Remove warning: "use of cast + expressions as lvalues is deprecated" Reports have it that gcc 4 + doesn't tolerate this. + +2005-08-27 rocky + + * example/paranoia.c, example/paranoia2.c: cosmetic: remove + extraneous space at end of file. + +2005-08-27 rocky + + * example/C++/Makefile.am, example/C++/paranoia.cpp, + example/C++/paranoia2.cpp: Add C++ versions of paranoia.c and + paranioa2.c + +2005-08-27 rocky + + * lib/cdda_interface/scan_devices.c: Get device name if none + supplied in cdio_cddap_indentify. Check for more error conditions + and update doc to reflect that the error return is NULL. + +2005-08-27 rocky + + * include/cdio/cdda.h, include/cdio/rock.h, include/cdio/xa.h: Make + C++ compatible. + +2005-07-23 rocky + + * lib/driver/FreeBSD/freebsd.h, lib/driver/FreeBSD/freebsd_cam.c, + lib/driver/FreeBSD/freebsd_ioctl.c: Some small type and variable + name changes. + +2005-07-23 rocky + + * lib/driver/gnu_linux.c: Ooops -- syntax error. + +2005-07-23 rocky + + * lib/driver/FreeBSD/freebsd_ioctl.c, lib/driver/gnu_linux.c: Doc + changes. + +2005-07-23 rocky + + * lib/driver/FreeBSD/freebsd_ioctl.c: Patch from Diego 'Flameeyes' + Petten� to eject_media_freebsd_ioctl(): Allegedly this works better than the CAM mode eject; CAM gets the + error "Device not ready" when trying to eject an empty CD-ROM drive. We make use of an already open file descriptor to the CD-ROM instead + of opening a new one (else we have two file descriptor open, so when + it launch the ioctl() to eject the device it results busy because of + the other fd). Also corrects the documentation comment about the return value. + +2005-07-15 rocky + + * configure.ac: Open season for changes. Now in 0.76cvs land + +2005-07-15 rocky + + * example/C++/.cvsignore: [no log message] + +2005-07-15 rocky + + * example/C++/Makefile.am, example/C++/device.cpp: "Port" device.c + into C++. + +2005-07-11 rocky + + * NEWS: Add release date for 0.75 + +2005-07-11 rocky + + * configure.ac: Get ready for 0.75 release. + +2005-07-11 rocky + + * TODO: Reorder and revise + +2005-07-11 rocky + + * doc/libcdio.texi: Note libcdio_paranoia and libcdio_cdda. + +2005-07-10 rocky + + * README: Small typos. + +2005-07-10 rocky + + * README: Note existance and libcdio use in gmerlin and mplayerxp. + +2005-07-09 rocky + + * NEWS: Add libcddb and cd-paranoia changes. + +2005-07-09 rocky + + * src/cdda-player.c, src/cddb.c: Changes for libcddb 1.1.0 API + change. Thanks to Chris Clayton for the patch. + +2005-07-09 rocky + + * src/cd-paranoia/cd-paranoia.c, src/cd-paranoia/usage.txt.in: Now + check that integer arguments are integers and are within range. + Fixes to --mmc-timeout (-m) option. Put optstring in alphabetic + order. + +2005-07-07 rocky + + * example/tracks.c: Correct uninitialized variable caught by gcc 4 + +2005-07-07 rocky + + * lib/driver/Makefile.am: Conservative setting for library. + +2005-07-07 rocky + + * lib/driver/gnu_linux.c: Remove gcc 4 warning + +2005-07-07 rocky + + * NEWS: remove gcc 4.0 warnings + +2005-07-07 rocky + + * lib/driver/image/nrg.c: Correct test caught by gcc 4.0 + +2005-07-07 rocky + + * lib/paranoia/paranoia.c: Remove gcc 4 warnings + +2005-07-03 rocky + + * src/cd-info.c: Make compilation without CDDB work. + +2005-07-02 rocky + + * NEWS: Note mmc and cd-paranoia timeout changes + +2005-06-28 rocky + + * src/cd-info.c: CDDB errors should not terminate cd-info. + +2005-06-26 rocky + + * src/cd-paranoia/cd-paranoia.c, src/cd-paranoia/usage.txt.in: + cd-paranoia: Add option --mmc-timeout (-m) to set MMC timeout. + +2005-06-26 rocky + + * NEWS, include/cdio/mmc.h, lib/driver/libcdio.sym, + lib/driver/mmc.c: Allow the MMC timeout to be adjusted by the + application. + +2005-06-25 rocky + + * lib/driver/Makefile.am: Patch to make --disable-shared and + --enable-static work with --with-versioned-libs + +2005-06-25 rocky + + * NEWS: update + +2005-06-11 rocky + + * lib/driver/MSWindows/win32.c, lib/driver/MSWindows/win32.h, + lib/driver/MSWindows/win32_ioctl.c: Attempt getting audio port + volume levels. + +2005-06-08 rocky + + * src/cd-info.c, test/testdefault.c: Remove more valgrind-caught + erroneous free()'s. + +2005-06-08 rocky + + * lib/driver/image/cdrdao.c, lib/driver/image/nrg.c: Remove a couple + more valgrind-caught memory leaks + +2005-06-08 rocky + + * lib/driver/image/nrg.c: Remove valgrind-caught invalid memory + reference. + +2005-06-07 rocky + + * lib/driver/gnu_linux.c: Remove a valgrind-caught memory leak. + +2005-06-07 rocky + + * lib/iso9660/iso9660_fs.c: A couple of flawfinder errors. Use + sizeof instead of strlen. Fold strncat into preceding snprintf. + +2005-05-16 rocky + + * configure.ac: Now in 0.75cvs land. + +2005-05-16 rocky + + * lib/driver/_cdio_generic.c: Bug in getting CD-Text make sure TOC + is read before trying to get CD-Text info. Problem reported by + Christian Moser. + +2005-05-13 rocky + + * example/audio.c: Remove warning that this may be uninitialized. + +2005-05-13 rocky + + * NEWS: It's Friday the 13th! + +2005-05-13 rocky + + * configure.ac: Get ready for 0.74 Release. + +2005-05-09 rocky + + * lib/driver/FreeBSD/freebsd.c: Heiner reports that FreeBSD's + passopen() and xptopen() don't allow nonblocking access so + O_NONBLOCK might do harm. But it's just a guess pending what others + discover/report. + +2005-05-09 rocky + + * lib/driver/bsdi.c: Add O_NONBLOCK on sms's recommendation + +2005-05-08 rocky + + * lib/driver/FreeBSD/freebsd_cam.c: Hopefully a better error message + on a transport failed. + +2005-05-08 rocky + + * lib/driver/FreeBSD/freebsd.c: cdio_generic_init interface + parameter added. Noticed by Heiner. + +2005-05-08 rocky + + * THANKS: Add Burkhard Plaum + +2005-05-08 rocky + + * NEWS: What's up with 0.74 Add dates of releases and CVS ID line. + +2005-05-07 rocky + + * lib/driver/FreeBSD/freebsd.c: Was converting in the wrong + direction. + +2005-04-30 rocky + + * src/cd-drive.c: One more small change. + +2005-04-30 rocky + + * src/cd-drive.c: Try again. + +2005-04-30 rocky + + * src/cd-drive.c: Show MMC level for single drive queries too. + +2005-04-30 rocky + + * example/Makefile.am, include/cdio/mmc.h, lib/driver/libcdio.sym, + lib/driver/mmc.c, src/cd-drive.c: Add routine to report MMC + capabilities of a drive. Add that to the cd-drive program. + +2005-04-30 rocky + + * include/cdio/cdda.h, lib/cdda_interface/interface.c, + lib/cdda_interface/scan_devices.c: Simplify endian determination - + thanks to suggestions of Steve Schultz Remove recently added field is_scsi which isn't in cdparanoia + +2005-04-30 rocky + + * example/Makefile.am, test/Makefile.am: Comment typo. + +2005-04-28 rocky + + * configure.ac: We really should be in 0.74cvs by now. + +2005-04-28 rocky + + * include/cdio/cdda.h, lib/cdda_interface/interface.c, + lib/cdda_interface/scan_devices.c: An ATAPI drive (_NEC , DVD_RW + ND-3520A, 1.04, SCSI CD-ROM) was getting set as big endian although + it appeared not to, possibly because of SCSI emulation. We now test for SCSIness in addition to ATAPIness as both can occur. Added field in cdrom_device structure for SCSIness and that's tested + before unconditionally setting drive bigendian-ness. + +2005-04-27 rocky + + * doc/glossary.texi, include/cdio/util.h: glossary.texi: CDTEXT -> + CD Text util.h: allow getting larger sector count sizes. CD's new + 900MB could exceed 16-bits. + +2005-04-25 rocky + + * include/cdio/cdtext.h, lib/driver/cdtext.c, + lib/driver/libcdio.sym: From Burkhard Plaum: 1. Fix a crash, which happened when cdtext_get() was called for an + emtp= y (i.e. NULL) field. 2. Add another function cdtext_get_const(), which returns a const + point= er and avoids too much strcpying (apps may want only to TEST if a field is present or have their own string management routines). + +2005-04-23 rocky + + * lib/driver/_cdio_generic.c, lib/driver/generic.h, + lib/driver/gnu_linux.c, lib/driver/osx.c, lib/driver/solaris.c: + Patch from Burkhard Plaum: 1. In the function is_cdrom_linux(...) in the file + lib/driver/gnu_linux.c, the CDROMREADTOCHDR ioctl gets called, which + fails when the drive is empty. The CDROM_GET_CAPABILITY ioctl always + succeeds for CDrom drives and fails for hard disks etc. 2. For some reason, at least my (GNU/Linux 2.6.10) Kernel fails to open empty drives, when only O_RDONLY is used. Changing the open + flag to O_RDONLY|O_NONBLOCK, the call succeeds also for emtpy + drives. By the way, the cdrom header file in the kernel says + explicitely, that O_RDONLY|O_NONBLOCK should used whenever a cdrom + is touched. rocky: also made a change to eject to continue even if we can't get + the drive status -- which we can't with an empty CD-ROM drive. + +2005-04-22 rocky + + * configure.ac: Another autoconf bug. I hate autoconf. + +2005-04-22 rocky + + * configure.ac: Testing wrong variable in showing whether paranoia + is set to be built. + +2005-04-22 rocky + + * configure.ac: Order of ncurses/curses headers should match order + of ncurses/curses library? + +2005-04-22 rocky + + * configure.ac, src/cdda-player.c: Add test to see if curses has + keypad(). May break on Solaris - we'll see. Fix from discussion + with Steve Schultz + +2005-04-21 rocky + + * src/cd-paranoia/cd-paranoia.c: Ooops. Remove duplicate free + +2005-04-18 rocky + + * doc/libcdio.texi: Remove free() that is no longer needed. Also + correct/add C++ names of example programs. + +2005-04-17 rocky + + * src/cdda-player.c: Wasn't allowing last track to get played. + +2005-04-16 rocky + + * src/.cvsignore: Add cdda-player binary + +2005-04-15 rocky + + * NEWS: Get ready for 0.73 release. + +2005-04-15 rocky + + * lib/iso9660/iso9660_fs.c: Fix bug if we don't have Joliet around. + +2005-04-14 rocky + + * lib/driver/FreeBSD/freebsd.c: Remove unused variable. + +2005-04-14 rocky + + * lib/driver/FreeBSD/freebsd.c: gcc 2.95 compatibility - decls + before statements. + +2005-04-14 rocky + + * configure.ac: Get ready for 0.73 release. + +2005-04-11 rocky + + * test/Makefile.am: Seems to force executable shell better. + +2005-04-11 rocky + + * test/check_cue.sh.in, test/check_fuzzyiso.sh, + test/check_nrg.sh.in, test/check_paranoia.sh.in: Changes to make + Solaris /bin/sh regression test work. + +2005-04-11 rocky + + * example/audio.c, example/drives.c, example/paranoia.c, + example/paranoia2.c, src/cd-drive.c, src/cdda-player.c: Misc memory + issues + +2005-04-11 rocky + + * NEWS, lib/driver/device.c, test/testparanoia.c: testparanoia.c: + free() moved inside library where it belongs. others: trivial + changes. + +2005-04-11 rocky + + * src/cd-info.c: Small output format change. + +2005-04-11 rocky + + * src/cd-info.c: Free libcddb regexp memory. + +2005-04-11 rocky + + * lib/driver/device.c: trivial format change. + +2005-04-11 rocky + + * lib/driver/device.c: More memory management stuff. + +2005-04-10 rocky + + * src/cdda-player.c: Another valgrind-caught leak. + +2005-04-10 rocky + + * lib/driver/device.c: Correct FreeBSD table initialization. Chalk + another up for valgrind. Fix memory leak in cdio_free_device_list(). + +2005-04-09 rocky + + * lib/driver/image/cdrdao.c: Small valgrind-caught memory leak. + +2005-04-05 rocky + + * lib/driver/FreeBSD/freebsd.c, lib/driver/FreeBSD/freebsd_cam.c, + lib/driver/device.c: FreeBSD audio control patches from Heiner. + +2005-03-31 rocky + + * src/cdda-player.c: Impliment -l (list tracks). + +2005-03-29 rocky + + * lib/driver/FreeBSD/freebsd.c, lib/driver/gnu_linux.c: freebsd.c: + forgot initialization. correct one of the doxygen comments. + +2005-03-29 rocky + + * lib/driver/Makefile.am, lib/iso9660/Makefile.am: Set libraries for + revision before release. Interfaces in libcdio and iso9660 have been + added so bump, current (and set revision and age 0). + +2005-03-23 rocky + + * src/cdda-player.c: Don't know why cd_close was in play_track(). + +2005-03-23 rocky + + * src/cdda-player.c: Remove compiler warning about uninitialized + variable. + +2005-03-23 rocky + + * lib/driver/bsdi.c, lib/driver/cdio_private.h: Remove internal + "close_tray" function as this is external only. Now that close_tray + is done right the prototype can be like the others. + +2005-03-23 rocky + + * lib/driver/cdtext.c, lib/driver/cdtext_private.h, + lib/driver/mmc.c: loop over cdtext using length reported back by MMC + TOC command. Test sequence number only for valid blocks. + cdtext_private.h: add enumeration to facilitate debugging cdtext.c: + On Windows CD-Text was off by 4. Hack for this. + +2005-03-22 rocky + + * src/cdda-player.c: Make expression more explicit. Warning on gcc + 2.95 looks like a miscompile. + +2005-03-22 rocky + + * src/cdda-player.c: Fix up return code status in close tray. + +2005-03-22 rocky + + * lib/driver/bsdi.c: Pass back return code on command. + +2005-03-22 rocky + + * lib/driver/bsdi.c, lib/driver/device.c: Fix up BSDI code for + closing tray. All the hard work really due to Steve Schultz. + +2005-03-22 rocky + + * src/cdda-player.c: Ability to toggle list display mode. + +2005-03-21 rocky + + * include/cdio/types.h: Note BCDness of msf_t + +2005-03-21 rocky + + * doc/glossary.texi, doc/libcdio.texi: Add info on: cdda-player, + Rock Ridge Extensions. Note our MSF structure peculiarity. Remove + remark that we don't support audio controls - we now do. Other miscellaneous revisions too. + +2005-03-21 rocky + + * include/cdio/audio.h, include/cdio/device.h, include/cdio/mmc.h, + include/cdio/read.h: Doxygen lint corrections. + +2005-03-21 rocky + + * src/cdda-player.c: Some small changes to update list when track + changes. Probably a lot more could be done in terms of having + multiple disc views. + +2005-03-21 rocky + + * lib/driver/MSWindows/win32_ioctl.c: Not sure why we set the + loglevel to debug before a DVD STRUCT PHYSICAL. Remove it. + +2005-03-21 rocky + + * lib/driver/bsdi.c: Keep up to date with recent changes in audio + subchannel msf. + +2005-03-21 rocky + + * lib/driver/FreeBSD/freebsd.c: Typo in field name. Thanks again to + Steve Schultz. + +2005-03-19 rocky + + * src/cdda-player.c: Small change to make currently playing track + stand out more. + +2005-03-19 rocky + + * src/cdda-player.c: Make sure reading non-interactive subchannel + doesn't interfere with playing. + +2005-03-19 rocky + + * lib/driver/solaris.c: Revise subchannel so solaris subchannel is + libcdio msf. + +2005-03-19 rocky + + * example/audio.c, lib/driver/MSWindows/win32_ioctl.c, + lib/driver/bsdi.c, lib/driver/gnu_linux.c, lib/driver/mmc.c, + src/cdda-player.c: Revise so audio subchannel msf is msf_t (BCD + encoded). + +2005-03-19 rocky + + * configure.ac: Horrible hack until I can figure out how to generate + cdio/cdio_config.h correctly. + +2005-03-19 rocky + + * lib/driver/bsdi.c, lib/driver/device.c: Remove gcc 2.95 warnings + on BSDI + +2005-03-19 rocky + + * configure.ac, example/audio.c, include/cdio/.cvsignore, + include/cdio/Makefile.am, include/cdio/audio.h, + include/cdio/types.h, lib/driver/FreeBSD/freebsd.c, + lib/driver/MSWindows/win32_ioctl.c, lib/driver/bsdi.c, + lib/driver/mmc.c, src/cd-info.c, src/cdda-player.c: Revise audio + subchannel structure to remove lba uniion since we don't support + returning LBA's inside the structure. include/types.h: use cdio_config.h if none was supplied. + +2005-03-18 rocky + + * lib/driver/bsdi.c: audio absolute relative frame on BSDI + addressed. + +2005-03-18 rocky + + * lib/driver/bsdi.c, lib/driver/cdio_private.h: BSDI eject works, + more audio stuff working. + +2005-03-18 rocky + + * src/cdda-player.c: Initialize volume_level to squelch compiler + warning + +2005-03-18 rocky + + * NEWS: [no log message] + +2005-03-18 rocky + + * lib/driver/_cdio_stream.c, lib/driver/read.c, src/cd-drive.c, + src/cd-info.c, src/iso-info.c: src/* gl_default_log_handler defined + only once. lib/dirver/*.c: looks to me like a cosmetic change but + supposedly it helps on Fedora Core 4 test1 Bug # 12363: See: + http://savannah.gnu.org/bugs/?func=detailitem&item_id=12363 + +2005-03-18 rocky + + * include/cdio/types.h: Apparently some are depending on + sizeof(bool) to be 1 byte. I don't see this in libcdio, but I + suppose it's a possibility. In gcc3 enums are 4 bytes. This patch + from Tim Potter forces sizeof(bool) to be 1 byte. + +2005-03-17 rocky + + * lib/driver/MSWindows/win32_ioctl.c: Reduce verbosity on disc mode + detection + +2005-03-17 rocky + + * lib/driver/FreeBSD/freebsd.c: missing declaration + +2005-03-17 rocky + + * src/util.c: Don't really detect Burn-proof yet. + +2005-03-17 rocky + + * lib/driver/device.c: remove non-const warning. + +2005-03-17 rocky + + * lib/driver/bsdi.c, src/cdda-player.c: BSDI: add audio controls. + cdda-player.c: gcc > 3.0 change. + +2005-03-17 rocky + + * src/cdda-player.c: C-Preprocessor syntax errors when using + ncurses.h + +2005-03-17 rocky + + * configure.ac, src/cdda-player.c: Check for ncurses.h header (in + addition to curses.h). Had a problem (on Solaris) where both libcurses and libncurses were + around but the curses.h header (from libcurses) was installed. + +2005-03-16 rocky + + * example/audio.c, src/cdda-player.c: Add setting volume and showing + the subchannel when in non-interactive mode. + +2005-03-15 rocky + + * src/cdda-player.c: Add status on play_tracks + +2005-03-15 rocky + + * example/audio.c, src/cdda-player.c: *.c: return status of + operations. Exit code is set on operation failure. cdda-player.c: + debug and verbose change libcdio loglevel verbosity. + +2005-03-15 rocky + + * lib/driver/gnu_linux.c: Remove duplicate open on CD. Some warnings + turned into info messages. Remove unnecessary \n's. + +2005-03-15 rocky + + * example/README: Add audio.c + +2005-03-15 rocky + + * example/audio.c: Sample program to show audio controls. + +2005-03-15 rocky + + * example/Makefile.am, src/cd-info.c, src/cdda-player.c: example: + add sample audio program. cd-info.c cdda-player.c: read_subchannel sets format MSF. So caller + no longer has to. + +2005-03-15 rocky + + * lib/driver/gnu_linux.c, lib/driver/solaris.c: read_subchannel sets + format MSF. So caller no longer has to. + +2005-03-15 rocky + + * lib/driver/MSWindows/win32_ioctl.c: Get read_subchannel working - + was thrown off by Microsoft's lousy poor documentation of + IOCTL_READ_Q_SUBCHANNEL + +2005-03-14 rocky + + * src/cdda-player.c: Show volume in display status output. + +2005-03-14 rocky + + * include/cdio/audio.h, include/cdio/device.h, lib/driver/audio.c, + lib/driver/device.c: Allow returned parameters to be NULL. + +2005-03-13 rocky + + * lib/driver/cdio_private.h, lib/driver/osx.c: A hacky OSX close + drive routine. It doesn't handle the actual drive paramater because + we don't really know how to pass that to druti. + +2005-03-13 rocky + + * src/cdda-player.c: Remove warnings from mvprintw (as seen on OSX). + +2005-03-13 rocky + + * src/cdda-player.c: Use CD-Text for disc info too. + +2005-03-12 rocky + + * src/cdda-player.c: Show CD-Text info. + +2005-03-12 rocky + + * src/cdda-player.c: Off by one on track duration. + +2005-03-12 rocky + + * src/cdda-player.c: Curses improvements. Can now show key/help and + list of tracks. + +2005-03-12 rocky + + * src/cd-info.c, src/cdda-player.c, src/cddb.c, src/cddb.h: Put move + libcddb init routine out of cdda-player.c and cd-info.c and into + cddb.{c,h} + +2005-03-11 rocky + + * src/cd-info.c, src/cdda-player.c, src/cddb.h: Towards making a + common init_cddb routine. + +2005-03-11 rocky + + * lib/driver/FreeBSD/freebsd.c: Forgot close of file descriptor. + +2005-03-11 rocky + + * lib/driver/FreeBSD/freebsd.c, lib/driver/cdio_private.h: Possible + filling out of FreeBSD audio control routines. + +2005-03-10 rocky + + * configure.ac, src/Makefile.am: Check for libncurses as well as + libcurses and add whatever is found to cdda-player libraries. + +2005-03-09 rocky + + * lib/driver/libcdio.sym: Correct export name. + +2005-03-09 rocky + + * lib/driver/MSWindows/win32.c: Compilation fix for non MS OS's. + +2005-03-09 rocky + + * example/mmc1.c, example/mmc2.c: mmc1.c: use DEVICE_DRIVER rather + than DEVICE_UNKNOWN. mmc2.c: show use of "mmc_have_interface" + +2005-03-09 rocky + + * include/cdio/mmc.h, lib/driver/libcdio.sym, lib/driver/mmc.c: Add + MMC START STOP interface. + +2005-03-09 rocky + + * configure.ac: Add --without-cdda-player. Dependency on curses now + works. + +2005-03-09 rocky + + * lib/driver/MSWindows/win32.c: Use mci command for close for now. + +2005-03-09 rocky + + * lib/driver/MSWindows/win32.c, lib/driver/device.c, + src/cdda-player.c: win32.c: get eject working. device.c: an + additional test for a NULL pointer to be on the safe side. + cdda-player: better handling of eject. + +2005-03-08 rocky + + * lib/driver/MSWindows/win32_ioctl.c: Test for invalid file handle + on close_tray. + +2005-03-08 rocky + + * lib/driver/cdio_private.h, lib/driver/device.c, + lib/driver/gnu_linux.c, lib/driver/solaris.c: Possibly Solaris close + tray fixes. + +2005-03-08 rocky + + * lib/driver/MSWindows/win32.c: Need to make close_tray_win32 + external even when not on Windows. + +2005-03-08 rocky + + * lib/driver/MSWindows/win32.c, lib/driver/MSWindows/win32.h, + lib/driver/MSWindows/win32_ioctl.c, lib/driver/cdio_private.h, + lib/driver/device.c, src/cdda-player.c: lib/driver/device.c: bug in + close routine looping. lib/*: Modify close routine for Win32 ioctl. + src/cdda-player: add option for close cd tray and minor things + +2005-03-07 rocky + + * configure.ac, src/Makefile.am, src/cdda-player.c: Add Gerd Knorr's + cdda-player as an example program using the libcdio Audio controls. + +2005-03-07 rocky + + * include/cdio/device.h, lib/driver/cdio_private.h, + lib/driver/device.c, lib/driver/gnu_linux.c, lib/driver/libcdio.sym: + Start of a working close_tray routine. Add another routines which + returns driver id to help reduce driver scans. Reduce unneeded + driver scanning my skipping DRIVER_UNKNOWN. + +2005-03-07 rocky + + * lib/driver/MSWindows/win32.c, lib/driver/MSWindows/win32.h, + lib/driver/MSWindows/win32_ioctl.c: windows audio control + improvements: add stop and do a little better about getting + subchannel info (still needs work). Attempt close tray routine which + is still broken across the board pending reworking. + +2005-03-06 rocky + + * lib/driver/solaris.c: Initial op.funcs. NULL. Try using close tray + via CDROMSTART. + +2005-03-06 rocky + + * lib/driver/gnu_linux.c, lib/driver/solaris.c: solaris: add audio + stop gnu_linux.c: correct comment. + +2005-03-06 rocky + + * test/vcd_demo_vcdinfo.right: Revised ISO9660 and multi-session + output. + +2005-03-06 rocky + + * lib/driver/audio.c: fix prototype mismatch. + +2005-03-06 rocky + + * include/cdio/device.h, lib/driver/device.c: Was destroying device + list when getting capabilities. This should be an in parameter only. + +2005-03-06 rocky + + * src/cddb.c: Use cdio_audio_get_msf_seconds + +2005-03-06 rocky + + * include/cdio/audio.h, lib/driver/audio.c, lib/driver/libcdio.sym: + Add cdio_audio_get_msf_seconds + +2005-03-06 rocky + + * src/Makefile.am: Split out cddb stuff for inclusion in a cdda + player. + +2005-03-06 rocky + + * include/cdio/audio.h, include/cdio/device.h, + include/cdio/sector.h, lib/driver/FreeBSD/freebsd.c, + lib/driver/MSWindows/win32_ioctl.c, lib/driver/audio.c, + lib/driver/cdio_private.h, lib/driver/device.c, + lib/driver/gnu_linux.c, lib/driver/libcdio.sym, + lib/driver/solaris.c, src/cd-info.c, src/cddb.c, src/cddb.h: More + audio control corrections. + +2005-03-06 rocky + + * lib/driver/libcdio.sym: Forgot to add mmc_audio_state2str to list + of exported symbols. + +2005-03-06 rocky + + * include/cdio/mmc.h, lib/driver/mmc.c, src/cd-info.c: Add routine + to turn audio status into a string. + +2005-03-06 rocky + + * lib/driver/solaris.c: Don't rely on mmc backward compatability. + +2005-03-06 rocky + + * lib/driver/MSWindows/aspi32.c, lib/driver/MSWindows/aspi32.h, + lib/driver/MSWindows/win32.c, lib/driver/MSWindows/win32.h, + lib/driver/MSWindows/win32_ioctl.c: Don't rely on MMC backward + compatibility. + +2005-03-06 rocky + + * example/C++/iso1.cpp, example/C++/mmc1.cpp, example/C++/mmc2.cpp, + example/mmc1.c, example/mmc2.c, include/cdio/ds.h, + lib/driver/gnu_linux.c, lib/driver/mmc.c, lib/driver/mmc_private.h, + src/util.c: Don't rely on compatability with 0.72. Use new type + names. + +2005-03-05 rocky + + * test/Makefile.am, test/check_iso.sh.in, test/copying-rr.right: Add + Rock-Ridge regression test. + +2005-03-05 rocky + + * lib/driver/FreeBSD/freebsd.c: FreeBSD audio control fixes. + +2005-03-05 rocky + + * lib/driver/bsdi.c: BSDI audio control fixes. + +2005-03-05 rocky + + * lib/driver/MSWindows/win32_ioctl.c: Correct getting audio + subchannel info. + +2005-03-05 rocky + + * lib/driver/MSWindows/win32.c, src/cd-info.c: win32.c: closer to + getting audio controls working. cd-info.c: was not testing + MULTI_SESSION capability correctly. + +2005-03-05 rocky + + * test/Makefile.am: Add test Rock-Ridge ISO-9660 image + +2005-03-05 rocky + + * src/cd-info.c: Correct type mismatch: unsigned int -> lsn_t + +2005-03-05 rocky + + * : Rock-Ridge test ISO 9660. + +2005-03-05 rocky + + * src/cd-info.c, test/cdda-mcn.right, test/cdda.right, + test/check_opts0.right, test/check_opts1.right, + test/check_opts2.right, test/check_opts3.right, + test/check_opts4.right, test/check_opts5.right, + test/check_opts6.right, test/check_opts7.right, + test/isofs-m1-no-rr.right, test/isofs-m1.right, + test/monvoisin.right, test/svcd_ogt_test_ntsc.right, + test/svcdgs.right, test/vcd_demo.right, test/videocd.right: Change + multi-session output - cd-info reports LSN's, not session number. + +2005-03-05 rocky + + * include/cdio/device.h, lib/driver/cdio_private.h, + lib/driver/device.c, lib/driver/gnu_linux.c, lib/driver/solaris.c: + get_last_session returns lsn_t not session number. Add + get_track_last_session for Solaris. Correct it's play_msf. + +2005-03-05 rocky + + * include/cdio/device.h, lib/driver/cdio_private.h, + lib/driver/device.c, lib/driver/gnu_linux.c, + lib/driver/libcdio.sym, src/cd-info.c, test/cdda-mcn.right, + test/cdda.right, test/check_opts0.right, test/check_opts1.right, + test/check_opts2.right, test/check_opts3.right, + test/check_opts4.right, test/check_opts5.right, + test/check_opts6.right, test/check_opts7.right, + test/isofs-m1-no-rr.right, test/isofs-m1.right, + test/monvoisin.right, test/svcd_ogt_test_ntsc.right, + test/svcdgs.right, test/vcd_demo.right, test/videocd.right: Add API + routine to get last session number. + +2005-03-05 rocky + + * include/cdio/audio.h, lib/driver/Makefile.am, + lib/driver/{_cdio_aix.c => aix.c}, lib/driver/audio.c, + lib/driver/{_cdio_bsdi.c => bsdi.c}, lib/driver/cdio_private.h, + lib/driver/{_cdio_linux.c => gnu_linux.c}, lib/driver/{_cdio_osx.c + => osx.c}, lib/driver/{_cdio_sunos.c => solaris.c}: Revise + play_audio_msf for start/end as it should be. _cdio_*driver*.c -> + *driver*.c + +2005-03-05 rocky + + * include/cdio/audio.h, lib/driver/MSWindows/win32.h, + lib/driver/MSWindows/win32_ioctl.c, lib/driver/_cdio_linux.c, + lib/driver/audio.c, lib/driver/cdio_private.h: 1st attempt to fill + in some audio controls for Windows ioctl. + +2005-03-03 rocky + + * lib/driver/FreeBSD/freebsd.c: Towards audio controls working on + FreeBSD. + +2005-03-03 rocky + + * lib/iso9660/iso9660_fs.c: Fix syntax error if Joliet. + +2005-03-03 rocky + + * NEWS: Update. + +2005-03-03 rocky + + * configure.ac: Now use cdrom.h for BSDI libcdio library. + +2005-03-03 rocky + + * test/testiso9660.c: Better failure output messages. + +2005-03-03 rocky + + * lib/driver/_cdio_bsdi.c: Add some of the audio routines to BSDI + driver. + +2005-03-03 rocky + + * lib/iso9660/iso9660.c: Respect localtime parameter in + iso9660_get_dtime + +2005-03-03 rocky + + * lib/driver/_cdio_sunos.c: sunos -> solaris. lsn -> i_lsn + +2005-03-03 rocky + + * test/check_fuzzyiso.sh: Change to make "make distcheck" (build + outside of src directory) work. + +2005-03-02 rocky + + * test/check_paranoia.sh.in: Change to make build out of srcdir + work. + +2005-03-02 rocky + + * configure.ac, src/cd-paranoia/Makefile.am, test/check_cue.sh.in, + test/check_fuzzyiso.sh, test/check_nrg.sh.in, + test/check_paranoia.sh.in: Enable building out of srcdir. Patches + outside of test/* from Mike Castle + +2005-03-02 rocky + + * include/cdio/audio.h, include/cdio/mmc.h, + lib/driver/_cdio_linux.c, lib/driver/mmc.c, src/cd-info.c: audio.h: + redo audio volume levels a little. mmc.{c,h}: attempt to get audio + ports/selections via MMC. cd-info.c: show volume output levels in a + cleaner fashion. + +2005-03-02 rocky + + * src/util.c: Slightly more detailed capability reporting: VCD is + MODE2 FORM 1/2; PhotoCD is ability to read multisessions. + +2005-03-01 rocky + + * src/cd-info.c, test/cdda-mcn.right, test/cdda.right: Deal with + unimplemented audio status (such as on image drivers) + +2005-03-01 rocky + + * src/cd-info.c: Slight output change. + +2005-03-01 rocky + + * lib/driver/_cdio_linux.c: Put back use of + read_audio_subchannel_linux() + +2005-03-01 rocky + + * include/cdio/audio.h, include/cdio/mmc.h, + lib/driver/_cdio_bsdi.c, lib/driver/_cdio_linux.c, + lib/driver/_cdio_osx.c, lib/driver/_cdio_sunos.c, lib/driver/mmc.c, + src/cd-info.c, src/cdinfo-linux.c: mmc.c: fix up + read_audio_subchannel_mmc audio.h: more direct field names mmc.h: + add mmc_subchannel_t; scsi_mmc -> mmc cdio-linux.c: remove + deprecated from_bcd8 + +2005-03-01 rocky + + * include/cdio/device.h, include/cdio/mmc.h, include/cdio/types.h, + lib/driver/MSWindows/win32.c, lib/driver/_cdio_linux.c, + lib/driver/_cdio_sunos.c, lib/driver/libcdio.sym, lib/driver/mmc.c, + lib/driver/mmc_private.h, src/util.c: Report ability to read MCN. + Add MMC routine to read audio subchannel. + +2005-03-01 rocky + + * lib/driver/_cdio_linux.c, lib/driver/_cdio_sunos.c: _cdio_sunos.c: + add audio routines. _cdio_linux.c: small formatting changes. + +2005-03-01 rocky + + * src/cd-info.c: Don't do CD analysis if we are currently playing a + CD. + +2005-03-01 rocky + + * lib/driver/libcdio.sym: Add new audio routines. + +2005-03-01 rocky + + * lib/driver/_cdio_linux.c, lib/driver/audio.c, src/cd-info.c: + Corrections to audio. First glimpse at working (on GNU/Linux) audio + controls. + +2005-03-01 rocky + + * lib/driver/MSWindows/win32.c: read_data_sectors via (cooked) + generic read. + +2005-03-01 rocky + + * lib/driver/_cdio_sunos.c: Fix up read_data_sectors by using + generic cooked routine. + +2005-03-01 rocky + + * lib/driver/audio.c: Audio (via line output) related routines. + +2005-03-01 rocky + + * include/cdio/Makefile.am, include/cdio/audio.h, + include/cdio/mmc.h, include/cdio/types.h, lib/driver/Makefile.am, + lib/driver/_cdio_linux.c, lib/driver/cdio_private.h: Add audio + lineout controls (play, pause, volume control) + +2005-03-01 rocky + + * lib/driver/_cdio_generic.c, lib/driver/generic.h: Add + read_data_blocks via cooked mode. Seems to work better than read_cd. + +2005-02-28 rocky + + * lib/driver/_cdio_linux.c: Failed attempt to make read_data_sectors + work. + +2005-02-28 rocky + + * TODO: One down one added. Not sure overall we're making progress. + +2005-02-28 rocky + + * lib/iso9660/iso9660_fs.c: Report error when read_data_block fails. + +2005-02-28 rocky + + * lib/driver/mmc.c: Don't try to read too many blocks on MMC readcd. + +2005-02-28 rocky + + * include/cdio/util.h: Tighter declarations of variables. + +2005-02-28 rocky + + * include/cdio/device.h, lib/driver/_cdio_linux.c: More device error + return codes. More detailed errors when CDROM_SEND_PACKET fails. + +2005-02-27 rocky + + * lib/driver/MSWindows/win32.c, lib/iso9660/iso9660.c, + src/iso-info.c: win32.c: fill in read_data_blocks (use mmc routine) + iso-info.c: lint cast on output iso9660.c: deal with struct tm's + that don't have gmt_off. + +2005-02-26 rocky + + * src/util.c, test/copying.right, test/isofs-m1-no-rr.right, + test/isofs-m1.right, test/joliet-nojoliet.right, test/joliet.right, + test/monvoisin.right, test/svcd_ogt_test_ntsc.right, + test/svcdgs.right, test/vcd_demo.right, test/videocd.right: Show + seconds in ISO9660 listing. + +2005-02-26 rocky + + * lib/iso9660/rock.c: Copy last changes to + parse_rock_ridge_stat_internal(). + +2005-02-26 rocky + + * lib/iso9660/rock.c: Fix bugs in getting full symbolic link name + (when multiple directories). Remove unnecessary malloc in + realloc_symlink(). + +2005-02-26 rocky + + * src/util.c, test/isofs-m1.right, test/joliet-nojoliet.right, + test/joliet.right: Show modification time, not create time as seems + to be the common case for ls. + +2005-02-26 rocky + + * test/isofs-m1-no-rr.right, test/isofs-m1.right, + test/monvoisin.right: Time's on iso9660 have changed. + +2005-02-26 rocky + + * lib/iso9660/iso9660.c: Change to iso9660_get_dtime to make dates + on Rock-Ridge CD's match what the OS reports when mounting. A bit + was done by trial and error although it doesn't seem *inconsistent* + with standards definitions. + +2005-02-25 rocky + + * lib/driver/_cdio_sunos.c: Bug in setting blocksize - wasn't using + passed parameter. + +2005-02-25 rocky + + * include/cdio/track.h: Remove duplicate #define's + +2005-02-25 rocky + + * lib/driver/_cdio_generic.c, lib/driver/_cdio_osx.c: + _cdio_generic.c: OSX does return CDIO_CDROM_CDI_TRACK. _cdio_osx.c: fixup read_data_blocks. May have to complicate more if + we need to make a distinction between Form 1 and Form 2. Revise for + current name/variable conventions. + +2005-02-25 rocky + + * lib/iso9660/iso9660_fs.c: Erroneous parameter passed. + +2005-02-24 rocky + + * lib/driver/cdtext.c: Guard against deferencing NULL pointer. + +2005-02-24 rocky + + * lib/driver/_cdio_osx.c: Use TR_ values from cdio/cdda.h. + +2005-02-24 rocky + + * lib/driver/_cdio_osx.c: Add read_data_blocks; revise according to + current conventions. + +2005-02-23 rocky + + * lib/iso9660/iso9660.c: Don't assume all OS's have tm_gmtoff + +2005-02-22 rocky + + * NEWS, README, include/cdio/iso9660.h, include/cdio/rock.h, + lib/iso9660/iso9660.c, lib/iso9660/libiso9660.sym, + lib/iso9660/rock.c: NEWS: all that's gone on so far in 0.73cvs + README: Note paranoia and samba vfs module *.{h,c}: more debugger + symbols. Use _s convention more. + +2005-02-22 rocky + + * lib/iso9660/iso9660.c, test/isofs-m1.right, test/monvoisin.right: + iso9660_get_dtime hack: we've seen it happen that everything except + gmtoff is zero and the expected date is the beginning of the epoch. + So we accept 6 numbers being zero. I'm also not sure if using the of + the Epoch is also the right thing to do either. + +2005-02-22 rocky + + * lib/iso9660/libiso9660.sym: Missing new symbol. Thanks again to + Steve Schultz + +2005-02-22 rocky + + * include/cdio/iso9660.h, include/cdio/rock.h, + lib/iso9660/iso9660.c: More time corrections as hopefully move + towards Nirvana. + +2005-02-22 rocky + + * include/cdio/iso9660.h, lib/iso9660/iso9660.c, + lib/iso9660/rock.c, src/cd-info.c, src/util.c: Add routine for + extracing ISO 9660 long time format and probably correct the + short-time format a little. Handle Rock-Ridge time and be able to display it. This pretty much + completes the bulk of handling Rock-Ridge extensions. + +2005-02-21 rocky + + * include/cdio/iso9660.h, include/cdio/rock.h, + lib/iso9660/iso9660_fs.c, lib/iso9660/rock.c, src/cd-info.c, + src/iso-info.c, src/util.c, src/util.h: Process Rock-Ridge time + fields. Not tested or shown yet. Break out Rock Ridge fields of our + ISO9660 stat. + +2005-02-21 rocky + + * include/cdio/iso9660.h, include/cdio/rock.h, + lib/iso9660/iso9660_fs.c, lib/iso9660/rock.c, src/cd-info.c, + src/iso-info.c, src/util.c: Process symbolic links. Remove some + memory leaks. + +2005-02-20 rocky + + * example/C++/.cvsignore: [no log message] + +2005-02-20 rocky + + * lib/iso9660/iso9660.c, lib/iso9660/iso9660_fs.c, + lib/iso9660/rock.c: Fix some memory leaks caught by valgrind. Also + replace a relloc - not sure why valgrind was having problems with + that. + +2005-02-20 rocky + + * include/cdio/rock.h, lib/iso9660/rock.c, src/cd-info.c, + src/iso-info.c, src/util.c, test/Makefile.am, test/check_cue.sh.in, + test/isofs-m1-no-rr.right, test/isofs-m1.right, + test/monvoisin.right, test/svcd_ogt_test_ntsc.right, + test/svcdgs.right, test/vcd_demo.right, test/videocd.right: Correct + Rock-Ridge directory/link listing. {cd,iso}-info --no-rock-ridge + works (and with rock-ridge too) test/*.right: output is now what I + guess it's should be + +2005-02-20 rocky + + * test/joliet-nojoliet.right, test/joliet.right: Add LSNs more + places. + +2005-02-20 rocky + + * test/copying.right: Add LSN's + +2005-02-20 rocky + + * src/util.c, test/isofs-m1.right: Put in LSN's and sizes more + often. + +2005-02-20 rocky + + * src/util.c: "printf (" -> "report (stdout," + +2005-02-20 rocky + + * include/cdio/iso9660.h, include/cdio/rock.h, include/cdio/xa.h, + lib/iso9660/iso9660_fs.c, lib/iso9660/libiso9660.sym, + lib/iso9660/rock.c, lib/iso9660/xa.c, src/Makefile.am, + src/cd-info.c, src/iso-info.c, src/util.c, src/util.h, + test/copying.right, test/isofs-m1.right, + test/joliet-nojoliet.right, test/joliet.right, + test/monvoisin.right, test/svcd_ogt_test_ntsc.right, + test/svcdgs.right, test/vcd_demo.right, test/videocd.right: all: Add + iso9660_get_rock_attr_str to get an ls-like mode string for rock + ridge. {cd,iso}-info.c util.{c,h}: put common printing routine in util.c rock.h: add enum for NM flags iso9660.h: move mode_t typedef so it + can be used in rock.h xa.{c,h}: small typos. test/*: in most cases better output. On VCD's however there there is + a slight regression on displaying the filename someitmes. Will be + addressed later. + +2005-02-20 rocky + + * lib/iso9660/iso9660_fs.c, test/check_iso.sh.in, + test/joliet-nojoliet.right: [no log message] + +2005-02-20 rocky + + * example/C++/iso2.cpp, example/iso2.c: Another small + change/generalization: don't limit driver to a BIN/CUE image. + +2005-02-20 rocky + + * example/C++/iso2.cpp, example/iso2.c: Revise these for current + state-of-the-art use and show off libiso9660 library with more + compitency. We now allow one to specify the CUE file as well as file to extract. + +2005-02-20 rocky + + * example/README: Revise now that we have a separate C++ directory. + +2005-02-19 rocky + + * test/check_iso.sh.in: Add --no-header as all regression tests + probably should do (so we don't get copyright info.) + +2005-02-19 rocky + + * include/cdio/iso9660.h: Add debugging enumeration for ISO + EXTENSION masks. + +2005-02-19 rocky + + * configure.ac: Add C++ Makefile. + +2005-02-19 rocky + + * include/cdio/mmc.h: Allow C++ programs to issue mmc commands. + +2005-02-19 rocky + + * example/Makefile.am: Ooops. MMC4 wasn't supposed to get in there. + +2005-02-19 rocky + + * src/cd-info.c, src/cd-read.c, src/iso-info.c, src/iso-read.c: + cd-info.c: tolerate CDDB options even when we don't support CDDB. Better error reporting of bad options. + +2005-02-19 rocky + + * example/C++/.cvsignore, example/C++/Makefile.am, + example/C++/README, example/{iso1cpp.cpp => C++/iso1.cpp}, + example/{iso2cpp.cpp => C++/iso2.cpp}, example/{iso3cpp.cpp => + C++/iso3.cpp}, example/C++/mmc1.cpp, example/C++/mmc2.cpp, + example/Makefile.am, example/iso3.c: Move C++ files to C++ + directory. Add mmc{1,2} checking to list of C++ programs compiled. + +2005-02-19 rocky + + * lib/driver/_cdio_sunos.c: Add read_data_sectors + +2005-02-18 rocky + + * configure.ac, test/check_iso.sh.in, test/copying.right, + test/joliet-nojoliet.right, test/joliet.right: Wasn't running + ISO9660 regression tests. Output now includes file sizes. + +2005-02-18 rocky + + * src/iso-info.c: Add filesystem size --iso9660 output. + +2005-02-18 rocky + + * test/isofs-m1.right: Think this is more correct. + +2005-02-18 rocky + + * src/iso-info.c: Use translated name in directory reporting. + +2005-02-18 rocky + + * lib/iso9660/iso9660_fs.c: Remove bug in Joliet-handling when + adding Rock Ridge is not there. + +2005-02-18 rocky + + * lib/driver/mmc.c: Mode sense changes. Not sure about this though. + +2005-02-18 rocky + + * lib/iso9660/iso9660_fs.c, lib/iso9660/rock.c, src/cd-info.c: + iso9660_fs.c: reallocate filename when Rock-Ridge name is bigger. rock.c: variable name changes cd-info.c: don't translate file name when there are Rock-Ridge + Extensions. + +2005-02-17 rocky + + * lib/driver/_cdio_bsdi.c, lib/driver/libcdio.sym: Add + read_data_sectors to exported symbols and to BSDI. + +2005-02-17 rocky + + * lib/driver/cd_types.c, lib/iso9660/iso9660_fs.c, src/cd-info.c: + Remove more of the no longer needed distinction (that we sometimes + got wrong) of Mode 1 vs Mode 2 data reading. + +2005-02-17 rocky + + * include/cdio/mmc.h, include/cdio/read.h, + lib/driver/_cdio_linux.c, lib/driver/cdio_private.h, + lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/image/nrg.c, lib/driver/image_common.c, + lib/driver/image_common.h, lib/driver/libcdio.sym, + lib/driver/mmc.c, lib/driver/mmc_private.h, lib/driver/read.c, + lib/iso9660/iso9660_fs.c: Move forward in getting better ISO-9660 + reading by eliminating "Mode 1/2" specification in API. + +2005-02-17 rocky + + * test/check_nrg.sh.in: Ooops: added a bug in trying give more info. + Fixed now. + +2005-02-17 rocky + + * include/cdio/mmc.h, include/cdio/read.h, + lib/driver/FreeBSD/freebsd.c, lib/driver/_cdio_generic.c, + lib/driver/_cdio_linux.c, lib/driver/cdio_private.h, + lib/driver/generic.h, lib/driver/image.h, + lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/image/nrg.c, lib/driver/image_common.c, + lib/driver/image_common.h, lib/driver/libcdio.sym, + lib/driver/mmc.c, lib/driver/mmc_private.h, lib/driver/read.c, + lib/iso9660/iso9660_fs.c: Add routine for reading data independent + of or mode1 and mode2 format. Should help with ISO 9660 reading. + Add generic MMC READ_CD routine. Warning - even more breakage in some situations. (But there's + promise of an overall brighter future.) + +2005-02-17 rocky + + * test/check_nrg.sh.in: Show failing invocation. + +2005-02-14 rocky + + * include/cdio/iso9660.h, lib/iso9660/iso9660_fs.c, + lib/iso9660/rock.c, src/iso-info.c, test/isofs-m1.right: First + semblance of being able to handle Rock Ridge names. + +2005-02-14 rocky + + * include/cdio/iso9660.h, lib/iso9660/rock.c: Remove assumption that + OS has POSIX file definitions (mode_t, nlink_t, gid_t, uid_t, + time_t, etc.) + +2005-02-14 rocky + + * lib/driver/mmc.c: gcc < 3.0 compilation fix + +2005-02-13 rocky + + * include/cdio/iso9660.h, include/cdio/rock.h, + lib/iso9660/Makefile.am, lib/iso9660/iso9660_fs.c, + lib/iso9660/rock.c: Merge in more Rock Ridge code. Not working yet. + Hopefully not much breakage. (But there may be some especially on + less-POSIX OS's.) + +2005-02-13 rocky + + * doc/libcdio.texi: Small correction - note cd-drive better. + +2005-02-13 rocky + + * include/cdio/Makefile.am, include/cdio/iso9660.h, + include/cdio/rock.h, include/cdio/xa.h: Add header for Rock-Ridge + extensions. + +2005-02-12 rocky + + * include/cdio/iso9660.h, include/cdio/xa.h, lib/iso9660/iso9660.c, + lib/iso9660/xa.c: iso9660.h, iso9660.c, xa.c, xa.h: Add const char's + for debugging use. iso9660.h: go over yet again for more info from + the ECMA 119 spec. + +2005-02-12 rocky + + * include/cdio/iso9660.h: Add type definitions for achar, dchar and + ISO 9660 7.1.1 - ISO 7.3.3 types and use them. This frees up space + for better comments about he feild names of a PVD or SVD. + +2005-02-12 rocky + + * include/cdio/device.h, include/cdio/mmc.h: Remove doxygen + references to get_speed() routines. They don't exist and seem to + confuse people. + +2005-02-12 rocky + + * include/cdio/iso9660.h, lib/iso9660/iso9660.c, + lib/iso9660/iso9660_fs.c, lib/iso9660/iso9660_private.h, + test/check_sizeof.c: All structure tags now end in _s and we have + typedefs for all of them (ending in _t). iso9660.h: abc -> a.b.c + for ISO fields. + +2005-02-12 rocky + + * doc/libcdio.texi: Document _e, _s, and _t suffixes + +2005-02-12 rocky + + * include/cdio/xa.h: signature is probably better typed as a char + rather than a uint8_t. We now define structures with the _s suffix. + +2005-02-12 rocky + + * include/cdio/bytesex.h: Doxygen document ISO 9660 conversion + routines a tad better. + +2005-02-12 rocky + + * include/cdio/mmc.h: Correct CDB acronym. + +2005-02-12 rocky + + * doc/glossary.texi, doc/libcdio.texi: Add IDE, Command Packet and + SCSI CDB. Revise ATAPI definition. Correct acronym for CDB. + +2005-02-11 rocky + + * lib/driver/MSWindows/win32_ioctl.c, lib/driver/mmc.c: mmc.c: + mmc_mode_sense can't use cdio_have_atapi (without further check) or + else we may get an infinite recursion. win32_ioctl.c: deal with an + error message that can't be converted to a string. + +2005-02-11 rocky + + * lib/driver/MSWindows/win32.c: Stylistic changes. + +2005-02-11 rocky + + * lib/driver/MSWindows/win32.c, lib/driver/image/bincue.c, + lib/driver/image/cdrdao.c, lib/driver/image/nrg.c, + lib/driver/image_common.c, lib/driver/mmc.c, + test/check_paranoia.sh.in: Bug fix for mmc_have_interface. + checK_paranoia.sh.in: fix bug in returning success on a core dump + win32.c: some small changes - more later. image/*.c: set + run_mmc_cmd NULL explicitly. + +2005-02-10 rocky + + * include/cdio/mmc.h, lib/driver/_cdio_sunos.c, lib/driver/mmc.c: + Use solaris ioctl for blocksize set/get. Prototype corrections. + +2005-02-10 rocky + + * lib/driver/mmc.c: Think I have how to get MMC media changed worked + out. + +2005-02-10 rocky + + * include/cdio/cdio.h, include/cdio/device.h, include/cdio/mmc.h, + include/cdio/types.h, lib/cdda_interface/interface.c, + lib/driver/device.c, lib/driver/libcdio.sym, lib/driver/mmc.c, + lib/iso9660/iso9660_fs.c: Add generic mode_sense(), add + cdio_have_atapi() and use these. API number bumped Add bool_3way_t + (yes, nope, dunno) + +2005-02-09 rocky + + * lib/driver/image/nrg.c: Turn a number of the info messages into + debug messages. + +2005-02-09 rocky + + * example/.cvsignore, example/Makefile.am, example/README, + example/{iso4.c => isofuzzy.c}, include/cdio/mmc.h, + lib/driver/mmc.c, lib/driver/mmc_private.h, test/check_fuzzyiso.sh: + Add mode_sense6() and mode_sense10() MMC commands. Use them to + hopefully clean up code a little. Remove some unused MMC "private" + commands. iso4 -> isofuzzy + +2005-02-09 rocky + + * src/util.c: small formatting change + +2005-02-09 rocky + + * lib/driver/mmc.c: Add "Rigid Restricted Overwrite" string. + +2005-02-08 rocky + + * test/Makefile.am, test/check_fuzzyiso.sh: Add regression test for + fuzzy ISO detection. Probably will rename iso4 to something else. + +2005-02-08 rocky + + * example/mmc2.c, include/cdio/mmc.h, lib/driver/libcdio.sym, + lib/driver/mmc.c, src/util.c: Add enum for feature profiles. Add + feature to string conversion routines. + +2005-02-07 rocky + + * include/cdio/mmc.h: Probably "interface" is reserved in some + Windows contexts + +2005-02-07 rocky + + * src/util.c: Small formatting changes. + +2005-02-07 rocky + + * include/cdio/mmc.h, src/util.c: Add more MMC features and profiles + such as ones used by the Plextor DVDR PX-716A + +2005-02-07 rocky + + * example/.cvsignore: [no log message] + +2005-02-07 rocky + + * lib/driver/MSWindows/win32_ioctl.c, lib/driver/_cdio_linux.c: + Break out DVD detection. More verbose comments about the issues + here. + +2005-02-07 rocky + + * TODO: Revise. + +2005-02-07 rocky + + * example/mmc1.c, example/mmc2.c, include/cdio/Makefile.am, + include/cdio/mmc.h, include/cdio/scsi_mmc.h, + lib/cdda_interface/interface.c, lib/cdda_interface/scan_devices.c, + lib/driver/FreeBSD/freebsd_cam.c, lib/driver/MSWindows/aspi32.c, + lib/driver/MSWindows/win32.c, lib/driver/MSWindows/win32_ioctl.c, + lib/driver/_cdio_aix.c, lib/driver/_cdio_linux.c, + lib/driver/_cdio_sunos.c, lib/driver/libcdio.sym, lib/driver/mmc.c, + lib/driver/mmc_private.h: lib/drivermmc.{c,h}: Add + mmc_have_interface() to see if we've got SCSI or ATAPI or whatever. cdda_interface: Use mmc_have_inteface() we don't have anything for + this except in GNU/Linux. May reduce the unnecessary + data_bigendianp() calls which cause lots of disc reading. Turn #defines for MMC Profiles into enumeration. Add enumeration + for "core" interface types #include -> #include + +2005-02-06 rocky + + * lib/driver/MSWindows/aspi32.c, lib/driver/MSWindows/aspi32.h, + lib/driver/MSWindows/win32.c, lib/driver/MSWindows/win32.h, + lib/driver/MSWindows/win32_ioctl.c: Windows fixes. Read TOC via MMC + only when media is not DVD. + +2005-02-06 rocky + + * configure.ac, example/Makefile.am, example/README, + example/{sample2.c => device.c}, lib/driver/_cdio_linux.c, + lib/driver/libcdio.sym, lib/driver/portable.h, + lib/paranoia/overlap.c, lib/paranoia/p_block.c, + lib/paranoia/p_block.h, lib/paranoia/paranoia.c: Various portability + fixes mosty for MSVC which doesn't have drand and doesn't allow + dynamic local arrays. v_fragment -> v_fragment_t libcdio.sym: more + external symbols defined /lib/_cdio_linux.c: harmless type mismatch + example/sample2.c -> example/device.c + +2005-02-06 rocky + + * autogen.sh: Try another approach to getting version.texi made. + +2005-02-06 rocky + + * doc/.cvsignore, doc/version.texi: Get rid of version.tex again. + Bogus check ins keep appearing and conflicts in CVS updates. I hate + automake. + +2005-02-06 rocky + + * lib/driver/libcdio.sym: scsi_mmc -> mmc name change. + +2005-02-06 rocky + + * lib/driver/FreeBSD/freebsd.c, lib/driver/FreeBSD/freebsd.h, + lib/driver/FreeBSD/freebsd_cam.c: FreeBSD fixes. + +2005-02-06 rocky + + * lib/driver/_cdio_osx.c: OSX fixes. + +2005-02-06 rocky + + * lib/driver/_cdio_bsdi.c: BSDI fixes for get_media_changed. Fix + mostly harmless type mismatch from before media_changed work. + +2005-02-06 rocky + + * doc/version.texi, lib/driver/_cdio_sunos.c, + lib/driver/cdio_private.h, lib/driver/image_common.c, + lib/driver/image_common.h, lib/iso9660/iso9660_fs.c: iso9660_fs.c: + wrong order of initialization. correct types on + get_media_changed_mmc Solaris fixes. + +2005-02-06 rocky + + * example/mmc1.c, example/mmc2.c, example/scsi-mmc1.c, + example/scsi-mmc2.c, include/cdio/device.h, + include/cdio/scsi_mmc.h, lib/driver/FreeBSD/freebsd.c, + lib/driver/FreeBSD/freebsd_cam.c, + lib/driver/MSWindows/win32_ioctl.c, lib/driver/_cdio_aix.c, + lib/driver/_cdio_bsdi.c, lib/driver/_cdio_generic.c, + lib/driver/_cdio_linux.c, lib/driver/_cdio_osx.c, + lib/driver/_cdio_sunos.c, lib/driver/cdio_private.h, + lib/driver/device.c, lib/driver/image/bincue.c, + lib/driver/image/cdrdao.c, lib/driver/image/nrg.c, + lib/driver/image_common.c, lib/driver/image_common.h, + lib/driver/mmc.c, lib/driver/mmc_private.h: Start to implement + ability to a detect media change. scsi_mmc -> mmc. Warning: some + breakage may occur. + +2005-02-06 rocky + + * include/cdio/device.h, include/cdio/sector.h, + include/cdio/track.h, lib/driver/sector.c, lib/driver/track.c: Move + track things out off sector.h + +2005-02-05 rocky + + * include/cdio/cdda.h, lib/cdda_interface/scan_devices.c: Another + typo + +2005-02-05 rocky + + * include/cdio/cdda.h, lib/cdda_interface/scan_devices.c: Typo. + +2005-02-05 rocky + + * include/cdio/cdda.h, lib/cdda_interface/scan_devices.c: Another + "cooked" name bites the dust. Soem doxygen cleanup too. + +2005-02-05 rocky + + * Makefile.am, configure.ac, doc/version.texi, + lib/cdda_interface/common_interface.h, + lib/cdda_interface/scan_devices.c: Deal with OS's that don't have a + stat'able filesystem. More SuSe spec removal. More SuSE spec removal + +2005-02-05 rocky + + * example/iso4.c, lib/iso9660/iso9660_fs.c: Check in Mode 1 or Mode + 2 on fuzzy searching. + +2005-02-05 rocky + + * lib/iso9660/iso9660_fs.c: Check header for PVD MSF. Get XA mode + more often. + +2005-02-05 rocky + + * include/cdio/xa.h, lib/iso9660/iso9660_fs.c, lib/iso9660/xa.c: + xa.h: add enumeration for debugging rest: better understanding of + when there might be XA and when there might not be. Don't give a + warnings about missing XA attributes when the format isn't supposed + to have it. + +2005-02-05 rocky + + * lib/cdda_interface/Makefile.am, + lib/cdda_interface/{cooked_interface.c => cddap_interface.c}, + lib/cdda_interface/interface.c, lib/cdda_interface/low_interface.h: + cooked -> cddap. It has been observed that the use of "cooked" + causes confusion and derision among the small-minded; and the code + doesn't use cooked reading anyway. + +2005-02-05 rocky + + * include/cdio/cdio.h, include/cdio/disc.h, + include/cdio/scsi_mmc.h, include/cdio/sector.h, lib/driver/disc.c, + lib/driver/sector.c, src/cd-info.c: Move discmode things out of + sector and over to disc.h and disc.c. + +2005-02-05 rocky + + * Makefile.am, package/.cvsignore, package/libcdio-suse.spec.in: + Remove SuSE spec - it is not likely to be very general purpose. It + is also not the real one which needs to be modified for each version + and vcdimager/libcdio/libcddb collection and undergoes Language + translation outside of the spec file. + +2005-02-05 rocky + + * lib/driver/MSWindows/aspi32.c, lib/driver/MSWindows/win32_ioctl.c: + scsi_mmc -> mmc + +2005-02-05 rocky + + * lib/driver/Makefile.am, lib/driver/_cdio_generic.c, + lib/driver/cdio_private.h, lib/driver/{scsi_mmc.c => mmc.c}, + lib/driver/{scsi_mmc_private.h => mmc_private.h}: scsi_mmc -> mmc + +2005-02-05 rocky + + * include/cdio/cdda.h, include/cdio/iso9660.h, + include/cdio/sector.h, lib/cdda_interface/common_interface.c, + lib/driver/sector.c, lib/iso9660/iso9660.c: Make debugger-helping + enums extern'd and define onces elsewhere. + +2005-02-05 rocky + + * doc/libcdio.texi, lib/driver/_cdio_stdio.c, + lib/driver/_cdio_stream.c, lib/driver/_cdio_stream.h, + lib/driver/read.c, lib/driver/sector.c, lib/iso9660/iso9660_fs.c, + lib/iso9660/iso9660_private.h, lib/iso9660/libiso9660.sym, + src/util.c: First attempt at smart iso9660 reading in CD images. + _cdio_stream.*: return is now cdio_driver_return_t + +2005-02-05 rocky + + * lib/cdda_interface/interface.c, lib/cdda_interface/scan_devices.c: + Remove d->interface. + +2005-02-05 rocky + + * include/cdio/cdda.h, include/cdio/device.h, + include/cdio/iso9660.h, include/cdio/sector.h: all: Add various + enums to allow debugging using #define names. cdda: remove + interface field (COOKED, SCSI). It's not going to be used. + iso9660.h: add fuzzy iso9660 search. + +2005-02-04 rocky + + * example/README: SCSI-MMC -> MMC. + +2005-02-04 rocky + + * example/.cvsignore, example/Makefile.am, example/iso4.c, + example/mmc1.c, example/mmc2.c: scsi-mmc{1,2} -> mmc{1,2} iso4.c: + fuzzy ISO 9660 searching + +2005-02-04 rocky + + * lib/driver/MSWindows/win32.h, lib/driver/MSWindows/win32_ioctl.c: + const removal to match proper run_scsi_cmd prototype. Bug in + reporting TOC lsn's. Thanks to Bobbin007. + +2005-02-04 rocky + + * lib/iso9660/iso9660_fs.c: remove cdio_malloc() and replace with + calloc() + +2005-02-03 rocky + + * configure.ac, lib/cdda_interface/scan_devices.c: Test and + workaround another Unixism - pwd.h, getuid/getpwuid. + +2005-02-03 rocky + + * configure.ac, lib/cdda_interface/scan_devices.c: Test for presense + of lstat (optionally used in scan_devices of cdda_interface). + +2005-02-03 rocky + + * include/cdio/util.h: Remove cdio_malloc(). Please use calloc + instead. + +2005-02-03 rocky + + * lib/driver/FreeBSD/freebsd.c, lib/driver/MSWindows/win32.c, + lib/driver/_cdio_aix.c, lib/driver/_cdio_bsdi.c, + lib/driver/_cdio_linux.c, lib/driver/_cdio_osx.c, + lib/driver/_cdio_stdio.c, lib/driver/_cdio_stream.c, + lib/driver/_cdio_sunos.c, lib/driver/cdio.c, lib/driver/ds.c, + lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/image/nrg.c, lib/driver/util.c: remove cdio_malloc and + replace with calloc which does functionally exactly the same thing + (but is standard). In some drivers _data -> p_data. + +2005-02-03 rocky + + * example/iso1.c, example/iso2.c: Allow one to specify an input file + on input. iso1.c: guard better against an error in reading the + directory. + +2005-02-03 rocky + + * configure.ac: Okay, we're really in 0.73cvs now. + +2005-02-03 rocky + + * lib/cdda_interface/low_interface.h: Remove a number of GNU/Linux + and/or Unix #includes that probably don't belong. #ifdef some of the + others, although I think they'll likely be there. + +2005-02-03 rocky + + * doc/.cvsignore, doc/version.texi: Even though this file is + automatically generated, CVS for the automake project seems to have + this checked into CVS presumably to handle the problem of a missing + version.texi for on initial checkout/bootstrap. Seems odd, but I'm assuming automake developers know what they are + doing. (On the other hand, given the quantity of hassles using automake, I + could be very very wrong.) + +2005-02-01 rocky + + * include/cdio/xa.h: Typo. + +2005-02-01 rocky + + * doc/libcdio.texi: cdrdao Grammar missing MSF for START and END. + +2005-02-01 rocky + + * parse/toc.y: grammar missing optional msf for START and END. + +2005-02-01 rocky + + * doc/libcdio.texi: More typos. + +2005-02-01 rocky + + * configure.ac: Require automake 1.8. Kudos to Steve Schultz; + raspberries to automake. + +2005-01-31 rocky + + * configure.ac: Add substitution for mkdir -p Get ready for 0.72 + +2005-01-31 rocky + + * parse/.cvsignore, parse/Makefile, parse/toc.y, parse/toclexer.c, + parse/toclexer.h: First attempt at Bison TOC parser. + +2005-01-31 rocky + + * doc/glossary.texi, doc/libcdio.texi: Improve cdrdao grammar. More + on SVCD. Minor index and other corrections. Probably the last lookover before the 0.72 release. + +2005-01-30 rocky + + * lib/driver/image/bincue.c: More variable renamings. + +2005-01-30 rocky + + * lib/driver/image/bincue.c: env -> p_env user_data -> p_user_data + +2005-01-30 rocky + + * README.libcdio: grammatical improvement + +2005-01-30 rocky + + * libcdio_paranoia.pc.in: Picking up wrong library: need + libcdio_cdda, not cdda_interface + +2005-01-30 rocky + + * libcdio_cdda.pc.in, libcdio_paranoia.pc.in, libiso9660.pc.in: + libcdio_*: names probably need to be something other that libcdio + which is already in use. libsio9660: minor title change + +2005-01-29 rocky + + * lib/driver/libcdio.sym: Missing cdio_error. + +2005-01-29 rocky + + * configure.ac: Hopefully last release candidate. + +2005-01-29 rocky + + * doc/libcdio.texi, example/scsi-mmc1.c, example/scsi-mmc2.c, + include/cdio/bytesex.h, include/cdio/bytesex_asm.h, + include/cdio/cdda.h, include/cdio/cdio.h, include/cdio/cdtext.h, + include/cdio/device.h, include/cdio/iso9660.h, + include/cdio/paranoia.h, include/cdio/scsi_mmc.h, + include/cdio/track.h, include/cdio/version.h.in, + lib/driver/scsi_mmc.c, test/check_cd_read.sh: Doxygen changes. + +2005-01-29 rocky + + * doc/libcdio.texi: More small corrections. + +2005-01-29 rocky + + * test/check_common_fn.in, test/check_cue.sh.in, + test/check_iso.sh.in, test/check_opts.sh: Slightly more descriptive + and accurate error messages when regression tests fail. Also if no + Joliet support, one test is skipped. + +2005-01-29 rocky + + * doc/glossary.texi, doc/libcdio.texi, example/paranoia.c, + example/scsi-mmc1.c, example/scsi-mmc2.c: Add section on SCSI mmc. + Go over and spell check. example/*.c some trivial typos + +2005-01-29 rocky + + * src/cd-paranoia/doc/Makefile.am, + src/cd-paranoia/doc/en/Makefile.am, + src/cd-paranoia/doc/jp/Makefile.am: Forgot to install default + manpages. + +2005-01-29 rocky + + * configure.ac, doc/.cvsignore, doc/doxygen/.cvsignore, + src/cd-paranoia/Makefile.am, src/cd-paranoia/doc/.cvsignore, + src/cd-paranoia/doc/Makefile.am, src/cd-paranoia/doc/en/.cvsignore, + src/cd-paranoia/doc/en/Makefile.am, src/cd-paranoia/doc/{ => + en}/cd-paranoia.1.in, src/cd-paranoia/doc/jp/.cvsignore, + src/cd-paranoia/doc/jp/Makefile.am, + src/cd-paranoia/doc/{cd-paranoia.1.jp.in => jp/cd-paranoia.1.in}: + Put Japanese man page in man/jp. + +2005-01-28 rocky + + * doc/glossary.texi, doc/libcdio.texi: Go over documentation yet + again. In particular: Move section on image formats out of Appendix and expand. Add a chapter on program internals glossary: add item to concept index and regularize index names. + +2005-01-28 rocky + + * lib/driver/image/bincue.c: [no log message] + +2005-01-27 rocky + + * lib/driver/_cdio_osx.c: fix harmless prototype mismatches. + +2005-01-27 rocky + + * lib/driver/MSWindows/aspi32.c, lib/driver/MSWindows/aspi32.h, + lib/driver/MSWindows/win32.c, lib/driver/MSWindows/win32.h, + lib/driver/MSWindows/win32_ioctl.c, lib/driver/scsi_mmc.c, + lib/driver/scsi_mmc_private.h: cygwin fixes mostly. + +2005-01-27 rocky + + * configure.ac, lib/driver/FreeBSD/freebsd.c: Add check for + to and use in freebsd.c to stop warning. + +2005-01-27 rocky + + * lib/driver/FreeBSD/freebsd.c, lib/driver/FreeBSD/freebsd.h, + lib/driver/FreeBSD/freebsd_cam.c, + lib/driver/FreeBSD/freebsd_ioctl.c: Some FreeBSD fixes. + +2005-01-27 rocky + + * Makefile.am, lib/driver/Makefile.am, lib/iso9660/Makefile.am: + Attempt to get library version numbers correct for release. + +2005-01-27 rocky + + * configure.ac: Okay, we'll call this rc1. + +2005-01-27 rocky + + * configure.ac, include/cdio/cd_types.h, include/cdio/cdda.h, + include/cdio/cdtext.h, include/cdio/paranoia.h, + include/cdio/track.h, lib/cdda_interface/common_interface.c, + lib/cdda_interface/interface.c, lib/cdda_interface/scan_devices.c, + lib/driver/_cdio_generic.c, lib/driver/cdio.c, + lib/driver/cdio_private.h, lib/driver/cdtext.c, + lib/driver/generic.h, src/cd-info.c: cdparanoia: add ability to + disable byte swapping configure.ac: remove AIX driver for now - it + doesn't really work remove some (but not all) of the valgrind errors + in cd-text Some stylistic things, doxygen comment improvements + typos, etc. + +2005-01-26 rocky + + * include/cdio/cdda.h, include/cdio/paranoia.h: Add an easy way to + turn off paranoia compatibility. + +2005-01-26 rocky + + * example/paranoia2.c, include/cdio/cdda.h, + lib/cdda_interface/interface.c, lib/driver/_cdio_generic.c, + lib/driver/device.c: Add a cdda_close that doesn't free the p_cdio + pointer for those cases where an application may want to keep that + pointer open. All routines now are distinct from parnaoia routines with suitable + #defines for compatibility. + +2005-01-25 rocky + + * configure.ac, example/paranoia2.c, include/cdio/cdda.h, + include/cdio/paranoia.h, lib/cdda_interface/cooked_interface.c, + lib/cdda_interface/interface.c, lib/cdda_interface/scan_devices.c, + libcdio_cdda.pc.in, test/testparanoia.c: libcdio_cdda.pc.in: had + wrong cdda_interface library Rename paranoia routines to cdio-specific names so both libraries + can coexist. And I think it makes debugging a little easier if not + clearer. + +2005-01-25 rocky + + * .cvsignore, libcdio.pc.in, libcdio_cdda.pc.in, + libcdio_paranoia.pc.in, libiso9660.pc.in: Move pc files back into + root of source tree. + +2005-01-25 rocky + + * package/.cvsignore, package/libcdio.pc.in, + package/libcdio_cdda.pc.in, package/libcdio_paranoia.pc.in, + package/libiso9660.pc.in: Move package config files back to root of + source tree. + +2005-01-25 rocky + + * Makefile.am, package/.cvsignore, package/libcdio-suse.spec.in: + SuSE spec file from Stanislav Brabec + +2005-01-25 rocky + + * libcdio.pc.in, libcdio.spec.in, libcdio_cdda.pc.in, + libcdio_paranoia.pc.in, libiso9660.pc.in: Now located in package. + +2005-01-25 rocky + + * .cvsignore, configure.ac, example/paranoia2.c, + package/libcdio.pc.in, package/libcdio.spec.in, + package/libcdio_cdda.pc.in, package/libcdio_paranoia.pc.in, + package/libiso9660.pc.in: Add package directory for various package + files. paranoia2.c: comment typo + +2005-01-24 rocky + + * lib/driver/_cdio_aix.c: Compilation fixes + +2005-01-24 rocky + + * doc/libcdio.texi: Add cdrdao grammar, cd paranoia example program + and lots of little documentation updates. More later... + +2005-01-24 rocky + + * doc/libcdio.texi: Add CD Text, CDDB, and CD+G information. + CdIo->CdIo_t + +2005-01-24 rocky + + * lib/driver/MSWindows/win32.c: Wrong return type. + +2005-01-24 rocky + + * lib/driver/_cdio_osx.c: Synatx error. + +2005-01-24 rocky + + * lib/driver/_cdio_bsdi.c: syntax error. + +2005-01-24 rocky + + * lib/driver/_cdio_sunos.c: Wrong return type. + +2005-01-24 rocky + + * NEWS, include/cdio/disc.h, include/cdio/scsi_mmc.h, + lib/driver/FreeBSD/freebsd.c, lib/driver/FreeBSD/freebsd_cam.c, + lib/driver/FreeBSD/freebsd_ioctl.c, lib/driver/MSWindows/win32.c, + lib/driver/_cdio_aix.c, lib/driver/_cdio_bsdi.c, + lib/driver/_cdio_linux.c, lib/driver/_cdio_osx.c, + lib/driver/_cdio_sunos.c, lib/driver/cdio_private.h, + lib/driver/disc.c, lib/driver/image/bincue.c, + lib/driver/image/cdrdao.c, lib/driver/image/nrg.c, + lib/driver/libcdio.sym, lib/driver/scsi_mmc.c, + lib/driver/scsi_mmc_private.h: stat_size -> get_disc_last_lsn. Now + returns lsn_t and CDIO_INVALID_LSN on error. Add MMC version of get_disc_last_lsn. More regularization of driver_return_code_t and get_disc_last_lsn There's probably some small driver breakage which will be fixed + soon. + +2005-01-23 rocky + + * include/cdio/cdio.h, include/cdio/device.h, include/cdio/read.h, + lib/driver/FreeBSD/freebsd.c, lib/driver/_cdio_aix.c, + lib/driver/_cdio_bsdi.c, lib/driver/_cdio_generic.c, + lib/driver/_cdio_linux.c, lib/driver/_cdio_sunos.c, + lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/image/nrg.c, lib/driver/read.c, lib/driver/scsi_mmc.c, + lib/driver/scsi_mmc_private.h: Change read routines so the use the + driver_return_code_t enumeration. It's a little cleaner and may + make things clearer in debugging. + +2005-01-23 rocky + + * lib/driver/MSWindows/win32.c: Use SCSI-MMC routine for reading + audio sectors. ioctl READRAW doesn't always word and is slow. + +2005-01-23 rocky + + * lib/cdda_interface/interface.c, lib/paranoia/paranoia.c: Work + around problem where we were accessing outside of an allocate range + when the drive endian was different than the CD-ROM endianness. We + do this by always allocating an extra block, but it would be better + to understand whether this is correct or whether some logic needs to + be fixed. + +2005-01-23 rocky + + * test/testparanoia.c: Remove access of uninitialized memory. + +2005-01-23 rocky + + * test/testdefault.c: Remove memory leak. Not used in regression + testing though. + +2005-01-23 rocky + + * lib/cdda_interface/scan_devices.c, lib/driver/FreeBSD/freebsd.c, + lib/driver/MSWindows/win32.c, lib/driver/_cdio_bsdi.c, + lib/driver/_cdio_linux.c, lib/driver/image_common.c, + lib/paranoia/isort.c, lib/paranoia/p_block.c, + lib/paranoia/paranoia.c, test/testparanoia.c: Remove some + valgrind-caught memory leaks or use of uninitialized regions. + +2005-01-23 rocky + + * lib/driver/_cdio_sunos.c: Valgrind-caught memory leak. + +2005-01-23 rocky + + * test/Makefile.am, test/bad-file.toc, test/data5.toc, + test/data6.toc, test/data7.toc, test/testtoc.c: Since we have better + TOC checking we now have to give real filenames. Adjust for this. + Also added a regression test with a bad file name. + +2005-01-23 rocky + + * lib/cdda_interface/common_interface.c, lib/cdda_interface/utils.h: + Nope. Didn't get it right this time either with the byteswapping. + However we've at least reduced the customness. + +2005-01-23 rocky + + * lib/cdda_interface/common_interface.c, lib/cdda_interface/utils.h: + Use common byte-swapping routines and remove cdparanoia-specific + ones. (This time, for sure!) + +2005-01-23 rocky + + * NEWS: [no log message] + +2005-01-22 rocky + + * lib/driver/image.h, lib/driver/image/cdrdao.c, test/Makefile.am, + test/check_cue.sh.in, test/vcd_demo.toc, test/vcd_demo_toc.right: + Improve cdrdao to handle MSF-length. Remove vcd_demo_toc.right since the cd-info output is now the same + as vcd_demo.right vcd_demo.toc adjusted accordingly. + +2005-01-22 rocky + + * src/cd-drive.c, src/cd-info.c, src/iso-info.c, src/iso-read.c: + Version information now includes build. + +2005-01-22 rocky + + * include/cdio/version.h.in, src/cd-paranoia/version.h, + test/check_paranoia.sh.in: check_paranoia.sh.in: Add a more + agressive paranoia test. *version.h*: Include build name in version listings. + +2005-01-22 rocky + + * test/check_paranoia.sh.in: Was missing move of jitter output. + +2005-01-22 rocky + + * example/README: More about where to look for examples. + +2005-01-22 rocky + + * example/README: Programs have been added and renamed. + +2005-01-22 rocky + + * example/.cvsignore, test/.cvsignore: [no log message] + +2005-01-22 rocky + + * include/cdio/cdda.h, lib/cdda_interface/cooked_interface.c, + src/cd-paranoia/cd-paranoia.c, test/check_paranoia.sh.in: Add jitter + simulation and jitter-correction testing. + +2005-01-22 rocky + + * lib/driver/FreeBSD/freebsd.c: Add a CAM read audio now that + CDIOREADAUDIO deosn't work on newer FreeBSDs. Deal with recent + generic->mmc name changes. + +2005-01-22 rocky + + * lib/driver/_cdio_stream.c: Don't attempt to see before the + beginning of a file. + +2005-01-22 rocky + + * lib/cdda_interface/common_interface.c, + lib/cdda_interface/common_interface.h, + lib/cdda_interface/scan_devices.c: Add routines which allow cdio + object to be opened before cdda_open. common_interface.h: + data_bigendianp() is now public (in cdio/cdda.h) + +2005-01-22 rocky + + * include/cdio/cdda.h: Add interfaces which allow opening a cdio + object before running paranoia. data_bigendianp is too neat to keep + it private. + +2005-01-22 rocky + + * example/Makefile.am, example/paranoia.c, example/paranoia2.c: Add + an example which opens the cdio object first. Also show off + data_bigendianp(). + +2005-01-22 rocky + + * cvs2cl_usermap: Add Justin's info. + +2005-01-21 rocky + + * lib/driver/_cdio_osx.c: Use strerror in all ioctl to give + additional info. + +2005-01-21 rocky + + * lib/driver/_cdio_aix.c, lib/driver/_cdio_bsdi.c, + lib/driver/_cdio_linux.c, lib/driver/_cdio_osx.c, + lib/driver/_cdio_sunos.c, lib/driver/scsi_mmc.c, + lib/driver/scsi_mmc_private.h: Remove a number of const's since + Darwin's run_scsi_mmc doesn't work that way :-( + +2005-01-21 rocky + + * lib/driver/MSWindows/win32.c: routine name change. + +2005-01-21 rocky + + * NEWS, lib/driver/_cdio_stream.c, lib/driver/image.h, + lib/driver/image/cdrdao.c, test/vcd_demo_toc.right: _cdio_stream.c: + replace assert's with failures. Make cdrdao be able to handle the + kind of images vcdimager produces. There was a slight regression (perhaps so vcd_demo_toc.right may in + fact not be right. Deal with some other time. + +2005-01-21 rocky + + * lib/driver/_cdio_osx.c: Remove get_scsi for now. + +2005-01-21 rocky + + * lib/driver/FreeBSD/freebsd.c, lib/driver/MSWindows/win32.c, + lib/driver/_cdio_aix.c, lib/driver/_cdio_bsdi.c, + lib/driver/_cdio_generic.c, lib/driver/_cdio_linux.c, + lib/driver/_cdio_sunos.c, lib/driver/cdio_private.h, + lib/driver/generic.h, lib/driver/scsi_mmc.c, + lib/driver/scsi_mmc_private.h: Move some of the "generic" routines + using MMC into SCSI-MMC. Think is a little bit clearer and cleaner. + +2005-01-21 rocky + + * lib/driver/read.c: Remove probably some serious lapses: Now check + all reads for exceeding end of disc and info messages can be logged. + We were also returning 0 on error reads. Regularize by using a + couple of macros. + +2005-01-20 rocky + + * lib/driver/FreeBSD/freebsd.c: Missed a couple of env -> p_env's + +2005-01-20 rocky + + * lib/driver/_cdio_osx.c: Add Scott Wood's code for issuing SCSI-MMC + command. It doesn't work though. + +2005-01-20 rocky + + * lib/driver/FreeBSD/freebsd.c, lib/driver/FreeBSD/freebsd_cam.c, + lib/driver/_cdio_generic.c, lib/driver/_cdio_linux.c, + lib/driver/_cdio_sunos.c, lib/driver/cdio_private.h, + lib/driver/generic.h: Add get_blocksize. There may be some breakage + as I haven't tested all of the various drivers yet. + +2005-01-20 rocky + + * include/cdio/device.h, include/cdio/iso9660.h, + include/cdio/paranoia.h, include/cdio/read.h: Various doxygen + improvements. + +2005-01-20 rocky + + * include/cdio/scsi_mmc.h: Turn a bunch of defines into an + enumeration. Makes debugging a bit nicer. + +2005-01-20 rocky + + * lib/driver/FreeBSD/freebsd.c, lib/driver/MSWindows/win32.c, + lib/driver/_cdio_generic.c, lib/driver/_cdio_linux.c, + lib/driver/_cdio_stdio.c, lib/driver/_cdio_stdio.h, + lib/driver/_cdio_stream.c, lib/driver/_cdio_stream.h, + lib/driver/_cdio_sunos.c, lib/driver/cdio_private.h, + lib/driver/generic.h, lib/driver/image.h, lib/iso9660/iso9660_fs.c: + Move a set_speed and set_blocksize (via MMC)from driver-specific + places to generic. Add _t to yet another type. + +2005-01-20 rocky + + * include/cdio/device.h, lib/driver/_cdio_linux.c, + lib/driver/_cdio_sunos.c, lib/driver/cdio.c, lib/driver/device.c, + lib/driver/scsi_mmc.c: Add DRIVER_OP_UNINIT and change appropriate + DRIVER_OP_ERROR's to DRIVER_OP_UNINIT. + +2005-01-19 rocky + + * lib/driver/MSWindows/win32_ioctl.c: Type cast that might make this + more robust. 'Dunno. + +2005-01-19 rocky + + * lib/cdda_interface/scan_devices.c: Even though this may not be + nstrictly the way the original cdda_interface does things, add a + spaces between the vendor, model, and revison number. + +2005-01-19 rocky + + * src/cd-paranoia/cd-paranoia.c: Accomodate Windows that sometimes + gives an argc that seems one greater than what's not NULL in argv. + And it is probably a good idea anyway to test for null strings + before calling strdup() + +2005-01-19 rocky + + * lib/driver/_cdio_bsdi.c: Change to use driver_return_t + +2005-01-19 rocky + + * lib/driver/_cdio_linux.c, lib/driver/_cdio_sunos.c, + lib/driver/image_common.c: Change to use driver_return_t. + +2005-01-19 rocky + + * include/cdio/cdio.h, include/cdio/device.h, + lib/driver/_cdio_generic.c, lib/driver/_cdio_linux.c, + lib/driver/cdio.c, lib/driver/device.c, lib/driver/generic.h, + lib/driver/image_common.c, lib/driver/scsi_mmc.c: Try to regularize + driver operation return codes via a new enumeation return type. (I + may regret this later as we return ioctl's int value in some cases). cdio.h: get/set_arg moved to device. + +2005-01-18 rocky + + * lib/cdda_interface/interface.c: Do not try to process if we got + errors. More needs to be done, but this is a start. + +2005-01-18 rocky + + * src/cd-paranoia/doc/cd-paranoia.1.in: Note change in -g option and + that we scan for a CD-DA (rather than merely a CD-ROM). + +2005-01-18 rocky + + * lib/driver/device.c: Got test backwards. + +2005-01-18 rocky + + * src/cd-paranoia/cd-paranoia.c, src/cd-paranoia/usage.txt.in: + --force-generic-device -g is an alias for --force-cdrom-device -d + +2005-01-18 rocky + + * src/cd-paranoia/doc/.cvsignore: The usual. + +2005-01-18 rocky + + * include/cdio/scsi_mmc.h, lib/driver/MSWindows/win32.c, + lib/driver/scsi_mmc.c: Attempt SCSI-MMC speed setting (e.g. for M$). + +2005-01-18 rocky + + * lib/driver/FreeBSD/freebsd.c: Add FreeBSD set speed routine. + +2005-01-18 rocky + + * NEWS, test/Makefile.am: test/Makefile.am: forgot to add vcd2.toc + NEWS: what's up. + +2005-01-18 rocky + + * test/testparanoia.c: gcc < 3.0 compilation fix. + +2005-01-18 rocky + + * lib/cdda_interface/scan_devices.c: Bug in accessing via snprintf a + NULL string. + +2005-01-18 rocky + + * example/Makefile.am, lib/driver/_cdio_osx.c: Add set_speed for + OSX. + +2005-01-18 rocky + + * lib/driver/_cdio_linux.c, lib/driver/_cdio_sunos.c: Add set_speed + for Solaris via ioctl and set_blocksize via SCSI-MMC. Update + comments in GNU/Linux driver. + +2005-01-18 rocky + + * include/cdio/device.h, include/cdio/scsi_mmc.h, + lib/cdda_interface/cooked_interface.c, lib/driver/_cdio_generic.c, + lib/driver/_cdio_linux.c, lib/driver/cdio_private.h, + lib/driver/device.c, lib/driver/generic.h, + lib/driver/image/cdrdao.c, lib/driver/image_common.c, + lib/driver/image_common.h, lib/driver/libcdio.sym, + lib/driver/scsi_mmc.c, src/cd-paranoia/cd-paranoia.c: Add interface + for setting speed and blocksize. Reinstated it in cd-paranoia + libraries and command. Some more variable convention regularizations. + +2005-01-17 rocky + + * lib/driver/FreeBSD/freebsd.c, lib/driver/MSWindows/win32.c, + lib/driver/_cdio_aix.c, lib/driver/_cdio_bsdi.c, + lib/driver/_cdio_linux.c, lib/driver/_cdio_osx.c, + lib/driver/_cdio_sunos.c, lib/driver/cdio.c, + lib/driver/cdio_private.h, lib/driver/device.c, + lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/image/nrg.c: add _t to another time. driver_id inside + p_cdio wasn't initialized. + +2005-01-17 rocky + + * example/paranoia.c: We don't need driver_id, so simplify this code + a little bit. + +2005-01-16 rocky + + * configure.ac, src/cd-paranoia/Makefile.am, + src/cd-paranoia/cd-paranoia.c, src/cd-paranoia/doc/{cd-paranoia.1 + => cd-paranoia.1.in}, src/cd-paranoia/doc/{cd-paranoia.1.jp => + cd-paranoia.1.jp.in}, src/cd-paranoia/usage.txt.in: Work on + documentation. cd-paranoia name is now properly substituted. Offset + option described better. + +2005-01-16 rocky + + * src/cd-paranoia/Makefile.am, src/cd-paranoia/{ => + doc}/cd-paranoia.1, src/cd-paranoia/{ => doc}/cd-paranoia.1.jp: Move + cd-paranoia documentation into its own directory. + +2005-01-16 rocky + + * test/testtoc.c: Add another VCD toc test. We can't actually handle + this fully, but at least we can parse it correctly (I think). + +2005-01-16 rocky + + * test/vcd2.toc: Add another TOC test. This one taken from one + modified from Steve Schultz's VCD collection. + +2005-01-16 rocky + + * lib/driver/image/cdrdao.c: At least parse DATAFILE lines more + fully. Things are better but we're still having problems reading the + ISO-9660 of sms VCD's. + +2005-01-16 rocky + + * lib/driver/image.h: It appears for cdrdao datastart needs to be + larger. Could possibly be unsigned too. + +2005-01-16 rocky + + * include/cdio/cdda.h: Redo bit masks for test flags. Should + accomodate what is in (even if not working) in cdparanoia. + +2005-01-16 rocky + + * test/.cvsignore, test/Makefile.am: Remove testparanoia .raw output + on clean Also ignore these for CVS if they are around. + +2005-01-15 rocky + + * include/cdio/cdda.h, src/cd-paranoia/cd-paranoia.c: Remove a + couple of unused SCSI fields. + +2005-01-15 rocky + + * include/cdio/cdda.h, lib/cdda_interface/Makefile.am, + lib/cdda_interface/cooked_interface.c, + lib/cdda_interface/interface.c, lib/cdda_interface/scan_devices.c, + src/cd-paranoia/cd-paranoia.c, test/check_paranoia.sh.in: Add + regression-test mechanism. Right now we only have underrun testing. + Perhaps more later... cd-paranoia: -x option added to specify what + to test. + +2005-01-15 rocky + + * src/cd-paranoia/cd-paranoia.c: Replace some paranoia-specific + copystring's with strdups. + +2005-01-15 rocky + + * test/Makefile.am, test/check_paranoia.sh.in: Start another + cd-paranoia test. This one uses image reading so it doesn't require + a CD-DA loaded. + +2005-01-15 rocky + + * lib/cdda_interface/scan_devices.c: Redo in a way simpler way that + and in a way that valgrind doesn't think there's a memory leak. + +2005-01-15 rocky + + * lib/cdda_interface/cooked_interface.c, + src/cd-paranoia/cd-paranoia.c: cooked_interface.c: check for + TOC-read error. cd-paranoia.c: check that list of drives isn't just + NULL list. + +2005-01-14 rocky + + * lib/driver/_cdio_osx.c: Small error. Used the wrong variable for + extracting the revision. + +2005-01-14 rocky + + * lib/driver/MSWindows/win32.c: More changes to deal with error + conditions. + +2005-01-14 rocky + + * test/Makefile.am: Need to put in libcdio libs for testparanoia. + +2005-01-14 rocky + + * lib/driver/MSWindows/win32.c, lib/driver/device.c, + test/testparanoia.c: win32.c: was not indicating a failure when + reading the TOC failed. testparanoia.c: better check that there are + drives. device.c: I think better checking on drive capability. At + least we now check for the TOC failure case and not add a drive + there. + +2005-01-14 rocky + + * test/testparanoia.c: Use a more statistical approach to + determining if cd-paranoia worked. We still are really testing the + error correction part which may be the most interesting (and + useful). + +2005-01-14 rocky + + * lib/cdda_interface/interface.c, test/testparanoia.c: Looked at WAV + spec format. Probably (but I'm not certain) the thing that was wrong + was the test program which needs to byte swap. What confuses me now + is how the media players sort this out. + +2005-01-14 rocky + + * lib/cdda_interface/interface.c, lib/cdda_interface/scan_devices.c: + The sense I'm getting is that while the bigendianp detection is + clever, it isn't complete. It may be that we need to use this along + in conjunctin with the endianness of the OS. That is instead of + big/little endian, what's needed is same/not same endian. For now, the simplest thing is to just disable all of this and wait + to discover a CD-ROM drive where we have a problem. + +2005-01-14 rocky + + * test/testparanoia.c: Spelling mistake. + +2005-01-14 rocky + + * src/cd-paranoia/Makefile.am: I think I've finally got things + worked out so that usage.h gets created before it is needed. + +2005-01-14 rocky + + * lib/paranoia/paranoia.c: Fix a couple memory leaks by freeing + resources. + +2005-01-14 rocky + + * lib/cdda_interface/common_interface.c, + lib/cdda_interface/utils.c, lib/cdda_interface/utils.h: Reinstate + more of the libcdio routines. + +2005-01-13 rocky + + * lib/cdda_interface/common_interface.c, lib/cdda_interface/utils.h: + Put back original cdparanoia byte-swapping routines until we smoke + out what's going wrong on cygwin. + +2005-01-13 rocky + + * src/cd-drive.c: . + +2005-01-13 rocky + + * lib/driver/MSWindows/win32_ioctl.c: Fix syntax error of last + commit + +2005-01-13 rocky + + * lib/driver/MSWindows/win32_ioctl.c: Remove warning and make sure + variable is initialized + +2005-01-13 rocky + + * src/cd-drive.c: Just list the drivers that are available. + +2005-01-13 rocky + + * include/cdio/paranoia.h, lib/paranoia/paranoia.c: Add array to + convert paranoia_mode_cb into a string. + +2005-01-13 rocky + + * test/Makefile.am, test/testparanoia.c: Start of a paranoia + regression test program. + +2005-01-12 rocky + + * lib/driver/FreeBSD/freebsd.c: Save track flags for FreeBSD + (preemphasis, # number of audio channels and copy permit) + +2005-01-12 rocky + + * example/iso1.c, include/cdio/bytesex.h, include/cdio/ds.h, + include/cdio/iso9660.h, lib/driver/ds.c, lib/driver/image/nrg.c, + lib/driver/image_common.h, lib/iso9660/iso9660_fs.c, src/cd-info.c, + src/iso-info.c, test/vcd_demo_toc.right: Non-functional changes: Small coding style changes: add _t to some types, p_/psz_ to some + variables Update/add doxygen comments add missing regression test output + +2005-01-12 rocky + + * example/.cvsignore: [no log message] + +2005-01-12 rocky + + * example/Makefile.am, example/paranoia.c: Add an example of using + paranoia with libcdio. + +2005-01-12 rocky + + * src/cd-paranoia/Makefile.am: I really don't understand how + Makefile's. Put in an explict dependency between usage.h and + usage.txt since the generic one isn't sufficient. + +2005-01-11 rocky + + * src/cd-paranoia/Makefile.am: Install program and manpage according + to name specificed in --with-cdparnoia-name + +2005-01-11 rocky + + * src/cd-paranoia/Makefile.am: 2nd try at getting tarball built + right. This time, ... + +2005-01-11 rocky + + * src/cd-paranoia/Makefile.am: Missing two headers. + +2005-01-11 rocky + + * configure.ac, include/cdio/paranoia.h, + src/cd-paranoia/.cvsignore, src/cd-paranoia/Makefile.am, + src/cd-paranoia/cd-paranoia.c, src/cd-paranoia/doc/FAQ.txt, + src/cd-paranoia/doc/overlapdef.txt, src/cd-paranoia/pod2c.pl, + src/cd-paranoia/usage.txt.in: doc: add some paranoia documentation. + src: Cleaner way to get usage and allow it to be customized to a + particular name configure.ac: add --with-cd-paranoia-name to allow + customization of the cd-paranoia name. More work is needed to get the binary renamed. + +2005-01-11 rocky + + * lib/driver/Makefile.am, lib/iso9660/Makefile.am, + lib/iso9660/libiso9660.sym: lib/{driver,iso9660}/Makefile.am: new + improved script for handling the case where there are no local + symbols (or global symbols). libsio9660.sym: The last remaining + local symbol really should be global. Change made on behalf of Nicolas Boullis. + +2005-01-10 rocky + + * lib/cdda_interface/interface.c: Had commented out bigendiap + avoidance. Use - things go much faster. + +2005-01-10 rocky + + * include/cdio/cdda.h, lib/cdda_interface/toc.c, + lib/paranoia/p_block.c: toc.c: don't assume first sector is 1. + cdda.h: document TOC better. p_block.c: revise getting paranoia + first/last sector + +2005-01-09 rocky + + * src/cd-drive.c: Another slight error message change. + +2005-01-09 rocky + + * src/cd-paranoia/cd-paranoia.c: Let people customize what program + name to call this. More accurate error message when auto-detecting + drive fails. + +2005-01-09 rocky + + * src/util.c: Some OS's (e.g. BSDI) have limitations on var_arg + routines. Accommodate this. + +2005-01-09 rocky + + * lib/driver/scsi_mmc.c, test/vcd_demo.right: scsi_mmc.c: style + differences. Need to do something about checking to make sure we + don't exceed the disc though. vcd_demo.right: output has changed + yet again. + +2005-01-09 rocky + + * include/cdio/Makefile.am, include/cdio/cdio.h, + include/cdio/device.h, include/cdio/disc.h, include/cdio/read.h, + lib/cdda_interface/interface.c, lib/driver/Makefile.am, + lib/driver/cdio.c, lib/driver/device.c, lib/driver/disc.c, + lib/driver/read.c, lib/driver/track.c: cdio.{c,h}: moved various + reading and device/driver routines out into the below read.{c,h}: + separate include for the reading routines. disc.{c,h}: more moved + here from corresponding cdio. device.c: a place for device/driver + related routines. interface.c: break up line to make debugging + easier. + +2005-01-09 rocky + + * src/cd-paranoia/cd-paranoia.c: Better error message when CD audio + scanning failed. + +2005-01-09 rocky + + * lib/cdda_interface/common_interface.c, + lib/cdda_interface/common_interface.h: Got BE and LE conversion + backwards. Caused cdda-endianess determination to fail. + +2005-01-09 rocky + + * lib/cdda_interface/cooked_interface.c, + lib/cdda_interface/drive_exceptions.h, + lib/cdda_interface/scan_devices.c, lib/driver/_cdio_sunos.c: Fix my + recent breakage in adding back GNU/Linux endian determination. Need + to seet nsectors if not GNU/Linux. Some lint things for + non-GNU/Linux. + +2005-01-09 rocky + + * lib/cdda_interface/cooked_interface.c, lib/driver/_cdio_sunos.c: + Fix a bad bug where we were requesting potentially a huge number of + blocks (-1 unsigned). Fix both the driver to disallow such a + nonsensical thing as well as just don't make the request. + +2005-01-09 rocky + + * lib/driver/cdio.c: Handle the case were we want to open only real + CD-ROM devices versus those where we're willing to open CD-images + and real CDs. Don't know why I never fixed this earlier. + +2005-01-09 rocky + + * src/cd-drive.c, src/cd-info.c, src/cd-read.c, src/util.c, + src/util.h, test/cdda-read.right, test/check_common_fn.in, + test/isofs-m1-read.right: Create open_input() for common input open + routines. Input error messages have been gone over. cd-read is a little more + like the rest. Regression output now has NO-WARRANTY. + +2005-01-08 rocky + + * lib/cdda_interface/scan_devices.c: Compilation fix for + non-GNU/linux + +2005-01-08 rocky + + * configure.ac, include/cdio/cdda.h, + lib/cdda_interface/cooked_interface.c, + lib/cdda_interface/drive_exceptions.h, + lib/cdda_interface/interface.c, lib/cdda_interface/scan_devices.c: + Put back some of the GNU/Linux-ism for detecting drive endian-ness. The data-driven endian correction isn't working correctly. Ultimately though this code should move down into libcdio (and get + removed from here.) + +2005-01-08 rocky + + * lib/cdda_interface/scan_devices.c: Better about handling non-Unix + devices. + +2005-01-07 rocky + + * configure.ac, lib/cdda_interface/low_interface.h, + src/cd-paranoia/cd-paranoia.c: Remove a GNU/Linux includes that + isn't used any more. Move other GNU/Linux tests to the + linux-specific part of configure. + +2005-01-07 rocky + + * lib/paranoia/isort.c, lib/paranoia/isort.h, + lib/paranoia/overlap.c, lib/paranoia/p_block.c, + lib/paranoia/p_block.h, lib/paranoia/paranoia.c: Small convention + changes. + +2005-01-07 rocky + + * lib/cdda_interface/common_interface.c: Initialize buff in case + read doesn't do it. (But I'm no sure why the read isn't doing this + properly.) + +2005-01-06 rocky + + * include/cdio/cdda.h: Doxygen documentatoin on more routines. + Remove some things that aren't useable any more. + +2005-01-06 rocky + + * lib/cdda_interface/toc.c: Add doxygen doc for exxternal routines. + +2005-01-06 rocky + + * src/cd-paranoia/cd-paranoia.c: When verbose, show cdio info + messages. + +2005-01-06 rocky + + * lib/cdda_interface/scan_devices.c, + lib/driver/MSWindows/win32_ioctl.c: Remove some Unixisms in checking + drive. Rely on libcdio to do the checking - it's platform + independent. win32_ioctl.c: more detailed info message. + +2005-01-06 rocky + + * src/cd-paranoia/cd-paranoia.1: Revise for libcdio's name + (cd-paranoia). + +2005-01-06 rocky + + * src/Makefile.am: Various small bugs in setting variables to + disable utility programs. + +2005-01-06 rocky + + * configure.ac, src/cd-paranoia/Makefile.am, + src/cd-paranoia/cd-paranoia.c, src/cd-paranoia/getopt.c, + src/cd-paranoia/getopt.h, src/cd-paranoia/getopt1.c: Test for GNU + getopt_long() and add to cd-paranoia sources. Compile a local copy + if not available. + +2005-01-06 rocky + + * src/Makefile.am: Fix bug in disabling building of utility + programs: cd-info, cd-read. Bug noticed by Steve Schultz. + +2005-01-06 rocky + + * lib/driver/_cdio_osx.c: Include code to save audio pre-emphasis, # + of tracks and copy-permit bit. I think cd-paranoia may do something + now on Darwin. + +2005-01-06 rocky + + * lib/cdda_interface/common_interface.h, + lib/cdda_interface/cooked_interface.c, + lib/cdda_interface/interface.c, lib/cdda_interface/scan_devices.c, + lib/cdda_interface/toc.c: More portability fixes. I think this now + does something on BSDI. + +2005-01-06 rocky + + * configure.ac, lib/cdda_interface/common_interface.c, + lib/cdda_interface/cooked_interface.c, + lib/cdda_interface/interface.c, lib/cdda_interface/low_interface.h, + src/cd-paranoia/cd-paranoia.c, src/cd-paranoia/version.h: Lots of + portability fixes to make non GNU/Linux-specific. Now runs on + Solaris! + +2005-01-06 rocky + + * lib/cdda_interface/cooked_interface.c, + lib/cdda_interface/interface.c, lib/driver/cdio.c, + lib/paranoia/paranoia.c, src/cd-paranoia/cd-paranoia.c, + src/cd-paranoia/report.c, src/cd-paranoia/utils.h, + src/cd-paranoia/version.h: First working all-libcdio cd-paranoia + (modulo various omissions and memory leaks). + +2005-01-05 rocky + + * lib/cdda_interface/low_interface.h: Conditional code for non-linux + +2005-01-05 rocky + + * configure.ac: Another header for Linux and cdparanoia. + +2005-01-05 rocky + + * include/cdio/Makefile.am, include/cdio/{cdda_interface.h => + cdda.h}, include/cdio/cdio.h, include/cdio/device.h, + include/cdio/scsi_mmc.h, lib/cdda_interface/Makefile.am, + lib/cdda_interface/common_interface.c, + lib/cdda_interface/cooked_interface.c, + lib/cdda_interface/drive_exceptions.h, + lib/cdda_interface/interface.c, lib/cdda_interface/low_interface.h, + lib/cdda_interface/scan_devices.c, lib/cdda_interface/toc.c, + lib/driver/track.c, lib/paranoia/p_block.c, lib/paranoia/p_block.h, + lib/paranoia/paranoia.c: The first all libcdio cdda_interface. There + are some gaps could be filled. cdda_inteface.h renamed to cdda.h cdio_destroy moved from cdio.h to device.h + +2005-01-04 rocky + + * include/cdio/Makefile.am, include/cdio/cdio.h, + include/cdio/device.h, include/cdio/disc.h, include/cdio/track.h, + lib/driver/disc.c: Add device for drive(r)/device things. Reorganize + more to pull things out of cdio and into their respective units. + +2005-01-04 rocky + + * src/util.c: CdIo -> CdIo_t + +2005-01-04 rocky + + * example/cdtext.c, example/iso2.c, example/sample2.c, + example/sample3.c, example/sample4.c, example/tracks.c: Revise for + current conventions. + +2005-01-04 rocky + + * include/cdio/Makefile.am, include/cdio/cdio.h, + include/cdio/disc.h, include/cdio/sector.h, include/cdio/track.h, + include/cdio/types.h, lib/driver/Makefile.am, lib/driver/cdio.c, + lib/driver/cdio_private.h, lib/driver/disc.c, lib/driver/generic.h, + lib/driver/image.h, lib/driver/image/bincue.c, + lib/driver/image/cdrdao.c, lib/driver/image/nrg.c, + lib/driver/image_common.c, lib/driver/image_common.h, + lib/driver/libcdio.sym, lib/driver/track.c: Break out track and disc + routines. (Disc needs more work) Add more convenience track + routines. Set access-mode for image routines to be the image + drivers - for uniformity. Some name regularization. And we're in + 2005 now. + +2005-01-02 rocky + + * src/cd-drive.c, src/cd-info.c: CdIo -> CdIo_t + +2005-01-02 rocky + + * include/cdio/cdio.h, include/cdio/track.h, + lib/driver/_cdio_aix.c, lib/driver/_cdio_bsdi.c, + lib/driver/_cdio_generic.c, lib/driver/_cdio_linux.c, + lib/driver/cd_types.c, lib/driver/cdio.c, lib/driver/scsi_mmc.c, + lib/iso9660/iso9660_fs.c: Add Cdio_t, move some more stuff into + track.h + +2005-01-01 rocky + + * test/cdda-mcn.right, test/cdda.right, test/check_opts2.right, + test/check_opts3.right, test/check_opts4.right, + test/check_opts5.right, test/check_opts6.right, + test/check_opts7.right, test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo_vcdinfo.right, test/vcd_demo_vcdinfo_toc.right, + test/videocd.right: Regression output changed again. + +2005-01-01 rocky + + * lib/driver/MSWindows/aspi32.c, + lib/driver/MSWindows/win32_ioctl.c, lib/driver/_cdio_generic.c, + lib/driver/_cdio_linux.c, lib/driver/_cdio_sunos.c, + lib/driver/generic.h, lib/driver/image_common.c: Add common routine + for setting track flags. + +2005-01-01 rocky + + * lib/driver/image/nrg.c: Typo. + +2005-01-01 rocky + + * src/cd-info.c: Show raw and formatted sizes. + +2005-01-01 rocky + + * lib/driver/_cdio_linux.c, lib/driver/image/nrg.c: NRG: get track + flags working. linux: small clanup in track flags. more to come. + +2005-01-01 rocky + + * include/cdio/sector.h: Typo in CDIO_FRAMSIZE_RAW0 definition. + +2005-01-01 rocky + + * lib/driver/MSWindows/aspi32.c, lib/driver/MSWindows/win32.c, + lib/driver/MSWindows/win32_ioctl.c: Add track control info for Doze. + +2004-12-31 rocky + + * lib/driver/_cdio_linux.c, lib/driver/_cdio_sunos.c, + test/check_cue.sh.in, test/vcd_demo.right: Add track flags for + solaris. Regression test without vcdinfo corrected. + +2004-12-31 rocky + + * lib/driver/Makefile.am, lib/driver/image/bincue.c, + lib/driver/image/cdrdao.c, lib/driver/image/nrg.c, + lib/driver/image_common.c, lib/driver/image_common.h, + src/cd-info.c, test/Makefile.am, test/cdda-mcn.right, + test/cdda.cue, test/cdda.right, test/cdda.toc, + test/check_cue.sh.in, test/check_opts2.right, + test/check_opts3.right, test/check_opts4.right, + test/check_opts5.right, test/check_opts6.right, + test/check_opts7.right, test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo_vcdinfo.right, test/vcd_demo_vcdinfo_toc.right, + test/videocd.right: Add image driver track flag reporting. + Reorganize code for image drivers a little better (via + image_common.c). Update regression tests for more expanded cd-info output. + +2004-12-31 rocky + + * include/cdio/track.h: Track-related calls go here. + +2004-12-31 rocky + + * include/cdio/Makefile.am, include/cdio/cdio.h, + lib/driver/_cdio_generic.c, lib/driver/_cdio_linux.c, + lib/driver/cdio.c, lib/driver/cdio_private.h, lib/driver/generic.h, + lib/driver/image/bincue.c, lib/driver/image/cdrdao.c, + lib/driver/image_common.h, lib/driver/libcdio.sym, src/cd-info.c: + Start to fill in cdio_get_preemphasis, cdio_get_copy_permit, and + cdio_get_channels. Internals reworked a little for this. + +2004-12-30 rocky + + * include/cdio/cdda_interface.h, include/cdio/cdio.h, + lib/driver/_cdio_generic.c, lib/driver/cdio.c, + lib/driver/cdio_private.h, lib/driver/generic.h: Add cd-paranoia's + track flag routines: copy-permitted, pre-emphasis, channels. + Updates to drivers to set this properly is still needed. + +2004-12-27 rocky + + * lib/iso9660/libiso9660.sym: Perhaps this is okay. + +2004-12-27 rocky + + * lib/iso9660/libiso9660.sym: Remove some semicolons at the end of + lines. + +2004-12-24 rocky + + * Makefile.am: Typo causing "make install" to fail. Problem found by + Steve Schultz. + +2004-12-23 rocky + + * test/vcd_demo.right: We now list the CD size on the leadout line. + +2004-12-23 rocky + + * src/cd-paranoia/Makefile.am: Correct bin_PROGRAMS name. cd-paranoia/.deps/cd-paranoia$(EXEEXT).Po was getting created when + when it should be cd-paranoia/.deps/cd-paranoia.Po Problem reported by C.Y.M. + +2004-12-22 rocky + + * test/check_opts0.right, test/check_opts1.right, + test/check_opts2.right, test/check_opts3.right, + test/check_opts4.right, test/check_opts5.right, + test/check_opts6.right, test/check_opts7.right: Regress last + regression test output change. + +2004-12-22 rocky + + * test/.cvsignore: Add derived paranoia regession test. + +2004-12-22 rocky + + * lib/Makefile.am, lib/iso9660/Makefile.am, src/Makefile.am: Until + we put in more fine-grain control, don't make libcdio_paranoia and + libcdda_interface libraries if we aren't making cd-paranoia. src/Makefile.am: correct way to disable cd-paranoia. + +2004-12-22 rocky + + * test/check_opts0.right, test/check_opts1.right, + test/check_opts2.right, test/check_opts3.right, + test/check_opts4.right, test/check_opts5.right, + test/check_opts6.right, test/check_opts7.right: discmode output + changed its Data Mode2 not Data Form1. + +2004-12-22 rocky + + * lib/paranoia/isort.c, lib/paranoia/overlap.c, + lib/paranoia/p_block.c, lib/paranoia/paranoia.c: Read in + configuration settings from config.h. paranoia was GNU/Linux based + so the #includes had been set specific to that. + +2004-12-22 rocky + + * lib/driver/_cdio_osx.c: CDIO_DRIVE_CAP_{MCN,ISRC} are now + CDIO_DRIVE_CAP_READ_{MCN,ISRC} respectively. Thanks yet again to + Steve Schultz. + +2004-12-19 rocky + + * NEWS: Much has been going on. Note it. + +2004-12-19 rocky + + * include/cdio/cdda_interface.h, + lib/cdda_interface/common_interface.c, + lib/cdda_interface/common_interface.h, + lib/cdda_interface/cooked_interface.c, + lib/cdda_interface/interface.c, lib/cdda_interface/scan_devices.c, + lib/cdda_interface/scsi_interface.c, lib/cdda_interface/utils.h, + src/cd-paranoia/buffering_write.c, + src/cd-paranoia/buffering_write.h, src/cd-paranoia/cd-paranoia.c, + src/cd-paranoia/utils.h, test/Makefile.am: More integration/cleanup. + Now uses cdio bytesex.h's BE/LE routines. copystring -> strdup. Some int's changed to track_t. But I need to be careful *not* to + change cdda_interface.h. + +2004-12-19 rocky + + * configure.ac, lib/cdda_interface/interface.c, + lib/cdda_interface/utils.h, src/cd-paranoia/cd-paranoia.c, + src/cd-paranoia/utils.h, test/Makefile.am, + test/check_paranoia.sh.in: test/*, configure.ac: First paranoia regression test. It's run automatically as it + assumes that you have a *flawless* CD-DA in a drive. *.{c,h}: more integration toward libcdio routines. In particular + remove swap16 and swap32. + +2004-12-18 rocky + + * configure.ac, src/Makefile.am, src/cd-info.c, + src/cd-paranoia/Makefile.am, src/iso-info.c, test/cdda-mcn.right, + test/cdda.right, test/check_opts2.right, test/check_opts3.right, + test/check_opts4.right, test/check_opts5.right, + test/check_opts6.right, test/check_opts7.right, + test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo_vcdinfo.right, test/videocd.right: cd-info now shows + size of CD. iso-info takes options -l and -f to be a little more + like isoinfo configure.ac now allows for disabling cd-paranoia, iso-read, + iso-drive, cd-drive. Regression tests adjusted to new output and more drive reading + capabilities. + +2004-12-18 rocky + + * .cvsignore, Makefile.am, configure.ac, include/cdio/Makefile.am, + include/cdio/cdda_interface.h, include/cdio/cdio.h, + include/cdio/paranoia.h, include/cdio/scsi_mmc.h, + include/cdio/types.h, lib/.cvsignore, lib/Makefile.am, + lib/cdda_interface/.cvsignore, lib/cdda_interface/Makefile.am, + lib/cdda_interface/common_interface.c, + lib/cdda_interface/common_interface.h, + lib/cdda_interface/cooked_interface.c, + lib/cdda_interface/drive_exceptions.h, + lib/cdda_interface/interface.c, lib/cdda_interface/low_interface.h, + lib/cdda_interface/scan_devices.c, + lib/cdda_interface/scsi_interface.c, lib/cdda_interface/smallft.c, + lib/cdda_interface/smallft.h, lib/cdda_interface/test_interface.c, + lib/cdda_interface/toc.c, lib/cdda_interface/utils.c, + lib/cdda_interface/utils.h, lib/driver/.cvsignore, lib/{ => + driver}/FreeBSD/Makefile, lib/{ => driver}/FreeBSD/freebsd.c, lib/{ + => driver}/FreeBSD/freebsd.h, lib/{ => + driver}/FreeBSD/freebsd_cam.c, lib/{ => + driver}/FreeBSD/freebsd_ioctl.c, lib/{ => + driver}/MSWindows/Makefile, lib/{ => driver}/MSWindows/aspi32.c, + lib/{ => driver}/MSWindows/aspi32.h, lib/{ => + driver}/MSWindows/win32.c, lib/{ => driver}/MSWindows/win32.h, + lib/{ => driver}/MSWindows/win32_ioctl.c, lib/driver/Makefile.am, + lib/{ => driver}/_cdio_aix.c, lib/{ => driver}/_cdio_bsdi.c, lib/{ + => driver}/_cdio_generic.c, lib/{ => driver}/_cdio_linux.c, lib/{ + => driver}/_cdio_osx.c, lib/{ => driver}/_cdio_stdio.c, lib/{ => + driver}/_cdio_stdio.h, lib/{ => driver}/_cdio_stream.c, lib/{ => + driver}/_cdio_stream.h, lib/{ => driver}/_cdio_sunos.c, lib/{ => + driver}/cd_types.c, lib/{ => driver}/cdio.c, lib/{ => + driver}/cdio_assert.h, lib/{ => driver}/cdio_private.h, lib/{ => + driver}/cdtext.c, lib/{ => driver}/cdtext_private.h, lib/{ => + driver}/ds.c, lib/{ => driver}/generic.h, lib/{ => driver}/image.h, + lib/{ => driver}/image/Makefile, lib/{ => driver}/image/bincue.c, + lib/{ => driver}/image/cdrdao.c, lib/{ => driver}/image/nrg.c, + lib/{ => driver}/image/nrg.h, lib/{ => driver}/image_common.h, + lib/{ => driver}/libcdio.sym, lib/{ => driver}/logging.c, lib/{ => + driver}/portable.h, lib/{ => driver}/scsi_mmc.c, lib/{ => + driver}/scsi_mmc_private.h, lib/{ => driver}/sector.c, lib/{ => + driver}/util.c, lib/iso9660/.cvsignore, lib/iso9660/Makefile.am, + lib/{ => iso9660}/iso9660.c, lib/{ => iso9660}/iso9660_fs.c, lib/{ + => iso9660}/iso9660_private.h, lib/{ => iso9660}/libiso9660.sym, + lib/{ => iso9660}/xa.c, lib/paranoia/.cvsignore, + lib/paranoia/Makefile.am, lib/paranoia/gap.c, lib/paranoia/gap.h, + lib/paranoia/isort.c, lib/paranoia/isort.h, lib/paranoia/overlap.c, + lib/paranoia/overlap.h, lib/paranoia/p_block.c, + lib/paranoia/p_block.h, lib/paranoia/paranoia.c, + libcdio_cdda.pc.in, libcdio_paranoia.pc.in, src/Makefile.am, + src/cd-info.c, src/cd-paranoia/.cvsignore, + src/cd-paranoia/Makefile.am, src/cd-paranoia/buffering_write.c, + src/cd-paranoia/buffering_write.h, src/cd-paranoia/cd-paranoia.1, + src/cd-paranoia/cd-paranoia.1.jp, src/cd-paranoia/cd-paranoia.c, + src/cd-paranoia/header.c, src/cd-paranoia/header.h, + src/cd-paranoia/report.c, src/cd-paranoia/report.h, + src/cd-paranoia/utils.h, src/cd-paranoia/version.h, src/util.c, + test/Makefile.am: BIG REORGANIZATION. Reorganize directory structure for inclusion of cd-paranoia. Works + for GNU/Linux. Other OS's may be broken. Regression test output + needs to be adjusted too. Move: lib/driver (split off of lib) lib/iso9660 (split off of lib) Add from paranoia: lib/cdda_interface lib/paranoia src/paranoia Also made some small changes to capability indentification to show + more reading capabilties and show that. cd-info now shows the total disc size. + +2004-12-17 rocky + + * lib/image/nrg.c: Classified one more disc mode perhaps. Variable + name change and probably clarification. + +2004-12-17 rocky + + * lib/cdio.c: Change wording of discmode2str. + +2004-12-17 rocky + + * test/check_opts0.right, test/check_opts1.right, + test/check_opts2.right, test/check_opts3.right, + test/check_opts4.right, test/check_opts5.right, + test/check_opts6.right, test/check_opts7.right, + test/monvoisin.right, test/svcdgs.right, test/videocd.right: cd-info + output changed. Stupid me: I keep getting mode/form confusted. Discs are Mode 1, 2, + CDDA or mixed. (Not form 1 and 2). + +2004-12-15 rocky + + * configure.ac, include/cdio/cdio.h, lib/Makefile.am, + lib/_cdio_aix.c, lib/cdio.c: Towards getting an AIX driver working. + +2004-12-09 rocky + + * configure.ac: As per Tilman Linneweh FreeBSD 6 is like FreeBSD 5. + +2004-12-06 rocky + + * lib/_cdio_sunos.c: Add better discmode detection via FULLTOC that + we use on GNU/Linux. + +2004-12-06 rocky + + * lib/scsi_mmc.c: scsi_mmc_get_discmode: As per Justin B Ruggles, + SCSI, MMC-5 may require setting db.field[1] = CDIO_CDROM_MSF. + +2004-12-04 rocky + + * include/cdio/scsi_mmc.h: Small typo. + +2004-12-04 rocky + + * THANKS: Add Justin B. Ruggles. + +2004-12-04 rocky + + * include/cdio/scsi_mmc.h, include/cdio/sector.h, + lib/_cdio_linux.c, lib/cdio.c, lib/scsi_mmc.c: Move scsi mmc + discmode determination to scsi-mmc. Add discmode for CD-i. + +2004-12-04 rocky + + * src/cd-info.c: Add cast to remove compiler warning. + +2004-12-04 rocky + + * lib/_cdio_linux.c: Justin B Ruggles + reports: GNU/Linux ioctl(.., CDROM_DISC_STATUS does not return "CD DATA + Form 2" for SVCD's when I know they are form 2, so we read a FULL + TOC in an attempt to make it more accurate. Most of the info was + obtained the SCSI MMC draft spec revision 10a from http://www.t10.org/ftp/t10/drafts/mmc/mmc-r10a.pdf Pages 56 to 62 give more details. Libcdio does not have CD-i as a discmode, so I just have it treat CD-i as if it is CD-XA. This doesn't work for the SVCD I tried but it is probably a step in + the right direction. And when things settle down, it should be done + on other OS drivers as well. + +2004-12-04 rocky + + * lib/Makefile.am: Small typo. + +2004-12-01 rocky + + * TODO: Small update. + +2004-11-29 rocky + + * autogen.sh: Make sure we have automake version 1.6 or greater. + Problem reported by C.Y.M + +2004-11-22 rocky + + * lib/Makefile.am: make -j4 was failing because the Makefile + variable libcdio_la_dependencies was not getting set. I don't know + why this happens, but I've worked around the problem by removing + this variable and adding the value of it (libcdio.la) in the places + libcdio_la_dependencies is used. Problem reported by Goetz Waschk. + +2004-11-22 rocky + + * example/.cvsignore: Add C++ binaries. + +2004-11-22 rocky + + * example/iso3cpp.cpp: C++ version of iso3.c + +2004-11-22 rocky + + * example/README: Add C++ programs. + +2004-11-22 rocky + + * configure.ac, example/Makefile.am, example/iso1cpp.cpp, + example/iso2.c, example/iso2cpp.cpp, example/iso3.c, + include/cdio/ds.h: Fix up ability to use in C++ programs. Add some + C++ example programs to make sure those compile. + +2004-11-21 rocky + + * NEWS, configure.ac, include/cdio/iso9660.h, lib/iso9660.c: + configure.ac: in 72cvs now. iso9660.{c,h}: "new" is a reserved word in C++. Don't use it as a + parameter name + +2004-11-21 rocky + + * example/iso1.c: Add cast to make this possible to compile via g++ + +2004-11-21 rocky + + * doc/libcdio.texi: Update OS section and note ISO 9660 library in + the history part. + +2004-11-21 rocky + + * doc/glossary.texi, doc/libcdio.texi: Go over. Add section on + Joliet. Add iso-info sample output. Break out info nodes for tracks + and sectors. Some small improvements. + +2004-11-21 rocky + + * test/Makefile.am: Solaris creates core files not, core.$pid. + Change to make "make distcheck" work. + +2004-11-20 rocky + + * lib/_cdio_bsdi.c: Make sure we initialize get_hwinfo expliscitly. + +2004-11-20 rocky + + * lib/_cdio_linux.c: Make sure get_hwinfo is initialized. Add cdio_ + in front of to/from_bcd8 + +2004-11-19 rocky + + * src/cd-info.c: Add cdio_ in front of to_bcd8 and from_bcd8. + +2004-11-19 rocky + + * lib/_cdio_bsdi.c: Add cdio_ in front of to_bcd8 and from_bcd8. + +2004-11-19 rocky + + * src/cd-info.c: Add "toc-file" option for cdrdao images. + +2004-11-18 rocky + + * lib/_cdio_sunos.c, lib/sector.c: _cdio_sunos.c: fix bug in audio + mode reading. *.c: replcate {from,to}_bcd8 with corresponding cdio_ + names. + +2004-11-16 nboullis + + * lib/Makefile.am: When a list of exported symbols is modified, the + corresponding library should be rebuilt. + +2004-11-16 nboullis + + * lib/libcdio.sym: libcdio's ABI should provide all the symbols + required by the API. + +2004-11-16 nboullis + + * configure.ac: If ld is not GNU ld, --without-versioned-libs is + assumed, so it is useless to fail if make is also not GNU make. + +2004-11-16 nboullis + + * Makefile.am: Lots of files referenced in EXTRA_DIST were not + actually available; remove them from EXTRA_DIST. + +2004-11-15 nboullis + + * lib/Makefile.am: Access libcdio.sym and libiso9660.sym through + $(srcdir) to enable building outside the source directory. (Used by + "make distcheck".) + +2004-11-15 nboullis + + * lib/libcdio.sym: There is no _cdio_list_preappend symbol, but + _cdio_list_prepend instead. + +2004-11-15 rocky + + * Makefile.am: Don't need config.rpath and don't recall why it was + needed. + +2004-11-15 nboullis + + * include/cdio/util.h: "static inline __attribute__((deprecated))" + functions are not available in standard C; only use them with GCC 3 + and above, and replace them with simple #defines for other + compilers. + +2004-11-15 rocky + + * lib/libcdio.sym: Add symbols that VCDimager uses. + +2004-11-15 rocky + + * include/cdio/util.h, lib/Makefile.am, lib/libcdio.sym, lib/util.c: + rename to_bcd8 and from_bcd8 to cdio_to_bcd8 and cdio_from_bcd8. + (N. Boullis) lib/Makefile.am: avoid non-GNU ld options when + --without-versioned-libs is in effect. + +2004-11-14 rocky + + * lib/libiso9660.sym: Move local files to global. + +2004-11-14 rocky + + * Makefile.am: Remove more unused .m4 files. Probably a hold over + from requiring gettext. (So we may yet add these back in sometime + in the future.) + +2004-11-14 rocky + + * Makefile.am, configure.ac, lib/Makefile.am: lib/Makefile.am: make + sure we include .sys files in distribution. configure.ac: get ready + for 0.71 Makefile.am: one of those m4's doesn't exist here. + +2004-11-14 nboullis + + * lib/Makefile.am, lib/libiso9660.sym: Only export the required + symbols of libiso9660. + +2004-11-14 nboullis + + * lib/Makefile.am, lib/libcdio.sym: Only export the required symbols + of libcdio. + +2004-11-14 rocky + + * src/cd-drive.c: Opens cd driver a little less and checks for NULL. + Helps things especially on AIX. + +2004-11-13 rocky + + * lib/_cdio_sunos.c: Add explicit NULL for get_hwinfo. + +2004-11-13 rocky + + * lib/_cdio_sunos.c: env -> p_env + +2004-11-13 rocky + + * example/scsi-mmc1.c: Small typo. + +2004-11-12 rocky + + * lib/Makefile.am: Guidence from Nicolas Boullis on how to library + versioning works or should work. + +2004-11-08 rocky + + * lib/cdtext.c: cdtext.c: was not converting arranger string + properly. + +2004-11-07 rocky + + * NEWS, lib/image/bincue.c, lib/image/cdrdao.c, lib/portable.h: + Hoist common "portable" definitions into portable.h NEWS - + rearrange. + +2004-11-07 rocky + + * configure.ac: fixes to make run on AIX + +2004-11-07 rocky + + * lib/MSWindows/aspi32.c: Revert last changes. + +2004-11-07 rocky + + * lib/MSWindows/aspi32.c: Compilation fix. + +2004-11-07 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/win32_ioctl.c: + win32_ioctl.c: minor comment or function name changes. aspi32.c: + use length definitions better. + +2004-11-07 rocky + + * lib/MSWindows/win32_ioctl.c: Read TOC buf fixes. Now tries MMC + FULLTOC and then falls back to Windows' DeviceIoCtl READ_TOC. + +2004-11-06 rocky + + * lib/iso9660_fs.c: Small warning change when we don't have + nl_langinfo(CODESET). + +2004-11-06 rocky + + * test/testtoc.c: Remove erroneous free()'s. This now give a + valgrind error that looks to me bogus. + +2004-11-06 rocky + + * configure.ac: Clean up headers - remove "obsolete" names. Some + OS's weren't testing some, and some OS-specific we were testing for. + +2004-11-06 rocky + + * Makefile.am, configure.ac, lib/Makefile.am: Automake woes. Think I + have PACKAGE and VERSION set right now. lib/Makefile.am: we'll say + libcdio has new interfaces + +2004-11-06 rocky + + * lib/Makefile.am: Change library numbers. + +2004-11-06 rocky + + * Makefile.am: Typo. + +2004-11-06 rocky + + * NEWS, src/util.c, src/util.h: src/util.{c,h}: use report more + often. NEWS - what's up + +2004-11-06 rocky + + * src/util.c, test/cdda.right: src/util.c: remove extra white space + test/cdda.right: adjust for recently found bug. + +2004-11-06 rocky + + * src/cd-info.c: Bug in showing cdtext for individual tracks. + +2004-11-04 rocky + + * MSVC/stdint.h, configure.ac, src/cd-drive.c, src/cd-info.c, + src/cd-read.c, src/iso-info.c, src/iso-read.c, src/util.c, + src/util.h: Common output routine in utility programs as a + concession to environments which may no have or prefer stdout/stderr + such as XBOX. + +2004-11-04 rocky + + * libiso9660.pc.in: Wrong Version substitution. Thanks again to + Steve Schultz. + +2004-11-04 rocky + + * libcdio.pc.in: Wrong substitution name. Thanks to Steve Schultz + for finding this problem. + +2004-11-01 rocky + + * lib/MSWindows/win32_ioctl.c: Compilation fix. Add line/file/fn + info on XBOX. + +2004-11-01 rocky + + * lib/MSWindows/win32_ioctl.c: Add common FORMAT_ERROR. XBOX/MSVC + deficiencies shouldn't be so in your face. + +2004-11-01 rocky + + * MSVC/config.h, MSVC/stdint.h, Makefile.am, lib/_cdio_generic.c, + lib/portable.h: Merging in MSVC/XBOX from John Oseman + +2004-11-01 rocky + + * configure.ac: Set some package strings. + +2004-11-01 rocky + + * configure.ac: Typo. + +2004-10-31 rocky + + * lib/MSWindows/win32.c: Compilation fixes. + +2004-10-31 rocky + + * lib/MSWindows/win32.c, lib/scsi_mmc.c: scsi_mmc.c: get CD-Text + length before reading CD-Text. win32.c: make sure we can't set ASPI + when XBOX. Other small changes for XBOX compatibility. + +2004-10-31 rocky + + * lib/logging.c, lib/portable.h: portable.h: remove rcsid. + logging.c: include portable.h + +2004-10-31 rocky + + * NEWS, configure.ac, example/iso2.c, example/iso3.c, + lib/Makefile.am, lib/_cdio_generic.c, lib/iso9660_fs.c, + lib/portable.h, src/iso-read.c: configure.ac, lib/*, example/*.c, + src/iso-read.c: start to separate compiler/OS deficiencies into + "portable.h" configure.ac, lib/iso9660_fs.c: use AM_LANGINFO_CODESET rather than code in our ouwn langinfo.h + and CODESET tests. + +2004-10-31 rocky + + * include/cdio/logging.h, include/cdio/util.h, lib/image/bincue.c, + lib/image/cdrdao.c, lib/image/nrg.c: Mostly portability issues from + or inspired by mog's changes for XBOX. image/*.c: initialize func structure to 0 (NULL). include/cdio/*.h: add "extern C" for C++ compilations where + appropriate. + +2004-10-31 rocky + + * lib/MSWindows/win32.c: Change to make compatible for MSVC 6 and + older C compilers. + +2004-10-31 rocky + + * lib/iso9660_fs.c: Fixes when no Joliet support. + +2004-10-31 rocky + + * configure.ac: Fix up Joliet detection or lack thereof. + +2004-10-30 rocky + + * lib/scsi_mmc.c: Add include of stdlib.h (From mog for XBOX) + +2004-10-30 rocky + + * MSVC/README, MSVC/cd-info.vcproj, MSVC/libcdio.sln, + MSVC/libcdio.vcproj: Files for compiling with MSVC. Courtesy of John + Oseman (mog). + +2004-10-30 rocky + + * lib/MSWindows/win32_ioctl.c: Fixes while trying to merge some of + the XBOX changes. + +2004-10-30 rocky + + * lib/iso9660_fs.c: NLS fixups. Wrong preprocessor symbol used. + +2004-10-30 rocky + + * configure.ac, lib/iso9660.c, lib/iso9660_fs.c, src/iso-info.c: + configure.ac, iso9660.c: test for tzname variable. configure.ac, + iso9660_fs.c: test for nls_langinfo() and #include + iso-info.c: some OS's need 2 args for multi-arg defines. + +2004-10-30 rocky + + * libiso9660.pc.in: libiso9660 needs iconv. Also, we're not + libvcdino. + +2004-10-30 rocky + + * configure.ac, lib/iso9660.c: *: test for daylight and timezone + configure.ac: test for stdbool.h + +2004-10-29 rocky + + * lib/iso9660_fs.c, src/cd-info.c, src/iso-info.c: Conditional + compilation of Joliet support. + +2004-10-28 rocky + + * test/Makefile.am: Add joliet regression test files. + +2004-10-28 rocky + + * configure.ac, lib/MSWindows/win32_ioctl.c, lib/iso9660_fs.c, + test/Makefile.am, test/check_common_fn.in, test/check_iso.sh.in, + test/joliet-nojoliet.right, test/joliet.right: configure.ac: Add + --disable-joliet and disable joliet if iconv is not around + iso9660_fs.c: Setting string length on of UCBE wrong? test/*: add + joliet regression test. + +2004-10-28 rocky + + * include/cdio/Makefile.am: cdio.h accidently got removed. + +2004-10-28 rocky + + * lib/cdtext_private.h: Add more fields from the MMC-3 spec. + +2004-10-28 rocky + + * lib/Makefile.am: bytesex files have moved from private to public. + Forgot to remove them for "make dist" + +2004-10-28 rocky + + * include/cdio/iso9660.h: A small change which caused a hard-to-find + bug in using Joliet filenames. + +2004-10-27 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/win32.c: Cygwin fixes. + +2004-10-26 rocky + + * lib/iso9660_fs.c: iconv manpages sys the return is size_t not int + +2004-10-26 rocky + + * lib/iso9660_fs.c: Reinstate -1 test. + +2004-10-26 rocky + + * lib/iso9660_fs.c: Respect --no-joliet better. + +2004-10-26 rocky + + * configure.ac: Remove some gettext fascism. + +2004-10-26 rocky + + * configure.ac, example/Makefile.am, src/Makefile.am, + test/Makefile.am, test/vcd_demo.right: Solaris fixes + test/vcd_demo.right: fix when vcd-info is not installed. + +2004-10-26 rocky + + * src/cd-info.c: Add --no-joliet option + +2004-10-26 rocky + + * lib/FreeBSD/freebsd.c, lib/MSWindows/win32.c, lib/_cdio_linux.c, + lib/_cdio_osx.c, lib/_cdio_sunos.c, src/cd-info.c: Various + valgrind-detected memory leaks and unitialized variable errors. + +2004-10-26 rocky + + * configure.ac, lib/iso9660.c: Test for presence of tzset(). + +2004-10-26 rocky + + * lib/cdio.c, lib/image/bincue.c, lib/iso9660.c, lib/iso9660_fs.c, + src/cd-info.c, test/Makefile.am, test/isofs-m1.right, + test/monvoisin.right, test/svcd_ogt_test_ntsc.right, + test/svcdgs.right, test/testbincue.c, test/testiso9660.c, + test/vcd_demo_vcdinfo.right, test/videocd.right: Joliet filename + detection for CD images is now done. Various valgrind-caught errors + fixed Output changed: we no longer print root block number. (It is + still shown when XA attributes are printed.) + +2004-10-25 rocky + + * lib/iso9660.c: root_directory accounting is now a little different + since we don't count the filename as part of the root_directory + record. + +2004-10-24 rocky + + * example/iso2.c, include/cdio/cdio.h, include/cdio/iso9660.h, + lib/_cdio_generic.c, lib/_cdio_stream.c, lib/cdio.c, lib/generic.h, + lib/image/bincue.c, lib/iso9660.c, lib/iso9660_fs.c, src/cd-info.c: + First attempt to extent Joliet to CD reading portion. + +2004-10-24 rocky + + * .cvsignore, Makefile.am, configure.ac: Makefile.am: "make test" + now means the same thing as "make check" configure.ac: make sure we + test for iconv. gettext isn't all that important right now. + +2004-10-24 rocky + + * lib/iso9660_fs.c: Was looking at wrong place for + joliet/non-joliet. + +2004-10-24 rocky + + * example/Makefile.am, lib/iso9660_fs.c, src/Makefile.am, + test/Makefile.am: Add libiconv libraries where needed. + +2004-10-24 rocky + + * configure.ac: Try to reduce duplicate header tests. + +2004-10-24 rocky + + * .cvsignore, doc/doxygen/.cvsignore: Add more derived files from + recent changes. + +2004-10-24 rocky + + * Makefile.am, configure.ac, doc/Makefile.am, doc/doxygen/{Doxyfile + => Doxyfile.in}, src/iso-info.c: configure.ac: test for intl and + iconv needed for Joliet support iso-info.c: add --no-joliet option + Doxyfile*, configure.ac: Automatically update some ofthe Doxyfile + information + +2004-10-24 rocky + + * include/cdio/iso9660.h, lib/iso9660_fs.c: Various portability + fixes when libiconv isn't available or is broken. + +2004-10-23 rocky + + * TODO: [no log message] + +2004-10-23 rocky + + * TODO: [no log message] + +2004-10-23 rocky + + * TODO: Revise. Note iso-tar. + +2004-10-23 rocky + + * NEWS, configure.ac, doc/glossary.texi, include/cdio/iso9660.h, + lib/iso9660.c, lib/iso9660_fs.c, src/iso-info.c, test/testbincue.c: + First cut at Joliet support for ISO 9660 images. More work is needed + to integrate this into CD reading. + +2004-10-22 rocky + + * src/iso-info.c: Slightly better error messages. + +2004-10-22 rocky + + * doc/glossary.texi: Update definition of ISO 9660 + +2004-10-22 rocky + + * NEWS: What's up. + +2004-10-22 rocky + + * include/cdio/Makefile.am, {lib => include/cdio}/bytesex.h, {lib + => include/cdio}/bytesex_asm.h, include/cdio/iso9660.h, + lib/Makefile.am, lib/image/nrg.c, lib/iso9660.c, lib/iso9660_fs.c, + lib/xa.c, src/cd-info.c, src/iso-info.c: iso9660.h, iso9660_fs.c: + Add iso9660_ifs_is_xa() a routine to determine if an iso image has + XA attributes. bytesex.h and bytesex_asm.h are now public. (Down the line should + use glib though.) Package has been revised to the move. iso-info.c: shows XA attributes what that it is available. + +2004-10-12 rocky + + * THANKS: Add Ian MacIntosh. + +2004-10-10 rocky + + * include/cdio/iso9660.h: small formatting change. + +2004-10-10 rocky + + * NEWS: What's changed. + +2004-10-10 rocky + + * doc/libcdio.texi, example/.cvsignore, example/Makefile.am, + example/README, example/{sample8.c => cdtext.c}, example/{sample5.c + => drives.c}, example/iso1.c, example/{sample6.c => iso2.c}, + example/{sample7.c => iso3.c}, example/{sample9.c => scsi-mmc1.c}, + example/{sample10.c => scsi-mmc2.c}, example/{sample1.c => + tracks.c}: Rename many of the "sample" programs to something more + descriptive. libcdio.texi: add a SCSI-MMC example program. + +2004-10-09 rocky + + * include/cdio/iso9660.h, lib/iso9660_fs.c: Change some void * + return types to what they really are. The void * was helping to + propagate the mistake of not exporting CdioList in ds.h. CVS: + ----------------------------------------------------------------------include/cdio/iso9660.h lib/iso9660_fs.c CVS: + + ---------------------------------------------------------------------- + +2004-10-09 rocky + + * example/Makefile.am, include/cdio/Makefile.am, {lib => + include/cdio}/ds.h, include/cdio/iso9660.h, lib/Makefile.am, + lib/ds.c, lib/image/nrg.c, lib/image_common.h, lib/iso9660_fs.c, + src/cd-info.c, src/iso-info.c: Make ds.h public. It should have been + that way since it *is* public. Eventually though we'll redo things + using glib and then ds.h will get removed. + +2004-09-11 rocky + + * src/Makefile.am: Apply Patch #3043 Thanks to mccarthy from U of + Alberta: Building libcdio with libcddb in a non-standard directory --prefix + causes make to fail. + +2004-09-06 rocky + + * TODO: Update wish-list. + +2004-09-05 rocky + + * include/cdio/cdtext.h, test/Makefile.am, test/testbincue.c, + test/testtoc.c: cdtext.h: minor doxygen improvemtn others: make + "make distcheck" work again. + +2004-09-04 rocky + + * doc/doxygen/Doxyfile, include/cdio/cdio.h, include/cdio/cdtext.h, + include/cdio/dvd.h, include/cdio/iso9660.h, include/cdio/logging.h, + include/cdio/scsi_mmc.h: Changes to make doxygen doc better. + +2004-09-04 rocky + + * lib/image/bincue.c, lib/image/cdrdao.c, lib/image/nrg.c, + test/cdda-mcn.right, test/cdda.right, test/check_cue.sh.in, + test/check_nrg.sh.in, test/check_opts.sh, test/check_opts0.right, + test/check_opts1.right, test/check_opts2.right, + test/check_opts3.right, test/check_opts4.right, + test/check_opts5.right, test/check_opts6.right, + test/check_opts7.right, test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo_vcdinfo.right, test/videocd.right: Add get_hwinfo + functions in image drivers. + +2004-09-03 rocky + + * configure.ac, include/cdio/types.h, lib/_cdio_bsdi.c, + lib/_cdio_generic.c, lib/_cdio_linux.c, lib/_cdio_osx.c, + lib/_cdio_sunos.c, lib/cdio.c, lib/cdio_private.h, lib/cdtext.c, + lib/cdtext_private.h, lib/image/bincue.c, lib/image/cdrdao.c, + lib/image/nrg.c, lib/scsi_mmc.c, lib/sector.c, lib/util.c: + configure.ac: now in 0.71cvs *.c: lint-like changes. Tested on Sun's + SUNPRO cc compiler. Removed feild initialization lingo (even if it + is C99). + +2004-09-02 rocky + + * lib/_cdio_osx.c: Fix bugs in discmode determination. And actually + in general due to moving i_first_track to generic structure. + +2004-09-02 rocky + + * lib/_cdio_osx.c: Remove include which is not needed. + +2004-09-02 rocky + + * src/cd-info.c: Possibly some C compilers need at least 2 + arguments. Noticed on old FreeBSD box. + +2004-09-02 rocky + + * lib/Makefile.am: Update for release. I think I have it right this + time. (Well, at least Nicolas Boullis doesn't strongly *disagree*). + +2004-09-01 rocky + + * configure.ac: Update for release. + +2004-08-30 rocky + + * THANKS: How could I have forgotten... + +2004-08-30 rocky + + * lib/cdtext.c: Put in later after tested. + +2004-08-30 rocky + + * src/cd-info.c: Error messages was slightly incorrect. And add + another one of that ilk. + +2004-08-30 rocky + + * lib/_cdio_osx.c: Use generic routines for getting first track and + number of tracks. + +2004-08-30 rocky + + * lib/_cdio_osx.c, src/cd-info.c: _cdio_osx.c: wasnt' returning + CDIO_INVALID_TRACK on TOC read error. cd-info.c: abort sooner if we + can't read the TOC. + +2004-08-30 rocky + + * include/cdio/sector.h, src/cd-info.c: cd-info.c: bug in DVD test. sector.h: redo the way the dvd and cd tests work. Isn't strictl + necessary, but this is has fewer implicit dependencies. + +2004-08-30 rocky + + * include/cdio/sector.h, lib/cdtext.c, lib/cdtext_private.h, + src/cd-info.c: sector.h: add routines for determining if discmode is + DVD or CD. cdtext*: adjust for bigendian or not. Check for double-byte + characters. cd-info.c: new option --dvd. Don't attempt to understand DVD unless + this is given. + +2004-08-29 rocky + + * lib/Makefile.am: Incremented the wrong thing. + +2004-08-29 rocky + + * lib/Makefile.am: Increment before release. + +2004-08-29 rocky + + * lib/_cdio_osx.c, lib/cdio.c: cdio.c: missing string for discmode + enumeration. _cdio_osx.c: fix a couple of bus faults. Detects + DVD-RW properly now. Better error message for failing to read TOC. + +2004-08-29 rocky + + * lib/_cdio_osx.c: CD-ROM media type does not indicate whether a CD + is CD-DA or CD-DATA + +2004-08-29 rocky + + * lib/MSWindows/win32_ioctl.c: Better error reporting when TOC + reading fails. Well at least we try to do better. env -> p_env some + places. + +2004-08-28 rocky + + * NEWS: Note CD-text addition. + +2004-08-28 rocky + + * lib/_cdio_osx.c: Some cleanups, possibly bug fixes. Hack in + optimistic guess for drive properties. + +2004-08-28 rocky + + * lib/_cdio_generic.c, lib/_cdio_osx.c, lib/cdio.c, + lib/cdio_private.h, lib/generic.h: _cdio_osx.c: add getting hw info. + Get some read/write capabilities and disc info. *generic*: split off CD discmode classification so it can be used by + OSX cdio: env -> p_env + +2004-08-27 rocky + + * example/sample9.c, include/cdio/cdio.h, lib/_cdio_linux.c, + lib/scsi_mmc.c, src/cd-drive.c, src/cd-info.c: add psz_ to hwinfo + type. _cdio_linux.c: go back to using SCSI MMC drive cap routine. + +2004-08-27 rocky + + * example/sample7.c: Add p_ where appropriate. + +2004-08-27 rocky + + * example/sample6.c: add p_ where appropriate. + +2004-08-27 rocky + + * example/sample5.c: cd_drives -> ppsz_cd_drives + +2004-08-27 rocky + + * example/.cvsignore: [no log message] + +2004-08-27 rocky + + * doc/doxygen/.cvignore, doc/doxygen/.cvsignore: filename typo: + .cvignore -> .cvsignore + +2004-08-27 rocky + + * include/cdio/cdio.h, lib/cdio.c: Add constant variable to indicate + which OS driver we've got in build. + +2004-08-27 rocky + + * NEWS: What's up. + +2004-08-27 rocky + + * include/cdio/cdio.h, lib/cdio.c, src/cd-drive.c, src/cd-info.c: + Add a couple of routines to pass back the driver used in getting a + drive. Speeds up a little the task of opening the drive. Is now + used in cd-drive and cd-info. + +2004-08-27 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/aspi32.h, + lib/MSWindows/win32.c, lib/MSWindows/win32_ioctl.c: Use generic SCSI + MMC code for getting drive capabilities. + +2004-08-27 rocky + + * lib/_cdio_osx.c: Wrong access for setting drive capabilites to + unknown. + +2004-08-27 rocky + + * include/cdio/cdio.h, include/cdio/scsi_mmc.h, lib/cdio.c, + lib/cdio_private.h, lib/scsi_mmc.c, src/cd-drive.c, src/cd-info.c: + Expose hwinfo call as a cdio command. It was SCSI-MMC. This may help + on OSX. + +2004-08-27 rocky + + * lib/_cdio_linux.c, lib/scsi_mmc.c: scsi_mmc.c: more aggressive + about getting drive capabilites. Try to get length first. Also try + CAPABILITIES_PAGEs as well as ALL_PAGEs. + +2004-08-27 rocky + + * lib/_cdio_osx.c: Devices list fixed, compilation error and give up + on drive capabilities for now + +2004-08-27 rocky + + * src/util.c: Show status unknown when it is unknown + +2004-08-26 rocky + + * lib/_cdio_linux.c: Small variable name changes + +2004-08-26 rocky + + * lib/_cdio_osx.c: Small formatting changes + +2004-08-22 rocky + + * lib/_cdio_osx.c: Save more IOkit information in private structure + and separate this from reading TOC. Many small changes that I hope will eventually get us closer to + getting more drive and CD information although for now it doesn't + help all that much. + +2004-08-19 rocky + + * lib/_cdio_osx.c: Partial OSX improvements -- more work is needed. + +2004-08-19 rocky + + * configure.ac: Another attempt at a pkgconfig bug workaround + +2004-08-19 rocky + + * configure.ac, libcdio.pc.in: Fixes for making libcdio work with + pkg-config on Darwin when linking vcdimager and when linking just + libcdio. From Steven M. Schultz: I blew a couple minutes tinkering with libcdio.pc and found that manually adding a quote character (not even a matched set of + quotes!) around the second -framework was enough. What works for now is manually editing libcdio.pc after it's been installed: Libs: -L${libdir} -lcdio -lm -Wl,-framework -Wl,CoreFoundation + -Wl,-framework -Wl,IOKit to: Libs: -L${libdir} -lcdio -lm -Wl,-framework -Wl,CoreFoundation + "-Wl,-framework" -Wl,IOKit is enough to get vcdimager compiled and linked. Appears that the thing to do is somehow get the quotes into libcdio.pc but not into $LIBS - or something like that at any + rate. + +2004-08-18 rocky + + * lib/_cdio_osx.c: Make sure pp_scsiTaskDeviceInterface is + initialized. The code should probably be reorganized better for + this. For now this probably works. + +2004-08-16 rocky + + * lib/image/bincue.c, lib/image/cdrdao.c, lib/image/nrg.c: Set + toc_init even on image drivers. Never know when the could will start + needing this, but may as well do now. + +2004-08-16 rocky + + * lib/FreeBSD/freebsd.c, lib/_cdio_bsdi.c, lib/_cdio_linux.c, + lib/_cdio_osx.c, lib/_cdio_sunos.c: Initialize gen.toc_init + +2004-08-16 rocky + + * lib/_cdio_osx.c: Forgot to init CD-Text variables. + +2004-08-16 rocky + + * lib/_cdio_linux.c, lib/_cdio_osx.c, lib/_cdio_sunos.c: + _cdio_osx.c: first attempt at issuing general SCSI-MMC passthrough + command. others: small changes. + +2004-08-15 rocky + + * lib/_cdio_osx.c: First attempt at getting drive capabilities. + +2004-08-15 rocky + + * lib/_cdio_osx.c: Compilation fix. + +2004-08-13 rocky + + * lib/_cdio_generic.c, lib/image/bincue.c, lib/image/cdrdao.c, + lib/image/nrg.c, lib/image_common.h: Merge common cdtext code into + image drivers. + +2004-08-13 rocky + + * lib/_cdio_osx.c: Compilaton fixes. + +2004-08-12 rocky + + * README.libcdio: Add instructions for CVS. + +2004-08-10 rocky + + * lib/FreeBSD/freebsd.c: Now that all of the generic cdtext code is + in place, it is trivial to add CD-Text support to FreeBSD. + +2004-08-10 rocky + + * lib/MSWindows/win32.c: typo. + +2004-08-10 rocky + + * example/sample10.c, lib/MSWindows/win32.c, lib/Makefile.am, + lib/_cdio_bsdi.c, lib/_cdio_generic.c, lib/_cdio_linux.c, + lib/_cdio_sunos.c, lib/cdio_private.h, lib/generic.h, src/util.c: + lib/*.c: create and use get_cdtext_generic. lib/generic.h: prototypes for _cdio_generic.c (move out of + _cdio_private.h) example/sample10.c, src/util.c: small print format improvement + +2004-08-10 rocky + + * src/util.c: Ooops. Debug info creapt in. + +2004-08-10 rocky + + * lib/MSWindows/win32.c, lib/MSWindows/win32.h, src/util.c: + Compilation fixes for Win32 and cd-text breakage. + +2004-08-10 rocky + + * example/.cvsignore: We now have 10 samples so it's sample?? as + well as sample? + +2004-08-10 rocky + + * lib/_cdio_bsdi.c: Compilation fixes from cd-text breakage. Also + make style more like the others. + +2004-08-10 rocky + + * lib/_cdio_sunos.c: compilation fix + +2004-08-10 rocky + + * test/vcd_demo.right: More correct output and add additional + capability lines + +2004-08-10 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/win32.c, + lib/MSWindows/win32.h, lib/MSWindows/win32_ioctl.c, + lib/_cdio_bsdi.c, lib/_cdio_generic.c, lib/_cdio_linux.c, + lib/_cdio_sunos.c, lib/cdio_private.h: 1st attempt to reduce + duplicate CD-Text code. (It works on GNU/Linux)... + +2004-08-10 rocky + + * example/sample10.c, include/cdio/scsi_mmc.h, + lib/FreeBSD/freebsd_ioctl.c, src/util.c: Add a couple of "features". + freebsd_ioctl.c: hopefully less-erroneous MCN extraction. + +2004-08-08 rocky + + * lib/Makefile.am: Pedantic alphabetization. + +2004-08-08 rocky + + * example/sample10.c, src/util.c: Print hardware serial number if + given by feature. + +2004-08-08 rocky + + * src/util.c: Add more feature info. + +2004-08-08 rocky + + * lib/MSWindows/win32.c: Compilation fixes. + +2004-08-07 rocky + + * lib/_cdio_bsdi.c: Make like the others. + +2004-08-07 rocky + + * lib/FreeBSD/freebsd.c, lib/MSWindows/win32.c, + lib/MSWindows/win32.h, lib/_cdio_bsdi.c, lib/_cdio_generic.c, + lib/_cdio_linux.c, lib/_cdio_sunos.c, lib/cdio_private.h, + lib/scsi_mmc.c: Add b_cdtext_init and b_cdtext_error to generic + structure. If we can't read cdtext once, mark as an error and don't + try to read again. + +2004-08-07 rocky + + * doc/libcdio.texi: Add section to Give complete list of example + programs. A few small updates, spelling corrections, typo is other + places. + +2004-08-07 rocky + + * src/cd-drive.c: Bug: listing wrong drive capabilities. Was using + wrong source_name. + +2004-08-07 rocky + + * example/sample1.c, example/sample2.c, example/sample3.c, + example/sample4.c: cdio->p_cdio + +2004-08-07 rocky + + * example/README: [no log message] + +2004-08-07 rocky + + * lib/FreeBSD/freebsd.c: Attempt getting disc mode. + +2004-08-07 rocky + + * example/sample10.c, lib/FreeBSD/freebsd_cam.c, lib/scsi_mmc.c, + src/util.c: FreeBSD and gcc < 3.0 fixes Some variable name changes + to match style. + +2004-08-07 rocky + + * lib/FreeBSD/freebsd.c: Compilation bug: need the conversion + assignment. + +2004-08-07 rocky + + * example/sample10.c, src/util.c: Add power management feature + display. + +2004-08-07 rocky + + * include/cdio/scsi_mmc.h: Add more feature codes. + +2004-08-07 rocky + + * example/sample10.c, src/util.c: Add more feature descriptions. + +2004-08-07 rocky + + * example/sample10.c, include/cdio/scsi_mmc.h, src/cd-drive.c, + src/util.c, src/util.h: util.*, cd-drive: Add feature listing to + cd-drives. sample10.c: More feature information printed scsi_mmc.h: more doxygen comments about features. + +2004-08-06 rocky + + * include/cdio/scsi_mmc.h, lib/scsi_mmc.c: small changes. + +2004-08-06 rocky + + * include/cdio/scsi_mmc.h: Add more feature definitions. + +2004-08-06 rocky + + * example/README: Update. + +2004-08-06 rocky + + * example/Makefile.am, example/sample10.c: SCSI MMC example to show + feature list of a drive. + +2004-08-06 rocky + + * lib/MSWindows/win32.c, src/util.c: win32.c: initialize + capabilities before setting them. util.c: typo was using read + parameter for determining CD-RW writing. + +2004-08-06 rocky + + * include/cdio/scsi_mmc.h: Fill out GET_CONFIGURATION - add some + feature info and return types. + +2004-08-06 rocky + + * test/cdda-mcn.right, test/cdda.right, test/check_opts0.right, + test/check_opts1.right, test/check_opts2.right, + test/check_opts3.right, test/check_opts4.right, + test/check_opts5.right, test/check_opts6.right, + test/check_opts7.right, test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo_vcdinfo.right, test/videocd.right: Output had been + erroneously showing CD-RW write capability. We also now show DVD-RW + and DVD+RW capabilities. + +2004-08-06 rocky + + * include/cdio/types.h: Comment corrections. + +2004-08-06 rocky + + * src/cd-info.c, src/util.c: cd-info.c: should not try to print out + MCN for DVD's - they don't have any such thing. util.c: wasn't reading right/write parms when showing write + capabilities. now also show DVD+RW and DVD-RW capabilities. + +2004-08-05 rocky + + * NEWS: What's up. + +2004-08-05 rocky + + * lib/FreeBSD/freebsd.c: Don't need to call initialization of TOC + here. Was done to mask a bug somewhere else that has since (I think) + been fixed. + +2004-08-05 rocky + + * lib/_cdio_linux.c: As with Win32 was passing the wrong pointer + (p_cdio instead of p_env). CD-TEXT now sometimes works on + GNU/Linux! + +2004-08-05 rocky + + * lib/scsi_mmc.c: Up the timeout. Seems to work a little better. + Probably also need either to retry or try a timeout of 0. + +2004-08-05 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/win32_ioctl.c, + lib/scsi_mmc.c: Was passing in the wrong pointer (p_cdio instead of + p_env) + +2004-08-03 rocky + + * lib/FreeBSD/freebsd.c, lib/MSWindows/win32.c: Initialization bugs. + +2004-08-03 imacintosh + + * lib/_cdio_sunos.c: Now uses DKIOCGMEDIAINFO to get discmode and + handles Soalris media + +2004-08-01 rocky + + * lib/FreeBSD/freebsd_cam.c: Compilation fix. + +2004-08-01 rocky + + * lib/FreeBSD/freebsd_cam.c: Initialize ccb. Could this be the + problem? + +2004-08-01 rocky + + * include/cdio/scsi_mmc.h: Add GET_CONFIGURATION. + +2004-08-01 rocky + + * lib/FreeBSD/freebsd.c, lib/FreeBSD/freebsd_cam.c, lib/scsi_mmc.c: + scsi_mmc.c: doc change FreeBSD: use generic routines more often. Initialize TOC before + getting drive capabilities (seems to be desired, not completely sure + or sure why this would be so.) + +2004-07-31 rocky + + * lib/FreeBSD/freebsd.c, lib/FreeBSD/freebsd.h, + lib/FreeBSD/freebsd_cam.c: More in line with rest of MMC stuff. + +2004-07-31 rocky + + * lib/FreeBSD/freebsd.h: source_name is now in gen. + +2004-07-31 rocky + + * lib/FreeBSD/freebsd.c: Compilation fix. + +2004-07-31 rocky + + * include/cdio/scsi_mmc.h, lib/_cdio_linux.c, lib/scsi_mmc.c, + lib/scsi_mmc_private.h, src/cd-drive.c, src/cd-info.c, + src/cd-read.c, src/util.h: Add scsi_mmc_get_hwinfo. + +2004-07-29 rocky + + * example/sample8.c: message->psz_msg + +2004-07-29 rocky + + * doc/libcdio.texi: Small changes. + +2004-07-29 rocky + + * include/cdio/scsi_mmc.h: Add lengths of hardware vendor, model, + and revision. + +2004-07-29 rocky + + * example/Makefile.am, example/README, example/sample8.c, + example/sample9.c: sample9: A program to show issuing a SCSI-MMC + command. sample8: cdio->p_cdio; update copyright + +2004-07-29 rocky + + * lib/scsi_mmc.c: Bug: passing wrong object. + +2004-07-29 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/win32.c, + lib/MSWindows/win32.h, lib/MSWindows/win32_ioctl.c: Use more common + routines. ioctl - not tested. ASPI has bug probably in running scsi + command. + +2004-07-29 rocky + + * lib/_cdio_bsdi.c: Convert to use generic routines for first track, + num tracks and getting discmode. + +2004-07-29 rocky + + * lib/_cdio_sunos.c: compilation fix. + +2004-07-29 rocky + + * include/cdio/scsi_mmc.h, lib/_cdio_generic.c, lib/_cdio_linux.c, + lib/_cdio_sunos.c, lib/cdio_private.h, lib/image/bincue.c, + lib/image/cdrdao.c, lib/image/nrg.c, lib/image_common.h, + test/cdda-mcn.right, test/cdda.right, test/check_opts0.right, + test/check_opts1.right, test/check_opts2.right, + test/check_opts3.right, test/check_opts4.right, + test/check_opts5.right, test/check_opts6.right, + test/check_opts7.right, test/monvoisin.right, test/svcdgs.right, + test/videocd.right: Tighten code by putting more generic routines in + cdio_generic: to get first track number and number of tracks to get discmode everybody now has gen.i_tracks and gen.i_first_track. test/* format of output changed yet again. + +2004-07-28 rocky + + * example/sample8.c, include/cdio/cdio.h, lib/cdio.c, src/cd-info.c: + Add discmode to string array. Simplifies some code a bit. + +2004-07-28 rocky + + * doc/libcdio.texi: Add CD-TEXT example. Note existence of MMC + interface. + +2004-07-28 rocky + + * lib/MSWindows/win32_ioctl.c: Bug in generic + run_scsi_cmd_win32ioctl: wasn't copying CDB in and wasn't setting + length. + +2004-07-28 rocky + + * include/cdio/scsi_mmc.h, lib/FreeBSD/freebsd.c, + lib/FreeBSD/freebsd.h, lib/FreeBSD/freebsd_cam.c, + lib/FreeBSD/freebsd_ioctl.c, lib/MSWindows/aspi32.c, + lib/MSWindows/win32_ioctl.c, lib/_cdio_linux.c, lib/scsi_mmc.c: Make + setting read lengths more precise (and correct). + +2004-07-28 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/aspi32.h, + lib/MSWindows/win32.c, lib/MSWindows/win32.h, + lib/MSWindows/win32_ioctl.c: compilation fixes + +2004-07-28 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/win32.c, + lib/MSWindows/win32_ioctl.c: msecs 2 secs cleanup + +2004-07-28 rocky + + * lib/scsi_mmc_private.h: Typo in fn name. + +2004-07-28 rocky + + * include/cdio/dvd.h, include/cdio/scsi_mmc.h, + lib/FreeBSD/freebsd_cam.c, lib/MSWindows/aspi32.c, + lib/MSWindows/win32_ioctl.c, lib/_cdio_bsdi.c, lib/_cdio_linux.c, + lib/_cdio_sunos.c, lib/scsi_mmc.c, lib/scsi_mmc_private.h: Make sure + milliseconds get converted to seconds if needed. Some function + renaming, and a typo in a DVD book type. + +2004-07-27 rocky + + * lib/scsi_mmc.c, lib/util.c: fixes for DVD handling + +2004-07-27 rocky + + * lib/_cdio_bsdi.c: Add CD-TEXT + +2004-07-27 rocky + + * lib/_cdio_bsdi.c: Add disc mode and small bug fixes + +2004-07-27 rocky + + * lib/_cdio_bsdi.c: Best guess of how to do scsi_mmc_run_cmd. Thanks + to Steven M. Schultz + +2004-07-27 rocky + + * lib/_cdio_bsdi.c: compilation fixes + +2004-07-27 rocky + + * include/cdio/scsi_mmc.h, lib/_cdio_sunos.c, lib/scsi_mmc.c, + lib/scsi_mmc_private.h: Yet more alternate "_generic" to simplify + CD-ROM drivers (like all of them except Windows) were there is in + fact only one MMC passthrough command. + +2004-07-27 rocky + + * lib/MSWindows/win32.c, lib/MSWindows/win32_ioctl.c: Misc + consolidation fixes. Some mode2 reading seems broken still. + +2004-07-27 rocky + + * lib/_cdio_sunos.c, test/vcd_demo.right: Compilation fixes. Added + get_discmode. + +2004-07-27 rocky + + * lib/MSWindows/aspi32.c: compilation typo + +2004-07-27 rocky + + * include/cdio/scsi_mmc.h, lib/MSWindows/aspi32.c, + lib/MSWindows/win32.c, lib/MSWindows/win32.h, + lib/MSWindows/win32_ioctl.c, lib/_cdio_bsdi.c, lib/_cdio_linux.c, + lib/_cdio_sunos.c, lib/cdio_private.h, lib/scsi_mmc.c, + lib/scsi_mmc_private.h: More consolidation of code by adding + routines to scsi_mmc. + +2004-07-26 rocky + + * lib/MSWindows/win32_ioctl.c: Don't use the cdtext_set_field macro + any more. + +2004-07-26 rocky + + * lib/MSWindows/aspi32.c, lib/scsi_mmc.c, lib/scsi_mmc_private.h: + get_dvd_physical common routine now works. + +2004-07-26 rocky + + * include/cdio/scsi_mmc.h, lib/MSWindows/aspi32.c, + lib/MSWindows/win32_ioctl.c, lib/_cdio_linux.c, lib/scsi_mmc.c, + lib/scsi_mmc_private.h: Try to make get_dvd_physical a common + routine. (Haven't tested yet.) + +2004-07-26 rocky + + * lib/MSWindows/win32.c, lib/scsi_mmc.c, lib/scsi_mmc_private.h: + Start to break out routines into a device-callable routine as well + as a publically callable routine. The device-callable routine will + be able to change the passthrough routine as M$ has two distinct + routines for aspi and ioctl. + +2004-07-26 rocky + + * include/cdio/scsi_mmc.h, lib/Makefile.am, lib/_cdio_linux.c, + lib/cdio.c, lib/cdio_private.h, lib/image/bincue.c, + lib/image/cdrdao.c, lib/image/nrg.c, lib/scsi_mmc.c, + lib/scsi_mmc_private.h: Big change! We now are starting to have universal MMC routines. To do this we + need to have function pointers to the OS-specific MMC send/run + command. Expect some breakage. Down the line though this will increase code + reuse, reliabilty, and make the library more user-customizable. + +2004-07-25 rocky + + * lib/MSWindows/win32.c: Got test backwards. + +2004-07-25 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/win32.c, + lib/MSWindows/win32.h, lib/MSWindows/win32_ioctl.c: Add ioctl disc + mode detection. - Not fully tested yet. + +2004-07-25 rocky + + * lib/MSWindows/aspi32.c: Disc mode detection done for aspi. + +2004-07-25 rocky + + * example/sample8.c: Enumeration has changed. + +2004-07-25 rocky + + * include/cdio/sector.h, lib/_cdio_linux.c, lib/image/bincue.c, + lib/image/cdrdao.c, lib/image/nrg.c, lib/sector.c, src/cd-info.c, + test/check_opts0.right, test/check_opts1.right, + test/check_opts2.right, test/check_opts3.right, + test/check_opts4.right, test/check_opts5.right, + test/check_opts6.right, test/check_opts7.right, + test/monvoisin.right, test/svcdgs.right, test/videocd.right: Reduce + overall number of CD disc modes. I thing the main purpose that will + be used is to separate CD Audio from CD Data, XA and DVD's. On GNU/Linux it seems that the implementation is a bit artificial. + +2004-07-25 rocky + + * lib/_cdio_linux.c: Pedantic ordering. + +2004-07-25 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/aspi32.h, + lib/MSWindows/win32.c, src/cd-info.c: MSWindows: add DVD type + determination. cd-info.c: poor disc-mode error message string + +2004-07-25 rocky + + * include/cdio/scsi_mmc.h: Typo + +2004-07-25 rocky + + * include/cdio/Makefile.am: Add dvd.h to list of includes. + +2004-07-25 rocky + + * lib/FreeBSD/freebsd.h: We use p_env now. + +2004-07-25 rocky + + * lib/_cdio_linux.c: Typo and small formatting changes. + +2004-07-25 rocky + + * include/cdio/dvd.h: Typo + +2004-07-25 rocky + + * lib/FreeBSD/freebsd.c: Remove duplicate toc_init field and use + gen.toc_init like other drivers use. + +2004-07-25 rocky + + * lib/_cdio_linux.c: Better testing to see if TOC is initialized by + read_toc_linux before using info based on that. Order of routines alphabetized a little bit better. + +2004-07-25 rocky + + * src/cd-info.c: Some weird problem when --no-cddb and libcddb was + not around. I'd rather switch than fight it. + +2004-07-25 rocky + + * include/cdio/dvd.h: Definitions for DVD access. + +2004-07-25 rocky + + * lib/FreeBSD/freebsd.c: Set initialization of TOC when that's done. + Test for TOC initialization success in routines that depend on that. + +2004-07-25 rocky + + * lib/MSWindows/aspi32.c: Compilation fix: run_scsi_cmd is no longer + static. + +2004-07-25 rocky + + * test/cdda.cue, test/cdda.right, test/cdda.toc, + test/check_opts0.right, test/check_opts1.right, + test/check_opts2.right, test/check_opts3.right, + test/check_opts4.right, test/check_opts5.right, + test/check_opts6.right, test/check_opts7.right, test/isofs-m1.cue, + test/isofs-m1.right, test/isofs-m1.toc: Not sure if we can have a + MCN on a CD-DATA filesystem, but I know we can have one on a CD-DA. + So remove it from the ISO and add it to the CD-DA. Also isofs-m1 is + now reports that it is a CD-DATA CD since that's what it is. + +2004-07-25 rocky + + * lib/FreeBSD/freebsd_cam.c: Add some checks for failed + initialization and NULL pointers. Thanks to Steve Schultz. + +2004-07-25 rocky + + * example/sample8.c, include/cdio/scsi_mmc.h, include/cdio/sector.h: + Changes to facilitate DVD detection. + +2004-07-25 rocky + + * include/cdio/sector.h, lib/_cdio_linux.c, src/cd-info.c: sector.h: + add more DVD types. _cdio_linux.c: Add ability in GNU/Linux to determine if a drive has + a DVD in it. cd-info: show the drive type. + +2004-07-24 rocky + + * lib/image/bincue.c, lib/image/cdrdao.c, lib/image/nrg.c, + lib/image_common.h, src/cd-info.c, test/cdda-mcn.right, + test/cdda.right, test/check_cue.sh.in, test/check_opts0.right, + test/check_opts1.right, test/check_opts2.right, + test/check_opts3.right, test/check_opts4.right, + test/check_opts5.right, test/check_opts6.right, + test/check_opts7.right, test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo_vcdinfo.right, test/videocd.right: Add get_disc_mode + to image readers. Add it in cd-info display. Update regression + tests. I'm not sure disc_mode is all that helpful or correct. + +2004-07-24 rocky + + * lib/FreeBSD/freebsd.c, lib/FreeBSD/freebsd.h, + lib/FreeBSD/freebsd_cam.c: FreeBSD compilation fixes. + +2004-07-24 rocky + + * example/README, example/sample8.c: sample8 program shows CD-TEXT + and Disc mode info. + +2004-07-24 rocky + + * lib/FreeBSD/freebsd.c: Allow scsi mmc commands to get invoked from + outside (for CAM access). + +2004-07-24 rocky + + * lib/FreeBSD/freebsd.c, lib/FreeBSD/freebsd.h: Add get_drive_cap + and generic get_mcn routines. + +2004-07-24 rocky + + * include/cdio/sector.h, lib/FreeBSD/freebsd.h, + lib/FreeBSD/freebsd_cam.c, lib/MSWindows/aspi32.c, + lib/_cdio_linux.c: freebsd: add scsi_mmc_cmd_run and use it. + Others: small changes. + +2004-07-23 rocky + + * lib/FreeBSD/freebsd.c: Typo. + +2004-07-23 rocky + + * lib/MSWindows/aspi32.h, lib/MSWindows/win32.c, + lib/MSWindows/win32.h, lib/MSWindows/win32_ioctl.c: Allow + scsi_mmc_run_cmd to get called from outside. + +2004-07-23 rocky + + * lib/MSWindows/win32_ioctl.c: Add scsi_mmc_run_cmd_win32ioctl and + use it. + +2004-07-23 rocky + + * include/cdio/scsi_mmc.h, include/cdio/sector.h: Formatting and + small name change. + +2004-07-23 rocky + + * lib/MSWindows/aspi32.c: Create uniform scsi_mmc_run_cmd routine + and use this more pervasively. + +2004-07-23 rocky + + * lib/FreeBSD/freebsd.c: Reinstate MCN guess. + +2004-07-23 rocky + + * lib/_cdio_sunos.c: Oops mande MCN buffer too short. More + intelligible and tighter code. + +2004-07-23 rocky + + * lib/_cdio_sunos.c: More small changes. + +2004-07-23 rocky + + * lib/_cdio_sunos.c: Small changes - perhaps not really in the + category of bugfixes. + +2004-07-23 rocky + + * lib/_cdio_sunos.c: Use common SCSI MMC routine where possible. + +2004-07-22 rocky + + * lib/_cdio_linux.c, lib/cdio_private.h: Wasn't allowing call of new + scsi_mmc_run_cmd. + +2004-07-22 rocky + + * lib/_cdio_linux.c: Fell into the a common C pitfall + +2004-07-22 rocky + + * include/cdio/scsi_mmc.h, include/cdio/sector.h, + lib/FreeBSD/freebsd_cam.c, lib/MSWindows/aspi32.c, + lib/MSWindows/win32_ioctl.c, lib/_cdio_linux.c, lib/_cdio_sunos.c, + lib/cdio_private.h, lib/scsi_mmc.c: Work on SCSI MMC layer. Some + things may be broken. + +2004-07-21 rocky + + * lib/cdio.c: Turn an assertion into a return failure. + +2004-07-21 rocky + + * include/cdio/scsi_mmc.h: Add more SCSI MMC-3 commands + +2004-07-21 rocky + + * example/sample8.c: Correct for get_disctype to get_discmode + change. + +2004-07-21 rocky + + * include/cdio/sector.h: Correct discmode comments. + +2004-07-21 rocky + + * example/sample8.c, include/cdio/cdio.h, include/cdio/scsi_mmc.h, + include/cdio/sector.h, lib/_cdio_linux.c, lib/cdio.c, + lib/cdio_private.h: Add get_discmode to return what kind of CD or + DVD we've got. This is no where near finished. In fact I just + started it on GNU/Linux. CD-TEXT on GNU/Linux: turn "warning" into "info". Reduce the chance + of error (although we still don't get the CD-TEXT.) + +2004-07-19 rocky + + * lib/MSWindows/win32.c: A little less convoluted + +2004-07-19 rocky + + * lib/FreeBSD/freebsd_cam.c, lib/_cdio_sunos.c: Initialize/null out + drive capabilities before setting them. + +2004-07-19 rocky + + * include/cdio/scsi_mmc.h, include/cdio/types.h, + lib/FreeBSD/freebsd_cam.c, lib/MSWindows/aspi32.c, + lib/MSWindows/win32_ioctl.c, lib/_cdio_linux.c, lib/_cdio_sunos.c, + lib/scsi_mmc.c: Add READTOC format defines. + +2004-07-19 rocky + + * doc/glossary.texi: Add CD+G. + +2004-07-18 rocky + + * lib/FreeBSD/freebsd.h: Compilation fix from Steven M. Schultz. + +2004-07-18 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/aspi32.h, + lib/MSWindows/win32.c, lib/MSWindows/win32.h, + lib/MSWindows/win32_ioctl.c: Modified for expanded CD-TEXT handling. + +2004-07-18 rocky + + * lib/cdio.c: gcc 2.95 vs 3.0 fix. Thanks yet again to Steven + Schultz. + +2004-07-18 rocky + + * test/cdda-mcn.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo_vcdinfo.right: Output has changed again. "eject" seems + to be more commonly used than "open tray." + +2004-07-18 rocky + + * lib/FreeBSD/freebsd_cam.c: Some compilation fixes from Steven M. + Schultz. Thanks! get_drive_cap_freebsd_cam updated to expanded API. + +2004-07-18 rocky + + * example/sample2.c, include/cdio/types.h, lib/_cdio_linux.c, + lib/_cdio_sunos.c, lib/scsi_mmc.c, src/util.c, test/cdda.right, + test/check_opts0.right, test/check_opts1.right, + test/check_opts2.right, test/check_opts3.right, + test/check_opts4.right, test/check_opts5.right, + test/check_opts6.right, test/check_opts7.right, + test/isofs-m1.right, test/vcd_demo.right, test/videocd.right: MMC + mode page capabilities gone over. Some more were added. + +2004-07-17 rocky + + * example/sample2.c, include/cdio/cdio.h, include/cdio/scsi_mmc.h, + include/cdio/types.h, lib/_cdio_linux.c, lib/_cdio_sunos.c, + lib/cdio.c, lib/cdio_private.h, lib/image/bincue.c, + lib/image/cdrdao.c, lib/image/nrg.c, lib/image_common.h, + lib/scsi_mmc.c, src/cd-drive.c, src/cd-info.c, src/util.c, + src/util.h, test/cdda-mcn.right, test/cdda.right, + test/check_opts0.right, test/check_opts1.right, + test/check_opts2.right, test/check_opts3.right, + test/check_opts4.right, test/check_opts5.right, + test/check_opts6.right, test/check_opts7.right, + test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo_vcdinfo.right, test/videocd.right: Expand getting + drive capabilities. We now have 3 masks where we had only one + before. + +2004-07-17 rocky + + * src/iso-read.c: Check that mandatory options are mandatory and + note in help where they are. Error messages gone over a little. Closes bug #9675 + http://savannah.gnu.org/bugs/?func=detailitem&item_id=9675 + +2004-07-17 rocky + + * lib/_cdio_sunos.c: Make use of more CDIO_CDROM_LBA and + CDIO_CDROM_MSF #defines. + +2004-07-17 rocky + + * include/cdio/sector.h, lib/FreeBSD/freebsd_cam.c, + lib/FreeBSD/freebsd_ioctl.c, lib/MSWindows/aspi32.c, + lib/MSWindows/win32_ioctl.c, lib/_cdio_sunos.c: Add common defines + for some subchannel commands, and use them. + +2004-07-17 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/win32.c, + lib/MSWindows/win32.h, lib/MSWindows/win32_ioctl.c: Hoist common + CD-TEXT routines. + +2004-07-17 rocky + + * lib/_cdio_sunos.c: Fix for Sunos and new CD-TEXT API. + +2004-07-17 rocky + + * lib/cdtext_private.h: Fix for Win32. + +2004-07-17 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/aspi32.h, + lib/MSWindows/win32.c, lib/MSWindows/win32.h, + lib/MSWindows/win32_ioctl.c: Win32 fixes for new CD-TEXT interface. + +2004-07-17 rocky + + * lib/_cdio_linux.c, lib/cdtext.c, lib/cdtext_private.h: Add common + routine to extract cdtext data. + +2004-07-17 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/win32.c, lib/_cdio_linux.c, + lib/_cdio_sunos.c: Corrections for new cdtext interface. Some more + precise track handling when the first track is not 1. Some of this + needs to be tested. + +2004-07-17 rocky + + * example/sample8.c, include/cdio/cdio.h, include/cdio/cdtext.h, + lib/_cdio_linux.c, lib/cdio.c, lib/cdio_private.h, + lib/image/bincue.c, lib/image_common.h, src/cd-info.c, + test/cdda-mcn.right, test/cdda.right: Expand get_cdtext to include a + track number. 0 = disc info. + +2004-07-16 rocky + + * include/cdio/cdtext.h, lib/cdtext.c, src/cd-info.c, + src/cd-read.c, test/cdda-mcn.right, test/cdda.right, test/cdda.toc: + Add cdtext display to cd-info and adjust regression tests + accordingly. cd-read.c: don't try to print null strings. + +2004-07-16 rocky + + * lib/MSWindows/win32.c: Wasn't calling CD-TEXT win32 ioctl routine. + CD-TEXT now works on win32 ioctl. + +2004-07-16 rocky + + * lib/_cdio_sunos.c: insignificant changes + +2004-07-16 rocky + + * lib/MSWindows/win32_ioctl.c: CDB for READ_CD has only 12 bytes. + +2004-07-16 rocky + + * lib/MSWindows/win32_ioctl.c: Misplaced #endif + +2004-07-16 rocky + + * lib/MSWindows/win32.h, lib/MSWindows/win32_ioctl.c: Add CD-TEXT + handling + +2004-07-16 rocky + + * lib/MSWindows/aspi32.c: routine name change. + +2004-07-16 rocky + + * lib/MSWindows/win32_ioctl.c: Use more universal C style + +2004-07-16 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/aspi32.h, + lib/MSWindows/win32.c: Finish get_MCN for aspi. Use conventions to + make look more like other SCSI passthrough routines. + +2004-07-15 rocky + + * lib/_cdio_sunos.c: Get MCN now works. Retrieving CD TEXT no longer causes core dump. (It still doesn't + give useful info back though.) Code cleanups. + +2004-07-15 rocky + + * lib/_cdio_linux.c: cmd -> cdb to match MMC terminology and Solaris + naming. + +2004-07-15 rocky + + * lib/_cdio_sunos.c: Closer to getting CDTEXT working. + +2004-07-15 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/win32.h, lib/_cdio_linux.c, + lib/cdio.c: MSWindows: comment corrections _cdio_linux.c: perhaps + closer to getting CD TEXT correct. + +2004-07-14 rocky + + * lib/MSWindows/aspi32.c: small cleanup changes. + +2004-07-14 rocky + + * lib/MSWindows/aspi32.c: Start to consolidate SCSI MMC passthrough + code. + +2004-07-13 rocky + + * example/sample2.c, lib/MSWindows/aspi32.c, + lib/MSWindows/win32_ioctl.c: MSWindows lint. + +2004-07-13 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/aspi32.h, + lib/_cdio_linux.c, lib/image_common.h: Yet more code cleanups. + +2004-07-13 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/win32.c: Some code cleanups + - more may follow. + +2004-07-13 rocky + + * example/sample8.c, lib/MSWindows/aspi32.c, + lib/MSWindows/aspi32.h, lib/MSWindows/win32.c, + lib/MSWindows/win32.h, lib/MSWindows/win32_ioctl.c, + lib/cdio_private.h, lib/image_common.h: Add CD-TEXT to MS-Windows + ASPI driver. (The first real CD driver!) In the process we've had to + remove "const" from get_aspi. + +2004-07-12 rocky + + * test/bad-cat1.cue: Bad catalog cue test 1. + +2004-07-12 rocky + + * test/bad-msf-3.cue: Bad MSF cue test 3. + +2004-07-12 rocky + + * test/bad-msf-1.cue: MSF cue test 1 + +2004-07-12 rocky + + * include/cdio/sector.h, lib/MSWindows/aspi32.c, + lib/MSWindows/win32_ioctl.c: MS Windows compilation fixes. + +2004-07-11 rocky + + * example/sample8.c, include/cdio/cdio.h, include/cdio/cdtext.h, + lib/cdio.c, lib/cdio_private.h, lib/cdtext.c, lib/image.h, + lib/image/bincue.c, lib/image/cdrdao.c, lib/image/nrg.c, + lib/image_common.h, test/cdda.cue: Redo CD-TEXT handling. First + minimally working version for CD bin/cue and cdrdao images. + +2004-07-11 rocky + + * test/Makefile.am, test/cdtext.toc, test/testtoc.c: Add cdtext + regression test. + +2004-07-11 rocky + + * lib/image/bincue.c, lib/image/cdrdao.c, lib/image/nrg.c: + Initialize cdtext to NULL and other add some initializations that + should have been done. + +2004-07-11 rocky + + * lib/cdtext.c: Correct some string initalization bugs in + cdtext_keywords. We switched from binary search to linear search for + now. + +2004-07-10 rocky + + * lib/image/nrg.c: Save modes types now that we have that in the + disc structure. Information for this comes courtesy extractnrg.pl + +2004-07-10 rocky + + * lib/image.h, lib/image/bincue.c, lib/image/cdrdao.c, + lib/image/nrg.c, lib/image_common.h: Hoist some more common image + routines and make image drivers look more common. In particular we + now have a "cue", "source", and "access-mode" parameters defined + even when "cue" and "source" are the same as in NRG. The _img_private_t's for the image drivers are now more similar if + not the same. Some memory leaks when there are error conditions in opening image + drivers have been fixed. + +2004-07-10 rocky + + * include/cdio/sector.h, lib/Makefile.am, lib/image.h, + lib/image/bincue.c, lib/image/cdrdao.c, lib/image/nrg.c, + lib/image_common.h: Hoist common track mode, disk format and disk + flags into sector.h Hoist track information into image.h + +2004-07-10 rocky + + * include/cdio/sector.h, lib/MSWindows/win32_ioctl.c, + lib/image/bincue.c, lib/image/cdrdao.c, lib/sector.c: Pull out + mmssff_to_lba routine and fix bug when in error reporting when frame + >= 100. Add msf3_to_lba and use that where possible (win32_ioctl.c for + example). + +2004-07-10 rocky + + * test/.cvsignore, test/Makefile.am, test/bad-cat3.cue, + test/bad-mode1.cue, test/bad-msf-2.cue, test/bad-msf-3.toc, + test/testbincue.c, test/testtoc.c: More cue tests. Add another bad + msf toc test. If argc > 1 in testtoc, testbincue, then we give + debug output. + +2004-07-09 rocky + + * lib/image/bincue.c, lib/image/cdrdao.c: bincue: check catalog + string for validity. cdrdao: slightly more precise error messages + for CATALOG. + +2004-07-09 rocky + + * test/Makefile.am, test/bad-cat2.cue, test/bad-cat2.toc, + test/bad-cat3.cue, test/testbincue.c: Add some bincue regression + tests. + +2004-07-09 rocky + + * NEWS: Buzz, buzz, buzz. Tell me what's a happenin'. + +2004-07-09 rocky + + * lib/image/cdrdao.c: Forgot to close file descriptor. Some variable + name changes to make more consistent with variable-name conventions. + +2004-07-09 rocky + + * lib/image/bincue.c: Now uses cuetools-based cue parsing. A more + complete job is now done. Cue files are completely parsed for validity in cdio_is_cuefile. Remove sector 2336 (PSX) hack. It's now gotta be in the cue file. Get a c(l)ue. If you don't have one, we're no longer going to try to + fake one up (which we did poorly anyway.) + +2004-07-09 rocky + + * include/cdio/cdio.h: API version change. If it's not already it + will be with planned CDTEXT changes, capability return changes and + get_default drive returning the driver used. + +2004-07-09 rocky + + * THANKS: Note that Svend also supplied CUE parsing code. + +2004-07-09 rocky + + * lib/cdtext.c, lib/image/bincue.c, lib/image/cdrdao.c, + lib/image/nrg.c, lib/image/nrg.h, lib/image_common.h: mcn -> psz_mcn + and other psz variables. bincue.c: a little closer to getting + cuetools parse_cuefile useable. + +2004-07-09 rocky + + * include/cdio/cdtext.h: Small changes. + +2004-07-09 rocky + + * lib/image/bincue.c: Fill in a tad more. In particular the + mmssff_to_lba routine. + +2004-07-09 rocky + + * example/sample8.c, include/cdio/cdtext.h, lib/Makefile.am, + lib/_cdio_linux.c, lib/cdio.c, lib/cdio_private.h, lib/cdtext.c, + lib/cdtext_private.h, lib/image/bincue.c, lib/image/cdrdao.c: Start + to merge in cue parsing from cuetools. Also moves forward CDTEXT + from a different direction. + +2004-07-08 rocky + + * lib/_cdio_sunos.c: Small changes. + +2004-07-08 rocky + + * include/cdio/scsi_mmc.h, lib/MSWindows/aspi32.c, + lib/MSWindows/aspi32.h, lib/_cdio_sunos.c: Sun drive capabilities + improved. Sun and Windows ASPI use common MODE_SENSE defines + defines now. + +2004-07-08 rocky + + * lib/FreeBSD/freebsd_cam.c, lib/_cdio_sunos.c: #define changed + name. Fix compilation error. + +2004-07-08 rocky + + * example/Makefile.am, include/cdio/Makefile.am, + include/cdio/cdtext.h, include/cdio/scsi_mmc.h, + lib/FreeBSD/freebsd_cam.c, lib/MSWindows/aspi32.c, + lib/_cdio_linux.c, lib/cdio.c, lib/cdio_private.h: Regularize MMC + commands more. Add ALLOW_PREVENT_MEDIUM. Start CDTEXT. + _cdio_linux.c: better at reporting errors. + +2004-07-01 rocky + + * libcdio.spec.in: All files in cdinfo should be owned by root and + the root group. Change from Manfred Tremmel in response to a + problem reported by Gabriel L. Somlo. + +2004-07-01 rocky + + * test/vcd_demo.right: Update for more capabilities in vcd-info + -enabled cd-info. + +2004-07-01 rocky + + * lib/image/nrg.c, lib/image/nrg.h: Note the existence of CD-TEXT + even if we don't know how to parse it yet. + +2004-06-30 rocky + + * README.libcdio: Spelling mistake. + +2004-06-29 rocky + + * include/cdio/iso9660.h: Preparation for handling Joliet (and + RockRidge?) extensions. + +2004-06-28 rocky + + * lib/MSWindows/win32_ioctl.c: Use common MODE SENSE routines in + scsi-mmc.c + +2004-06-28 rocky + + * lib/scsi_mmc.c: Compilation fix. + +2004-06-28 rocky + + * lib/scsi_mmc.c: Add multisession test. + +2004-06-28 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/aspi32.h: Correct + compilation problems. Fill out more ASPI defines. + +2004-06-27 rocky + + * include/cdio/scsi_mmc.h, lib/FreeBSD/freebsd_cam.c, + lib/MSWindows/aspi32.c, lib/Makefile.am: Add common SCSI MMC routine + for getting drive capabilities. + +2004-06-27 rocky + + * lib/scsi_mmc.c: Add common routine for SCSI MMC. + +2004-06-27 rocky + + * lib/_cdio_sunos.c: Compilation fix. Remove magic number 100. Use + common mmc routine for drive capabilites. + +2004-06-27 rocky + + * test/cdda-mcn.right, test/cdda.right, test/check_opts0.right, + test/check_opts1.right, test/check_opts2.right, + test/check_opts3.right, test/check_opts4.right, + test/check_opts5.right, test/check_opts6.right, + test/check_opts7.right, test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo_vcdinfo.right, test/videocd.right: Changed drive + capability output. + +2004-06-27 rocky + + * src/util.c: Print out more of the capabilities. + +2004-06-27 rocky + + * lib/_cdio_linux.c: Revert last change. Need to return char * for + MCN. Also replace that magic number 100 with MAX_TRACKS+1. + +2004-06-27 rocky + + * configure.ac: Don't know how $target_os got in there, but it's not + defined. $host_os will work although there probably is something + better for cross-compiling. + +2004-06-27 rocky + + * configure.ac, doc/glossary.texi, include/cdio/cdio.h, + include/cdio/sector.h, include/cdio/types.h, lib/FreeBSD/freebsd.h, + lib/MSWindows/aspi32.c, lib/_cdio_linux.c, lib/_cdio_osx.c, + lib/image/bincue.c, lib/image/cdrdao.c, lib/image/nrg.c: Add type + for holding MCN and ISRC. Add type for session Replace magic constant 100 with CDIO_MAX_TRACK+1 where appropriate. _cdio_osx: save session number and presumably some tighter coding. + nrg.c: make sure we add zero byte to end of MCN. + +2004-06-26 rocky + + * configure.ac: thesin says the double -Wl,-framework is necessary + when building vcdimager. + +2004-06-26 rocky + + * README: Update to mention/include cdrdao, iso-info, iso-read and + kiso. + +2004-06-26 rocky + + * lib/_cdio_osx.c: Use .adr rather than session number to determine + if we've got a valid track. + +2004-06-26 rocky + + * configure.ac, include/cdio/scsi_mmc.h: configure.ac: we're now in + 0.70cvs scsi_mmc.h: add doxygen comment. + +2004-06-26 rocky + + * include/cdio/xa.h: Typo. + +2004-06-26 rocky + + * lib/FreeBSD/freebsd_ioctl.c, lib/_cdio_bsdi.c, + lib/_cdio_generic.c, lib/_cdio_linux.c, lib/_cdio_sunos.c, + lib/cdio_private.h: Reduce cut and paste - add common routine, to + _cdio_generic.c: cdio_read_mode1_sector. + +2004-06-25 rocky + + * configure.ac: Get ready for real 0.69 release. + +2004-06-25 rocky + + * NEWS, lib/_cdio_bsdi.c, lib/_cdio_generic.c, lib/_cdio_linux.c, + lib/_cdio_sunos.c: fewer error exits in drivers. Instead, a failure + code is returned. + +2004-06-25 rocky + + * lib/FreeBSD/freebsd.c, lib/FreeBSD/freebsd_cam.c: Don't terminate + on error but just return a failure and let the caller decide to exit + or not. + +2004-06-25 rocky + + * lib/FreeBSD/freebsd_ioctl.c: mode1 reading fixed up. Some + cdio_error's turned into cdio_warn's as we really shouldn't abort in + the driver if there is an error discovered but instead just return + failure. + +2004-06-25 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/win32.h: Fill in LUN's on + requests. Add common routine for checking/initializing ASPI + availability. + +2004-06-25 rocky + + * doc/glossary.texi: Add SPTI and ASPI. + +2004-06-24 rocky + + * lib/_cdio_osx.c: Non-critical cdio_error's changed to cdio_warn's + or cdio_info as more appropriate. + +2004-06-23 rocky + + * THANKS: Credit where it is due. + +2004-06-23 rocky + + * include/cdio/cd_types.h, lib/cd_types.c, src/cd-info.c: Add + getting UDF label and major/minor version numbers. cd_types.c: also + replace unsafe use of sprintf with strncpy. + +2004-06-23 rocky + + * lib/Makefile.am: Update library numbers as per libtool + documentation instructions. libiso9660: added read_pvd routines. + libcdio: added cdio_get_drive_cap + +2004-06-23 rocky + + * include/cdio/cd_types.h, lib/cd_types.c, src/cd-info.c: More (but + not all) UDF stuff from the Xbox project. + +2004-06-23 rocky + + * NEWS: What's new. + +2004-06-23 rocky + + * lib/_cdio_osx.c: Clarification of 0xA0, 0xA2 and 0xAA. + +2004-06-22 thesin + + * lib/_cdio_osx.c: Changed a few warns to debugs for release version + +2004-06-22 thesin + + * lib/_cdio_osx.c: Remove noisy debug code, or at least hide it for + now + +2004-06-22 thesin + + * lib/_cdio_osx.c: OSX support works...now to get into the eject and + drive caps next + +2004-06-22 rocky + + * lib/_cdio_osx.c: correct some of the many bugs (I hope) + +2004-06-21 rocky + + * lib/iso9660_fs.c: Don't abort if we can't read the PVD. + +2004-06-21 rocky + + * lib/MSWindows/win32_ioctl.c: Give string error message + descriptions now. + +2004-06-21 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/aspi32.h, + lib/MSWindows/win32.h: Can now get drive capabilities in ASPI driver + ASPI headers from win32.h moved to aspi32.h some more cleanups. + +2004-06-20 rocky + + * lib/FreeBSD/Makefile, lib/MSWindows/Makefile, lib/Makefile.am, + lib/image/Makefile: Add boilerplate Makefiles for convenience + +2004-06-20 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/win32.c, + lib/MSWindows/win32.h, lib/MSWindows/win32_ioctl.c: Add mode1 + reading Lint changes, routine renaming to be like others. More + const's, fewer void *. Attempt drive detection. There are still many bugs. The code is just a little less bogus. + +2004-06-19 rocky + + * include/cdio/cd_types.h, lib/_cdio_generic.c, lib/_cdio_stdio.c, + lib/cd_types.c, lib/cdio.c, lib/image/bincue.c, lib/util.c, + src/cd-info.c, src/iso-info.c, src/util.c: Lint-like things. Add + X-BOX detection courtesy of the xmbc project. + +2004-06-19 rocky + + * lib/FreeBSD/freebsd.c, lib/FreeBSD/freebsd.h, + lib/FreeBSD/freebsd_cam.c, lib/FreeBSD/freebsd_ioctl.c: Put the + right suffix on ATAPI devices. More const's, fewer void *'s. + +2004-06-19 rocky + + * configure.ac: libvcdinfo is used by cd-info not cd-read. + +2004-06-19 rocky + + * lib/FreeBSD/freebsd.c, lib/FreeBSD/freebsd.h: Add "c" at end of + drive specification if not FreeBSD 5.x. Handle not getting default + drive more gracefully. As always changes based on suggestions from Heiner. + +2004-06-19 rocky + + * include/cdio/cdio.h: Note that getting default drive and listing + all drives may change depending on OS/driver and whether media is + installed. + +2004-06-19 rocky + + * src/cd-info.c, src/iso-info.c: More information about ISO 9660 + images is printed. + +2004-06-19 rocky + + * test/check_opts0.right, test/check_opts1.right, + test/check_opts4.right, test/check_opts5.right, + test/check_opts6.right, test/check_opts7.right, + test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo_vcdinfo.right, test/videocd.right: Changes as a result + of printing more ISO 9660 information in cd-info. + +2004-06-19 rocky + + * NEWS, include/cdio/iso9660.h, lib/iso9660_fs.c: Add const's where + possible. Add cdio mode2 read routine. + +2004-06-19 rocky + + * include/cdio/iso9660.h, lib/iso9660_fs.c, src/iso-info.c: + iso9660_iso_... -> iso9660_ifs_... + +2004-06-19 rocky + + * include/cdio/iso9660.h, lib/iso9660_fs.c, src/iso-info.c: + iso9660*.{c,h}: Add PVD read for ISO 9660 images. iso-info now shows this info. + +2004-06-18 rocky + + * include/cdio/iso9660.h, lib/iso9660.c: Add some trivial routines + to get volumeid, volumeset id, application id and system id. Moved + over from vcdimager. Thanks to Stephan (mephisto..@...) for the suggestion. + +2004-06-18 rocky + + * lib/image/nrg.c: Fix bugs in merging with extractnrg.pl. + +2004-06-17 rocky + + * lib/_cdio_osx.c: Ignore info where session is 0. At least for now. + +2004-06-17 rocky + + * lib/_cdio_osx.c: Make sure we get TOC info for a single session. + For new we can really only deal with a single-session CD. + +2004-06-17 rocky + + * lib/_cdio_osx.c: Note OSX LBA is cdio LSN. + +2004-06-17 rocky + + * lib/_cdio_osx.c: Don't need to set i_leadout twice. + +2004-06-17 rocky + + * lib/_cdio_osx.c: getFirstrack_osx and getNumberOfTracks_osx do + duplicate scanning that could be done when looking for the leadout + track. Revised code to removes these routines, consolidating the + searching in one loop. To be *very* conservative, a first loop finds the positions of the + leadout, first track and last track. This code then doesn't assume + that the track numbers are in order. They could be given track 3, + 2, and then 1 or 2, 3, and then 1. Another loop then maps + first_track..last_track 0..number_of_tracks - 1 + +2004-06-16 thesin + + * lib/_cdio_osx.c: Works with all burnt media, bought media is + different some how. Still better then it was since it didn't work + at all. + +2004-06-14 rocky + + * lib/image/nrg.c: Add more info from extractnrg.pl + +2004-06-14 rocky + + * lib/_cdio_osx.c: Wait a minute - the 0xa2 *is* larger than + CDIO_CD_MAX_TRACKS. But I guess we still should consider + ptrackDescriptors[i_descriptors]. + +2004-06-13 rocky + + * lib/_cdio_osx.c: Probably more correct. + +2004-06-13 rocky + + * lib/_cdio_sunos.c: Move include of glob.h inside conditional + Solaris include since that's only where it is needed. configure on + cygwin erroneously sets HAVE_GLOB_H and although that too should be + fixed, there's no reason to have that failure cause one here. + +2004-06-12 rocky + + * lib/FreeBSD/freebsd.c: Compilation lint + +2004-06-12 rocky + + * lib/FreeBSD/freebsd.c, lib/FreeBSD/freebsd.h: Some of the needed + changes for FreeBSD 5.x. More may be needed. From Heiner - thanks! + +2004-06-12 rocky + + * configure.ac: Allow FreeBSD 5.X: Heiner says it sort of works. + +2004-06-12 rocky + + * lib/sector.c: Use %2.2x rather than %.2x. Is there a difference? + +2004-06-12 rocky + + * src/cd-info.c, test/cdda-mcn.right, test/cdda.right, + test/check_opts2.right, test/check_opts3.right, + test/check_opts4.right, test/check_opts5.right, + test/check_opts6.right, test/check_opts7.right, + test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo.right, test/vcd_demo_vcdinfo.right, + test/videocd.right: Go back to 8-place MM:SS:FF. + +2004-06-11 rocky + + * configure.ac: It is a tad nicer to switch off + --without-versioned-libs when GNU ld isn't around rather than give + and error and halt. + +2004-06-09 rocky + + * NEWS: Duplicate entry. + +2004-06-09 rocky + + * lib/FreeBSD/freebsd_cam.c: Change a couple of places to use + scsi_mmc.h more. + +2004-06-07 rocky + + * README.libcdio: It's cd-info, not cd-read. Note other alternatives + to the elusive "circular" dependency. + +2004-06-07 rocky + + * lib/cdio.c: Bug: wasn't adding drives with detected capability, + but the first drive on the list of drives. Don't know how this went + undetected this long. + +2004-06-06 rocky + + * doc/libcdio.texi: Refer to libcdio constants more. Note OSX and + FreeBSD drivers. Note there is a maximum LSN/LBA/MSF value. + +2004-06-06 rocky + + * include/cdio/cdio.h: Ooops spelling typo. + +2004-06-06 rocky + + * include/cdio/cdio.h: Doc fixes and some paramater name renamings. + +2004-06-06 rocky + + * lib/_cdio_linux.c, lib/_cdio_sunos.c: Comment fixes. + +2004-06-06 rocky + + * lib/_cdio_linux.c: Doc fix. + +2004-06-06 rocky + + * lib/_cdio_sunos.c: Remove another first track is 1 assumption. + +2004-06-06 rocky + + * lib/_cdio_linux.c: Remove another first_track = 1 assumption. + +2004-06-06 rocky + + * lib/_cdio_linux.c, lib/_cdio_osx.c: Back off of testing for unread + TOC. Probably a good idea to do lazy TOC reading. + +2004-06-06 rocky + + * lib/_cdio_sunos.c: Compilation fixes. + +2004-06-06 rocky + + * lib/_cdio_linux.c, lib/_cdio_osx.c, lib/_cdio_sunos.c: More work + on removing assumption that first_track is 1. + +2004-06-05 rocky + + * THANKS: Put in alphabetical order (by first name). + +2004-06-05 rocky + + * THANKS: Add Heiner. Note cuetools. + +2004-06-05 rocky + + * TODO: Current estimation of what's needed. + +2004-06-05 rocky + + * lib/sector.c, test/cdda-mcn.right, test/cdda.right, + test/check_opts2.right, test/check_opts3.right, + test/check_opts4.right, test/check_opts5.right, + test/check_opts6.right, test/check_opts7.right, + test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo.right, test/vcd_demo_vcdinfo.right, + test/videocd.right: Go back to two-digit format for minutes in MSF. + CD's really can't have more than 99 minutes in them. So we shouldn't + give the illusion they can. + +2004-06-05 rocky + + * lib/FreeBSD/freebsd.c, lib/FreeBSD/freebsd.h, + lib/FreeBSD/freebsd_cam.c, lib/FreeBSD/freebsd_ioctl.c: CAM mode2 + form1 and form2 reading fixes. Default device lists default to CAM + device name. Simplify, correct and make more complete CAM support. With the above we can finally use libcdio for cd-read, vcdimager and + probably vlc and xine. Many thanks to Heiner. + +2004-06-03 rocky + + * lib/_cdio_bsdi.c: Compilation fixes. + +2004-06-03 rocky + + * lib/_cdio_bsdi.c: Fix all those *env = env after renaming; It + should be *env = user_data. + +2004-06-03 rocky + + * lib/_cdio_linux.c: Minor coding changes. + +2004-06-02 thesin + + * lib/Makefile.am: Fix the -I-I here instead, sorry about that + +2004-06-02 rocky + + * configure.ac: Revert last change which is at least wrong for me. + +2004-06-02 rocky + + * lib/iso9660_private.h: #include "config.h" got deleted. + +2004-06-02 rocky + + * lib/_cdio_osx.c: # include vs #include a problem? + +2004-06-02 thesin + + * configure.ac, lib/_cdio_osx.c: Few fixed for the big rename and + fixed a long standing mmmm thing that bothered me, -I-I../lib ;) + +2004-06-02 thesin + + * NEWS: Fixed my name in NEWS + +2004-06-02 rocky + + * lib/_cdio_osx.c: Compilation fixes. + +2004-06-02 rocky + + * include/cdio/sector.h, lib/FreeBSD/freebsd.c, lib/Makefile.am, + lib/_cdio_bsdi.c, lib/_cdio_linux.c, lib/_cdio_osx.c, + lib/_cdio_sunos.c, lib/image_common.h: Remove some of the bogus + assume 1 is first track. Renamings: env -> user_data _obj -> env + +2004-06-02 rocky + + * lib/iso9660_private.h: Some compilers can't hack "# include" + +2004-06-02 rocky + + * lib/image/nrg.c: Typo. + +2004-06-01 thesin + + * lib/_cdio_osx.c: Now knows XA and CD-i tracks, thought I'm not + sure it's working 100%, reads the correct amount of tracks, still + need to fix the MCN code. + +2004-06-01 rocky + + * lib/image/bincue.c: Avoid subtraction of unsigned numbers. + +2004-06-01 rocky + + * lib/image/bincue.c: Bug in conversion logic. + +2004-06-01 rocky + + * lib/image/bincue.c, lib/image/cdrdao.c, lib/image/nrg.c: Some + variable renaming. Also less pervasive assumption that the first + track is 1. + +2004-06-01 rocky + + * lib/image/nrg.c, lib/image/nrg.h: Break out file NRG format + structures into a header. + +2004-06-01 rocky + + * lib/image/nrg.c: Make use of return code from parse_nrg() A + mode1/2 fixup. Some small code reorganization. Closer to being + able to parse without opening. + +2004-06-01 thesin + + * lib/_cdio_osx.c: Now knows the difference between DATA and Audio + tracks on OSX, also temp change to eject command till I find the + right way to implement it in code. + +2004-05-31 rocky + + * NEWS: What's up. + +2004-05-31 rocky + + * THANKS: Acknowledge debt to Micheal Kukat + +2004-05-31 thesin + + * configure.ac, lib/_cdio_osx.c: Fix compile on OS X 10.3, should + work on 10.2 and 10.3, still testing for 10.1, OS X Drivers still + incomplete this is just to fix compiling. + +2004-05-31 rocky + + * lib/FreeBSD/freebsd.c, lib/FreeBSD/freebsd.h: Some variable + renaming. env is the environment, user_data is what is passed in. + +2004-05-31 rocky + + * src/cd-read.c: Make sure source_name a malloc'd, so we can + uniformly free it when not needed. + +2004-05-31 rocky + + * lib/image/nrg.c: Merge more information in from extractnrg.pl + +2004-05-31 rocky + + * test/check_nrg.sh.in, test/svcdgs.right: check_nrg.sh.in: add NRG + 5.5 cdda MCN test. svcdgs.right: we now have a MCN. + +2004-05-31 rocky + + * lib/_cdio_generic.c, lib/_cdio_linux.c, lib/_cdio_sunos.c: + Hopefully improve names. "user_data" comes from user. "env" an + environment is really what this is. "obj" is just to vague. + +2004-05-31 rocky + + * src/cd-info.c: Handle error reporting with null source correctly. + +2004-05-31 rocky + + * lib/FreeBSD/freebsd_cam.c: Duplicate free bug fix from tracked + down by Heiner. + +2004-05-31 rocky + + * test/vcd_demo.right: Added another 0 to MSF output. (Having 2nd + thoughts though since the maximum msf minute value is two places.) + +2004-05-31 rocky + + * test/cdda-mcn.right: NRG MCN CDDA test. + +2004-05-31 rocky + + * src/cd-info.c: Strive to make source_name always a malloc'd + variable (so it can always be free'd). + +2004-05-31 rocky + + * lib/image/nrg.c: Better DAOI and DAOX information based on + extractnrg.pl. + +2004-05-27 rocky + + * lib/FreeBSD/freebsd.c: Remove the bogus assumption that the first + track is always 1. May help down the line with multi-session CDs. + +2004-05-27 rocky + + * lib/_cdio_linux.c: Remove some of the bogosity in assuming the + first track starts at 1. (Probably will be useful on multi-session + CD's). + +2004-05-27 rocky + + * lib/_cdio_osx.c: We shouldn't terminate if we can't get an MCN. + +2004-05-27 rocky + + * src/Makefile.am: Put LIBPOPT_CFLAGS after local include in case + LIBPOPT has headers common to those in LIBCDIO_CFLAGS. + +2004-05-27 rocky + + * lib/cdio_private.h: Fix prototype mismatch. + +2004-05-27 rocky + + * lib/cdio.c: Correct mismatched prototypes. + +2004-05-26 rocky + + * include/cdio/scsi_mmc.h, include/cdio/types.h: scsi_mmc.h: add + definition for SET_SPEED types.h: add size of MCN. + +2004-05-26 rocky + + * lib/image/nrg.c: Improve slightly (or possibly break slightly) + based on information from extractools.pl. + +2004-05-26 rocky + + * NEWS: [no log message] + +2004-05-26 rocky + + * src/cd-read.c: Add --hexdump and --no-hexdump options. We now can + hexdump to a file and dump bytes stdout (which may be useful in a + pipe). + +2004-05-24 rocky + + * lib/FreeBSD/freebsd.h: Make default CAM since that works best. It + might help the single FreeBSD user of libcdio. + +2004-05-24 rocky + + * src/cd-info.c: Test variable is not already free before freeing. + +2004-05-19 rocky + + * include/cdio/cdio.h, lib/FreeBSD/freebsd.c, + lib/FreeBSD/freebsd.h, lib/cdio.c, lib/sector.c: Add + cdio_open_am_cd. Use network order for FreeBSD lsn/lba's and other + small FreeBSD patches. Thanks again to Heiner. + +2004-05-16 rocky + + * lib/FreeBSD/freebsd.c, lib/MSWindows/aspi32.c, + lib/MSWindows/win32.c, lib/image/cdrdao.c, src/cd-info.c: + MSWindows/*: get access mode working better. ASPI support is faulty + though freebsd.c: it's "ioctl" not "IOCTL"; cdrdao: it's cdrdao, not "toc" + cd-info: slightly better error message? + +2004-05-13 rocky + + * lib/FreeBSD/freebsd.c, lib/FreeBSD/freebsd.h, + lib/FreeBSD/freebsd_ioctl.c, lib/_cdio_linux.c: Go over FreeBSD code + based on output from Heiner. Hopefully 3 bugs are fixed: - we get the leadout track now, no core dumps - MSF reporting is corrected - track format and mode _cdio_linux.c: use cdio #define rather than GNU/Linux one. + +2004-05-13 rocky + + * include/cdio/cdio.h, lib/FreeBSD/freebsd.c, + lib/FreeBSD/freebsd.h, lib/_cdio_generic.c, lib/cdio.c, + lib/image/bincue.c, lib/image/cdrdao.c, lib/image/nrg.c, + src/cd-info.c: Allow more freedom in specifying access mode. Image + drivers now have an "image" access mode. + +2004-05-13 rocky + + * lib/MSWindows/win32.c: Allow more flexibility in specifying access + mode. "IOCTL" -> "ioctl". + +2004-05-12 rocky + + * lib/FreeBSD/freebsd_ioctl.c: Correct size. Thanks to Heiner. + +2004-05-11 rocky + + * include/cdio/cdio.h, lib/sector.c: cdio.h: update doxygen + documentation sector.c: remove erroneous fix. + +2004-05-11 rocky + + * NEWS, include/cdio/scsi_mmc.h, include/cdio/sector.h, + include/cdio/types.h, lib/image/bincue.c, lib/image/cdrdao.c, + lib/image/nrg.c, lib/sector.c: - Redo types of lsn and lba to allow negative values. Should model + MMC3 specs. Add max/min values for lsn. - More complete MMC command set + +2004-05-10 rocky + + * include/cdio/Makefile.am, {lib => include/cdio}/scsi_mmc.h, + include/cdio/sector.h, lib/FreeBSD/freebsd_cam.c, + lib/MSWindows/aspi32.c, lib/MSWindows/win32.c, + lib/MSWindows/win32_ioctl.c, lib/Makefile.am, lib/_cdio_linux.c, + lib/_cdio_sunos.c: Make scsi_mmc.h public. + +2004-05-10 rocky + + * include/cdio/sector.h: Minor format change. + +2004-05-09 rocky + + * test/Makefile.am: Add bad catalog tests. + +2004-05-09 rocky + + * lib/cdio.c: Check for invalid LSNs. Turn some asserts into just + returning failed status. + +2004-05-09 rocky + + * include/cdio/cdio.h: Small typo. + +2004-05-09 rocky + + * src/cd-info.c, test/cdda.right, test/check_opts2.right, + test/check_opts3.right, test/check_opts4.right, + test/check_opts5.right, test/check_opts6.right, + test/check_opts7.right, test/data7.toc, test/isofs-m1.right, + test/monvoisin.right, test/svcd_ogt_test_ntsc.right, + test/svcdgs.right, test/vcd_demo_vcdinfo.right, test/videocd.right: + Ouptut of LSN has one more place just to be sure. cd-info.c: use new msf_to_str routine. + +2004-05-09 rocky + + * configure.ac: It's now AC_HEADER_STDC rather than AC_STDC_HEADERS. + Woopie doo. + +2004-05-09 rocky + + * include/cdio/sector.h: Add cdio_msf_to_str - convert MSF to string + representation of MSF. + +2004-05-09 rocky + + * include/cdio/cdio.h: Add cdio_is_nrg to check if name is Nero NRG + image. + +2004-05-09 rocky + + * lib/sector.c: Even more checking on conversion routines. Add + cdio_msf_to_str. + +2004-05-09 rocky + + * lib/image/nrg.c: Check some validity of NRG image. More will come + later.... + +2004-05-08 rocky + + * lib/image/cdrdao.c: More error message fixups. + +2004-05-08 rocky + + * test/Makefile.am: That's data7.toc, not doc. + +2004-05-08 rocky + + * NEWS, lib/FreeBSD/freebsd_ioctl.c, lib/image/cdrdao.c, + test/Makefile.am, test/bad-cat1.toc, test/bad-cat2.toc, + test/bad-cat3.toc, test/data1.toc, test/data2.toc, test/data5.toc, + test/data6.toc, test/testtoc.c: freebsd_ioctl.c: Erroneous data + size. Thanks again to Heiner. toc: better error messages and more + tests. + +2004-05-08 rocky + + * lib/FreeBSD/freebsd_cam.c: wild guesses at get_drive_mcn and + get_drive_cap. + +2004-05-08 rocky + + * lib/FreeBSD/freebsd_cam.c: Compilation fix. + +2004-05-08 rocky + + * lib/MSWindows/win32.c: A better guess when we don't know for sure. + +2004-05-08 rocky + + * lib/FreeBSD/freebsd_cam.c: Don't open gen.fd more than once. + Thanks to Heiner for pointing this out. + +2004-05-08 rocky + + * include/cdio/types.h: Doc change on what CDIO_DRIVE_CAP_CD_R + means. + +2004-05-08 rocky + + * lib/cdio.c: Be more optimistic about CD drive capabilities. + +2004-05-08 rocky + + * configure.ac: Make sure entire warning is printed. + +2004-05-07 rocky + + * lib/FreeBSD/freebsd.c: Test was backwards. Thanks to Heiner for + directing my attention to this. + +2004-05-07 rocky + + * configure.ac: Warn when cd-drive, cd-info, cd-read, iso-info and + iso-read don't get built. + +2004-05-07 rocky + + * lib/sector.c: Don't try to convert bad LBA's/LSN's. I wonder how + many cascaded problems this has caused in the past. + +2004-05-07 rocky + + * lib/image/cdrdao.c: Better error reporting. + +2004-05-07 rocky + + * test/.cvsignore, test/Makefile.am, test/bad-mode1.toc, + test/bad-msf-1.toc, test/bad-msf-2.toc, test/t1.toc, test/t2.toc, + test/t3.toc, test/t4.toc, test/t5.toc, test/t6.toc, test/t7.toc, + test/t8.toc, test/t9.toc, test/testdefault.c, test/testtoc.c: cdrdo + TOC parsing regression tests. testdefault.c: more verbose about + what's going on. + +2004-05-07 rocky + + * lib/_cdio_osx.c: deal with disc-image device properly. + +2004-05-07 rocky + + * lib/_cdio_osx.c: Typo. + +2004-05-07 rocky + + * lib/FreeBSD/freebsd.c: Do the right cam initialization (when it is + ultimately handled.) + +2004-05-07 rocky + + * test/check_cd_read.sh, test/check_iso.sh.in, test/check_opts.sh: + Error reporting improved to make debugging easier. + +2004-05-06 rocky + + * src/.cvsignore: Add cd-drive. + +2004-05-06 rocky + + * test/check_common_fn.in, test/check_cue.sh.in: Log command used + when there's an error. Redo error message to make cut and paste of + command line easier. + +2004-05-06 rocky + + * test/vcd_demo.cue: CUE sheet for VCD demo program. + +2004-05-06 rocky + + * test/check_cue.sh.in: Cater to old shells + +2004-05-06 rocky + + * lib/MSWindows/win32.c, lib/MSWindows/win32_ioctl.c: Bring in line + with other drivers. + +2004-05-06 rocky + + * lib/_cdio_bsdi.c: Detect disc-image and don't open this device + driver for that. + +2004-05-06 rocky + + * test/check_cue.sh.in: Test for presence of vcd_demo.bin, not + vcd_demo.cue to see if we can run this regression test. + +2004-05-06 rocky + + * lib/_cdio_freebsd.c, lib/_cdio_linux.c: _cdio_freebsd.c: is now in + FreeBSD (with some cam code) _cdio_linux.c - minor name changes. + +2004-05-06 rocky + + * lib/_cdio_sunos.c: Detect disc-image and don't open this device + driver for that. + +2004-05-06 rocky + + * lib/FreeBSD/freebsd.c: open driver shouldn't return true if we do + not have a device but an disc-image file. + +2004-05-05 rocky + + * lib/_cdio_generic.c, lib/image/cdrdao.c: memory freeing issues. + +2004-05-05 rocky + + * include/cdio/logging.h, lib/FreeBSD/freebsd.h, + lib/FreeBSD/freebsd_cam.c, lib/_cdio_linux.c: Small fixes. + +2004-05-05 rocky + + * lib/FreeBSD/freebsd_cam.c: Compilation fixes. + +2004-05-05 rocky + + * include/cdio/logging.h: A doc elaboration for cdio_error. + +2004-05-04 rocky + + * configure.ac: CDRDAO->cdrdao. + +2004-05-04 rocky + + * test/Makefile.am: typo. + +2004-05-04 rocky + + * lib/FreeBSD/freebsd.c: deal with device properly. + +2004-05-04 rocky + + * lib/FreeBSD/freebsd.c: compilation fix. + +2004-05-04 rocky + + * test/cdda.toc: CDDA test TOC. + +2004-05-04 rocky + + * THANKS, include/cdio/cdio.h, include/cdio/types.h, + lib/Makefile.am, lib/cdio.c, lib/image/cdrdao.c, src/cd-info.c, + src/cd-read.c, src/util.h, test/Makefile.am, test/check_cue.sh.in, + test/isofs-m1.toc, test/vcd_demo.toc: Add some cdrdao image reading + support from Svend S. Sorensen's cuetools cdio.c: remove some complicated and extraneous code for auto-driver + detection. + +2004-05-04 rocky + + * lib/_cdio_linux.c: Don't give "source not a device message" for + uniformity with other drivers. + +2004-05-04 rocky + + * include/cdio/iso9660.h: Don't use "new" as a parameter names. C++ + barfs on it. Closes bug #8786. + +2004-05-03 rocky + + * configure.ac, lib/FreeBSD/freebsd.c: Another patch from Heiner + Eichmann. + +2004-05-02 rocky + + * lib/FreeBSD/freebsd.c: Another correction from Heiner Eichmann. + +2004-05-02 rocky + + * lib/FreeBSD/freebsd.c: Compilation fixes from Heiner Eichmann - + Thanks! + +2004-05-01 rocky + + * lib/_cdio_osx.c: Compilation fix. + +2004-04-30 rocky + + * lib/MSWindows/aspi32.c, lib/MSWindows/win32.c, lib/_cdio_sunos.c: + Compilation fixes after adjustments. + +2004-04-30 rocky + + * lib/FreeBSD/freebsd.c, lib/FreeBSD/freebsd.h, + lib/FreeBSD/freebsd_cam.c, lib/FreeBSD/freebsd_ioctl.c, + lib/MSWindows/aspi32.c, lib/MSWindows/win32.c, lib/_cdio_linux.c, + lib/scsi_mmc.h: Compilation fixes and modulization improvements. + +2004-04-30 rocky + + * lib/FreeBSD/freebsd.c, lib/FreeBSD/freebsd.h, + lib/FreeBSD/freebsd_cam.c, lib/FreeBSD/freebsd_ioctl.c, + lib/Makefile.am: Attempt to add FreeBSD CAM access method. Hope I + havent' broken FreeBSD otherwise. + +2004-04-30 rocky + + * lib/MSWindows/{ioctl.c => win32_ioctl.c}: ioctl.c -> win32_ioctl.c + +2004-04-30 rocky + + * lib/MSWindows/ioctl.c, lib/MSWindows/win32.c, + lib/MSWindows/win32.h: compilation fixes. + +2004-04-30 rocky + + * lib/_cdio_sunos.c: Compilation fixes. + +2004-04-30 rocky + + * doc/libcdio.texi, include/cdio/cdio.h, lib/MSWindows/aspi32.c, + lib/MSWindows/ioctl.c, lib/MSWindows/win32.c, + lib/MSWindows/win32.h, lib/_cdio_bsdi.c, lib/_cdio_freebsd.c, + lib/_cdio_linux.c, lib/_cdio_osx.c, lib/_cdio_sunos.c, lib/cdio.c, + lib/cdio_private.h, lib/image/bincue.c, lib/image/nrg.c: Add + cdio_open_am to allow specifying an access method use for + reading/controlling CD. + +2004-04-27 rocky + + * lib/scsi_mmc.h: Add READ_TOC + +2004-04-26 rocky + + * lib/_cdio_freebsd.c, lib/_cdio_linux.c, lib/scsi_mmc.h: More + procedure canonicalization, some #defines added and used. + +2004-04-26 rocky + + * lib/_cdio_freebsd.c: Remove unused _read_mode2. + +2004-04-25 rocky + + * doc/libcdio.texi: More on the libcdio plight. + +2004-04-25 rocky + + * lib/_cdio_bsdi.c, lib/_cdio_freebsd.c, lib/_cdio_osx.c: Add const + on get_mcn prototype and initialization of get_drive_cap in func + structure + +2004-04-25 rocky + + * include/cdio/cdio.h, lib/_cdio_freebsd.c, lib/_cdio_osx.c: Missing + a couple of const's in get_mcn when prototype changed. cdio.h: doc + fix. + +2004-04-25 rocky + + * lib/_cdio_freebsd.c, lib/_cdio_linux.c, lib/_cdio_osx.c: More + regularization of names. Warning: untested on freebsd and osx. + +2004-04-25 rocky + + * lib/image/bincue.c, lib/image/nrg.c, lib/image_common.h: + Regularize and I hope simplify names a bit more. image/*.c: (bogus) + eject media now frees resources bincue.c: missing default_devices + routine in function initialization table. + +2004-04-25 rocky + + * example/sample2.c, include/cdio/types.h, lib/MSWindows/ioctl.c, + lib/_cdio_linux.c, lib/_cdio_sunos.c, lib/cdio.c, + lib/image/bincue.c, lib/image/nrg.c, src/util.c: CDIO_DRIVE -> + CDIO_DRIVE_CAP + +2004-04-25 rocky + + * lib/_cdio_linux.c, lib/_cdio_sunos.c, lib/cdio_private.h, + lib/image_common.h, lib/scsi_mmc.h, src/cd-drive.c, src/util.c: + get_mcn paramater is const. solaris: failed attempt to get mcn and drive capabilities. Some + boilerplate routines used. scsi_mmc: more defines. src/cd-drive.c: bugfix when cdio is null src/util.c: small + enhancement. + +2004-04-25 rocky + + * lib/_cdio_linux.c, lib/image/bincue.c, lib/image/nrg.c: Regularize + naming convention of static routines a little bit. + +2004-04-25 rocky + + * include/cdio/cdio.h, include/cdio/types.h, lib/MSWindows/ioctl.c, + lib/cdio.c, lib/image/bincue.c, lib/image/nrg.c, + lib/image_common.h, src/Makefile.am, src/cd-drive.c, src/cd-info.c, + src/util.c, src/util.h, test/cdda.right, test/check_opts0.right, + test/check_opts1.right, test/check_opts2.right, + test/check_opts3.right, test/check_opts4.right, + test/check_opts5.right, test/check_opts6.right, + test/check_opts7.right, test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo.right, test/vcd_demo_vcdinfo.right, + test/videocd.right: lib/*c, include/cdio/*.h: Add more drive + capability info util.{c,h}: common routine for printing capbilities cd-info.c: use + above. *.right: update for capability display of above cd-drive.c: new program to show drive capabilities + +2004-04-24 rocky + + * lib/scsi_mmc.h: Small doxygen comment. + +2004-04-24 rocky + + * src/cd-info.c: Slightly better drive capability display. Will + probably get moved to a separate program. + +2004-04-24 rocky + + * lib/MSWindows/ioctl.c: Fix bugs in getting drive capabilities; + +2004-04-24 rocky + + * lib/MSWindows/win32.c: Fix a simple bug: get_mcn wasn't. + +2004-04-24 rocky + + * include/cdio/cdio.h, lib/MSWindows/ioctl.c, + lib/MSWindows/win32.c, lib/scsi_mmc.h, src/cd-info.c: More drive + capability fixups. (Not sure about win32 fixes yet though.) + +2004-04-24 rocky + + * include/cdio/cdio.h: Composite definitions for reader or writer. + (More work needed.) + +2004-04-24 rocky + + * src/cd-info.c: Better formating of drive capabilities. + +2004-04-24 rocky + + * lib/MSWindows/ioctl.c, lib/MSWindows/win32.c, + lib/MSWindows/win32.h: A little better about detecting drive type + via SCSI-3 passthrough. Still has some problems though. + +2004-04-23 rocky + + * NEWS, example/sample2.c, include/cdio/cdio.h, + lib/MSWindows/ioctl.c, lib/cdio.c, src/cd-info.c: cdio.{c,h}: + get_drive_cap -> get_drive_cap_dev and add get_drive_cap. cd-info.c, sample2.c: use it. + +2004-04-23 rocky + + * lib/Makefile.am, lib/image/bincue.c, lib/image/nrg.c, + lib/{image/common.c => image_common.h}, test/vcd_demo_vcdinfo.right: + image/common.h -> image_common.h. I'd rather switch than fight. I + still hate automake. + +2004-04-23 rocky + + * example/sample2.c, lib/Makefile.am, lib/_cdio_linux.c, + lib/image/bincue.c, lib/image/common.c, lib/image/nrg.c, + src/cd-info.c, test/cdda.right, test/check_opts0.right, + test/check_opts1.right, test/check_opts2.right, + test/check_opts3.right, test/check_opts4.right, + test/check_opts5.right, test/check_opts6.right, + test/check_opts7.right, test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo.right, test/videocd.right: image/common.c, + Makefile.am: common image routines. src/cd-info.c, *.right: Now + show file images under "drive capability" bincue.c/nrg.c: report + file image "drive capability" + +2004-04-22 rocky + + * README.libcdio, configure.ac, example/sample2.c, + include/cdio/cdio.h, include/cdio/types.h, lib/_cdio_linux.c, + lib/cdio.c, lib/cdio_private.h: *.{c,h}: add cdio_get_drive_cap to + determine what kind of CDROM device we've got. README.libcdio: suggest stonger making a separate package for + cd-info configure.ac: we are in 0.69cvs now + +2004-04-21 rocky + + * README, libcdio.spec.in: Spelling typo. + +2004-04-21 rocky + + * src/cd-info.c: Remove duplicate short option on --no-cddb. On CDDB + error give a better error message. + +2004-04-03 rocky + + * doc/glossary.texi: Small addition. + +2004-04-03 rocky + + * doc/libcdio.texi: Add section on Green Book. Revise sample + programs to explicitly free resources on exit. + +2004-04-03 rocky + + * example/sample7.c: Remove unused code. + +2004-03-24 rocky + + * test/svcdgs.right, test/vcd_demo_vcdinfo.right: Output changes due + to %e -> %d change in strftime + +2004-03-24 rocky + + * src/cd-info.c, test/vcd_demo.right: Change for -mno-cygwin to + which doesn't support %e in strftime. + +2004-03-24 rocky + + * configure.ac: 0.68 release. + +2004-03-23 rocky + + * NEWS: [no log message] + +2004-03-22 rocky + + * lib/image/bincue.c: Compilation fix: declarations need to come + before statements for gcc < 3.0. + +2004-03-21 rocky + + * lib/cdio.c: Yet another valgrind-found memory leak. + +2004-03-21 rocky + + * example/sample5.c: Cosmetic changes. + +2004-03-21 rocky + + * example/sample6.c, example/sample7.c: memory leaks found by + valgrind + +2004-03-21 rocky + + * lib/iso9660_fs.c: Allocation of buffer too short caught by + valgrind. + +2004-03-20 rocky + + * lib/Makefile.am: Revision number got bumped - but reconsidered + changing interface. So back to the old one. + +2004-03-20 rocky + + * example/sample5.c, include/cdio/cdio.h, lib/Makefile.am, + lib/_cdio_generic.c, lib/cdio.c, lib/image/bincue.c, + lib/image/nrg.c, src/cd-info.c, test/testdefault.c: Remove more + memory leaks caught by valgrind. + +2004-03-20 rocky + + * example/sample6.c: Remove memory leaks found by valgrind. + +2004-03-20 rocky + + * lib/image/bincue.c: Remove memory leaks found by valgrind. + +2004-03-20 rocky + + * example/sample3.c, example/sample4.c: Fix memory leak caught by + valgrind. + +2004-03-20 rocky + + * example/sample2.c: Remove memory leak (detected by valgrind). + +2004-03-20 rocky + + * include/cdio/version.h.in: Improve doxygen doc. + +2004-03-20 rocky + + * configure.ac, include/cdio/version.h.in: Add C-Preprocessor define + CDIO_VERSION so this can easily be tested in C/C++ applications. + +2004-03-20 rocky + + * lib/_cdio_osx.c: Fix compilation bug. + +2004-03-20 rocky + + * lib/Makefile.am: Bump revision of libcdio before release. + +2004-03-20 rocky + + * lib/_cdio_bsdi.c: Add mode1 reading in a hacky way. + +2004-03-20 rocky + + * configure.ac: Check for GNU ld if --with-versioned-libs. + +2004-03-20 rocky + + * NEWS: [no log message] + +2004-03-16 rocky + + * NEWS: What's shaken. + +2004-03-16 rocky + + * lib/_cdio_sunos.c: From Ian MacIntosh: Modifications that it doesn't use the uscsi commands anymore and so + all IDE and SCSI drives go through the same code path - a major + simplification. This works with all the CD drives that work with Solaris (IDE or + SCSI) as the ioctl's for CDROMCDXA in Solaris just end up doing + uscsi calls anyway, but directly from the kernel. The added + advantage of not using uscsi is that the user doesn't need to be + root - which is important in Sunray environments. + +2004-03-13 rocky + + * include/cdio/types.h: MINGW seems now to define ssize_t. + +2004-03-13 rocky + + * src/iso-info.c: Cater to implimentations that don't impliment + Single Unix strftime. Like mingw. + +2004-03-11 rocky + + * example/sample6.c, example/sample7.c: make cygwin -mno-cygwin + work. + +2004-03-11 rocky + + * src/iso-read.c: Make work under cygwin with -mno-cygwin. + +2004-03-10 rocky + + * configure.ac, lib/image/bincue.c, lib/logging.c: Changes to make + -mno-cygwin (no POSIX emulation on M$) work. In the process, in + configure.ac might have broken cygwin when -mno-cygwin isn't used. + We'll see. + +2004-03-10 rocky + + * lib/MSWindows/ioctl.c, lib/cdio.c: ioctl: printf lint for cygwin + (and perhaps others) cdio.c: define SEEK_SET for cygwin -mno-cygwin + (and perhaps others) + +2004-03-09 rocky + + * lib/_cdio_osx.c: Best guess right now at what might work for + mode1/mode2. + +2004-03-07 rocky + + * libcdio.pc.in: Add OS-specific libs. For cygwin -lwinmm is needed, + not sure about -mcygwin. Also not sure if @LIBS@ is the right thing + to add. + +2004-03-07 rocky + + * lib/_cdio_linux.c: mode{1,2}_form2 -> b_form2 + +2004-03-07 rocky + + * lib/MSWindows/win32.c: Bug in read_mode2 sectors fixed. With this, + vcd-info, vcdxrip, vlc and xine shoudl be able to read okay on + win2k! + +2004-03-07 rocky + + * lib/_cdio_linux.c: Not sure why we had *exclusive* access just to + see if a CD-ROM is around. Was causing failure to discover CD-ROM + drives. + +2004-03-06 rocky + + * include/cdio/cdio.h, lib/MSWindows/win32.c, lib/cdio.c: regular + *mode2 variable name. + +2004-03-06 rocky + + * lib/_cdio_sunos.c, lib/image/bincue.c, lib/image/nrg.c: regularize + variable names mode{1,2}_form2 -> b_form2 + +2004-03-06 rocky + + * lib/MSWindows/ioctl.c, lib/MSWindows/win32.c: win32.c: wasn't + passing along mode2 form1 when requested. + +2004-03-06 rocky + + * lib/MSWindows/ioctl.c: update #include file name. + +2004-03-06 rocky + + * lib/_cdio_sunos.c: Bogosity fixup for Solaris. Could be better. + +2004-03-06 rocky + + * lib/_cdio_linux.c: GNU/Linux mode1 sector bogosity reduction. + (Could be greatly improved.) + +2004-03-06 rocky + + * test/check_common_fn.in: Typo. + +2004-03-06 rocky + + * configure.ac: We're 0.68cvs now. + +2004-03-06 rocky + + * lib/win32ioctl.c: Moved to MSWindows. + +2004-03-06 rocky + + * lib/MSWindows/ioctl.c: Moved from parent directory into MSWindows + directory. + +2004-03-06 rocky + + * lib/image/nrg.c: Fix up mode1 sector reading. + +2004-03-06 rocky + + * lib/image/bincue.c: Small changes. + +2004-03-06 rocky + + * lib/image/bincue.c: See previous log entry. + +2004-03-06 rocky + + * lib/image/bincue.c: The logic in _cdio_read_mode2_sector seems a + bit wrong and convoluted to me, but passes the regression tests. + (Perhaps it is why we get valgrind errors in vcdxrip). Leave it the + way it was for now. Review this sector 2336 stuff later. + +2004-03-05 rocky + + * lib/{wnaspi32.c => MSWindows/aspi32.c}, lib/{wnaspi32.h => + MSWindows/aspi32.h}, lib/{_cdio_win32.c => MSWindows/win32.c}, + lib/{_cdio_win32.h => MSWindows/win32.h}, lib/Makefile.am, + lib/{_cdio_bincue.c => image/bincue.c}, lib/{_cdio_nrg.c => + image/nrg.c}: *: Create OS-specific directories. bincue.c: remove + more bogus behavior in mode1/mode2 sector reading. + +2004-03-05 rocky + + * lib/_cdio_bincue.c, lib/_cdio_win32.c, lib/_cdio_win32.h, + lib/cdio.c, lib/cdio_private.h, lib/win32ioctl.c: Work on mode1 + reading. Remove some of the bogusity in cdio.c and bincue.c win2, + now works! + +2004-03-05 rocky + + * doc/doxygen/.cvignore, doc/doxygen/html/.cvsignore: CVS lint. + +2004-03-04 rocky + + * doc/libcdio.texi: Some typos. + +2004-03-04 rocky + + * include/cdio/xa.h: Doxygen addition + +2004-03-04 rocky + + * lib/win32ioctl.c: mode2 reading works on win2k via ioctl (so + probaby on WINNT and xp as well. + +2004-03-03 rocky + + * lib/_cdio_win32.c, lib/win32ioctl.c: Long needed start to improve + WIN2k native support. + +2004-03-02 rocky + + * configure.ac: Get ready for 0.67 release. + +2004-03-01 rocky + + * lib/Makefile.am: shared library numbers - this time, for sure! + +2004-03-01 rocky + + * NEWS: [no log message] + +2004-03-01 rocky + + * README.libcdio: And note Solaris problems too. + +2004-03-01 rocky + + * README.libcdio: Note that you need to use GNU make. + +2004-03-01 rocky + + * configure.ac: FreeBSD/NetBSD too gets versioned library variables. + +2004-03-01 rocky + + * lib/Makefile.am: Change AGE not CURRENT on libiso9660. + +2004-02-29 rocky + + * test/check_common_fn.in: diff program and opts somehow sneaked in + here. + +2004-02-29 rocky + + * src/iso-read.c: Make older C compilers happy. + +2004-02-29 rocky + + * Makefile.am, test/check_common_fn.in, test/check_iso.sh.in: Add + iso-read regression test. + +2004-02-29 rocky + + * test/Makefile.am: Need to include copying.iso for ISO 9660 + regression image test(s). + +2004-02-29 rocky + + * README.libcdio: Note something about --without-versioned-libs. + +2004-02-29 rocky + + * test/Makefile.am: Comparison file for check_iso.sh + +2004-02-29 rocky + + * configure.ac, test/.cvsignore, test/Makefile.am, + test/check_iso.sh.in, test/copying.right: Add test of iso-info + program (which means, of course, another test of libiso9660). + +2004-02-29 rocky + + * doc/glossary.texi, doc/libcdio.texi: glossary.texi: add most of + the terms used in the doc. libcdio.texi: Add a section for OS + drivers. + +2004-02-28 rocky + + * doc/glossary.texi: typo. + +2004-02-28 rocky + + * doc/glossary.texi: More terms. + +2004-02-28 rocky + + * doc/libcdio.texi: Add some info (however meager) regarding + cd-info, cd-read, iso-info and iso-read. + +2004-02-28 rocky + + * lib/Makefile.am: libiso9660 has changed - the fs_stat_translate + routines added and that packed attribut on XA. Thus we've got to + update "current" in libiso9660. + +2004-02-28 rocky + + * src/Makefile.am: Add iso-read to list of binaries in package. + +2004-02-28 rocky + + * configure.ac: If GNU make isn't found, then we should have + --without-versioned-libs FreeBSD/NetBSD (but now BSDI) don't use + versioned libs. + +2004-02-27 rocky + + * configure.ac: Bug in setting enable_versioned_libs. + +2004-02-27 rocky + + * NEWS: [no log message] + +2004-02-27 rocky + + * NEWS: [no log message] + +2004-02-27 rocky + + * doc/.cvsignore: The documentation has advanced to such a stage + that We are now in the realm of more than one info file. + +2004-02-27 rocky + + * README, configure.ac, doc/libcdio.texi, lib/Makefile.am: + configure.ac, Makefile.am: don't do library symbol version on BSDis + variants libcdio.texi: minor example improvements. + +2004-02-26 rocky + + * doc/libcdio.texi: New section on the purpose which mentions + cd-read, iso-read, iso-info. A couple more examples included Nodes + for the examples. + +2004-02-26 rocky + + * doc/libcdio.texi: Looked up how to enter an umlaut correctly. + +2004-02-26 rocky + + * lib/_cdio_bincue.c, lib/_cdio_nrg.c: Need to make failure less + severe. Especially in light of the ability to scan for devices. + +2004-02-26 rocky + + * lib/_cdio_nrg.c: Bug fix: don't try to free NRG track mapping DS + if it wasn't allocated. + +2004-02-26 rocky + + * lib/iso9660_fs.c: Remove a couple of compiler sprintf warnings. + +2004-02-26 rocky + + * NEWS, example/sample7.c, include/cdio/iso9660.h, + lib/iso9660_fs.c, src/iso-read.c: libiso9660 stat routines that + match level 1 ISO-9600 filenames translating them into Unix-style + names (i.e. lowercased letter with version numbers dropped.) + +2004-02-25 rocky + + * Makefile.am: Add hvr's auto-changelog target. + +2004-02-25 rocky + + * src/.cvsignore, src/Makefile.am: Add iso-read program. + +2004-02-25 rocky + + * src/iso-read.c: Add program for extracting files from an ISO-9660 + image. (Until we change the iso9660_ifs_stat interface, names of + files extracted have to have version numbers, e.g. ;1 after them. + +2004-02-25 rocky + + * README: Update. The iso-read part isn't true yet, but will be (one + way or another) by the next release. + +2004-02-25 rocky + + * include/cdio/xa.h: Herbert Valerio Riedel has determined that the + alignment problem seen on ARM noticed by Nicolas Boullis will be + fixed if this change in order is done. Since it doesn't make things + any worse, let's try it. + +2004-02-25 rocky + + * Makefile.am: Include README.libcdio + +2004-02-25 rocky + + * doc/libcdio.texi: Small modifications. + +2004-02-25 rocky + + * doc/glossary.texi: Small additions. + +2004-02-25 rocky + + * configure.ac: Better wording of what happens when libvcdinfo is + not around. + +2004-02-25 rocky + + * libpopt.m4: Check for libpopt 1.7 or greater. + +2004-02-22 rocky + + * doc/libcdio.texi: Note SCSI library. + +2004-02-22 rocky + + * README.libcdio: libcdio-specific installation. + +2004-02-22 rocky + + * configure.ac: Give URLs for vcdimager and libcddb when packages + are not found or are new enough. + +2004-02-21 rocky + + * configure.ac: We're in 0.67 CVS now. + +2004-02-21 rocky + + * src/iso-info.c: Valgrind lint. Not sure if I'd classify this truly + as memory leaks rather than explicit deallocations before + terminating. + +2004-02-21 rocky + + * lib/_cdio_stdio.c: Reduce severity of not being able to open a + stdio from "error" (unrecoverable) to "warn". + +2004-02-21 rocky + + * lib/_cdio_linux.c: More memory leaks found by valgrind. + +2004-02-21 rocky + + * src/.cvsignore: [no log message] + +2004-02-21 rocky + + * autogen.sh: Create ChangeLog if it doesn't first exist (which it + won't the first time around). Change from corresponding vcdimager + autogen.sh. + +2004-02-21 rocky + + * .cvsignore, doc/.cvsignore, src/.cvsignore: [no log message] + +2004-02-21 rocky + + * doc/Makefile.am, doc/libcdio.texi: Makefile.am: fix to build from + CVS libcdio.texi: title change, add automatically generated date to + manual, internal texinfo code cleanup. + +2004-02-21 rocky + + * doc/glossary.texi: Glossary of terms. Some of this culled from + vcdimager. + +2004-02-21 rocky + + * cvs2cl_header: Add header for ChangeLog file. + +2004-02-21 rocky + + * cvs2cl_usermap: account to email mapping file for cvs2cl. + +2004-02-21 rocky + + * ChangeLog: ChangeLog is derived from cvs2cl and is now in + Makefile.am + +2004-02-21 rocky + + * NEWS: typo. + +2004-02-21 rocky + + * include/cdio/cdio.h: spelling. + +2004-02-21 rocky + + * src/cd-info.c: Add option to list all drives. + +2004-02-15 rocky + + * libcdio.spec.in: Correctons from Manfred Tremmel who I am yet + again indebted. + +2004-02-14 rocky + + * libcdio.spec.in: This time, I think it builds. + +2004-02-14 rocky + + * libcdio.spec.in: Wrong abbreviation for September. + +2004-02-14 rocky + + * libcdio.spec.in: Regularize email address. + +2004-02-14 rocky + + * doc/libcdio.texi: Small compile errors. + +2004-02-14 rocky + + * ChangeLog, NEWS: What's shaking. + +2004-02-14 rocky + + * THANKS: Acknowlege what is only right. + +2004-02-14 rocky + + * libcdio.spec.in: Require 0.7.20 of vcdimager. + +2004-02-14 rocky + + * doc/Makefile.am, doc/fdl.texi, doc/gpl.texi: Add GPL info. + +2004-02-14 rocky + + * doc/libcdio.texi: Go over. Add CD-image format, ISO 9660 characters and glossary from vcdimager + documentation. Numberous small corrections. + +2004-02-13 rocky + + * NEWS: Note library symbol versioning (from Nicolas Boullis). + +2004-02-12 rocky + + * lib/Makefile.am: code reorganization from Nicolas Boullis. + +2004-02-11 rocky + + * lib/Makefile.am: lib/Makefile.am (Nicolas Boullis): Mostly some cleanup... First, this tries to keep the versioning + separated from the rest of the Makefile. I used the "foo := $(foo) + bar" syntax rather than "foo += bar" as I think the += is not + available on all versions of make. Moreover, I replaced "$(LIBCDIO_LIBS)" with "libcdio.la" as + "$(LIBCDIO_LIBS)" is "../lib/libcdio.la". That make a difference if + you try to build libiso9660.la while libcdio.la is not available. + Make knows how to make libcdio.la but not ../lib/libcdio.la. + +2004-02-11 rocky + + * lib/.cvsignore: Igore library version file. + +2004-02-10 rocky + + * lib/Makefile.am: Versioned library symbols from Nicolas Boullis. + Much appreciated. + +2004-02-09 rocky + + * THANKS, lib/Makefile.am: Clean up library versioning. Use LIBADD + since as best as I can tell, that's what supposed to be used. Many thanks to Nicolas Boullis. + +2004-02-08 rocky + + * lib/_cdio_win32.c: Pick up prototype for cdio_is_device_win32. + +2004-02-08 rocky + + * configure.ac: Get ready for another release. + +2004-02-08 rocky + + * lib/Makefile.am: libiso9660 needs to have libcdio listed in its + load flags for Solaris. + +2004-02-08 rocky + + * lib/Makefile.am, lib/_cdio_bincue.c, src/iso-info.c: Makefile.am: + bump release number. iso-info.c: mem leak _cdio_bincue.c: minor + formatting change. + +2004-02-08 rocky + + * NEWS: What's new. + +2004-02-08 rocky + + * lib/_cdio_nrg.c: More memory leaks found with valgrind. + +2004-02-08 rocky + + * lib/_cdio_bincue.c: Memory leak found by valgrind. + +2004-02-07 rocky + + * lib/_cdio_bincue.c, lib/_cdio_generic.c, lib/_cdio_nrg.c, + lib/_cdio_stdio.c, lib/_cdio_stdio.h, lib/_cdio_stream.c, + lib/_cdio_stream.h, lib/cdio_private.h, lib/iso9660_fs.c: More + valgrind-found memory leaks. (More to come...) + +2004-02-07 rocky + + * ChangeLog, lib/_cdio_linux.c, lib/cdio.c, src/cd-info.c, + src/cd-read.c, src/iso-info.c, src/util.c, src/util.h: Fix some of + the memory leaks and uninitialized variables which valgrind notices. + +2004-02-07 rocky + + * lib/wnaspi32.c: Microsoft Windows ASPI code for libcdio. + +2004-02-07 rocky + + * lib/Makefile.am, lib/_cdio_win32.c, lib/wnaspi32.h: Split out much + of the ASPI code into wnaspi32.c. + +2004-02-05 rocky + + * lib/_cdio_win32.c, lib/_cdio_win32.h, lib/win32ioctl.c: Move more + of IoControl out of _win_32 and into win32ioctl. + +2004-02-04 rocky + + * lib/_cdio_win32.c, lib/_cdio_win32.h, lib/win32ioctl.c: More + cleanup. Still sucks. + +2004-02-04 rocky + + * lib/Makefile.am, lib/_cdio_win32.c, lib/_cdio_win32.h, + lib/win32ioctl.c: Add better DeviceIocontrol support. It still + sucks, but sucks less. + +2004-02-04 rocky + + * example/sample6.c: printf lint for Doz. + +2004-02-02 rocky + + * NEWS: What's up. + +2004-02-02 rocky + + * configure.ac: 0.65's been released. We're now into 0.66 CVS. + +2004-02-02 rocky + + * lib/Makefile.am, lib/wnaspi32.h: Move APSI stuff into a separate + file. + +2004-02-02 rocky + + * lib/_cdio_win32.c: Small changes. Bigger changes should follow + later. + +2004-02-01 rocky + + * example/sample7.c: More printf lint. + +2004-02-01 rocky + + * example/Makefile.am: libiso9660 depends on libcdio. Cygwin (and + perhaps others) then require that libiso9660 be listed in the link + order before things that it depends on. + +2004-02-01 rocky + + * src/iso-info.c: ISO Info - prints various information about a ISO + 9660 image. + +2004-02-01 rocky + + * lib/_cdio_nrg.c: 2nd try at getting lint messages removed across + all architectures. + +2004-02-01 rocky + + * lib/_cdio_nrg.c: remove debug output lint warnings + +2004-01-29 rocky + + * doc/libcdio.texi: Typo. + +2004-01-29 rocky + + * example/README, example/sample6.c, example/sample7.c: Update text + commentary for sample6 & sample7. + +2004-01-18 rocky + + * example/.cvsignore: Added yet another sample program. + +2004-01-18 rocky + + * include/cdio/iso9660.h: Don't pack our own iso9660_t. + +2004-01-18 rocky + + * include/cdio/iso9660.h: Move tm struct around so the alignment + will be on a word boundary. Do we need GNUC_PACKED here? + +2004-01-15 hvr + + * libpopt.m4: fixed underquoted definition warning + +2004-01-10 rocky + + * : Sample ISO 9660 image. + +2004-01-10 rocky + + * include/cdio/iso9660.h, lib/iso9660_fs.c, src/util.c: iso-info now + does something useful now that readdir routine fixed up for iso + images. + +2004-01-10 rocky + + * example/Makefile.am, example/sample6.c, example/sample7.c, + include/cdio/iso9660.h, lib/_cdio_stdio.c, lib/_cdio_stdio.h, + lib/_cdio_stream.c, lib/_cdio_stream.h, lib/iso9660_fs.c, + src/Makefile.am: Add routines to open an ISO-9660 image independent + of being part of a CD. + +2004-01-09 rocky + + * lib/_cdio_bincue.c: Remove duplicate assignment + +2004-01-03 rocky + + * lib/_cdio_nrg.c: More guesses as to NRG format. Guess blocksizes, + handle some mixed-mode CDs. + +2003-12-31 rocky + + * lib/_cdio_nrg.c: Some code consolidation. + +2003-12-31 rocky + + * lib/_cdio_nrg.c: More Disk-at-once corrections. + +2003-12-30 rocky + + * lib/_cdio_nrg.c: Slightly better disk-at-once and track-at-once + parsing. Am able to read a tao mode1 form1 now. + +2003-12-28 uid67423 + + * lib/_cdio_nrg.c: Attempt getting various non-mode2/form2 track + modes correct. + +2003-12-24 uid67423 + + * example/sample6.c: add ISO9660 sample program + +2003-12-24 uid67423 + + * example/.cvsignore: [no log message] + +2003-12-24 uid67423 + + * NEWS, example/Makefile.am, example/README: Add ISO9660 sample + program. + +2003-12-24 uid67423 + + * configure.ac: Require vcdimager 0.7.20 or greater. Bump libcdio + version for last release. + +2003-12-24 uid67423 + + * include/cdio/iso9660.h: Documention in comment bug. + +2003-12-03 rocky + + * configure.ac: Remove extraneous cygwin LIB set. + +2003-11-18 rocky + + * include/cdio/cd_types.h, include/cdio/iso9660.h, + include/cdio/types.h, include/cdio/util.h, src/Makefile.am: More + documentation changes. Makefile.am: Don't build man pages if not in MAINTAINER mode. + +2003-11-17 rocky + + * doc/Makefile.am, include/cdio/cd_types.h, include/cdio/cdio.h, + include/cdio/iso9660.h, include/cdio/logging.h, + include/cdio/sector.h, include/cdio/types.h, include/cdio/xa.h: + Related to doxygen documentation. + +2003-11-17 rocky + + * include/cdio/version.h.in: Add doxygen comment and CVS Id line. + +2003-11-16 rocky + + * doc/Makefile.am, include/cdio/iso9660.h, lib/iso9660_fs.c, + src/cd-info.c: iso9600_stat now has filename inside it. + iso9660_fs_readdir now returns a list of iso9660_stat_t's rather + than filenames. This should reduce by a small amount the number of CD reads since we + store more information in the iso9660_fs_readdir return. However all of this is in preparation for greatly reducing the + number of CD reads when picking out segment lsn information. + +2003-11-11 rocky + + * doc/libcdio.texi: libcdio.info was missing a @dircategory and + @direntry section. See + + http://savannah.nongnu.org/bugs/?func=detailbug&bug_id=6470&group_id=3845Thanks to dweimer for pointing this out and providing a patch. + +2003-11-10 rocky + + * include/cdio/iso9660.h, lib/iso9660_fs.c: Smallish cosmetic + changes. Bigger ones to iso9660_fs_readdir will probably occur + later... + +2003-11-10 rocky + + * NEWS: [no log message] + +2003-11-10 rocky + + * src/cd-read.c: Allow setting debug level in library for default + log handler. + +2003-11-09 rocky + + * src/cd-info.c: Was filling out source_name for a device even when + it wasn't. + +2003-11-09 rocky + + * lib/_cdio_nrg.c: Revise info on MTYP - more debugging here too. + +2003-11-09 rocky + + * doc/doxygen/.cvignore: The usual. + +2003-11-09 rocky + + * doc/doxygen/run_doxygen: Program to run doxygen. + +2003-11-09 rocky + + * lib/logging.c, src/cd-info.c: Be able to set/disable default log + handler logging. + +2003-11-09 rocky + + * Makefile.am: Add doxygen target. + +2003-11-09 rocky + + * doc/doxygen/Doxyfile: Slightly customized configuration setting + for running doxygen. + +2003-11-09 rocky + + * include/cdio/iso9660.h: doxygen changes. + +2003-11-05 rocky + + * include/cdio/cdio.h, include/cdio/iso9660.h, + include/cdio/sector.h: update/add More doxygen tagging + +2003-11-05 rocky + + * example/sample3.c, example/sample4.c, include/cdio/cd_types.h, + lib/cd_types.c, lib/cdio.c, src/cd-info.c: cdio_analysis -> + cdio_iso_analysis + +2003-11-04 rocky + + * include/cdio/cd_types.h, include/cdio/cdio.h, + include/cdio/logging.h: doxygen changes. + +2003-11-04 rocky + + * include/cdio/cd_types.h, include/cdio/iso9660.h, + include/cdio/logging.h, lib/logging.c: Start to document using + doxygen. + +2003-11-04 rocky + + * lib/_cdio_bincue.c: Got return value on _cdio_audio_sectors + backwards. + +2003-10-28 rocky + + * configure.ac, doc/libcdio.texi, include/cdio/iso9660.h, + src/util.c: configure.ac: changes suggested by Karl Berry + (karl@freefriends.org) which may make work for autoconf 1.7.8 libcdio.texi: remove colophon and correct copyright notice + iso9660.h: trivial comment addition util.c: Correct copyright line. + +2003-10-20 rocky + + * lib/_cdio_win32.c: Retry YellowMode2 if XA fails - but I think we + need a better overall method. + +2003-10-20 rocky + + * src/cd-read.c: Don't print blocks if read failed. + +2003-10-19 rocky + + * configure.ac: Life goes on. Bump version number. + +2003-10-18 rocky + + * lib/_cdio_win32.c: More WIN32 fixes. + +2003-10-18 rocky + + * lib/_cdio_win32.c: More fixes on non ASPI side. + +2003-10-17 rocky + + * lib/_cdio_win32.c: Track format's if no ASPI are probably close. + Reading probably closer to correct. + +2003-10-16 rocky + + * src/cd-read.c: Typo. + +2003-10-15 rocky + + * NEWS: [no log message] + +2003-10-15 rocky + + * lib/_cdio_win32.c: Some of the many necessary fixes needed to make + Win32 handling more complete. Some bugs remain (and will so until + after the release). + +2003-10-15 rocky + + * src/cd-read.c: [no log message] + +2003-10-15 rocky + + * src/cd-info.c, src/cd-read.c, test/cdda.right, + test/check_opts2.right, test/check_opts3.right, + test/check_opts4.right, test/check_opts5.right, + test/check_opts6.right, test/check_opts7.right, + test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo.right, test/vcd_demo_vcdinfo.right, + test/videocd.right: Show green status for each track. cd-info.c: + above + fewer assertions cd-read.c: direction we'll go when after + release. + +2003-10-14 rocky + + * lib/_cdio_sunos.c: Back off some of the modularization until we + figure out what's gone wrong. + +2003-10-13 rocky + + * lib/_cdio_osx.c: Compilation bugs. + +2003-10-13 rocky + + * configure.ac: The real release. + +2003-10-13 rocky + + * ChangeLog: [no log message] + +2003-10-08 rocky + + * include/cdio/sector.h, lib/_cdio_osx.c: OSX fixups and #define + bugs from thedj. + +2003-10-07 rocky + + * lib/_cdio_nrg.c: Detect Audio CDs (probably). + +2003-10-06 rocky + + * lib/cd_types.c, src/cd-info.c, test/check_cue.sh.in, + test/check_nrg.sh.in, test/check_opts.sh: cd_types: sector 0 rarely + needs to be read, and when it doesn't, it's not an error if it can't + be read cd-info: give more info by default - source location and + driver. test/*: as a result of cd-info changes need now to pass + option --quiet. + +2003-10-05 rocky + + * lib/_cdio_osx.c: Get Media Catalog Number - courtesy of thedj! + +2003-10-05 rocky + + * configure.ac: Accept more freebsd versions. + +2003-10-05 rocky + + * include/cdio/logging.h, lib/_cdio_osx.c, lib/logging.c: Default + logger now allows level to be set and we use a reasonable setting, + e.g. no DEBUG + +2003-10-04 rocky + + * include/cdio/cdio.h, lib/cdio.c: Add OSX device scanning. + +2003-10-04 rocky + + * lib/cdio.c: Clean up comment. + +2003-10-04 rocky + + * lib/cdio.c: A better fix by Gildas Bazin. + +2003-10-04 rocky + + * lib/cdio.c: Check on open that we didn't hit an error. + +2003-10-04 rocky + + * lib/_cdio_osx.c: Wrong define. Thanks thedj! + +2003-10-04 rocky + + * configure.ac: Back to 2.52 for our OSX users. + +2003-10-04 rocky + + * configure.ac: Force vcdimager 0.7.19 to be used because that uses + iso9660 and an earlier one will cause our use of iso9660 to fail. Is + there a better way to do this? + +2003-10-03 rocky + + * libcdio.spec.in: Update Spec file. + +2003-10-03 rocky + + * lib/_cdio_bsdi_old.c: This shouldn't have been in CVS. + +2003-10-03 rocky + + * lib/_cdio_bsdi.c: Small BSDI fix from Steve Schultz + +2003-10-03 rocky + + * NEWS: [no log message] + +2003-10-03 rocky + + * example/sample1.c, example/sample3.c: Practice more defensive + programming. + +2003-10-03 rocky + + * lib/_cdio_nrg.c, lib/_cdio_stream.c: Abort less often - just + report an error. + +2003-10-03 rocky + + * configure.ac, include/cdio/cdio.h, lib/_cdio_bincue.c, + lib/_cdio_freebsd.c: FreeBSD fixes mostlyh. + +2003-10-03 rocky + + * lib/_cdio_freebsd.c: Closer.... + +2003-10-03 rocky + + * lib/_cdio_bsdi.c, lib/_cdio_freebsd.c: OS fixes. + +2003-10-03 rocky + + * lib/_cdio_bsdi.c: [no log message] + +2003-10-03 rocky + + * lib/_cdio_bsdi.c: Cosmetic changes to Make it look more like the + others. + +2003-10-03 rocky + + * lib/_cdio_sunos.c: Need to provide get_devices when not compiling + for Solaris too. + +2003-10-03 rocky + + * test/.cvsignore: [no log message] + +2003-10-03 rocky + + * NEWS, include/cdio/cdio.h, lib/_cdio_bincue.c, lib/cdio.c: + cdio.{c,h}: update initializations for get_devices. + +2003-10-03 rocky + + * lib/_cdio_sunos.c: Add Solaris get_devices. + +2003-10-03 rocky + + * lib/_cdio_bsdi.c: BSDI fixes. + +2003-10-03 rocky + + * example/sample4.c: Lint found by BSDI. + +2003-10-03 rocky + + * src/cd-read.c, test/testdefault.c: Lint that BSDI caught. + +2003-10-03 rocky + + * lib/_cdio_linux.c: Use bool where appropriate. + +2003-10-03 rocky + + * include/cdio/cdio.h, lib/_cdio_win32.c: Add get_devices. + +2003-10-03 rocky + + * test/Makefile.am: Remove testdefault until I can figure out how to + make work via make distcheck. + +2003-10-03 rocky + + * example/sample1.c: More platform independent and no less complex. + +2003-10-02 rocky + + * example/sample5.c, include/cdio/cd_types.h, include/cdio/cdio.h, + lib/_cdio_bincue.c, lib/_cdio_bsdi.c, lib/cdio.c, src/cd-read.c, + test/testdefault.c: BSDI Fixes. + +2003-10-01 rocky + + * test/testdefault.c: Regression test for cdio_get_devices, + cdio_get_devices_with_cap(), and cdio_free_device_list(). + +2003-09-30 rocky + + * include/cdio/cdio.h, lib/_cdio_bincue.c, lib/_cdio_linux.c, + lib/_cdio_nrg.c, lib/cdio.c, lib/cdio_private.h, + test/check_cue.sh.in, test/check_nrg.sh.in: Fill out autoscan + devices/images to image drivers. API is probably closer to more + complete. + +2003-09-29 rocky + + * example/.cvsignore: [no log message] + +2003-09-29 rocky + + * configure.ac, example/.cvsignore, example/sample5.c, + include/cdio/cdio.h, lib/_cdio_linux.c, lib/_cdio_nrg.c, + lib/cdio.c, lib/cdio_private.h, test/Makefile.am, + test/check_cue.sh.in, test/vcd_demo_vcdinfo.right: Closer to + autoscan working better. globbing for *.nrg in NRG. Will probably + do likewise in bin/cue when NRG is working. + +2003-09-28 rocky + + * example/Makefile, test/Makefile.am: Misc lint. + +2003-09-28 rocky + + * Makefile.am, configure.ac, example/.cvsignore, example/Makefile, + example/Makefile.am, example/sample1.c, example/sample2.c, + example/sample3.c, example/sample4.c, example/sample5.c: Use + automake to build sample programs. + +2003-09-28 rocky + + * example/README: typo. + +2003-09-28 rocky + + * NEWS: [no log message] + +2003-09-28 rocky + + * NEWS: [no log message] + +2003-09-28 rocky + + * example/Makefile, example/sample5.c, include/cdio/cd_types.h, + include/cdio/cdio.h, include/cdio/types.h, lib/_cdio_generic.c, + lib/_cdio_linux.c, lib/cd_types.c, lib/cdio.c, lib/cdio_private.h, + src/cd-info.c: First-cut to auto-scan for device capabilities + +2003-09-28 rocky + + * src/cd-info.c: Wasn't respecting --no-vcd, Or vcd-info when SVCD + or CVD. + +2003-09-28 rocky + + * test/monvoisin.right, test/vcd_demo.right: Wasn't respecting + --no-vcd + +2003-09-28 rocky + + * test/cdda.cue, test/cdda.right, test/check_opts0.right, + test/check_opts1.right, test/check_opts2.right, + test/check_opts3.right, test/check_opts4.right, + test/check_opts5.right, test/check_opts6.right, + test/check_opts7.right, test/isofs-m1.cue, test/isofs-m1.right: Not + sure if MCN can be on a CD-DA so move it to iso 9660 image. + +2003-09-28 rocky + + * include/cdio/cdio.h, lib/_cdio_bincue.c, test/cdda.cue, + test/cdda.right: Impliment MCN for bincue. + +2003-09-27 rocky + + * configure.ac, include/cdio/cdio.h, lib/_cdio_bincue.c, + lib/_cdio_linux.c, lib/_cdio_sunos.c, src/cd-info.c, src/cd-read.c, + test/cdda.right, test/check_opts0.right, test/check_opts1.right, + test/check_opts2.right, test/check_opts3.right, + test/check_opts4.right, test/check_opts5.right, + test/check_opts6.right, test/check_opts7.right, + test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo.right, test/videocd.right: Replace techno-wizard + message "Get MCN" with more layman "Media Catalog Number" + +2003-09-26 rocky + + * lib/_cdio_sunos.c: read_audio_sectors done better. + +2003-09-25 rocky + + * src/cdinfo-linux.c: Fix up so this works again. + +2003-09-25 rocky + + * include/cdio/cdio.h, lib/_cdio_bincue.c, lib/_cdio_bsdi.c, + lib/_cdio_freebsd.c, lib/_cdio_linux.c, lib/_cdio_nrg.c, + lib/_cdio_osx.c, lib/_cdio_win32.c, lib/cdio.c, lib/cdio_private.h, + src/cd-info.c, test/cdda.right, test/check_opts0.right, + test/check_opts1.right, test/check_opts2.right, + test/check_opts3.right, test/check_opts4.right, + test/check_opts5.right, test/check_opts6.right, + test/check_opts7.right, test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo.right, test/videocd.right: Add get_mcn, although it + really only works on GNU/Linux right now. + +2003-09-22 rocky + + * configure.ac: Add manpage generation. + +2003-09-22 rocky + + * src/.cvsignore: [no log message] + +2003-09-22 rocky + + * src/Makefile.am, src/cd-read.c: More flexibility: allow any two of + start, end, count. If only one or none are given, we'll supply + default values. + +2003-09-21 rocky + + * src/cd-read.c, test/check_cd_read.sh, test/isofs-m1-read.right: + Make cd-read more user-friendly and do more things: Add start/end/count options for cd-read, Input argument doesn't need a specifier (-i or --cue-file) now. block sizes for various formats have been set correctly now. + +2003-09-21 rocky + + * configure.ac, lib/iso9660.c: Test for presence of gmtoff for + braindead cygwin + +2003-09-21 rocky + + * lib/_cdio_win32.c: Compilation problems. + +2003-09-21 rocky + + * src/cd-info.c: More tidy. + +2003-09-21 rocky + + * src/Makefile.am, src/cd-info.c, src/cd-read.c, src/util.c, + src/util.h: Break out common standalone routines from cd-info and + cd-read. + +2003-09-21 rocky + + * NEWS, src/cd-info.c, src/cd-read.c, test/check_cd_read.sh, + test/isofs-m1-read.right: Add options processing to cd-read. Had not + very useful output on mode1 format1 test. + +2003-09-21 rocky + + * include/cdio/iso9660.h: [no log message] + +2003-09-21 rocky + + * include/cdio/iso9660.h, include/cdio/xa.h, lib/iso9660.c, + lib/iso9660_fs.c, lib/xa.c, test/monvoisin.right, + test/svcdgs.right, test/testiso9660.c: More ISO 9660 date cleanup. + Hopefully cleaner structure definitions and more function + documentation. + +2003-09-20 rocky + + * lib/iso9660.c: Bug in iso9660_set_ltime. Probably snprintf putting + in \0 at the end of each string messed up internal format (which + doesn't have the \0's. + +2003-09-20 rocky + + * include/cdio/cdio.h, lib/_cdio_bincue.c, lib/_cdio_bsdi.c, + lib/_cdio_linux.c, lib/_cdio_nrg.c, lib/_cdio_osx.c, + lib/_cdio_sunos.c, lib/_cdio_win32.c, lib/cdio.c, + lib/cdio_private.h, lib/scsi_mmc.h: Change interface for + read_audio_sectors. + +2003-09-20 rocky + + * include/cdio/iso9660.h, lib/iso9660.c: Add "long" date setting + routine and more precise definitions there as well. + +2003-09-20 rocky + + * include/cdio/iso9660.h, lib/iso9660.c, lib/iso9660_fs.c: More + precise ISO9660 date definition + +2003-09-20 rocky + + * test/Makefile.am, test/check_cd_read.sh, test/check_cue.sh.in, + test/check_nrg.sh.in, test/check_opts.sh: incorrect usage of cd + test/ if ! test -> if test ! + +2003-09-19 rocky + + * configure.ac: {v,}cdinfo -> {v,}cd-info. Configure for cd-read. + Test for memset and bzero. + +2003-09-19 rocky + + * Makefile.am: Hack to make sure check_nrg.sh and check_cue.sh are + executable. + +2003-09-19 rocky + + * lib/_cdio_linux.c: Clean up mmc code a bit + +2003-09-19 rocky + + * lib/scsi_mmc.h: Add some of the read types and macro to set it + +2003-09-19 rocky + + * src/cd-read.c: Adjust block length for mode1 read + +2003-09-19 rocky + + * test/check_cd_read.sh, test/isofs-m1-read.right: add mode1 test + +2003-09-19 rocky + + * src/cd-read.c: Silence cdio output + +2003-09-19 rocky + + * test/Makefile.am, test/cdda-read.right, test/check_cd_read.sh, + test/check_common_fn.in, test/check_cue.sh.in: Add CD-DA reading + test via cd-read; Add GPL + +2003-09-18 rocky + + * lib/_cdio_bincue.c: Use macro definition of bzero + +2003-09-18 rocky + + * lib/_cdio_bincue.c: Tidy up #includes a bit + +2003-09-18 rocky + + * lib/cdio_assert.h, lib/cdio_private.h: Check and include config.h + so includer's don't. + +2003-09-18 rocky + + * lib/_cdio_bincue.c: Adjustment for reading audio cd. Also break + out MMC stuff a little bit better. + +2003-09-18 rocky + + * lib/_cdio_linux.c, lib/scsi_mmc.h: Put more into scsi_mmc.h + +2003-09-17 rocky + + * src/.cvsignore: [no log message] + +2003-09-17 rocky + + * lib/_cdio_linux.c: Don't turn a LSN into an LBA when reading + audio. + +2003-09-17 rocky + + * example/Makefile, example/dbg_read.c: Moved into src/cd-read. + +2003-09-17 rocky + + * src/Makefile.am, src/cd-read.c: Add cd-read.c for debugging CD + reading problems. + +2003-09-17 rocky + + * example/dbg_read.c: Do it! + +2003-09-17 rocky + + * test/Makefile.am: Use a bigger hammer to get automess to what + really should be a simple simple thing - specify mode and + permissions of the files it creates. + +2003-09-15 rocky + + * configure.ac: Test for OSX presense of IOKit and CoreFoundation + and add to list of libraries. Change format of drivers reported. + +2003-09-15 rocky + + * lib/_cdio_osx.c: More lba, lsn confusion. + +2003-09-14 rocky + + * configure.ac, lib/_cdio_osx.c: Changes from Derk-Jan Hartman + for OSX support. + +2003-09-14 rocky + + * lib/_cdio_osx.c: Loop went the wrong way. + +2003-09-14 rocky + + * lib/_cdio_osx.c: Go back to 0xa2 for "leadout" + +2003-09-14 rocky + + * lib/cdio.c: Bug if we had a get_track_lba but no get_track_msf. + Guard against that. + +2003-09-14 rocky + + * lib/scsi_mmc.h: A place right now for common SCSI MMC (multimedia + command). + +2003-09-14 rocky + + * lib/Makefile.am, lib/_cdio_linux.c, lib/_cdio_sunos.c, + lib/_cdio_win32.c, src/cd-info.c, test/Makefile.am: Use new common + scsi_mmc.h. + +2003-09-14 rocky + + * configure.ac, test/Makefile.am: Finally get regression testing to + work with expected failure and on cygwin. + +2003-09-14 rocky + + * lib/_cdio_nrg.c, lib/cd_types.c: More I/O format lint. + +2003-09-14 rocky + + * lib/iso9660_fs.c: More I/O format lint. + +2003-09-14 rocky + + * lib/_cdio_bincue.c: I/O lint. + +2003-09-14 rocky + + * test/Makefile.am: Reuse noinst_PROGRAMS variable. + +2003-09-14 rocky + + * test/check_cue.sh.in: The program is now called cd-info. + +2003-09-14 rocky + + * lib/_cdio_osx.c: Change default device, use normal leadout track, + fix doc typo(s). + +2003-09-13 rocky + + * configure.ac, include/cdio/cdio.h, include/cdio/sector.h, + lib/Makefile.am, lib/_cdio_osx.c, lib/cdio.c: Rudimentary beginnings + for Darwin OS X CD support. + +2003-09-11 rocky + + * lib/sector.c: _vcd_lba_to_msf_str -> cdio_lba_to_msf_str; + +2003-09-10 rocky + + * include/cdio/iso9660.h, lib/iso9660.c: Documentation update + +2003-09-10 rocky + + * include/cdio/iso9660.h: Allow C++ to call. + +2003-09-10 rocky + + * libcdio.spec.in: small fixes really from Frantisek Dvorak + + +2003-09-07 rocky + + * include/cdio/iso9660.h, lib/iso9660.c, lib/iso9660_fs.c: add + parameters to set times on directory entries, pvd's. + +2003-09-07 rocky + + * test/cdda.right, test/check_cue.sh.in, test/isofs-m1.right, + test/monvoisin.right, test/svcd_ogt_test_ntsc.right, + test/svcdgs.right, test/vcd_demo.right, test/videocd.right: Output + time format change in cd-info. Hopefully the last one. + +2003-09-07 rocky + + * ChangeLog, NEWS: [no log message] + +2003-09-07 rocky + + * src/cd-info.c: Yet another time format output change on listing. + Hopefully the last one + +2003-09-07 rocky + + * configure.ac: Change version to note another CVS version + +2003-09-07 rocky + + * test/check_common_fn.in: Make sure to set TZ and LC_TIME so we get + predictable results + +2003-09-06 rocky + + * test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo.right, test/videocd.right: Update for normal filenames + from the ISO-9660 names. + +2003-09-06 rocky + + * include/cdio/iso9660.h, lib/iso9660.c, lib/iso9660_fs.c, + lib/iso9660_private.h, src/cd-info.c: Add iso9660_name_translate() + to remove ISO-name cruft. Document iso9660_fs_stat(). + +2003-09-06 rocky + + * include/cdio/types.h: Small comment change. + +2003-09-05 rocky + + * include/cdio/cdio.h, include/cdio/iso9660.h, lib/cdio.c, + lib/iso9660_fs.c: Move ISO-9660 lsn-finding routine from vcdimager + here. More prototypes are "const CdIo *". + +2003-09-01 rocky + + * lib/_cdio_bincue.c: Test for NULL binfile - as odd as this sounds, + it could cause core dump if no CD loaded. + +2003-09-01 rocky + + * configure.ac: Remove -Wsign-promo which is not relevant for C + programs. + +2003-09-01 rocky + + * src/cd-info.c: Always have no-vcdinfo option. + +2003-09-01 rocky + + * libcdio.spec.in: Translation kindly and graceously provided by + Manfred Tremmel + +2003-09-01 rocky + + * include/cdio/iso9660.h: Did packing incorrectly on pvd_t. + +2003-09-01 rocky + + * lib/_cdio_bsdi.c, lib/_cdio_freebsd.c, lib/_cdio_linux.c, + lib/_cdio_sunos.c: Note TOC's initialized so we don't reread. Add + some int's to unsigned. + +2003-09-01 rocky + + * include/cdio/iso9660.h, lib/iso9660.c: Start to document library + routines. An "int" was changed to the more correct "bool". + +2003-09-01 rocky + + * test/.cvsignore: [no log message] + +2003-09-01 rocky + + * test/Makefile.am, test/testiso9660.c: Add minimal test of new + iso9660 library. + +2003-09-01 rocky + + * include/cdio/iso9660.h, include/cdio/xa.h, lib/iso9660_private.h: + Merge in and tidy up with mkisofs's iso9660.h. If that is correct + (and it probably is), there were erroneous field definitions. + +2003-09-01 rocky + + * configure.ac: Wrong AC_SUBST variable for CDDB. + +2003-09-01 rocky + + * libcdio.spec.in: Add commentary about cd-info. Update dependencies + to latest versions of packages which is really needed. + +2003-09-01 rocky + + * src/cd-info.c: Have to rely more on other XA test since track + indicator seems faulty. Missing "break;" in switch caused us to not + print iso9660 filesystems. + +2003-09-01 rocky + + * test/check_cue.sh.in, test/check_nrg.sh.in: Was setting options + all wrong and using wrong CDDB subtitution variable. As Bullwinkle + says, "This time, for sure!" + +2003-09-01 rocky + + * lib/_cdio_linux.c: Wasn't noting that we read TOC so we were + re-reading it every time. + +2003-08-31 rocky + + * src/cd-info.c: Deal with gcc warning. Think it was spurious, but + just in case. + +2003-08-31 rocky + + * ChangeLog, Makefile.am, THANKS, libcdio.spec.in: Fixes from + Frantisek Dvorak + +2003-08-31 rocky + + * NEWS: [no log message] + +2003-08-31 rocky + + * lib/iso9660_fs.c, src/cd-info.c, test/check_cue.sh.in, + test/isofs-m1.right: Make mode1 format filesystem print work. + +2003-08-31 rocky + + * include/cdio/cdio.h, include/cdio/iso9660.h, + include/cdio/sector.h, lib/_cdio_bincue.c, lib/cd_types.c, + lib/cdio.c, lib/iso9660_fs.c, src/cd-info.c: Straighten out mode1 vs + mode2 mess. + +2003-08-31 rocky + + * include/cdio/iso9660.h: Define EMPTY_ARRAY_SIZE if it is not + defined previously. + +2003-08-31 rocky + + * include/cdio/iso9660.h, include/cdio/xa.h, lib/iso9660_fs.c, + lib/xa.c: Final tidy up. + +2003-08-31 rocky + + * lib/iso9660_fs.h: Most of this is public now. + +2003-08-31 rocky + + * lib/xa.c, test/check_sizeof.c: [no log message] + +2003-08-31 rocky + + * include/cdio/iso9660.h, include/cdio/xa.h, lib/Makefile.am, + lib/iso9660_fs.c, lib/xa.c, lib/xa.h, src/cd-info.c, + test/cdda.right, test/check_cue.sh.in, test/check_nrg.sh.in, + test/monvoisin.right, test/vcd_demo.right: I think I have the XA + encapsulation down so that it will work in vcdimager (and others). + +2003-08-31 rocky + + * configure.ac: Rely more on PKG_INFO and remove header checks which + didn't test for --enable-xxx. + +2003-08-31 rocky + + * include/cdio/Makefile.am, include/cdio/iso9660.h, + include/cdio/xa.h: Separate and make XA information public. + +2003-08-31 rocky + + * include/cdio/iso9660.h, lib/Makefile.am, lib/iso9660_fs.c, + lib/iso9660_fs.h, lib/xa.h, src/Makefile.am, src/cd-info.c, + test/check_cue.sh.in, test/check_nrg.sh.in, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo.right, test/videocd.right: Move over reading ISO-9660 + filesytems from vcdimager. Handling of XA attributes also moved + over. + +2003-08-31 rocky + + * include/cdio/iso9660.h, lib/iso9660.c, lib/iso9660_private.h, + test/check_sizeof.c: Expose primary volume descriptor (pvd) and + directory structures since they *are* part of the spec. and be done + with it. + +2003-08-31 rocky + + * src/cd-info.c: A tad closer to being able to print ISO-9660 + filesystems + +2003-08-31 rocky + + * include/cdio/iso9660.h, lib/cd_types.c, lib/iso9660_private.h: + cd_types: tighter use of ISO #defines. Make some of the private + ones public to reduce "private" use in vcdimager. + +2003-08-31 rocky + + * include/cdio/iso9660.h, lib/iso9660.c, src/cd-info.c: + iso_directory_record_t -> iso9660_dir_t + +2003-08-31 rocky + + * include/cdio/iso9660.h, lib/iso9660.c: pvd_t -> iso9660_pvd_t + +2003-08-31 rocky + + * include/cdio/iso9660.h, lib/iso9660.c: two routines are buggy. + Back out until they've been fixed. + +2003-08-31 rocky + + * configure.ac, include/cdio/iso9660.h, include/cdio/types.h, + lib/iso9660.c: Opaque type declaration for iso9660 moved into well + iso9660.h (from cdio/types.h). Opaque type for iso_directory_record + defined and access routines added to libiso9660. + +2003-08-31 rocky + + * autogen.sh: Minor changes. + +2003-08-30 rocky + + * NEWS: [no log message] + +2003-08-29 rocky + + * test/check_cue.sh.in, test/check_nrg.sh.in, test/check_opts.sh: + Invalid substituiton variable. Allow cd-info tests to be skipped. + +2003-08-29 rocky + + * src/cd-info.c: Declarations have to all be together for gcc < 3.0 + +2003-08-29 rocky + + * lib/iso9660_private.h: Wrong include. We've moved from vcdimager + to cdio. + +2003-08-29 rocky + + * Makefile.am: Add sample3 & 4 + +2003-08-29 rocky + + * ChangeLog, NEWS: [no log message] + +2003-08-17 rocky + + * NEWS, example/.cvsignore, example/sample3.c: [no log message] + +2003-08-17 rocky + + * example/Makefile, example/sample4.c: Yet another example. + +2003-08-17 rocky + + * test/.cvsignore, test/Makefile.am, test/check_sizeof.c: + Makefile.am: add check_sizeof and testischar + +2003-08-17 rocky + + * libiso9660.pc.in: Remove dependence on vcd. We also don't use glib + just yet. + +2003-08-17 rocky + + * .cvsignore, Makefile.am, configure.ac, include/cdio/Makefile.am, + include/cdio/iso9660.h, include/cdio/types.h, lib/Makefile.am, + lib/cd_types.c, lib/iso9660.c, lib/iso9660_private.h, + libiso9660.pc.in, test/.cvsignore, test/Makefile.am, + test/testassert.c, test/testischar.c: Add iso9660 library and + regression test. Will be deleted from vcdimager-cdio branch. + cd_types.c: forgot to add previously. + +2003-08-16 rocky + + * example/sample3.c: Typo in comment. + +2003-08-16 rocky + + * configure.ac: Make sure we have the latest vcdinfo + +2003-08-16 rocky + + * example/Makefile, example/sample3.c, src/cd-info.c: Add simple + program to show CD-type and filesystem determination. cd-info.c: + minor code cleanups. + +2003-08-16 rocky + + * example/.cvsignore: Add sample3 + +2003-08-16 rocky + + * test/check_cue.sh: Is derived from check_cue.sh.in + +2003-08-16 rocky + + * include/cdio/Makefile.am, include/cdio/cd_types.h, + lib/Makefile.am, src/Makefile.am, src/analyze.c, src/analyze.h, + src/cd-info.c, test/check_cue.sh: Move routine to analyze/guess what + type of CD image we have got into the library. + +2003-08-16 rocky + + * src/Makefile.am: Oooops--test version of Makefile.am got checked + in. Revert it. + +2003-08-16 rocky + + * src/Makefile.am, src/analyze.c, src/analyze.h, src/cd-info.c, + test/check_cue.sh, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo.right, test/videocd.right: Fix bug in storing iso_9660 + volume sector count. cd-info.c reduce global variables. Regression + tests output was incorrect with this long-standing bug. + +2003-08-14 rocky + + * src/Makefile.am, src/analyze.c, src/analyze.h, src/cd-info.c: + First cut at separating disc analysis part from standalone source. + More modularity is needed. + +2003-08-13 rocky + + * src/cd-info.c: Messed up on SVCD test. + +2003-08-13 rocky + + * src/cd-info.c: Set VCD log handler. + +2003-08-11 rocky + + * lib/_cdio_win32.c: A simple stupid mistake. Not sure why it wasn't + caught before. + +2003-08-10 rocky + + * test/check_cue.sh: VCD tests when available. + +2003-08-10 rocky + + * doc/.cvsignore, example/.cvsignore: lint. + +2003-08-10 rocky + + * configure.ac, src/Makefile.am, src/cd-info.c: Changes brought + about by recent vcdimager-cdio changes. - We use vcdinfo_t ** on vcdinfo_open. - Now make use of pkg-config for vcdimager in configure. - Remove reference to info_private.h. + +2003-08-09 rocky + + * ChangeLog: [no log message] + +2003-08-09 rocky + + * ChangeLog, Makefile.am, doc/Makefile.am, example/sample1.c, + example/sample2.c: *Makefile/am Get sample documentation is in + distribution. example/*.c: remove trailing blanks at end of file. + +2003-08-09 rocky + + * NEWS: [no log message] + +2003-08-06 rocky + + * libcdio.spec.in: - fixes really Manfred Tremmel at http://www.iiv.de/schwinde/buerger/tremmel/ + +2003-08-03 rocky + + * doc/libcdio.texi: Fill out how to use: add example programs 1 and + 2. + +2003-08-03 rocky + + * example/sample2.c: Sample program to - show what driver is automatically selected - what device will be used for that - list all the drivers that exist showing whether they are + available or not + +2003-08-02 rocky + + * NEWS: [no log message] + +2003-08-02 rocky + + * Makefile.am: Remove that directory in EXTRA_DIST! + +2003-08-02 rocky + + * example/README, example/sample1.c: Add a sample program. More will + follow later... + +2003-08-02 rocky + + * doc/libcdio.texi: typo. + +2003-07-30 rocky + + * doc/libcdio.texi: More verbiage. Alas not on how to use *this* + package, but we are getting there if by virtue of not being able to + postpone it too much more. + +2003-07-28 rocky + + * doc/libcdio.texi: Small additions and edits. + +2003-07-28 rocky + + * doc/.cvsignore: [no log message] + +2003-07-28 rocky + + * Makefile.am, configure.ac, doc/Makefile.am, doc/libcdio.texi: + First feeble attempt at documentation. + +2003-07-27 rocky + + * include/cdio/cdio.h, lib/_cdio_bincue.c, lib/_cdio_linux.c, + lib/_cdio_nrg.c, lib/_cdio_sunos.c: Small comment change. + +2003-07-12 rocky + + * parse/Makefile, parse/test/runall: Add simple regression testing + driver. + +2003-06-22 rocky + + * ChangeLog, include/cdio/cdio.h, lib/cdio.c, lib/cdio_private.h, + src/cd-info.c: MIN_DRIVER, MIN_DEVICE_DRIVER, MAX_DEVICE_DRIVER -> + CDIO_... Add CDIO_MAX_DRIVER (distinct from CDIO_MAX_DEVICE_DRIVER cdio.c (cdio_open): was only scanning devices. Change to scan disk + image files as well. + +2003-06-16 rocky + + * NEWS: [no log message] + +2003-06-13 rocky + + * configure.ac: Order of libraries is important in cygwin (and + perhaps others): -lvcdinfo comes before -lvcd. + +2003-06-13 rocky + + * src/cd-info.c: Now use cdio enum rather than vcd enum for unknown + driver type. + +2003-06-12 rocky + + * lib/_cdio_generic.c, lib/_cdio_linux.c, lib/cdio_private.h, + src/cd-info.c: Make GNU/Linux smarter about finding a default device + -- code sort of from SDL. Better error checking all around. + +2003-06-12 rocky + + * lib/_cdio_win32.c: Pedantic change: subroutine name is probably + better. + +2003-06-11 rocky + + * test/.cvsignore: [no log message] + +2003-06-11 rocky + + * include/cdio/cdio.h, lib/cdio.c, src/Makefile.am: Enumeration had + grew but hadn't changed string array accordingly. + +2003-06-11 rocky + + * lib/_cdio_win32.c: Bug fixes for NT-derived systems + +2003-06-10 rocky + + * configure.ac: It's '=' not '==' + +2003-06-08 rocky + + * configure.ac, test/check_common_fn.in: Better way to deal with + diff vs. cmp and diff options. + +2003-06-08 rocky + + * configure.ac, test/{check_common_fn => check_common_fn.in}: Use + diff rather than cmp if possible. Also if possible do a unified diff + and for M$DOG strip whitespace for the \r\n vs \n differences. + +2003-06-07 rocky + + * src/cd-info.c: Reverting change (for now). + +2003-06-07 rocky + + * src/cd-info.c: Is this right? + +2003-06-07 rocky + + * lib/_cdio_win32.c: More bugs. By far not the last of them + though.... + +2003-06-07 rocky + + * include/cdio/cdio.h, lib/_cdio_win32.c, lib/cdio.c: With M$ we can + no longer assume we can open a fd ant it will read properly. Add + yellow-mode reads interface. There's lots of cleanup to do... + +2003-06-07 rocky + + * test/cdda.right, test/check_common_fn, test/check_opts0.right, + test/check_opts1.right, test/check_opts2.right, + test/check_opts3.right, test/check_opts4.right, + test/check_opts5.right, test/check_opts6.right, + test/check_opts7.right, test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo.right, test/videocd.right: Remvoe headers. Run with + --no-header now. + +2003-06-07 rocky + + * src/cd-info.c: Add option to nuke header for regression tests. + With M$ can no longer assume file descriptors do the right thing. + Have pay more attention to track formats. + +2003-06-07 rocky + + * include/cdio/cdio.h, lib/_cdio_win32.c, lib/cdio.c: More MinGW + things. Need generic routine for determining if a string is a device + +2003-06-07 rocky + + * lib/_cdio_generic.c: Add generic routine to determine if a string + refers to a device or not. + +2003-06-07 rocky + + * lib/cdio_private.h: Add customized routines for determining if + whether a string refers to a device or not. + +2003-06-07 rocky + + * lib/_cdio_win32.c: First inkling of this actually working. + +2003-06-07 rocky + + * include/cdio/types.h, lib/_cdio_win32.c: More MinGW fixes. + +2003-06-07 rocky + + * src/cd-info.c: Show default device on version command. Don't put + /dev in front of device name if win32. + +2003-06-07 rocky + + * configure.ac, lib/_cdio_win32.c, src/cd-info.c: More MinGW fixes. + +2003-06-07 rocky + + * configure.ac, src/cd-info.c: cygwin/mingw improvements cd-info: + list drivers and exit when --version requested. + +2003-06-07 rocky + + * include/cdio/cdio.h, lib/cdio.c: Add access routine to return + driver string + +2003-06-01 rocky + + * configure.ac, src/Makefile.am, src/cd-info.c: Require libcddb + 0.9.4 or nothing at all. We now allow: - setting cache directory - disabling caching altogther - setting timeout on CDDB network operations - setting email address reported to CDDB server - setting name of CDDB server - printing/suppressing messages from CDDB + +2003-05-30 rocky + + * test/check_common_fn: report name of cd-info program more + accurately and precisely + +2003-05-30 rocky + + * lib/_cdio_generic.c: Not everyone has sys/ioctl.h. + +2003-05-27 rocky + + * lib/_cdio_freebsd.c: Another holdover from constants that were + renamed. + +2003-05-27 rocky + + * configure.ac, include/cdio/cdio.h, include/cdio/types.h, + lib/Makefile.am, lib/_cdio_win32.c, lib/cdio.c, parse/.cvsignore: + Closer to having WIN32 CD-ROM support + +2003-05-27 rocky + + * lib/_cdio_freebsd.c: Miscellaneous constant changes and typos + +2003-05-26 rocky + + * include/cdio/sector.h: more pedantic types (which in fact match + the implimentation). + +2003-05-25 rocky + + * lib/_cdio_freebsd.c: Another small comment correction + +2003-05-25 rocky + + * lib/_cdio_freebsd.c: small eject comment correction + +2003-05-24 rocky + + * src/cd-info.c: Revert version number change since I'm not prepared + to change the regression test numbers. + +2003-05-24 rocky + + * lib/cdio_private.h: Add field for and save driver id used. + +2003-05-24 rocky + + * src/cd-info.c: Print out driver selected. + +2003-05-24 rocky + + * lib/cdio.c: Add cdio_get_driver_name: routine to list name of + driver selected. + +2003-05-24 rocky + + * include/cdio/cdio.h: Add cdio_get_driver_name: routine to return + driver selected. + +2003-05-20 rocky + + * ChangeLog: [no log message] + +2003-05-20 rocky + + * : Test NRG file. + +2003-05-20 rocky + + * configure.ac: Solaris needs -lnsl and -lgethostbyname for libcddb + +2003-05-20 rocky + + * lib/_cdio_bincue.c: Wrong name: was testing uninit variable. + +2003-05-20 rocky + + * configure.ac: Get ready for version 0.6 + +2003-05-20 rocky + + * NEWS: [no log message] + +2003-05-18 rocky + + * ChangeLog, NEWS: [no log message] + +2003-05-18 rocky + + * test/check_cue.sh.in: Add a test using --bin + +2003-05-18 rocky + + * lib/_cdio_bincue.c: Wasn't handling bin correctly. + +2003-05-18 rocky + + * TODO: [no log message] + +2003-05-18 rocky + + * include/cdio/cdio.h, lib/_cdio_bincue.c, lib/cdio.c: Add routine + to open check for bin file (cdio_is_binfile). Code simplified a + little. + +2003-05-17 rocky + + * ChangeLog, NEWS: [no log message] + +2003-05-17 rocky + + * libcdio.pc.in: We don't really use glib-2.0 for now. BSDI test box + doesn't have. + +2003-05-16 rocky + + * test/check_nrg.sh.in: BSDI doesn't handle skipped tests (exit 77) + properly. I'd rather switch than fight. + +2003-05-16 rocky + + * lib/cdio.c: Wasn't nulling correctly. Eject test faulty too. + +2003-05-16 rocky + + * include/cdio/cdio.h, lib/_cdio_bsdi.c, lib/_cdio_freebsd.c, + lib/_cdio_linux.c, lib/_cdio_sunos.c, lib/cdio.c, parse/Makefile: + Bug in eject: need to close internal file descriptor before + ejecting. eject interface now nulls cdio pointer after a sucessful + eject. + +2003-05-11 rocky + + * ChangeLog, parse/.cvsignore, parse/Makefile, parse/cue.L, + parse/cue.y, parse/test/t1.cue, parse/test/t2.cue, + parse/test/t3.cue: Towards CUE parser via flex/bison. + +2003-04-29 rocky + + * misc/libcdio.ebuild: Gentoo ebuild file courtesy of Kris Verbeeck + + + * THANKS: More appreciation. + +2003-04-28 rocky + + * test/.cvsignore: Do I trust Savannah? + +2003-04-28 rocky + + * NEWS: [no log message] + +2003-04-28 rocky + + * test/Makefile.am, test/{check_nrg.sh => check_nrg.sh.in}: + check_nrg.sh is now derived since we may or may not have Video CD + info displayed. + +2003-04-26 rocky + + * configure.ac, src/Makefile.am, src/cd-info.c, test/cdda.right, + test/check_cue.sh.in, test/check_nrg.sh, test/check_opts0.right, + test/check_opts1.right, test/check_opts4.right, + test/check_opts5.right, test/check_opts6.right, + test/check_opts7.right, test/isofs-m1.right, test/monvoisin.right, + test/svcd_ogt_test_ntsc.right, test/svcdgs.right, + test/vcd_demo.right, test/videocd.right: cd-info: Use libvcdinfo if + it is around to list out general Video CD properties (format + version, album description, preparer id, volume number and count). + cd-info output changed slightly. + +2003-04-25 rocky + + * .cvsignore, src/.cvsignore: [no log message] + +2003-04-25 rocky + + * ChangeLog, Makefile.am, src/Makefile.am, src/{cdinfo.c => + cd-info.c}, test/check_common_fn, test/check_opts.sh: rename cdinfo + to cd-info to accomodate previously existing cdinfo programs. + Thanks to Manfred Tremmel for reporting the + problem. + +2003-04-25 rocky + + * configure.ac: Make RPM spec file. + +2003-04-25 rocky + + * THANKS: Add Manfred Tremmel + +2003-04-25 rocky + + * libcdio.spec.in: First RPM spec thanks to Manfred Tremmel + . + +2003-04-24 rocky + + * test/Makefile.am, test/check_nrg.sh, test/videocd.right: Add a + single NRG test. + +2003-04-24 rocky + + * NEWS: [no log message] + +2003-04-23 rocky + + * lib/_cdio_nrg.c, test/svcdgs.right: More blind guesses to CUES + format. Still wrong, but works better on the one sample I have to go + on: svcdgs.nrg. + +2003-04-22 rocky + + * configure.ac, include/cdio/Makefile.am: Wasn't installing + version.h. This time, for sure! + +2003-04-22 rocky + + * test/isofs-m1.cue: ISO 9660 filesystem Mode1 regression test. + +2003-04-22 rocky + + * : Sample CD-DA bin/cue image. + +2003-04-22 rocky + + * test/cdda.cue: Regression test cue. + +2003-04-22 rocky + + * include/cdio/version.h.in: [no log message] + +2003-04-22 rocky + + * include/cdio/.cvsignore: config.h now is no longer derived while + version.h now is. + +2003-04-22 rocky + + * Makefile.am, configure.ac, include/cdio/Makefile.am, + include/cdio/{cdio.h.in => cdio.h}, lib/_cdio_bincue.c, + lib/_cdio_bsdi.c, lib/_cdio_freebsd.c, lib/_cdio_generic.c, + lib/_cdio_linux.c, lib/_cdio_nrg.c, lib/_cdio_stdio.c, + lib/_cdio_stream.c, lib/_cdio_stream.h, lib/_cdio_sunos.c, + lib/bytesex.h, lib/bytesex_asm.h, lib/cdio.c, lib/cdio_assert.h, + lib/cdio_private.h, lib/ds.c, lib/ds.h, lib/logging.c, + lib/sector.c, lib/util.c, src/cdinfo.c, {tests => test}/.cvsignore, + {tests => test}/Makefile.am, {tests => test}/cdda.right, {tests => + test}/check_common_fn, {tests => test}/check_cue.sh.in, {tests => + test}/check_nrg.sh, {tests => test}/check_opts.sh, {tests => + test}/check_opts0.right, {tests => test}/check_opts1.right, {tests + => test}/check_opts2.right, {tests => test}/check_opts3.right, + {tests => test}/check_opts4.right, {tests => + test}/check_opts5.right, {tests => test}/check_opts6.right, {tests + => test}/check_opts7.right, {tests => test}/fsf.right, {tests => + test}/isofs-m1.right, {tests => test}/monvoisin.right, {tests => + test}/svcd_ogt_test_ntsc.right, {tests => test}/svcdgs.right, + {tests => test}/vcd_demo.right, tests/cdda.cue, tests/isofs-m1.cue: + tests -> test All public includes are included via #include + rather than #include "....h" (removed -I $top_srcdir/include/cdio) + +2003-04-22 rocky + + * lib/_cdio_freebsd.c: Probably closer. + +2003-04-22 rocky + + * Makefile.am: Update regression version. + +2003-04-22 rocky + + * tests/check_nrg.sh: Add another Nero test. + +2003-04-22 rocky + + * tests/svcdgs.right: Yet another Nero test. + +2003-04-21 rocky + + * tests/.cvsignore: [no log message] + +2003-04-21 rocky + + * TODO: Where we might be going... + +2003-04-21 rocky + + * .cvsignore: Now that we're using pkg-config. + +2003-04-21 rocky + + * include/cdio/cdio.h.in: Simple typo. + +2003-04-21 rocky + + * lib/_cdio_nrg.c: Probably much closer to being able to handle Nero + CUES format. Seems to have 2336 sector size; 2 second pregap seems + to be included at the beginning of the image. + +2003-04-21 rocky + + * src/cdinfo.c: Add tests for CVD. A lot of this probably should be + redone. For example, should get basic Video CD info from libvcdinfo + if that is around. + +2003-04-21 hvr + + * include/cdio/Makefile.am, include/cdio/logging.h, + include/cdio/sector.h, tests/check_cue.sh: public headers must nuse + unique #includes! + +2003-04-21 hvr + + * Makefile.am, configure.ac, include/cdio/cdio.h.in, libcdio.pc.in: + added pkg-config(1) support + +2003-04-20 rocky + + * ChangeLog, include/cdio/.cvsignore, tests/.cvsignore, + tests/check_cue.sh, tests/isofs-m1.right: CVS maintenance + +2003-04-20 rocky + + * NEWS: [no log message] + +2003-04-20 rocky + + * tests/{check_cue.sh => check_cue.sh.in}: May need --no-cddb + option. + +2003-04-20 rocky + + * configure.ac, include/cdio/cdio.h, include/cdio/cdio.h.in, + src/cdinfo.c, tests/Makefile.am, tests/check_cue.sh, + tests/{check_opts.sh.in => check_opts.sh}, tests/check_opts0.right, + tests/check_opts1.right, tests/check_opts2.right, + tests/check_opts3.right, tests/check_opts4.right, + tests/check_opts5.right, tests/check_opts6.right, + tests/check_opts7.right, tests/fsf-tompox.right, tests/isofs-m1.cue: + Reduce overall size yet again by replaing isofs-m1 for fsf-tompox. + cdinfo: Add options for CDDB port and CDDB http enable fix bug if no CD in cdrom drive. + +2003-04-20 rocky + + * include/cdio/cdio.h: add min/max device driver + +2003-04-20 rocky + + * Makefile.am, configure.ac, lib/cdio.c, tests/Makefile.am, + tests/cdda.cue, tests/cdda.right, tests/check_cue.sh: Add small cdda + test. cdio.c: cdio_open was opening image drivers. + +2003-04-20 rocky + + * ChangeLog, configure.ac, lib/Makefile.am, src/cdinfo.c: Put back + in libcddb 0.9.0 checking and use cddb_http_disable(). + +2003-04-19 rocky + + * lib/_cdio_freebsd.c: Add _cdio_read_audio_sector. Try to sync up + with other drivers. + +2003-04-19 rocky + + * Makefile.am, NEWS, configure.ac, tests/Makefile.am, + tests/check_common_fn, tests/check_cue.sh, tests/check_nrg.sh, + tests/check_opts.sh.in, tests/check_opts0.right, + tests/check_opts1.right, tests/check_opts2.right, + tests/check_opts3.right, tests/check_opts4.right, + tests/check_opts5.right, tests/check_opts6.right, + tests/check_opts7.right: Break most of the larger regression tests + into a separate package. + +2003-04-19 rocky + + * include/cdio/Makefile.am, include/cdio/{cdio.h => cdio.h.in}: Add + package version + +2003-04-19 rocky + + * include/cdio/cdio.h: Add an API version number. + +2003-04-19 rocky + + * ChangeLog, Makefile.am, configure.ac, include/.cvsignore, + include/Makefile.am, include/cdio/.cvsignore, + include/cdio/Makefile.am, {lib => include/cdio}/cdio.h, {lib => + include/cdio}/logging.h, {lib => include/cdio}/sector.h, {lib => + include/cdio}/types.h, {lib => include/cdio}/util.h, + lib/Makefile.am, src/cdinfo.c, tests/.cvsignore: Move public + includes to include/cdio. This should facilitate having this source + installed locally since it allows #include in the + source tree. + +2003-04-19 rocky + + * src/cdinfo.c: Revise to to handle libcddb 0.90. + +2003-04-19 rocky + + * lib/cdio.h: Remove a compile warning noticed by Kris Verbeeck. + +2003-04-19 rocky + + * configure.ac: do chmod +x for test/check_opts.sh Test to see if we + have new enough libcddb. + +2003-04-19 rocky + + * README: Update to include CDDB information and note this is ued by + CD-DA plugin. + +2003-04-15 rocky + + * lib/_cdio_linux.c: Remove compile warning on non-GNU/Linux + servers. + +2003-04-14 rocky + + * THANKS: Need to start *somewhere*. + +2003-04-14 rocky + + * NEWS: Wha's happenin' + +2003-04-14 rocky + + * lib/_cdio_bincue.c: Bug-causing typo. + +2003-04-14 rocky + + * configure.ac, tests/Makefile.am, tests/{check_opts.sh => + check_opts.sh.in}: Need to conditionally add --no-cddb so we added + check_opts.sh.in. Rewrite for loop in lower-level Bourne-shell + style. + +2003-04-14 rocky + + * src/cdinfo.c: One cddb reference not conditionally included. + +2003-04-14 rocky + + * tests/Makefile.am: Add check files to distribution. + +2003-04-14 rocky + + * tests/Makefile.am, tests/check_cue.sh, tests/check_opts.sh, + tests/check_opts0.right, tests/check_opts1.right, + tests/check_opts2.right, tests/check_opts3.right, + tests/check_opts4.right, tests/check_opts5.right, + tests/check_opts6.right, tests/check_opts7.right: Add regression + test to check cdinfo options processing. + +2003-04-14 rocky + + * src/cdinfo.c: libpopt options need to be integers. Change order of + include to accomodate libcddb. Make distcheck now works. + +2003-04-14 rocky + + * src/Makefile.am: Add CDDB_LIB for cdinfo. + +2003-04-14 rocky + + * configure.ac: Check for libcddb and use that if it's there. + +2003-04-14 rocky + + * tests/check_cue.sh: Don't give CDDB info for audio test since it's + not valid and we can't assume we're connected to the Internet. + +2003-04-14 rocky + + * lib/_cdio_bincue.c: If we don't think this is a cue file, we now + report that rather than give the cryptic message about a null + source. + +2003-04-14 rocky + + * src/cdinfo.c: CDDB lookup for audio CD via libcddb. + +2003-04-14 rocky + + * lib/cdio.c: Bad linux default_device initialization. + +2003-04-12 rocky + + * lib/_cdio_bincue.c, lib/_cdio_bsdi.h, lib/cdio.c, lib/cdio.h: Add + routine cdio_is_bincue to test if file is a cue file. cdio_open + does a better job in automatically determining the type of file. + +2003-04-11 rocky + + * lib/sector.c, lib/sector.h: Tired of all those unused warings. + Remove the static inline stuff. It's probably not worth the + performance gains. (And if it is we can turn into a #define) + +2003-04-11 rocky + + * lib/_cdio_sunos.c: Move used #include outside of + conditional compilation since strdup's used to get default device. + +2003-04-11 rocky + + * lib/_cdio_bincue.c, lib/_cdio_nrg.c: Forgot to add recently added + read_audio_sector to op structure. + +2003-04-10 rocky + + * configure.ac, lib/_cdio_bincue.c, lib/_cdio_nrg.c: configure.ac: + bump version bincue/nrg: add cdio_read_audio_sector + +2003-04-10 rocky + + * lib/_cdio_sunos.c: read_mode_audio_sector now works. + +2003-04-10 rocky + + * lib/_cdio_bincue.c, lib/_cdio_bsdi.c, lib/_cdio_freebsd.c, + lib/_cdio_generic.c, lib/_cdio_nrg.c, lib/_cdio_sunos.c, + lib/cdio.c, lib/cdio.h, lib/cdio_private.h: get_default_device with + NULL will get device *without* trying to open cd. Add read_audio + call. + +2003-04-10 rocky + + * lib/_cdio_linux.c: Add ability to read audio (CD-DA) sector. + +2003-04-10 rocky + + * lib/types.h: Add CDIO_INVALID_LSN definition + +2003-04-09 rocky + + * lib/sector.h: CD_MAX_TRACKS -> CDIO_CD_MAX_TRACKS + +2003-04-08 rocky + + * ChangeLog: [no log message] + +2003-04-08 rocky + + * lib/_cdio_linux.c: Small name changes. + +2003-04-08 rocky + + * lib/_cdio_bsdi.c: Changes brought about by sector.h #define + changes. + +2003-04-08 rocky + + * lib/_cdio_sunos.c: Revise for changed sector.h + +2003-04-07 rocky + + * lib/cdio_private.h: Add opaque CdIoDataSource type and generic + free routine for stream-based drivers (nrg, bincue, network). + +2003-04-07 rocky + + * lib/types.h: Indention formatting that Emacs prefers. + +2003-04-07 rocky + + * lib/_cdio_nrg.c: Sync up with _cdio_bincue a little. free routine + replaced with a generic routine. + +2003-04-07 rocky + + * lib/_cdio_bincue.c: Move free routine into a generic routine. Some + numbers replaced by #define constants. + +2003-04-07 rocky + + * lib/_cdio_generic.c: Add generic_stream_free and remove out of + disk-image routines. + +2003-04-07 rocky + + * lib/_cdio_stream.h: Opaque type CdioDataSource is now in + cdio_private.h. This forces us to use that. (And this might not be + the best, but I can't think of anything else that is as simple.) + +2003-04-07 rocky + + * lib/_cdio_stream.c: Grammar typo. + +2003-04-07 rocky + + * lib/_cdio_bincue.c: Another case of not checking the status of + operations and returning on error (rather than continuing). Not + serious this time... + +2003-04-07 rocky + + * lib/_cdio_bincue.c: Propagate error results from seeks and reads. + +2003-04-06 rocky + + * lib/_cdio_stdio.c, lib/_cdio_stream.c, lib/_cdio_stream.h: + Document some of the interfaces. + +2003-04-06 rocky + + * lib/_cdio_bincue.c: Back off a little with the #define thing a + little for now. I made a mistake somewhere. (And don't want to + track it down further.) + +2003-04-06 rocky + + * lib/sector.h: This time for sure? + +2003-04-06 rocky + + * lib/_cdio_generic.c, lib/_cdio_linux.c, lib/_cdio_nrg.c, + lib/sector.h, src/cdinfo.c: More #define reductions/fixes. + +2003-04-06 rocky + + * lib/_cdio_bincue.c, lib/_cdio_bsdi.c, lib/_cdio_bsdi_old.c, + lib/_cdio_linux.c, lib/_cdio_nrg.c, lib/_cdio_stream.c, + lib/_cdio_sunos.c, lib/sector.h, src/cdinfo.c: Change sector.h + constants, yet again. This time for Herbert Valiero Riedel. + +2003-04-06 rocky + + * : This file seems to get changed when checking in. + +2003-04-06 rocky + + * tests/Makefile.am: svcd_ogt_test_ntsc.bin corrupted. Makefile: + add other bin/cue/nrg's + +2003-04-06 rocky + + * tests/Makefile.am, tests/check_cue.sh, tests/fsf-tompox.right, + tests/fsf.right: Add a CD audio test and an ISO 9660 joliet + extension tst. Add in the Video CD images I've been using. + +2003-04-06 rocky + + * src/cdinfo.c: Use new sector.h constants. + +2003-04-06 rocky + + * lib/_cdio_linux.c, lib/_cdio_nrg.c, lib/_cdio_sunos.c, lib/cdio.h: + Use new sector.h constants. More changes will no doubt follow. + +2003-04-06 rocky + + * lib/_cdio_bincue.c: More complete. Fill out seek code. + +2003-04-06 rocky + + * lib/sector.h: Go with Linux definitions rather than invent our + own. More changes will no doubt follow. + +2003-04-04 rocky + + * lib/_cdio_bincue.c, lib/cdio_private.h: Close go getting simple + read working. Not completely correct, but close. + +2003-04-04 rocky + + * lib/cdio.c, lib/cdio.h: Documentation improvment: Note that + get_default_device returns NULL on error. + +2003-04-03 rocky + + * lib/Makefile.am, lib/_cdio_stream.h, lib/bytesex.h, + lib/bytesex_asm.h, lib/cdio.h, lib/cdio_assert.h, lib/ds.c, + lib/ds.h, lib/logging.h, lib/sector.h, lib/{cdio_types.h => + types.h}: cdio_types.h -> types.h + +2003-04-02 rocky + + * lib/cdio.c: Note that device is uninit when destroying, 'cause it + is! + +2003-03-30 rocky + + * lib/_cdio_bincue.c, lib/_cdio_bsdi.c, lib/_cdio_generic.c, + lib/_cdio_linux.c, lib/_cdio_nrg.c, lib/_cdio_sunos.c, lib/cdio.c, + lib/cdio.h, lib/cdio_private.h: More common routiens and structures + moved to cdio_generic.c or cdio_private.h respectively. + +2003-03-30 rocky + + * configure.ac: BSDI now requires Steve Schultz's libdvd.a and dvd.h + package. + +2003-03-30 rocky + + * configure.ac: Having trouble getting aclocal include libpopt.m4 + (and presumably other *.m4's) + +2003-03-30 rocky + + * autogen.sh, configure.ac, src/Makefile.am: Rest: add libpopt + autoconfiguration. + +2003-03-30 rocky + + * lib/_cdio_bsdi.c: Extend to larger interface using generic + routines. + +2003-03-30 rocky + + * lib/_cdio_freebsd.c: Yet another typo. + +2003-03-30 rocky + + * lib/_cdio_freebsd.c: Change default drive and fix typographical + mistake. + +2003-03-29 rocky + + * lib/_cdio_bincue.c, lib/_cdio_generic.c, lib/_cdio_nrg.c, + lib/_cdio_sunos.c: Small lint-like errors. Solaris now works again + with new read/lseek functions. + +2003-03-29 rocky + + * lib/_cdio_freebsd.c, lib/_cdio_sunos.c: Probably closer towards + compiling on those architectures. + +2003-03-29 rocky + + * configure.ac, lib/Makefile.am, lib/_cdio_bincue.c, + lib/_cdio_bsdi.c, lib/_cdio_bsdi_old.c, lib/_cdio_freebsd.c, + lib/_cdio_generic.c, lib/_cdio_linux.c, lib/_cdio_nrg.c, + lib/_cdio_stdio.c, lib/_cdio_stream.c, lib/_cdio_stream.h, + lib/_cdio_sunos.c, lib/cdio.c, lib/cdio.h, lib/cdio_private.h, + lib/cdio_types.h, lib/sector.h, src/Makefile.am, src/cdinfo.c, + tests/monvoisin.right: Add simple (non-mode2) read/seek. + _cdio_generic.c: place to save common driver routines add + cdio_get_track_sec_count. + +2003-03-25 rocky + + * src/cdinfo.c: gcc < 3.0 compatibility. + +2003-03-25 rocky + + * lib/_cdio_freebsd.c: A stab at FreeBSD support. Not finished. More + later... + +2003-03-24 rocky + + * lib/Makefile.am, lib/_cdio_bsdi.c, lib/_cdio_linux.c, lib/cdio.c, + lib/cdio.h: _cdio_linux.c: eject routines does it's own open and + close. cdio.h, Makefile.am, cdio.c: Add FreeBSD routine (not + complete yet). + +2003-03-24 rocky + + * src/cdinfo.c: Small clarity change + +2003-03-24 rocky + + * Initial revision + diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..9923fc4 --- /dev/null +++ b/INSTALL @@ -0,0 +1,321 @@ +Installation Instructions +************************* + +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, +2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. This file is offered as-is, +without warranty of any kind. + +Basic Installation +================== + + If you are compiling from git sources, see README.develop. + + Briefly, the shell command: + ./configure && make && sudo make install + +should configure, build, and install this package. "sudo" may not be +in situations where "root" access is not needed to install software. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, and a +file `config.log' containing compiler output (useful mainly for +debugging `configure'). + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and send +patches to https://savannah.gnu.org/patch/?group=libcdio + + The file `configure.ac' is used to create `configure' by a program +called `autoconf'. You need `configure.ac' if you want to change it +or regenerate `configure' using a newer version of `autoconf'. + + The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. + + Running `configure' might take a while. While running, it prints + some messages telling which features it is checking for. + + 2. Type `make' or `remake' (GNU make with better error reporting, + tracing and a debugger) to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package, generally using the just-built uninstalled binaries. + + 4. Type `make install' to install the programs and any data files and + documentation. When installing into a prefix owned by root, it is + recommended that the package be configured and built as a regular + user, and only the `make install' phase executed with root + privileges. + + 5. Optionally, type `make installcheck' to repeat any self-tests, but + this time using the binaries in their final installed location. + This target does not install anything. Running this target as a + regular user, particularly if the prior `make install' required + root privileges, verifies that the installation completed + correctly. + + 6. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package + for a different kind of computer), type `make distclean'. There + is also a `make maintainer-clean' target, but that is intended + mainly for the package's developers. If you use it, you may have + to get all sorts of other programs listed in README.develop in + order to regenerate files that came with the distribution. + + 7. You can also type `make uninstall' to remove the installed + files again. + + 8. `make distcheck', which can by used by developers to test that + all other targets like `make install' and `make uninstall' work + correctly. This target is generally not run by end users. + + 9. For a list of all targets if you have remake installed, `remake + --tasks' will give a list. + + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. Run `./configure --help' +for details on some of the pertinent environment variables. + + You can give `configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here +is an example: + + ./configure CC=c99 CFLAGS=-g LIBS=-lposix + + *Note Defining Variables::, for more details. + +Installation Names +================== + + By default, `make install' installs the package's commands under +`/usr/local/bin', include files under `/usr/local/include', etc. You +can specify an installation prefix other than `/usr/local' by giving +`configure' the option `--prefix=PREFIX', where PREFIX must be an +absolute file name. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +pass the option `--exec-prefix=PREFIX' to `configure', the package uses +PREFIX as the prefix for installing programs and libraries. +Documentation and other data files still use the regular prefix. + + In addition, if you use an unusual directory layout you can give +options like `--bindir=DIR' to specify different values for particular +kinds of files. Run `configure --help' for a list of the directories +you can set and what kinds of files go in them. In general, the +default for these options is expressed in terms of `${prefix}', so that +specifying just `--prefix' will affect all of the other directory +specifications that were not explicitly provided. + + The most portable way to affect installation locations is to pass the +correct locations to `configure'; however, many packages provide one or +both of the following shortcuts of passing variable assignments to the +`make install' command line to change installation locations without +having to reconfigure or recompile. + + The first method involves providing an override variable for each +affected directory. For example, `make install +prefix=/alternate/directory' will choose an alternate location for all +directory configuration variables that were expressed in terms of +`${prefix}'. Any directories that were specified during `configure', +but not in terms of `${prefix}', must each be overridden at install +time for the entire installation to be relocated. The approach of +makefile variable overrides for each directory variable is required by +the GNU Coding Standards, and ideally causes no recompilation. +However, some platforms have known limitations with the semantics of +shared libraries that end up requiring recompilation when using this +method, particularly noticeable in packages that use GNU Libtool. + + The second method involves providing the `DESTDIR' variable. For +example, `make install DESTDIR=/alternate/directory' will prepend +`/alternate/directory' before all installation names. The approach of +`DESTDIR' overrides is not required by the GNU Coding Standards, and +does not work on platforms that have drive letters. On the other hand, +it does better at avoiding recompilation issues, and works well even +when some directory options were not specified in terms of `${prefix}' +at `configure' time. + +Optional Features +================= + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + + Pay attention to `--enable-FEATURE' options to `configure', where +FEATURE indicates an optional part of the package. Also pay attention +to `--with-PACKAGE' options, where PACKAGE is something like `cddb' +(CDDB lookup support) or `vcd-info' (for enabling VCD support). The +botom of file `README.libcdio' has a list of `--enable-' and `--with-' +options recognized. + + Some packages offer the ability to configure how verbose the +execution of `make' will be. For these packages, running `./configure +--enable-silent-rules' sets the default to minimal output, which can be +overridden with `make V=1'; while running `./configure +--disable-silent-rules' sets the default to verbose, which can be +overridden with `make V=0'. + +Particular systems +================== + + On HP-UX, the default C compiler is not ANSI C compatible. If GNU +CC is not installed, it is recommended to use the following options in +order to use an ANSI C compiler: + + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" + +and if that doesn't work, install pre-built binaries of GCC for HP-UX. + + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot +parse its `' header file. The option `-nodtk' can be used as +a workaround. If GNU CC is not installed, it is therefore recommended +to try + + ./configure CC="cc" + +and if that doesn't work, try + + ./configure CC="cc -nodtk" + + On Solaris, don't put `/usr/ucb' early in your `PATH'. This +directory contains several dysfunctional programs; working variants of +these programs are available in `/usr/bin'. So, if you need `/usr/ucb' +in your `PATH', put it _after_ `/usr/bin'. + + On Haiku, software installed for all users goes in `/boot/common', +not `/usr/local'. It is recommended to use the following options: + + ./configure --prefix=/boot/common + +Specifying the System Type +========================== + + There may be some features `configure' cannot figure out +automatically, but needs to determine by the type of machine the package +will run on. Usually, assuming the package is built to be run on the +_same_ architectures, `configure' can figure that out, but if it prints +a message saying it cannot guess the machine type, give it the +`--build=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name which has the form: + + CPU-COMPANY-SYSTEM + +where SYSTEM can have one of these forms: + + OS + KERNEL-OS + + See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the machine type. + + If you are _building_ compiler tools for cross-compiling, you should +use the option `--target=TYPE' to select the type of system they will +produce code for. + + If you want to _use_ a cross compiler, that generates code for a +platform different from the build platform, you should specify the +"host" platform (i.e., that on which the generated programs will +eventually be run) with `--host=TYPE'. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Defining Variables +================== + + Variables not defined in a site shell script can be set in the +environment passed to `configure'. However, some packages may run +configure again during the build, and the customized values of these +variables may be lost. In order to avoid this problem, you should set +them in the `configure' command line, using `VAR=value'. For example: + + ./configure CC=/usr/local2/bin/gcc + +causes the specified `gcc' to be used as the C compiler (unless it is +overridden in the site shell script). + +Unfortunately, this technique does not work for `CONFIG_SHELL' due to +an Autoconf bug. Until the bug is fixed you can use this workaround: + + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash + +`configure' Invocation +====================== + + `configure' recognizes the following options to control how it +operates. + +`--help' +`-h' + Print a summary of all of the options to `configure', and exit. + +`--help=short' +`--help=recursive' + Print a summary of the options unique to this package's + `configure', and exit. The `short' variant lists options used + only in the top level, while the `recursive' variant lists options + also present in any nested packages. + +`--version' +`-V' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`--cache-file=FILE' + Enable the cache: use and save the results of the tests in FILE, + traditionally `config.cache'. FILE defaults to `/dev/null' to + disable caching. + +`--config-cache' +`-C' + Alias for `--cache-file=config.cache'. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. To + suppress all normal output, redirect it to `/dev/null' (any error + messages will still be shown). + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--prefix=DIR' + Use DIR as the installation prefix. *note Installation Names:: + for more details, including other options available for fine-tuning + the installation locations. + +`--no-create' +`-n' + Run the configure checks, but stop before creating any output + files. + +`configure' also accepts some other, not widely useful, options. Run +`configure --help' for more details. + diff --git a/MSVC/README b/MSVC/README new file mode 100644 index 0000000..032b704 --- /dev/null +++ b/MSVC/README @@ -0,0 +1,9 @@ +Files in this directory are for compiling with Microsoft Visual C. +They are courtesy of John Oseman (mog) and Pete Batard . + +The extract, driver, iso9660 and udf projects require Visual Studio 2010 +or later. + +To compile your own project, you will probably need to add the missing/ +directory to your include path, as it provides stdint.h, inttypes.h and +unistd.h that provide some of the missing types required by libcdio. diff --git a/MSVC/cd-info.vcproj b/MSVC/cd-info.vcproj new file mode 100644 index 0000000..e358135 --- /dev/null +++ b/MSVC/cd-info.vcproj @@ -0,0 +1,365 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/MSVC/config.h b/MSVC/config.h new file mode 100644 index 0000000..5a06eb0 --- /dev/null +++ b/MSVC/config.h @@ -0,0 +1,188 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* compiler does lsbf in struct bitfields */ +#undef BITFIELD_LSBF + +/* Define 1 if you are compiling using cygwin */ +#undef CYGWIN + +/* what to put between the brackets for empty arrays */ +#define EMPTY_ARRAY_SIZE + +/* Define 1 if you have BSDI-type CD-ROM support */ +#undef HAVE_BSDI_CDROM + +/* Define to 1 if you have the `bzero' function. */ +#undef HAVE_BZERO + +/* Define this if you have libcddb installed */ +#undef HAVE_CDDB + +/* Define to 1 if you have the header file. */ +#undef HAVE_COREFOUNDATION_CFBASE_H + +/* Define 1 if you have Darwin OS X-type CD-ROM support */ +#undef HAVE_DARWIN_CDROM + +/* Define if time.h defines extern long timezone and int daylight vars. */ +#undef HAVE_DAYLIGHT + +/* Define to 1 if you have the header file. */ +#undef HAVE_DLFCN_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_DVD_H + +/* Define to 1 if you have the header file. */ +#define HAVE_ERRNO_H 1 + +/* Define to 1 if you have the header file. */ +#undef HAVE_FCNTL_H + +/* Define 1 if you have FreeBSD CD-ROM support */ +#undef HAVE_FREEBSD_CDROM + +/* Define to 1 if you have the header file. */ +#undef HAVE_GLOB_H + +/* Define if you have the iconv() function. */ +#undef HAVE_ICONV + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the header file. */ +#undef HAVE_IOKIT_IOKITLIB_H + +/* Supports ISO _Pragma() macro */ +#undef HAVE_ISOC99_PRAGMA + +/* Define 1 if you want ISO-9660 Joliet extension support. You must have also + libiconv installed to get Joliet extension support. */ +#undef HAVE_JOLIET + +/* Define if you have and nl_langinfo(CODESET). */ +#undef HAVE_LANGINFO_CODESET + +/* Define to 1 if you have the `nsl' library (-lnsl). */ +#undef HAVE_LIBNSL + +/* Define to 1 if you have the `socket' library (-lsocket). */ +#undef HAVE_LIBSOCKET + +/* Define 1 if you have Linux-type CD-ROM support */ +#undef HAVE_LINUX_CDROM + +/* Define to 1 if you have the header file. */ +#undef HAVE_LINUX_CDROM_H + +/* Define 1 if timeout is in cdrom_generic_command struct */ +#undef HAVE_LINUX_CDROM_TIMEOUT + +/* Define to 1 if you have the header file. */ +#undef HAVE_LINUX_VERSION_H + +/* Define to 1 if you have the `memcpy' function. */ +#define HAVE_MEMCPY 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `memset' function. */ +#define HAVE_MEMSET 1 + +/* Define to 1 if you have the `snprintf' function. */ +#undef HAVE_SNPRINTF + +/* Define 1 if you have Solaris CD-ROM support */ +#undef HAVE_SOLARIS_CDROM + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDBOOL_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#define HAVE_STDIO_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_CDIO_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define if struct tm has the tm_gmtoff member. */ +#undef HAVE_TM_GMTOFF + +/* Define if time.h defines extern extern char *tzname[2] variable */ +#undef HAVE_TZNAME + +/* Define to 1 if you have the `tzset' function. */ +#undef HAVE_TZSET + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define this if you have libvcdinfo installed */ +#undef HAVE_VCDINFO + +/* Define to 1 if you have the `vsnprintf' function. */ +#undef HAVE_VSNPRINTF + +/* Define 1 if you have MinGW CD-ROM support */ +#define HAVE_WIN32_CDROM 1 + +/* Define as const if the declaration of iconv() needs const. */ +#undef ICONV_CONST + +/* Define 1 if you are compiling using MinGW */ +#undef MINGW32 + +/* Name of package */ +#define PACKAGE "libcdio" + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "libcdio" + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#define PACKAGE_VERSION 1 + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Version number of package */ +#define VERSION "1" + +/* Define to 1 if your processor stores words with the most significant byte + first (like Motorola and SPARC, unlike Intel and VAX). */ +#undef WORDS_BIGENDIAN + +/* Define to empty if `const' does not conform to ANSI C. */ +#undef const + +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#define inline + diff --git a/MSVC/libcdio.sln b/MSVC/libcdio.sln new file mode 100644 index 0000000..fe8a64a --- /dev/null +++ b/MSVC/libcdio.sln @@ -0,0 +1,39 @@ +Microsoft Visual Studio Solution File, Format Version 8.00 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcdio", "libcdio.vcproj", "{E465056A-C6F3-45EE-B791-CAF8E0CE629D}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cd-info", "cd-info.vcproj", "{8E55CFDB-5E38-4A07-84F8-36939C825735}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfiguration) = preSolution + Debug = Debug + Release = Release + XBOX_Debug = XBOX_Debug + XBOX_Release = XBOX_Release + EndGlobalSection + GlobalSection(ProjectConfiguration) = postSolution + {E465056A-C6F3-45EE-B791-CAF8E0CE629D}.Debug.ActiveCfg = Debug|Win32 + {E465056A-C6F3-45EE-B791-CAF8E0CE629D}.Debug.Build.0 = Debug|Win32 + {E465056A-C6F3-45EE-B791-CAF8E0CE629D}.Release.ActiveCfg = Release|Win32 + {E465056A-C6F3-45EE-B791-CAF8E0CE629D}.Release.Build.0 = Release|Win32 + {E465056A-C6F3-45EE-B791-CAF8E0CE629D}.XBOX_Debug.ActiveCfg = XBOX_Debug|Xbox + {E465056A-C6F3-45EE-B791-CAF8E0CE629D}.XBOX_Debug.Build.0 = XBOX_Debug|Xbox + {E465056A-C6F3-45EE-B791-CAF8E0CE629D}.XBOX_Release.ActiveCfg = XBOX_Release|Xbox + {E465056A-C6F3-45EE-B791-CAF8E0CE629D}.XBOX_Release.Build.0 = XBOX_Release|Xbox + {8E55CFDB-5E38-4A07-84F8-36939C825735}.Debug.ActiveCfg = Debug|Win32 + {8E55CFDB-5E38-4A07-84F8-36939C825735}.Debug.Build.0 = Debug|Win32 + {8E55CFDB-5E38-4A07-84F8-36939C825735}.Release.ActiveCfg = Release|Win32 + {8E55CFDB-5E38-4A07-84F8-36939C825735}.Release.Build.0 = Release|Win32 + {8E55CFDB-5E38-4A07-84F8-36939C825735}.XBOX_Debug.ActiveCfg = XBOX_Debug|Xbox + {8E55CFDB-5E38-4A07-84F8-36939C825735}.XBOX_Debug.Build.0 = XBOX_Debug|Xbox + {8E55CFDB-5E38-4A07-84F8-36939C825735}.XBOX_Release.ActiveCfg = XBOX_Release|Xbox + {8E55CFDB-5E38-4A07-84F8-36939C825735}.XBOX_Release.Build.0 = XBOX_Release|Xbox + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + EndGlobalSection + GlobalSection(ExtensibilityAddIns) = postSolution + EndGlobalSection +EndGlobal diff --git a/MSVC/libcdio.vcproj b/MSVC/libcdio.vcproj new file mode 100644 index 0000000..43f0cfb --- /dev/null +++ b/MSVC/libcdio.vcproj @@ -0,0 +1,547 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..60cdba7 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,139 @@ +# Copyright (C) 2003-2004, 2006, 2008, 2011-2013, 2016 +# Rocky Bernstein +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +## Process this file with automake to produce Makefile.in +## which configure then turns into a Makefile ... +## which make can then use to produce stuff. Isn't configuration simple? + +AUTOMAKE_OPTIONS = dist-bzip2 + +EXTRA_DIST = \ + MSVC/README MSVC/cd-info.vcproj \ + MSVC/config.h \ + MSVC/libcdio.sln \ + MSVC/libcdio.vcproj \ + README.libcdio \ + THANKS \ + example/README \ + libcdio.pc.in \ + libcdio++.pc.in \ + libiso9660.pc.in \ + libiso9660++.pc.in \ + libudf.pc.in \ + make-check-filter.pl \ + make-check-filter.rb \ + package/libcdio.spec.in + +SUBDIRS = doc include lib src test example + +# pkg-config(1) related rules +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libcdio.pc \ + libiso9660.pc \ + libudf.pc + +if ENABLE_CXX_BINDINGS +pkgconfig_DATA += \ + libcdio++.pc \ + libiso9660++.pc +endif + + +$(pkgconfig_DATA): config.status + +# List of additional files for expanded regression tests +DISTFILES_REGRESSION = tests/monvoisin.nrg tests/monvoisin.right \ + tests/svcdgs.nrg tests/svcdgs.nrg \ + tests/svcd_ogt_test_ntsc.bin \ + tests/svcd_ogt_test_ntsc.cue \ + tests/svcd_ogt_test_ntsc.right \ + tests/vcd_demo.bin tests/vcd_demo.cue \ + tests/vcd_demo.right + +REGRESSION_VERSION = 1.1 + +distdir_regression = ../$(PACKAGE)-$(REGRESSION_VERSION)-tests + +#: run regression tests. "test" is the same thing as "check" +test: check + +#: Run all tests without bloated output +check-short: + $(MAKE) check 2>&1 | ruby @abs_top_srcdir@/make-check-filter.rb + +#: Make documentation via Doxygen http://www.stack.nl/~dimitri/doxygen/ +doxygen: + -( cd ${top_srcdir}/doc/doxygen && /bin/sh ${srcdir}/run_doxygen ) + +dist-regression: distdir-regression + cd $(distdir) && $(AMTAR) chof - tests | GZIP=$(GZIP_ENV) gzip -c >$(distdir_regression).tar.gz + $(am__remove_distdir) + +distdir-regression: $(DISTFILES_REGRESSION) + $(am__remove_distdir) + mkdir $(distdir) + @list='$(DISTFILES_REGRESSION)'; for file in $$list; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkinstalldirs) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir_regression)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done + -find $(distdir) -type d ! -perm -755 -exec chmod a+rwx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r $(distdir) + +check_nrg.sh: $(top_builddir)/config.status check_nrg.sh.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + chmod +x config_nrg.sh +check_cue.sh: $(top_builddir)/config.status check_cue.sh.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + chmod +x config_cue.sh + +check_iso.sh: $(top_builddir)/config.status check_iso.sh.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + chmod +x config_iso.sh + +MAINTAINERCLEANFILES = ChangeLog *.rej *.orig + +if MAINTAINER_MODE + +.PHONY: ChangeLog + +GIT2CL ?= git2cl + +#: Create ChangeLog from version control +ChangeLog: + git log --pretty --numstat --summary | $(GIT2CL) >$@ + +ACLOCAL_AMFLAGS=-I m4 + +endif diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..f2ffcc8 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,1059 @@ +# Makefile.in generated by automake 1.15 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2014 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# Copyright (C) 2003-2004, 2006, 2008, 2011-2013, 2016 +# Rocky Bernstein +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@ENABLE_CXX_BINDINGS_TRUE@am__append_1 = \ +@ENABLE_CXX_BINDINGS_TRUE@ libcdio++.pc \ +@ENABLE_CXX_BINDINGS_TRUE@ libiso9660++.pc + +subdir = . +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/pkg.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ + $(am__configure_deps) $(am__DIST_COMMON) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = config.h +CONFIG_CLEAN_FILES = doc/doxygen/Doxyfile libcdio.pc libiso9660.pc \ + libudf.pc package/libcdio.spec libcdio++.pc libiso9660++.pc +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(pkgconfigdir)" +DATA = $(pkgconfig_DATA) +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ + cscope distdir dist dist-all distcheck +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ + $(LISP)config.h.in +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +CSCOPE = cscope +DIST_SUBDIRS = $(SUBDIRS) +am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ + $(srcdir)/libcdio++.pc.in $(srcdir)/libcdio.pc.in \ + $(srcdir)/libiso9660++.pc.in $(srcdir)/libiso9660.pc.in \ + $(srcdir)/libudf.pc.in $(top_srcdir)/doc/doxygen/Doxyfile.in \ + $(top_srcdir)/package/libcdio.spec.in AUTHORS COPYING \ + ChangeLog INSTALL NEWS README THANKS TODO compile config.guess \ + config.rpath config.sub install-sh ltmain.sh missing +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + if test -d "$(distdir)"; then \ + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -rf "$(distdir)" \ + || { sleep 5 && rm -rf "$(distdir)"; }; \ + else :; fi +am__post_remove_distdir = $(am__remove_distdir) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 +GZIP_ENV = --best +DIST_TARGETS = dist-bzip2 dist-gzip +distuninstallcheck_listfiles = find . -type f -print +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CDDA_PLAYER_LIBS = @CDDA_PLAYER_LIBS@ +CDDB_CFLAGS = @CDDB_CFLAGS@ +CDDB_LIBS = @CDDB_LIBS@ +CFLAGS = @CFLAGS@ +COS_LIB = @COS_LIB@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DARWIN_PKG_LIB_HACK = @DARWIN_PKG_LIB_HACK@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DIFF = @DIFF@ +DIFF_OPTS = @DIFF_OPTS@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +HAVE_BSDI_CDROM = @HAVE_BSDI_CDROM@ +HAVE_DARWIN_CDROM = @HAVE_DARWIN_CDROM@ +HAVE_FREEBSD_CDROM = @HAVE_FREEBSD_CDROM@ +HAVE_JOLIET = @HAVE_JOLIET@ +HAVE_LINUX_CDROM = @HAVE_LINUX_CDROM@ +HAVE_OS2_CDROM = @HAVE_OS2_CDROM@ +HAVE_ROCK = @HAVE_ROCK@ +HAVE_SOLARIS_CDROM = @HAVE_SOLARIS_CDROM@ +HAVE_WIN32_CDROM = @HAVE_WIN32_CDROM@ +HELP2MAN = @HELP2MAN@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +ISO_MAKING_COMMAND = @ISO_MAKING_COMMAND@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBCDIOPP_LIBS = @LIBCDIOPP_LIBS@ +LIBCDIO_CDDA_LIBS = @LIBCDIO_CDDA_LIBS@ +LIBCDIO_CFLAGS = @LIBCDIO_CFLAGS@ +LIBCDIO_DEPS = @LIBCDIO_DEPS@ +LIBCDIO_LIBS = @LIBCDIO_LIBS@ +LIBCDIO_SOURCE_PATH = @LIBCDIO_SOURCE_PATH@ +LIBCDIO_VERSION_NUM = @LIBCDIO_VERSION_NUM@ +LIBICONV = @LIBICONV@ +LIBISO9660PP_LIBS = @LIBISO9660PP_LIBS@ +LIBISO9660_CFLAGS = @LIBISO9660_CFLAGS@ +LIBISO9660_LIBS = @LIBISO9660_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIBUDF_LIBS = @LIBUDF_LIBS@ +LINUX_CDROM_TIMEOUT = @LINUX_CDROM_TIMEOUT@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBOBJS = @LTLIBOBJS@ +LT_NO_UNDEFINED = @LT_NO_UNDEFINED@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MINGW32 = @MINGW32@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ +PKG_CONFIG = @PKG_CONFIG@ +RANLIB = @RANLIB@ +RM = @RM@ +SBPCD_H = @SBPCD_H@ +SED = @SED@ +SED_EXTENDED_RE_FLAG = @SED_EXTENDED_RE_FLAG@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TYPESIZES = @TYPESIZES@ +UCDROM_H = @UCDROM_H@ +VCDINFO_CFLAGS = @VCDINFO_CFLAGS@ +VCDINFO_LIBS = @VCDINFO_LIBS@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +native_abs_top_srcdir = @native_abs_top_srcdir@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +runstatedir = @runstatedir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AUTOMAKE_OPTIONS = dist-bzip2 +EXTRA_DIST = \ + MSVC/README MSVC/cd-info.vcproj \ + MSVC/config.h \ + MSVC/libcdio.sln \ + MSVC/libcdio.vcproj \ + README.libcdio \ + THANKS \ + example/README \ + libcdio.pc.in \ + libcdio++.pc.in \ + libiso9660.pc.in \ + libiso9660++.pc.in \ + libudf.pc.in \ + make-check-filter.pl \ + make-check-filter.rb \ + package/libcdio.spec.in + +SUBDIRS = doc include lib src test example + +# pkg-config(1) related rules +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libcdio.pc libiso9660.pc libudf.pc $(am__append_1) + +# List of additional files for expanded regression tests +DISTFILES_REGRESSION = tests/monvoisin.nrg tests/monvoisin.right \ + tests/svcdgs.nrg tests/svcdgs.nrg \ + tests/svcd_ogt_test_ntsc.bin \ + tests/svcd_ogt_test_ntsc.cue \ + tests/svcd_ogt_test_ntsc.right \ + tests/vcd_demo.bin tests/vcd_demo.cue \ + tests/vcd_demo.right + +REGRESSION_VERSION = 1.1 +distdir_regression = ../$(PACKAGE)-$(REGRESSION_VERSION)-tests +MAINTAINERCLEANFILES = ChangeLog *.rej *.orig +@MAINTAINER_MODE_TRUE@ACLOCAL_AMFLAGS = -I m4 +all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive + +.SUFFIXES: +am--refresh: Makefile + @: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + $(am__cd) $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): + +config.h: stamp-h1 + @test -f $@ || rm -f stamp-h1 + @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 + +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status + @rm -f stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status config.h +$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) + rm -f stamp-h1 + touch $@ + +distclean-hdr: + -rm -f config.h stamp-h1 +doc/doxygen/Doxyfile: $(top_builddir)/config.status $(top_srcdir)/doc/doxygen/Doxyfile.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +libcdio.pc: $(top_builddir)/config.status $(srcdir)/libcdio.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +libiso9660.pc: $(top_builddir)/config.status $(srcdir)/libiso9660.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +libudf.pc: $(top_builddir)/config.status $(srcdir)/libudf.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +package/libcdio.spec: $(top_builddir)/config.status $(top_srcdir)/package/libcdio.spec.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +libcdio++.pc: $(top_builddir)/config.status $(srcdir)/libcdio++.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +libiso9660++.pc: $(top_builddir)/config.status $(srcdir)/libiso9660++.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool config.lt +install-pkgconfigDATA: $(pkgconfig_DATA) + @$(NORMAL_INSTALL) + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ + done + +uninstall-pkgconfigDATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir) + +# This directory's subdirectories are mostly independent; you can cd +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscope: cscope.files + test ! -s cscope.files \ + || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) +clean-cscope: + -rm -f cscope.files +cscope.files: clean-cscope cscopelist +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + -rm -f cscope.out cscope.in.out cscope.po.out cscope.files + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d "$(distdir)" || mkdir "$(distdir)" + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r "$(distdir)" +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__post_remove_distdir) +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 + $(am__post_remove_distdir) + +dist-lzip: distdir + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz + $(am__post_remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz + $(am__post_remove_distdir) + +dist-tarZ: distdir + @echo WARNING: "Support for distribution archives compressed with" \ + "legacy program 'compress' is deprecated." >&2 + @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__post_remove_distdir) + +dist-shar: distdir + @echo WARNING: "Support for shar distribution archives is" \ + "deprecated." >&2 + @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__post_remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__post_remove_distdir) + +dist dist-all: + $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' + $(am__post_remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lz*) \ + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir) + chmod u+w $(distdir) + mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst + chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build/sub \ + && ../../configure \ + $(AM_DISTCHECK_CONFIGURE_FLAGS) \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + --srcdir=../.. --prefix="$$dc_install_base" \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 + $(am__post_remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @test -n '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: trying to run $@ with an empty' \ + '$$(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + $(am__cd) '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile $(DATA) config.h +installdirs: installdirs-recursive +installdirs-am: + for dir in "$(DESTDIR)$(pkgconfigdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-hdr \ + distclean-libtool distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: install-pkgconfigDATA + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: uninstall-pkgconfigDATA + +.MAKE: $(am__recursive_targets) all install-am install-strip + +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ + am--refresh check check-am clean clean-cscope clean-generic \ + clean-libtool cscope cscopelist-am ctags ctags-am dist \ + dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ + dist-xz dist-zip distcheck distclean distclean-generic \ + distclean-hdr distclean-libtool distclean-tags distcleancheck \ + distdir distuninstallcheck dvi dvi-am html html-am info \ + info-am install install-am install-data install-data-am \ + install-dvi install-dvi-am install-exec install-exec-am \ + install-html install-html-am install-info install-info-am \ + install-man install-pdf install-pdf-am install-pkgconfigDATA \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ + uninstall-am uninstall-pkgconfigDATA + +.PRECIOUS: Makefile + + +$(pkgconfig_DATA): config.status + +#: run regression tests. "test" is the same thing as "check" +test: check + +#: Run all tests without bloated output +check-short: + $(MAKE) check 2>&1 | ruby @abs_top_srcdir@/make-check-filter.rb + +#: Make documentation via Doxygen http://www.stack.nl/~dimitri/doxygen/ +doxygen: + -( cd ${top_srcdir}/doc/doxygen && /bin/sh ${srcdir}/run_doxygen ) + +dist-regression: distdir-regression + cd $(distdir) && $(AMTAR) chof - tests | GZIP=$(GZIP_ENV) gzip -c >$(distdir_regression).tar.gz + $(am__remove_distdir) + +distdir-regression: $(DISTFILES_REGRESSION) + $(am__remove_distdir) + mkdir $(distdir) + @list='$(DISTFILES_REGRESSION)'; for file in $$list; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkinstalldirs) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir_regression)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done + -find $(distdir) -type d ! -perm -755 -exec chmod a+rwx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r $(distdir) + +check_nrg.sh: $(top_builddir)/config.status check_nrg.sh.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + chmod +x config_nrg.sh +check_cue.sh: $(top_builddir)/config.status check_cue.sh.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + chmod +x config_cue.sh + +check_iso.sh: $(top_builddir)/config.status check_iso.sh.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + chmod +x config_iso.sh + +@MAINTAINER_MODE_TRUE@.PHONY: ChangeLog + +@MAINTAINER_MODE_TRUE@GIT2CL ?= git2cl + +#: Create ChangeLog from version control +@MAINTAINER_MODE_TRUE@ChangeLog: +@MAINTAINER_MODE_TRUE@ git log --pretty --numstat --summary | $(GIT2CL) >$@ + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..ccbf24e --- /dev/null +++ b/NEWS @@ -0,0 +1,620 @@ +2017-12-31 version 2.0.0 + +This release bumps library version numbers and bumps the +major release number. We should have gone from 1.0.0 to 2.0.0 +in the last release since there is an API incompatability. + +In addition... + +- Add NetBSD drive detection; correct drive detection in cd-info.c + Patches from Onno van der Linden +- Fix some MinGW and Windows portability issues +- Remove some memory leaks in some tests +- Lint (a little) with clang static analyzer + +There are some programs and bindings that will need to be updated +if you want to use them with this library. Specifically: + +- Device::Cdio (2.0.0 or greater) +- vcdimager (2.0.0 or greater) +- pycdio (2.0.0 or greater) +- rbcdio (2.0.0 or greater) + +2017-12-10 version 1.1.0 Dr. Gecko + +Caveats: +pycdio and Deveice::Perl will be broken but that'll be fixed later + +- Remove many remaining memory leaks, invalid + reads, writes (as per valgrind) in library, + test and demo code +- Types CdioISO9660{Dir,File}List_t, have been added + and iso9660_{dir,file}list_{new,free} have been added. +- cdio_list_free() now takes an additional parameter: a function to + free list items. This is not compatible with 1.0.0 + +More work is needed on MacOS and other OS's where I don't have +valgrind accessible. + +AIX is left untouched - that is probably heading for removal in the +future. + + +2017-11-21 version 1.0.0 Thanksgiving + +This is an API breaking change + +- Remove deprecated items: + * OS/2 driver (never really was supported) + * BSDI driver remnants + * mmc_isrc_track_read_subchannel + * CDIO_MIN_DRIVER, CDIO_MIN_DEVICE_DRIVER, CDIO_MAX_DRIVER, CDIO_MAX_DEVICE_DRIVER + * CdioList, CdioListNode +- Apple Darwin OS X -> macOS +- Subdir objects breaks symbol versioning. See https://savannah.gnu.org/bugs/?49907 +- Handle bad iso 9660 better. Fixes Savannah bug https://savannah.gnu.org/bugs/?52091 +- Apple (High) Sierra compatiablity +- NetBSD patches +- Fixes for Rock Ridge SUSP (Thomas Schmitt) +- Reduce MinGW compilation warnings +- Add asserts to test memory allocations and misc bug fixes (Pete Batard) +- Enable CD drivers on current and future versions of FreeBSD and macOS, + so we do not have to add every new OS version explicitly. (Robert Kausch) +- Cross-compiling friendliness (Ozkan Sezer) +- Small texinfo doc fixes (Wieland Hoffmann) +- Simplify making doc from autogen.sh +- Bug fix for https://savannah.gnu.org/bugs/?45015 (Thomas Schmitt) +- Bug fixes for #45017,#52265, and #52264 +- Add more compiler warning flags, i.e. -Wshadow, -Wundef, ... +- Reduce numerous memory leaks (more though remain) + +version 0.94 +2016-10-27 + +- CD-TEXT fixes and improvements + * Expose mmc_read_cdtext as a publicly accessable function + Removes some redundant error reporting in mmc_read_cdtext + Also fixes some incorrect lengths for isrc and mcn. + * Fix inconsistent maximal length in CD-Text extraction + * Added new low level functions for READ SUB-CHANNEL and + READ TOC/PMA/ATIP for CD-TEXT extraction. + * Add cdtext binary parser and track number to public api + * Increase track # for short CD-Text fields + +- Eject fixes: + * Fix disc eject for Cocoa apps and support ejecting CD-Extra discs + on OS X. + * Make sure device is opend in read/write mode when trying to eject. + +Bugs + * Add error eporting from_733_with_err. Bug #45014 + * Guard against malformed rockridge iso. Bug #45015 + * Malformed so crashes iso-info Bug #45013: + * Guard against 0-size calloc bug #45016 + * Fix testudf segfaults/fails on big endian arches. Bug #43995. + * add get_last_session to the win32 driver. + Also fixes cd-paranoia behavior. Savannah bug #43446. + * GNU/Linux ioctl treats <= 0 as max speed. Bug #43428 + * Fixed cdio_free leaking + * Recursion checking in cdio_logv() + * g++ greater than 4.0 handles "pack" Bug #48759 + * configure fixes + +Updates + * Add newer OSX's + * Squelch some clang error messages + + +version 0.93 +2014-09-29 + +Most of the changes except where noted are courtesy of Robert Kausch + +- Add cdio_free, iso9660_stat_free, and iso9660_xa_free functions. +- Deprecate mmc_isrc_track_read_subchannel +- Add mmc_get_track_isrc function. +- Update OS versions we recognize +- OSX, and MS Windows, ISO 9660 and other bug fixes +- Remove Coverty scan warnins and errors +- OS/2 driver performance update - KO Myung-Hun + +version 0.92 (late SF Release) +2013-12-15 + +- Fix the botched the library release numbers, Bump current, and + set revision to zero + +version 0.91 - don't use +2013-12-14 + +- Report Joliet level on iso-info, and an option to show whether + Rock-Ridge extensions are present +- More debug logging in reading lsn sectors +- Document how logging works in libcdio +- Fixes for reading large ISO 9660 images +- Enable Rock-Ridge handling in configuration by default +- Be able to read an audio CD with exactly 100 tracks +- Microsoft Windows fixes (mingw, cygwin, Visual Studio) +- Fix UDF library bug on BigEndian CPUs (POWER, SPARC, HP/UX) +- libudf: Add udf_get_logical_volume_id() to retreive a UDF Logical Volume +- libcdio: Add cdio_default_log_handler +- libiso9660: Add iso9660_have_rr() to show if Rock-Ridge extensions are present + +version 0.90 +2012-10-27 +- CD-Text overhaul and API change (Leon Merten Lohse) +- Works again (somewhat) on MinGW; tolerence for Microsoft's C compiler (Pete Batard) +- UDF, Joliet and Rock-Ridge fixes (Pete Batard) +- OSX fixes (Natalia Portillo and Robert William Fuller) +- paranoia library removed as that is GPL 2-ish. This is now a separate project +- file names in cue files are relative to the cue file rather than cwd. +- Update mmc.h to include MMC-5 commands. (Or MMC-6 since it adds nothing new) +- Add mmc_cmd2str() to show MMC command name. Show that in some errors +- Add UDF reading to iso-read and iso-info via --udf or -U (Christophe Fergeau) +- bug fixes, more tests, update documentation + +version 0.83 +2011-10-27 + +- Add retrieval SCSI sense reply from the most-recent MMC command. (Thomas Schmitt) +- Add exclusive read/write access for devices which is used for experimental + writing/burning. Currently only on GNU/Linux and FreeBSD. (Thomas Schmitt) +- MMC bug fixes +- FreeBSD drive list now shows empty drives. +- Add ability to retrieve SCSI tuple for a name and/or fake one up for + programs that want to be cd-record compatible. +- Tolerance for OS's without timezone in their struct tm (e.g. Solaris) + added iso9660_set_{d,l}time_with_timezone +- Add mmc_get_disk_erasable +- Update MMC Feature Profile list, DVD Book types +- Reduce range of seek in paranoia_seek to be int32_t +- Remove some potential flaws found by Coverty's static analysis tool +- Add ISRC track info to cd-info output. +- Don't wrap-around volume adjustment for cdda-player. +- Handle double-byte strings in CD-text +- --no-header on cd-info omits copyright and warranty + +version 0.82 +2009-10-27 + +- Remove all uses of CDIO_MIN_DRIVER, + CDIO_MAX_DRIVER, CDIO_MIN_DEVICE_DRIVER or CDIO_MAX_DEVICE_DRIVER. +- FreeBSD get_media_changed fixes +- MingGW/Msys compilation issues +- Add OS/2 driver +- Cross compilations fixes and uclinix is like GNU/Linux +- Numerous other bug fixes + +version 0.81 +2008-10-27 + +- license of manual now GFDL 1.2 or later, with no invariant sections. + Source is GPL 3. + + Thanks to Karl Berry. + +- Nero image handling more complete. + CD-Text processing. + DAO in read_audio_sectors. + ISRC processing. + +- ISRC query for image files. + + Thanks to Robert William Fuller on the above two items + +- Allow reading pregap of a track via get_track_pregap_lsn(). Add + Section on "CD-DA pregap" in libcdio manual + +- Allow cross-compiling to mingw32. Patch from Peter Hartley. + +- Make iso9660 time setting/getting routines (iso9660_{g,s}et_{d,l}time) + reentrant and remove bugs in that code. Courtesy Nicolas Boullis. + +- OSX fixes + +- Add NetBSD driver + +version 0.80 +2008-03-15 + +- Add get_media_changed for FreeBSD +- Add option to log summary output in cd-paranoia +- More string bounds checking to eliminate known string overflow conditions, + e.g. Savannah bug #21910 +- add --mode="any" on cd-read which uses a mmc_read_sectors with read-type + CDIO_MMC_READ_TYPE_ANY. +- add --log-summary option to cd-paranoia. Unused option --output-info (-i) removed +- some small packaging bugs fixed + +Note: this is probably the last GPL v2 release; GPL v3 on the horizon. + +version 0.79 +2007-10-27 + +- iso-read: Add --ignore -k to ignore errors. + +- Fix Savannah Bugs #18522, #18563, #18131 #19221 (possibly), #19880, + #21147 and other miscellaneous bugs and memory leaks + +- cd-info: force CDDB disc id to be 32-bits. Problem reported + by Eric Shattow. +- cd-paranoia: allow ripping before the first track. Problem reported + by Eric Shattow. Fix erroneous #defines when + DO_NO_WANT_PARANOIA_COMPATIBILITY is set - reported by + David Stockwell. +- Support for multisession CD-Extra Discs. Patch from Patrick Guimond + +- Add iso9660_fs_find_lsn_with_path and iso9660_ifs_find_lsn_with_path + to report the full filename path of lsn. + +- improve eject code for OSX + +version 0.78.2 +2006-10-31 +- preprocessor symbol LIBCDIO_VERSION number has to be an integer. + (Bug caused by naming version 0.78.1) + ^ + +version 0.78.1 +2006-10-27 + +- Fix bug in libcdio.so version numbering. Also another small bug. + Thanks to Janos Farkas + +version 0.78 +2006-10-27 +===================================== +- add mmc-tool +- add mmc-close-tray +- libudf: can now read (extract) file data, at least for ICB strategy + type 4. +- libcdio is starting to get updated for UTF-8 support. Strings, + which are guaranteed to be in UTF-8, are returned as a new type + cdio_utf8_t, which is typedef'd to char. +- fixes to eject. On GNU/Linux we unmount filesystems first. + +version 0.77 +===================================== +2006-03-17 + +- Add an object-oriented C++ wrapper. (libcdio++ and libiso9660++) + +- replace libpopt with getopt in cd-drive, cd-info, iso-info, iso-read + (Peter J. Creath) + +- Document cd-paranoia (Peter J. Creath) + +- Add cdio_eject_media_drive(). + +- Add more generic read_sectors() + +- Document that NULL also uses default drive in close_tray, cdio_open + and cdio_open_am. Document b_mode2 parameter not used in cdio ISO + read. + +- Some provision for handling Rock-Ridge device numbers. + +- block read routines return success if asked to read 0 blocks. + +- Start UDF handling + +- increase use of enumerations more and decrease use of #defines + +- OS Support: + DragonFly recognized as FreeBSD, + MinGW better tolerated, + GNU/Linux (and others?) LARGEFILE support + OpenBSD tested (no native CD driver though) + +- Doxygen formatting improvements. + +- Misc bugs: + * fixed bincue driver caused core dump on set_speed and + set_blocksize; it also called the wrong routine (from NRG) to get a + list of cd-images. + * read.h didn't make sure off_t was defined. + * fixed bug in is_device() when driver_id = DRIVER_UNKNOWN or DRIVER_DEVICE. + * OSX was freeing too much in listing drives. + * get_hwinfo was not respecting fixed-length field boundaries in + image drivers (strcpy->strncpy). + * A number ISO 9660 time conversion routines corrected with respect to + various timezone offsets, daylight savings time, and tm capabilities + +- small cdda-player improvements - shows more CD-TEXT, and fix bug in + non-interactive use (Yes, I sometimes use it.) + +- NRG checking parses file. string tests were invalid on short < 4 + character filenames. + +- Revise and improve example programs + +- Security: replace all uses of strcat and strcpy with strncat and strncpy + +version 0.76 +===================================== +2005-09-23 + +- Better compatibility with C++ + +- a better eject routine for FreeBSD + +- Fix bug in not specifying a device name in libcio_cdda + +- Add S_ISSOCK() or S_ISLNK() macros for Rock-Ridge when environment + doesn't have it, e.g. MSYS 1.0.10 with MinGW 3.4.2. + +- Allow building cd-paranoia if Perl is not installed. + +- More accurate library dependency tracking in linking and pkg-config + +- Miscellaneous minor bug fixes. + +- cdio/cdda.h headers no longer depends on cdio/paranoia.h but vice versa + is true. This may require an #include in some applications that + used but didn't include it. + +version 0.75 +===================================== +2005-07-11 + +- audio volume level fix on Microsoft Windows +- fix build when --enable-shared, --disable-static +- CD-Text retrieval fix +- allow the MMC timeout to be adjusted by the application +- cd-paranoia: Add option --mmc-timeout (-m) to set MMC timeout. + We now check that integer arguments are integers and are within + range. +- changes for libcddb 1.1.0 API change +- remove gcc 4.0 warnings +- miscellaneous small bug fixes, removal of questionable idioms or + memory leak fixes + +version 0.74 +===================================== +2005-05-13 + +- cd-paranoia fixes +- cdda-player fixes +- cd-drive shows MMC level +- CD Text improvements/fixes +- eject of empty CD-ROM drives on GNU/Linux +- FreeBSD audio sub-channel time reporting fixed + +version 0.73 +===================================== +2005-04-15 + +- Rock Ridge Extension support added +- CD audio support (play track/index, pause, set volume, read audio subchannel) +- add close tray interface (may need more work on more OSes) +- utility cdda-player to (show off audio audio support) added +- file time/size attributes fixes +- cd-info/iso-info show more ls-like attributes and more often +- ISO 9660 more accurate more often +- Add ability to look for ISO 9660 filesystem in unknown Disc image formats +- Add routine for getting ISO 9660 long date; short date fixes +- remove even more memory leaks +- Add enumerations and symbols to facilitate debugging +- Break out C++ example programs into a separate directory. More C++ programs. +- gcc 4 fixes + +version 0.72 +===================================== +2005-01-31 + +- cdparanoia included - with regression tests and sample library programs +- added setting/getting CD speed, finding the track containing an LSN. +- improve cdrdao image reading +- iso-info options more like cdrtools isoinfo. +- cd-drive/cd-info show more reading capabilities and show that. +- cd-info now shows the total disc size. +- Filesystem reorganization to better support growth and paranoia inclusion +- FreeBSD 6 tolerated, CAM audio read mode works. +- improve Win32 driver, e.g. audio read mode works better for ioctl. +- mode detection fixes +- all read routines check and adjust the LSN so we don't try to access + beyond the end of the disc +- C++ fixes +- Update documentation + +version 0.71 +===================================== +2005-11-20 + +- Some Joliet support. +- Portability fixes for C++ and older C compilers. +- Work towards XBOX support. +- TOC for DVD's works more often +- Make generic list routines and declarations and byte swapping + routines public. Eventually everything will use glib. +- list-returning routines like iso9660_fs_readdir and + iso9660_ifs_readdir no longer return void * (and require casting) + but return the correct type. +- Some example programs have been renamed to more give meaningful + names. +- Add iso9660_ifs_is_xa() a routine to determine if an iso image has + XA attributes. +- iso-info now shows XA attributes if that is available. +- Some bug fixes + + +version 0.70 +===================================== +2004-09-02 + +- SCSI MMC interface routine (all except Darwin) +- CD-Text support (all except Darwin) +- Distinguish DVD's from CD's +- Code clean-ups and reduced code duplication +- Better CUE parsing +- Reporting drive capability is more accurate +- add constant driver_id for kind of hardware driver in build +- new drive scanning routines which pass back driver as well + as drive string. Speeds up subsequent opens. + +version 0.69 +===================================== +2004-06-25 + +- Add interface returning drive capabilities (cdio_get_drive_cap). +- Minimal cdrdao image reading (thanks to Svend S. Sorensen) +- Some important (I think) bug fixes +- Redo types of LSN and LBA to allow negative values. Should model MMC3 + specs. Add max/min values for LSN. +- More complete MMC command set +- FreeBSD driver ioctl and CAM reading works better (thanks to Heiner) +- OSX drive reading works better (thanks to Justin F. Hallett) +- cd-read allows dumping bytes to stdout and hexdumps to a file + via options --no-hexdump and --hexdump +- fewer error exits in drivers. Instead, a failure code is returned. +- better NRG reading (thanks to Michael Kukat via extractnrg.pl) +- better tracking of allocated variables (cd-read, cd-info, FreeBSD) +- iso9660: Add interface to read PVD and pick out some of the fields in that. + cd-info now shows more PVD info for ISO 9660 filesystems +- cd-info: X-Box CD detection (via xbox team mediacenter) + +version 0.68 +===================================== +2004-03-23 + +- More honest about mode1 reading in backends. Remove some of the bogusness. +- Fixes and simplifications to Solaris (from Ian MacIntosh): no longer + requires root access on Sunray environments +- Win32 ioctl works now on win2k and XP (and probably NT and ME) +- compiles on cygwin with -mno-cygwin (needed for videolan's vlc) +- option --with-versioned-libs now checks for GNU ld. + +version 0.67 +===================================== +2004-03-01 + +- portability for ARM +- add iso-read program and regression tests +- libiso9960: stat routines that match level 1 ISO-9600 filenames + translating them into Unix-style names (i.e. lowercase letters, + with version numbers dropped.) +- expand/improve documentation. +- more graceful exits when there is no CD or can't read it. +- add --without-versioned-libs +- add README.libcdio and note possible problems on different OSs + without GNU make + +version 0.66 +===================================== +2004-02-15 + +- Add interface for reading an ISO-9660 image +- portability fixes (Solaris, cygwin) +- Microsoft Windows ASPI/ DeviceIoControl code reorganization +- NRG image reading improvements +- Remove memory leaks +- library symbol versioning (from Nicolas Boullis) +- Go over documentation + +version 0.65 +===================================== +2003-12-13 + +- tag headers to give doxygen API documentation +- cd-info/cd-read now can specify library level of output +- sample program using libiso9660 added. + +version 0.64 +===================================== +2003-11-22 + +- add routines to return a list of devices or scan a list of devices + which satisfy any/all things in a capability mask. Should be useful + for plugins that want to find a CD-DA to play or find a plugin that handles + a particular device. +- cd-read: new program to help diagnose reading problems. +- cd-info: now displays date on iso9660 listing and translates filename + to normal conventions, gives track "green" info +- Add/expose routines to get/set time. time is reported back in entry + stat. Routines to create ISO-9660 directories and entries must now + supply the time to set on the entry. +- Darwin and FreeBSD drivers closer to having native CD support, MinGW + fixes (but not complete either) +- BSDI fixes +- Document more functions. + +version 0.63 +===================================== + +- create libiso9660 library and install that. +- More sample programs. +- add library routine cdio_guess_cd_type to analyze/guess what type of + CD or CD image we've got. +- cd-info can list the files of a ISO-9660 filesystem via libiso9660 + with option --iso9660 + +version 0.62 +===================================== + +- Some minimal documentation. More will follow. +- Add a simple sample programs. +- Add a simple regression test driver. +- "Smart" open was scanning devices rather than devices + image drivers. + +version 0.61 +===================================== + +- Cygwin/MinGW port. +- get-default-device reworked to be smarter about finding devices. +- cd-info: add --no-headers. version ID is from package now. Show default + device on "--version" output. +- API: add routine report if string refers to a device or not +- Make use of features in libcddb 0.9.4. + +version 0.6 +===================================== + +- Bug: eject wouldn't. +- If given .bin find corresponding .cue. If no cue, complain. + +version 0.5 +===================================== + +- Add RPM spec file. Thanks to Manfred Tremmel +- cdinfo renamed to cd-info to avoid conflicts with other existing programs +- bug in ejecting CD's fixed +- find cue file if given bin. +- cd-info: If libvcdinfo is installed show general Video CD properties + +version 0.4 +===================================== + +- More regression tests. +- Use pkg-config(1) support +- NRG may be closer to being correct. + +version 0.3 +===================================== + +- reduced overall size of package. Some regression moved to a separate (large) + package. +- facilitate inclusion into another project's local source tree (e.g. xine) +- version number in include +- cdinfo: lists number of CDDB matches, display error message on failure, + and can set CDDB port and http proxy +- Bug: Narrow drivers to devices when source is a device. +- fix some small compile warnings and configure bugs. Require libcddb 0.9.0 + or greater. + +version 0.2 +===================================== + +- Added Support for reading audio sectors +- cdinfo can use libcddb (http://libcddb.sourceforge.net). If installed and + we have a CD-DA disk, we dump out CDDB information. +- Regression tests added. +- Don't need to open device to give get a default device. +- Better device driver selection: We test for file/device-ness. +- Bugs fixed (default device name on GNU/Linux), + +version 0.1 +===================================== + + Routines split off from VCDImager. + +$Id: NEWS,v 1.124 2008/10/20 01:10:19 rocky Exp $ diff --git a/README b/README new file mode 100644 index 0000000..b5ee700 --- /dev/null +++ b/README @@ -0,0 +1,62 @@ +See README.libcdio for installation instructions. + +The libcdio package contains a library for CD-ROM and CD image +access. Applications wishing to be oblivious of the OS- and +device-dependent properties of a CD-ROM or of the specific details of +various CD-image formats may benefit from using this library. + +A library for working with ISO-9660 filesystems libiso9660 is +included. A generic interface for issuing MMC (multimedia commands) is +also part of the libcdio library. + +Also included is a library for working with ISO-9660 filesystems. + +The CD-DA error/jitter correction library from cdparanoia +(http://www.xiph.org/paranoia) is included as a separate library +licenced under GPL v2. + +Some support for disk image types like CDRWin's BIN/CUE format, +cdrdao's TOC format, and Nero's NRG format are available. Therefore, +applications that use this library also have the ability to read disc +images as though they were CD's. + +The library is written in C, however there are OO C++, Perl, Python +and Ruby wrappers to interface to the library. However C++ is the only +one that is bundled with this package, and the interfaces provide only +a subset of the full features of the library. + +Also included in the libcdio package are a number of utility programs: + +* cd-info - displays CD information: number of tracks, CD-format and + if possible basic information about the format. If libcddb + (http://libcddb.sourceforge.net) is available, the cd-info + program will display CDDB matches on CD-DA discs. And if a + new enough version of libvcdinfo is available (from the + vcdimager project), then cd-info shows basic VCD information. + +* cd-read - performs low-level block reading of a CD or CD image, + +* iso-info - displays ISO-9660 information from an ISO-9660 image, + +* iso-read - extracting files from an ISO-9660 image, a version of the + CD-DA extraction tool cdparanoia which corrects for + CD-ROM jitter, and a simple curses-based CD player, + cdda-player using the analog CD-ROM output. + +* cd-paranoia - port of cdparanoia (CD-DA jitter and error correction) + using libcdio back-end CD-reading. + +There is very limited low-level support for MMC commands on some +platforms. Using MMC writing can be done. However there is currently +little higher level-support for writing. Other libraries like libburn, +libdi, libscg, or libdvdread may be helpful. + +Some of the projects using libcdio are the Video CD authoring and +ripping tools VCDImager (http://vcdimager.org), a navigation-capable +Video CD plugin and CD-DA plugins for the media players xine +(http://xinehq.de), videolan's vlc (http://videolan.org), media +players mplayerxp (http://mplayerxp.sourceforge.net/) and gmerlin +(http://gmerlin.sourceforge.net), kiso, a KDE GUI for creating, +extracting and editing ISO-9600 images (http://kiso.sourceforge.net), +and a Samba vfs module that allows exporting a CD without mounting it +(http://ontologistics.net/OpenSource/Samba/index.php). diff --git a/README.libcdio b/README.libcdio new file mode 100644 index 0000000..0f83093 --- /dev/null +++ b/README.libcdio @@ -0,0 +1,181 @@ +See README.develop if you plan use the git or development version. + +0. To compile the source, you'll need a POSIX shell and utilities (sh, +sed, grep, cat), an ANSI C compiler like gcc, and a POSIX "make" +program like GNU make or remake. You may also want to have "libtool" installed +for building portable shared libraries. + +1. Uncompress and unpack the source code using for example "tar". Recent +versions of GNU tar can do this in one step like this: + tar -xpf libcdio-*.bz # or libcdio-*.gz + +2. Go into the directory, run "configure" followed by "make": + + cd libcdio-* + sh ./configure MAKE=make # or remake or gmake + +3. If step 2 works, compile everything: + + make # or remake + +4. Run the regression tests if you want: + + make check # or remake check + +5. Install. If the preceding steps were successful: + + make install # you may have to do this as root + # or "sudo make install" + + +If you have problems linking libcdio or libiso9660, see the BSD +section. You might also try the option --without-versioned-libs. However +this option does help with the situation described below so it is +preferred all other things being equal. + +If you are debugging libcdio, the libtool and the dynamic libraries +can make things harder. I suggest setting CFLAGS to include +'-fno-inline -g' and using --disable-shared on configure. + + +VCD dependency: +--------------- +One thing that confuses people is the "dependency" on libvcdinfo from +vcdimager, while vcdimager has a dependency on libcdio. This libcdio +dependency on vcdimager is an optional (i.e. not mandatory) dependency, +while the vcdimager dependency right now is mandatory. libvcdinfo is +used only by the utility program cd-info. If you want cd-info to use +the VCD reporting portion and you don't already have vcdimager +installed, build and install libcdio, then vcdimager, then configure +libcdio again and it should find libvcdinfo. + +People who make packages might consider making two packages, a libcdio +package with just the libraries (and no dependency on libvcdinfo) and +a libcdio-utils which contains cd-info and iso-info, cd-read, +iso-read. Should you want cd-info with VCD support then you'd add a +dependency in that package to libvcdinfo. + +Another thing one can do is "make install" inside the library, or run +"configure --without-vcd-info --without-cddb" (since libcddb also has +an optional dependency on libcdio). + +Microsoft Windows +------- + +Building under Microsoft Windows is supported for cygwin +(http://www.cygwin.com). You need to have the cygwin libiconv-devel +package installed. + +For MinGW (http://www.mingw.org/) also works provided you have +libiconv installed. + +Support for Microsoft compilers (e.g. Visual C) is not officially +supported. You need to make your own "project" files. Don't +undertake this unless you are willing to spend time hacking. In the +past xboxmediacenter team folks I believe have gone this route, as has +Pete Batard in his rufus project. You may be able to use their project +files as a starting point. + +XBOX +------- + +Consult the xboxmediacenter team (www.xboxmediacenter.de) + + +BSD, FreeBSD, NetBSD +--- + +Unless you use --without-versioned-libs (not recommended), you need to +use GNU make or remake (http://bashdb.sf.net/remake). GNU make can be +found under the name "gmake". + +If you use another make you are likely to get problems linking libcdio +and libiso9660. + + +Solaris +------- + +You may need to use --without-versioned-libs if you get a problem +building libcdio or libiso9660. + +If you get a message like: + libcdio.so: attempted multiple inclusion of file + +because you have enable vcd-info and it is installed, then the only +way I know how to get around is to use configure with --disable-shared. + +OS Support +--------------- + +Support for Operating Systems's is really based on the desire, ability +and willingness of others to help out. I use GNU/Linux so that +probably works best. Before a release I'll test on servers I have +available. I also announce a pending release on libcdio-devel@gnu.org +and ask others to test out. + +Specific libcdio configure options and environment variables +--------------- + --disable-cxx Disable C++ bindings (default enabled) + --enable-cpp-progs make C++ example programs (default enabled) + --disable-example-progs Don't build libcdio sample programs + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + --disable-largefile omit support for large files + --enable-shared[=PKGS] build shared libraries [default=yes] + --enable-static[=PKGS] build static libraries [default=yes] + --enable-fast-install[=PKGS] + optimize for fast installation [default=yes] + --disable-libtool-lock avoid locking (might break parallel builds) + --disable-joliet don't include Joliet extension support (default + enabled) + --disable-rpath do not hardcode runtime library paths + --enable-rock include Rock-Ridge extension support (default + enabled) + --enable-cddb include CDDB lookups in cd_info (default enabled) + --enable-vcd-info include Video CD Info from libvcd + --enable-maintainer-mode create documentation and manual packages. + For this you need texinfo and help2man installed + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --without-cd-drive don't build program cd-drive (default with) + --without-cd-info don't build program cd-info (default with) + --without-cd-paranoia don't build program cd-paranoia and paranoia + libraries (default with) + --without-cdda-player don't build program cdda-player (default with) + --with-cd-paranoia-name name to use as the cd-paranoia program name (default + cd-paranoia) + --without-cd-read don't build program cd-read (default with) + --without-iso-info don't build program iso-info (default with) + --without-iso-read don't build program iso-read (default with) + --without-versioned-libs + build versioned library symbols (default enabled if + you have GNU ld) + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] + --with-gnu-ld assume the C compiler uses GNU ld default=no + --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib + --without-libiconv-prefix don't search for libiconv in includedir and libdir + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + CXX C++ compiler command + CXXFLAGS C++ compiler flags + CPP C preprocessor + CXXCPP C++ preprocessor + PKG_CONFIG path to pkg-config utility + CDDB_CFLAGS C compiler flags for CDDB, overriding pkg-config + CDDB_LIBS linker flags for CDDB, overriding pkg-config + VCDINFO_CFLAGS + C compiler flags for VCDINFO, overriding pkg-config + VCDINFO_LIBS + linker flags for VCDINFO, overriding pkg-config diff --git a/THANKS b/THANKS new file mode 100644 index 0000000..525e641 --- /dev/null +++ b/THANKS @@ -0,0 +1,109 @@ +Burkhard Plaum + some GNU/Linux and CD-Text patches + +Carlo Bramini + fixes for Mingw+MSYS and DLL support + +Chris Clayton + 2.0.0 testing + +Christophe Fergeau + Add UDF reading to iso-read and iso-info + +Dagobert Michelsen + Solaris compilation issues and the wonderful test Solaris + test platform opencsw.org + +Diego 'Flameeyes' Petten� + patches to FreeBSD and making Gentoo-friendly + +Frank Endres + mmc_get_disc_erasable + +Frantisek Dvorak : + bug reports and miscellaneous fixes + +Geoff Bailey + FreeBSD debugging & testing + +Heiner + FreeBSD CAM support and FreeBSD debugging & testing + +Ian MacIntosh + Sun-related things. + +Justin B. Ruggles + SCSI MMC discmode determination via Read TOC. + +Justin F. Hallett + Fink packaging and matters OSX + +KO Myung-Hun + OS/2 Driver + +Kris Verbeeck : + CDDB library support from libcddb http://libcddb.sourceforge.net + Gentoo ebuild-file + +Leon Merten Lohse + Redo CD-Text handling + +Manfred Tremmel : + RPM spec file and inclusion of libcdio into + http://packman.links2linux.de/ + +Michael Kukat , + for the hints in extractnrg.pl + +Natalia Portillo + OSX BluRay support on OSX 10 and other OSX fixes + +Nicolas Boullis + Build issues, library symbol versioning, Debian packaging and issues + +Nigel Pearson nigel at ind dot tansu dot com dot au + OSX 10 fixes + +Patrick Guimond + CD-Extra audio data boundaries + +Pete Batard + UDF, MinGW and Microsoft Visual C++ support. "offset" type fixes for + Joliet and Rock Ridge. + +Peter Hartley + Cross-compiling to mingw32 + +Peter J. Creath + removal of libpopt, paranoia documentation, some bug fixes to + cd-* programs and the paranoia lib + +Steven M. Schultz + All things BSDI and the use of a really fabulous Darwin G5 box. + +Svend S. Sorensen + cdrdao TOC-reading and CDRWin CUE parsing code based on cuetools + http://cuetools.sourceforge.net/ + +xboxmediacenter team (www.xboxmediacenter.de) + X-Box detection and XDF filesystem things + +Thomas Schmitt + Recording and retrieval of SCSI sense reply. Write/burning interface. + MMC bug fixes + +Daniel Schwarz + log-summary option in cd-paranoia. + +Robert Kausch + Portability fixes on Windows, and other OS's. Add mmc_get_track_isrc + +Robert William Fuller + get_track_pregap_lba, get_track_pregap_lsn. Section on "CD-DA pregap" + in libcdio manual. + + various fixes to Nero driver and cd-text for Nero + +Scot C. Bontrager + mmc routine to get the ISRC information on a CD that is in the q subchannel + but not showing up in the CDTEXT. Addition of this information to cd-info. diff --git a/TODO b/TODO new file mode 100644 index 0000000..bc28932 --- /dev/null +++ b/TODO @@ -0,0 +1,95 @@ +It isn't look hard to find a gap in libcdio or libiso9660 or think of +something you'd like added. Here are some of the many known problems +and feature requests. + +* UDF support. + +* API overhaul. hvr has expressed interest but it's unlikely he'll ever + have the time to do. It could be done in conjunction with a wrappers + for C++, Perl, Python, ... The idea is that those interfaces would not + show the ugliness of the current C interface. For example instead of + read_mode2, read_mode1, read_audio, there might be a read(mode, ...). + + - Address static loglevel variable (nboullis at debian.org) + +* All of the API should be finished on all OS's (or the API adjusted). + +* Fix the current gaps: + + - SCSI-MMC on OSX, + - CD-Text support working more often? wide character support + (Burkhard Plaum has indicated he might do) + - more accurate drive capabilities + - wxwindows interface to cd-drive + - more accurate CD track classification (Form 1/2, Mode 1/2) + - complete the image readers, e.g. "silence" and ability to use + more than one file in cdrdao. + - multi-session CDs + +* mmc_read_cd often doesn't work when request reading a large number of blocks. + +* Is paranoia correct? Get a better handle on it. Ensure more of the + drive and OS-specific features that work on GNU/Linux work + elsewhere. Regression tests over more kinds of failures. + +* Exclusive access of CD-ROM versus non-exclusive? + +* Adjusting operations based on known models. Via MMC, We often have + the ability to find out what drive is in use. That could be used (as + it was in cdparanoia) to customize the method used for various + operations. Alternatively it could be read from a configuration + file, but right now there's no internal structure for holding all of + the capabilities. + +* Combine iso-read and iso-info into an "iso-tar" for listing or + extracting files". Ideally something matching the relevant command + set of "tar" would be nice, as that is widely used and probably + fairly complete in thing that might be desired for listing/extracting. + +* Add something to show what kind of CD media is in a drive. Ideally: CD + (purchased), CD Write Once, CD Read/Write, but what is there is + probably something like Cyanine, PhthaloCyanine, Metallized Azo, + Advanced PhthaloCyanine, Formazan. See + http://www.cdmediaworld.com/hardware/cdrom/cd_dye.shtml or + http://www.cd-info.com/CDIC/History/Commentary/Parker/stcroix.html + + The discmode type can be used to classify DVD media and it also + classifies for CD track formats (in addition to CD *content* + classification). Note there is nothing for DVD content; see the below + list of things which probably won't get added. + + Given the mismatch between DVD and CD meanings in discmode, the + discmode type probably needs to be redone. + +* Write a real cue parser and TOC parser using bison. + A pcct grammar is given in cdrdao's trackdb TocParser.g and CueParser.g + The parsing is pretty much done, need to fold in semantic routines and + improve error reporting. + +* conversion tools. Assuming parser done, it should be simple to use + write simple conversion routines: + - CD images's to iso9660 .iso's + - TOC <=> CUE + +* Test more disc image types in regression testing, like CD-I. + +* Convert to use glib, removing ds.h + (Revise vcdimager too) + +* Delete and rename files in an iso9660 image (mephisto75 at web.de) + +* Some things where libcdio will probably not expand in: + + - DVD things, especially DVD-ROM (use libdvdread) + - writing applications (use cdrdao or cdrtools) + - more proprietary undocumented image format (unless someone else is willing + to do the work). But the fuzzy ISO 9660 detection may help here. + + +If there is something you really want done on the above list or have +something else you want done, it will go a lot faster if you attempt +to undertake doing it. Patches are always welcome (and CVS write +access is available for those who have demonstrated reasonable ability +through contributions.) + +$Id: TODO,v 1.11 2005/07/11 11:51:07 rocky Exp $ diff --git a/aclocal.m4 b/aclocal.m4 new file mode 100644 index 0000000..fb3c43e --- /dev/null +++ b/aclocal.m4 @@ -0,0 +1,1199 @@ +# generated automatically by aclocal 1.15 -*- Autoconf -*- + +# Copyright (C) 1996-2014 Free Software Foundation, Inc. + +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, +[m4_warning([this file was generated for autoconf 2.69. +You have another version of autoconf. It may work, but is not guaranteed to. +If you have problems, you may need to regenerate the build system entirely. +To do so, use the procedure documented by the package, typically 'autoreconf'.])]) + +# Copyright (C) 2002-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +# (This private macro should not be called outside this file.) +AC_DEFUN([AM_AUTOMAKE_VERSION], +[am__api_version='1.15' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.15], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +[AM_AUTOMAKE_VERSION([1.15])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to +# '$srcdir', '$srcdir/..', or '$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is '.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +# Expand $ac_aux_dir to an absolute path. +am_aux_dir=`cd "$ac_aux_dir" && pwd` +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ([2.52])dnl + m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + +# Copyright (C) 1999-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + + +# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], + [$1], [CXX], [depcc="$CXX" am_compiler_list=], + [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], + [$1], [UPC], [depcc="$UPC" am_compiler_list=], + [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with '-c' and '-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok '-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES. +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE([dependency-tracking], [dnl +AS_HELP_STRING( + [--enable-dependency-tracking], + [do not reject slow dependency extractors]) +AS_HELP_STRING( + [--disable-dependency-tracking], + [speeds up one-time build])]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +AC_SUBST([am__nodep])dnl +_AM_SUBST_NOTMAKE([am__nodep])dnl +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright (C) 1999-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[{ + # Older Autoconf quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named 'Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running 'make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "$am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each '.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. +m4_define([AC_PROG_CC], +m4_defn([AC_PROG_CC]) +[_AM_PROG_CC_C_O +]) + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.65])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[AC_DIAGNOSE([obsolete], + [$0: two- and three-arguments forms are deprecated.]) +m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if( + m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), + [ok:ok],, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) + AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) +AM_MISSING_PROG([AUTOCONF], [autoconf]) +AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) +AM_MISSING_PROG([AUTOHEADER], [autoheader]) +AM_MISSING_PROG([MAKEINFO], [makeinfo]) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +AC_SUBST([mkdir_p], ['$(MKDIR_P)']) +# We need awk for the "check" target (and possibly the TAP driver). The +# system "awk" is bad on some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES([CC])], + [m4_define([AC_PROG_CC], + m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES([CXX])], + [m4_define([AC_PROG_CXX], + m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES([OBJC])], + [m4_define([AC_PROG_OBJC], + m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], + [_AM_DEPENDENCIES([OBJCXX])], + [m4_define([AC_PROG_OBJCXX], + m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl +]) +AC_REQUIRE([AM_SILENT_RULES])dnl +dnl The testsuite driver may need to know about EXEEXT, so add the +dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This +dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl + +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes. So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else + cat >&2 <<'END' +Oops! + +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present. This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: + +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message. This +can help us improve future automake versions. + +END + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then + echo 'Configuration will proceed anyway, since you have set the' >&2 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 + echo >&2 + else + cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. + +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: . + +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. + +END + AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) + fi +fi +dnl The trailing newline in this macro's definition is deliberate, for +dnl backward compatibility and to allow trailing 'dnl'-style comments +dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. +]) + +dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST([install_sh])]) + +# Copyright (C) 2003-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- +# From Jim Meyering + +# Copyright (C) 1996-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_MAINTAINER_MODE([DEFAULT-MODE]) +# ---------------------------------- +# Control maintainer-specific portions of Makefiles. +# Default is to disable them, unless 'enable' is passed literally. +# For symmetry, 'disable' may be passed as well. Anyway, the user +# can override the default with the --enable/--disable switch. +AC_DEFUN([AM_MAINTAINER_MODE], +[m4_case(m4_default([$1], [disable]), + [enable], [m4_define([am_maintainer_other], [disable])], + [disable], [m4_define([am_maintainer_other], [enable])], + [m4_define([am_maintainer_other], [enable]) + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) +AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) + dnl maintainer-mode's default is 'disable' unless 'enable' is passed + AC_ARG_ENABLE([maintainer-mode], + [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], + am_maintainer_other[ make rules and dependencies not useful + (and sometimes confusing) to the casual installer])], + [USE_MAINTAINER_MODE=$enableval], + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) + AC_MSG_RESULT([$USE_MAINTAINER_MODE]) + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) + MAINT=$MAINTAINER_MODE_TRUE + AC_SUBST([MAINT])dnl +] +) + +# Check to see how 'make' treats includes. -*- Autoconf -*- + +# Copyright (C) 2001-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from 'make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it is modern enough. +# If it is, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --is-lightweight"; then + am_missing_run="$MISSING " +else + am_missing_run= + AC_MSG_WARN(['missing' script is too old or missing]) +fi +]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# -------------------- +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) + +# _AM_SET_OPTIONS(OPTIONS) +# ------------------------ +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Copyright (C) 1999-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_PROG_CC_C_O +# --------------- +# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC +# to automatically call this. +AC_DEFUN([_AM_PROG_CC_C_O], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([compile])dnl +AC_LANG_PUSH([C])dnl +AC_CACHE_CHECK( + [whether $CC understands -c and -o together], + [am_cv_prog_cc_c_o], + [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) + # Make sure it works both with $CC and with simple cc. + # Following AC_PROG_CC_C_O, we do the test twice because some + # compilers refuse to overwrite an existing .o file with -o, + # though they will create one. + am_cv_prog_cc_c_o=yes + for am_i in 1 2; do + if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ + && test -f conftest2.$ac_objext; then + : OK + else + am_cv_prog_cc_c_o=no + break + fi + done + rm -f core conftest* + unset am_i]) +if test "$am_cv_prog_cc_c_o" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi +AC_LANG_POP([C])]) + +# For backward compatibility. +AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) + +# Copyright (C) 2001-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_RUN_LOG(COMMAND) +# ------------------- +# Run COMMAND, save the exit status in ac_status, and log it. +# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) +AC_DEFUN([AM_RUN_LOG], +[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + (exit $ac_status); }]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken + alias in your environment]) + fi + if test "$[2]" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT([yes]) +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! +fi +AC_CONFIG_COMMANDS_PRE( + [AC_MSG_CHECKING([that generated files are newer than configure]) + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + AC_MSG_RESULT([done])]) +rm -f conftest.file +]) + +# Copyright (C) 2009-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_SILENT_RULES([DEFAULT]) +# -------------------------- +# Enable less verbose build rules; with the default set to DEFAULT +# ("yes" being less verbose, "no" or empty being verbose). +AC_DEFUN([AM_SILENT_RULES], +[AC_ARG_ENABLE([silent-rules], [dnl +AS_HELP_STRING( + [--enable-silent-rules], + [less verbose build output (undo: "make V=1")]) +AS_HELP_STRING( + [--disable-silent-rules], + [verbose build output (undo: "make V=0")])dnl +]) +case $enable_silent_rules in @%:@ ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +dnl +dnl A few 'make' implementations (e.g., NonStop OS and NextStep) +dnl do not support nested variable expansions. +dnl See automake bug#9928 and bug#10237. +am_make=${MAKE-make} +AC_CACHE_CHECK([whether $am_make supports nested variables], + [am_cv_make_support_nested_variables], + [if AS_ECHO([['TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi]) +if test $am_cv_make_support_nested_variables = yes; then + dnl Using '$V' instead of '$(V)' breaks IRIX make. + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AC_SUBST([AM_V])dnl +AM_SUBST_NOTMAKE([AM_V])dnl +AC_SUBST([AM_DEFAULT_V])dnl +AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) + +# Copyright (C) 2001-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor 'install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in "make install-strip", and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Copyright (C) 2006-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. +# This macro is traced by Automake. +AC_DEFUN([_AM_SUBST_NOTMAKE]) + +# AM_SUBST_NOTMAKE(VARIABLE) +# -------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004-2014 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of 'v7', 'ustar', or 'pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +# +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AC_SUBST([AMTAR], ['$${TAR-tar}']) + +# We'll loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' + +m4_if([$1], [v7], + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], + + [m4_case([$1], + [ustar], + [# The POSIX 1988 'ustar' format is defined with fixed-size fields. + # There is notably a 21 bits limit for the UID and the GID. In fact, + # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 + # and bug#13588). + am_max_uid=2097151 # 2^21 - 1 + am_max_gid=$am_max_uid + # The $UID and $GID variables are not portable, so we need to resort + # to the POSIX-mandated id(1) utility. Errors in the 'id' calls + # below are definitely unexpected, so allow the users to see them + # (that is, avoid stderr redirection). + am_uid=`id -u || echo unknown` + am_gid=`id -g || echo unknown` + AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) + if test $am_uid -le $am_max_uid; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + _am_tools=none + fi + AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) + if test $am_gid -le $am_max_gid; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + _am_tools=none + fi], + + [pax], + [], + + [m4_fatal([Unknown tar format])]) + + AC_MSG_CHECKING([how to create a $1 tar archive]) + + # Go ahead even if we have the value already cached. We do so because we + # need to set the values for the 'am__tar' and 'am__untar' variables. + _am_tools=${am_cv_prog_tar_$1-$_am_tools} + + for _am_tool in $_am_tools; do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works. + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi + done + rm -rf conftest.dir + + AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) + AC_MSG_RESULT([$am_cv_prog_tar_$1])]) + +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + +m4_include([m4/codeset.m4]) +m4_include([m4/iconv.m4]) +m4_include([m4/lib-ld.m4]) +m4_include([m4/lib-link.m4]) +m4_include([m4/lib-prefix.m4]) +m4_include([m4/libtool.m4]) +m4_include([m4/ltoptions.m4]) +m4_include([m4/ltsugar.m4]) +m4_include([m4/ltversion.m4]) +m4_include([m4/lt~obsolete.m4]) +m4_include([m4/pkg.m4]) diff --git a/compile b/compile new file mode 100755 index 0000000..a85b723 --- /dev/null +++ b/compile @@ -0,0 +1,347 @@ +#! /bin/sh +# Wrapper for compilers which do not understand '-c -o'. + +scriptversion=2012-10-14.11; # UTC + +# Copyright (C) 1999-2014 Free Software Foundation, Inc. +# Written by Tom Tromey . +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# This file is maintained in Automake, please report +# bugs to or send patches to +# . + +nl=' +' + +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent tools from complaining about whitespace usage. +IFS=" "" $nl" + +file_conv= + +# func_file_conv build_file lazy +# Convert a $build file to $host form and store it in $file +# Currently only supports Windows hosts. If the determined conversion +# type is listed in (the comma separated) LAZY, no conversion will +# take place. +func_file_conv () +{ + file=$1 + case $file in + / | /[!/]*) # absolute file, and not a UNC file + if test -z "$file_conv"; then + # lazily determine how to convert abs files + case `uname -s` in + MINGW*) + file_conv=mingw + ;; + CYGWIN*) + file_conv=cygwin + ;; + *) + file_conv=wine + ;; + esac + fi + case $file_conv/,$2, in + *,$file_conv,*) + ;; + mingw/*) + file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` + ;; + cygwin/*) + file=`cygpath -m "$file" || echo "$file"` + ;; + wine/*) + file=`winepath -w "$file" || echo "$file"` + ;; + esac + ;; + esac +} + +# func_cl_dashL linkdir +# Make cl look for libraries in LINKDIR +func_cl_dashL () +{ + func_file_conv "$1" + if test -z "$lib_path"; then + lib_path=$file + else + lib_path="$lib_path;$file" + fi + linker_opts="$linker_opts -LIBPATH:$file" +} + +# func_cl_dashl library +# Do a library search-path lookup for cl +func_cl_dashl () +{ + lib=$1 + found=no + save_IFS=$IFS + IFS=';' + for dir in $lib_path $LIB + do + IFS=$save_IFS + if $shared && test -f "$dir/$lib.dll.lib"; then + found=yes + lib=$dir/$lib.dll.lib + break + fi + if test -f "$dir/$lib.lib"; then + found=yes + lib=$dir/$lib.lib + break + fi + if test -f "$dir/lib$lib.a"; then + found=yes + lib=$dir/lib$lib.a + break + fi + done + IFS=$save_IFS + + if test "$found" != yes; then + lib=$lib.lib + fi +} + +# func_cl_wrapper cl arg... +# Adjust compile command to suit cl +func_cl_wrapper () +{ + # Assume a capable shell + lib_path= + shared=: + linker_opts= + for arg + do + if test -n "$eat"; then + eat= + else + case $1 in + -o) + # configure might choose to run compile as 'compile cc -o foo foo.c'. + eat=1 + case $2 in + *.o | *.[oO][bB][jJ]) + func_file_conv "$2" + set x "$@" -Fo"$file" + shift + ;; + *) + func_file_conv "$2" + set x "$@" -Fe"$file" + shift + ;; + esac + ;; + -I) + eat=1 + func_file_conv "$2" mingw + set x "$@" -I"$file" + shift + ;; + -I*) + func_file_conv "${1#-I}" mingw + set x "$@" -I"$file" + shift + ;; + -l) + eat=1 + func_cl_dashl "$2" + set x "$@" "$lib" + shift + ;; + -l*) + func_cl_dashl "${1#-l}" + set x "$@" "$lib" + shift + ;; + -L) + eat=1 + func_cl_dashL "$2" + ;; + -L*) + func_cl_dashL "${1#-L}" + ;; + -static) + shared=false + ;; + -Wl,*) + arg=${1#-Wl,} + save_ifs="$IFS"; IFS=',' + for flag in $arg; do + IFS="$save_ifs" + linker_opts="$linker_opts $flag" + done + IFS="$save_ifs" + ;; + -Xlinker) + eat=1 + linker_opts="$linker_opts $2" + ;; + -*) + set x "$@" "$1" + shift + ;; + *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) + func_file_conv "$1" + set x "$@" -Tp"$file" + shift + ;; + *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) + func_file_conv "$1" mingw + set x "$@" "$file" + shift + ;; + *) + set x "$@" "$1" + shift + ;; + esac + fi + shift + done + if test -n "$linker_opts"; then + linker_opts="-link$linker_opts" + fi + exec "$@" $linker_opts + exit 1 +} + +eat= + +case $1 in + '') + echo "$0: No command. Try '$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: compile [--help] [--version] PROGRAM [ARGS] + +Wrapper for compilers which do not understand '-c -o'. +Remove '-o dest.o' from ARGS, run PROGRAM with the remaining +arguments, and rename the output as expected. + +If you are trying to build a whole package this is not the +right script to run: please start by reading the file 'INSTALL'. + +Report bugs to . +EOF + exit $? + ;; + -v | --v*) + echo "compile $scriptversion" + exit $? + ;; + cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) + func_cl_wrapper "$@" # Doesn't return... + ;; +esac + +ofile= +cfile= + +for arg +do + if test -n "$eat"; then + eat= + else + case $1 in + -o) + # configure might choose to run compile as 'compile cc -o foo foo.c'. + # So we strip '-o arg' only if arg is an object. + eat=1 + case $2 in + *.o | *.obj) + ofile=$2 + ;; + *) + set x "$@" -o "$2" + shift + ;; + esac + ;; + *.c) + cfile=$1 + set x "$@" "$1" + shift + ;; + *) + set x "$@" "$1" + shift + ;; + esac + fi + shift +done + +if test -z "$ofile" || test -z "$cfile"; then + # If no '-o' option was seen then we might have been invoked from a + # pattern rule where we don't need one. That is ok -- this is a + # normal compilation that the losing compiler can handle. If no + # '.c' file was seen then we are probably linking. That is also + # ok. + exec "$@" +fi + +# Name of file we expect compiler to create. +cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` + +# Create the lock directory. +# Note: use '[/\\:.-]' here to ensure that we don't use the same name +# that we are using for the .o file. Also, base the name on the expected +# object file name, since that is what matters with a parallel build. +lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d +while true; do + if mkdir "$lockdir" >/dev/null 2>&1; then + break + fi + sleep 1 +done +# FIXME: race condition here if user kills between mkdir and trap. +trap "rmdir '$lockdir'; exit 1" 1 2 15 + +# Run the compile. +"$@" +ret=$? + +if test -f "$cofile"; then + test "$cofile" = "$ofile" || mv "$cofile" "$ofile" +elif test -f "${cofile}bj"; then + test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" +fi + +rmdir "$lockdir" +exit $ret + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/config.guess b/config.guess new file mode 100755 index 0000000..2e9ad7f --- /dev/null +++ b/config.guess @@ -0,0 +1,1462 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright 1992-2016 Free Software Foundation, Inc. + +timestamp='2016-10-02' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). +# +# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. +# +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess +# +# Please send patches to . + + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright 1992-2016 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +trap 'exit 1' 1 2 15 + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +set_cc_for_build=' +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; +: ${TMPDIR=/tmp} ; + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +dummy=$tmp/dummy ; +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +esac ; set_cc_for_build= ;' + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +case "${UNAME_SYSTEM}" in +Linux|GNU|GNU/*) + # If the system lacks a compiler, then just pick glibc. + # We could probably try harder. + LIBC=gnu + + eval $set_cc_for_build + cat <<-EOF > $dummy.c + #include + #if defined(__UCLIBC__) + LIBC=uclibc + #elif defined(__dietlibc__) + LIBC=dietlibc + #else + LIBC=gnu + #endif + EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` + ;; +esac + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ + /sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || \ + echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; + earmv*) + arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` + endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` + machine=${arch}${endian}-unknown + ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently (or will in the future) and ABI. + case "${UNAME_MACHINE_ARCH}" in + earm*) + os=netbsdelf + ;; + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ELF__ + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # Determine ABI tags. + case "${UNAME_MACHINE_ARCH}" in + earm*) + expr='s/^earmv[0-9]/-eabi/;s/eb$//' + abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release='-gnu' + ;; + *) + release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}${abi}" + exit ;; + *:Bitrig:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} + exit ;; + *:OpenBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:LibertyBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE} + exit ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; + macppc:MirBSD:*:*) + echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:Sortix:*:*) + echo ${UNAME_MACHINE}-unknown-sortix + exit ;; + alpha:OSF1:*:*) + case $UNAME_RELEASE in + *4.0) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case "$ALPHA_CPU_TYPE" in + "EV4 (21064)") + UNAME_MACHINE=alpha ;; + "EV4.5 (21064)") + UNAME_MACHINE=alpha ;; + "LCA4 (21066/21068)") + UNAME_MACHINE=alpha ;; + "EV5 (21164)") + UNAME_MACHINE=alphaev5 ;; + "EV5.6 (21164A)") + UNAME_MACHINE=alphaev56 ;; + "EV5.6 (21164PC)") + UNAME_MACHINE=alphapca56 ;; + "EV5.7 (21164PC)") + UNAME_MACHINE=alphapca57 ;; + "EV6 (21264)") + UNAME_MACHINE=alphaev6 ;; + "EV6.7 (21264A)") + UNAME_MACHINE=alphaev67 ;; + "EV6.8CB (21264C)") + UNAME_MACHINE=alphaev68 ;; + "EV6.8AL (21264B)") + UNAME_MACHINE=alphaev68 ;; + "EV6.8CX (21264D)") + UNAME_MACHINE=alphaev68 ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE=alphaev69 ;; + "EV7 (21364)") + UNAME_MACHINE=alphaev7 ;; + "EV7.9 (21364A)") + UNAME_MACHINE=alphaev79 ;; + esac + # A Pn.n version is a patched version. + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. + exitcode=$? + trap '' 0 + exit $exitcode ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix + exit ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; + *:OS400:*:*) + echo powerpc-ibm-os400 + exit ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit ;; + arm*:riscos:*:*|arm*:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit ;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7; exit ;; + esac ;; + s390x:SunOS:*:*) + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) + echo i386-pc-auroraux${UNAME_RELEASE} + exit ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + eval $set_cc_for_build + SUN_ARCH=i386 + # If there is a compiler, see if it is configured for 64-bit objects. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. + # This test works for both compilers. + if [ "$CC_FOR_BUILD" != no_compiler_found ]; then + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + SUN_ARCH=x86_64 + fi + fi + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } + echo mips-mips-riscos${UNAME_RELEASE} + exit ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x = x ] + then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} + fi + exit ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit ;; + *:AIX:*:[4567]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/lslpp ] ; then + IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | + awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 + 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH=hppa2.0n ;; + 64) HP_ARCH=hppa2.0w ;; + '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac + if [ ${HP_ARCH} = hppa2.0w ] + then + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | + grep -q __LP64__ + then + HP_ARCH=hppa2.0w + else + HP_ARCH=hppa64 + fi + fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + echo unknown-hitachi-hiuxwe2 + exit ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + *:UNICOS/mp:*:*) + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` + FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:FreeBSD:*:*) + UNAME_PROCESSOR=`/usr/bin/uname -p` + case ${UNAME_PROCESSOR} in + amd64) + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + *) + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + esac + exit ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit ;; + *:MINGW64*:*) + echo ${UNAME_MACHINE}-pc-mingw64 + exit ;; + *:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit ;; + *:MSYS*:*) + echo ${UNAME_MACHINE}-pc-msys + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit ;; + *:Interix*:*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + authenticamd | genuineintel | EM64T) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + IA64) + echo ia64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit ;; + 8664:Windows_NT:*) + echo x86_64-pc-mks + exit ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we + # UNAME_MACHINE based on the output of uname instead of i386? + echo i586-pc-interix + exit ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + *:GNU:*:*) + # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} + exit ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit ;; + aarch64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + aarch64_be:Linux:*:*) + UNAME_MACHINE=aarch64_be + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep -q ld.so.1 + if test "$?" = 0 ; then LIBC=gnulibc1 ; fi + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + arc:Linux:*:* | arceb:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + arm*:Linux:*:*) + eval $set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + else + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_PCS_VFP + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi + else + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf + fi + fi + exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + cris:Linux:*:*) + echo ${UNAME_MACHINE}-axis-linux-${LIBC} + exit ;; + crisv32:Linux:*:*) + echo ${UNAME_MACHINE}-axis-linux-${LIBC} + exit ;; + e2k:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + frv:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + hexagon:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + i*86:Linux:*:*) + echo ${UNAME_MACHINE}-pc-linux-${LIBC} + exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + k1om:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + mips:Linux:*:* | mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef ${UNAME_MACHINE} + #undef ${UNAME_MACHINE}el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=${UNAME_MACHINE}el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=${UNAME_MACHINE} + #else + CPU= + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } + ;; + mips64el:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + openrisc*:Linux:*:*) + echo or1k-unknown-linux-${LIBC} + exit ;; + or32:Linux:*:* | or1k*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + padre:Linux:*:*) + echo sparc-unknown-linux-${LIBC} + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-${LIBC} + exit ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; + *) echo hppa-unknown-linux-${LIBC} ;; + esac + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-${LIBC} + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-${LIBC} + exit ;; + ppc64le:Linux:*:*) + echo powerpc64le-unknown-linux-${LIBC} + exit ;; + ppcle:Linux:*:*) + echo powerpcle-unknown-linux-${LIBC} + exit ;; + riscv32:Linux:*:* | riscv64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux-${LIBC} + exit ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + tile*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-${LIBC} + exit ;; + x86_64:Linux:*:*) + echo ${UNAME_MACHINE}-pc-linux-${LIBC} + exit ;; + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + echo i386-sequent-sysv4 + exit ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit ;; + i*86:syllable:*:*) + echo ${UNAME_MACHINE}-pc-syllable + exit ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + exit ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i586. + # Note: whatever this is, it MUST be the same as what config.sub + # prints for the "djgpp" host, or else GDB configure will decide that + # this is a cross-build. + echo i586-pc-msdosdjgpp + exit ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + NCR*:*:4.2:* | MPRAS*:*:4.2:*) + OS_REL='.3' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit ;; + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. + echo i586-pc-haiku + exit ;; + x86_64:Haiku:*:*) + echo x86_64-unknown-haiku + exit ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; + SX-ACE:SUPER-UX:*:*) + echo sxace-nec-superux${UNAME_RELEASE} + exit ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + eval $set_cc_for_build + if test "$UNAME_PROCESSOR" = unknown ; then + UNAME_PROCESSOR=powerpc + fi + if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then + if [ "$CC_FOR_BUILD" != no_compiler_found ]; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + case $UNAME_PROCESSOR in + i386) UNAME_PROCESSOR=x86_64 ;; + powerpc) UNAME_PROCESSOR=powerpc64 ;; + esac + fi + fi + elif test "$UNAME_PROCESSOR" = i386 ; then + # Avoid executing cc on OS X 10.9, as it ships with a stub + # that puts up a graphical alert prompting to install + # developer tools. Any system running Mac OS X 10.7 or + # later (Darwin 11 and later) is required to have a 64-bit + # processor. This is not true of the ARM version of Darwin + # that Apple uses in portable devices. + UNAME_PROCESSOR=x86_64 + fi + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + exit ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = x86; then + UNAME_PROCESSOR=i386 + UNAME_MACHINE=pc + fi + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + exit ;; + *:QNX:*:4*) + echo i386-pc-qnx + exit ;; + NEO-?:NONSTOP_KERNEL:*:*) + echo neo-tandem-nsk${UNAME_RELEASE} + exit ;; + NSE-*:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; + NSR-?:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "$cputype" = 386; then + UNAME_MACHINE=i386 + else + UNAME_MACHINE="$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 + exit ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit ;; + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} + exit ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'` + exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; + i*86:AROS:*:*) + echo ${UNAME_MACHINE}-pc-aros + exit ;; + x86_64:VMkernel:*:*) + echo ${UNAME_MACHINE}-unknown-esx + exit ;; + amd64:Isilon\ OneFS:*:*) + echo x86_64-unknown-onefs + exit ;; +esac + +cat >&2 </dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = ${UNAME_MACHINE} +UNAME_RELEASE = ${UNAME_RELEASE} +UNAME_SYSTEM = ${UNAME_SYSTEM} +UNAME_VERSION = ${UNAME_VERSION} +EOF + +exit 1 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/config.h.in b/config.h.in new file mode 100644 index 0000000..5e2da4b --- /dev/null +++ b/config.h.in @@ -0,0 +1,437 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define if building universal (internal helper macro) */ +#undef AC_APPLE_UNIVERSAL_BUILD + +/* Define 1 if you are compiling using cygwin */ +#undef CYGWIN + +/* what to put between the brackets for empty arrays */ +#undef EMPTY_ARRAY_SIZE + +/* Define to 1 if you have the header file. */ +#undef HAVE_ALLOCA_H + +/* Define 1 if you have BSDI-type CD-ROM support */ +#undef HAVE_BSDI_CDROM + +/* Define this if you have libcddb installed */ +#undef HAVE_CDDB + +/* Define to 1 if you have the `chdir' function. */ +#undef HAVE_CHDIR + +/* Define to 1 if you have the header file. */ +#undef HAVE_COREFOUNDATION_CFBASE_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_CURSES_H + +/* Define 1 if you have Darwin OS X-type CD-ROM support */ +#undef HAVE_DARWIN_CDROM + +/* Define if time.h defines extern long timezone and int daylight vars. */ +#undef HAVE_DAYLIGHT + +/* Define to 1 if you have the header file. */ +#undef HAVE_DDK_NTDDCDRM_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_DDK_NTDDSCSI_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_DDK_SCSI_H + +/* Define to 1 if you have the declaration of `tzname', and to 0 if you don't. + */ +#undef HAVE_DECL_TZNAME + +/* Define 1 if you have the Apple DiskArbitration framework */ +#undef HAVE_DISKARBITRATION + +/* Define to 1 if you have the header file. */ +#undef HAVE_DLFCN_H + +/* Define to 1 if you have the `drand48' function. */ +#undef HAVE_DRAND48 + +/* Define to 1 if you have the header file. */ +#undef HAVE_DVD_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_ERRNO_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_FCNTL_H + +/* Define 1 if you have FreeBSD CD-ROM support */ +#undef HAVE_FREEBSD_CDROM + +/* Define to 1 if you have the `fseeko' function. */ +#undef HAVE_FSEEKO + +/* Define to 1 if you have the `fseeko64' function. */ +#undef HAVE_FSEEKO64 + +/* Define to 1 if you have the `ftruncate' function. */ +#undef HAVE_FTRUNCATE + +/* Define to 1 if you have the `geteuid' function. */ +#undef HAVE_GETEUID + +/* Define to 1 if you have the `getgid' function. */ +#undef HAVE_GETGID + +/* Define to 1 if you have the header file. */ +#undef HAVE_GETOPT_H + +/* Define to 1 if you have the `getpwuid' function. */ +#undef HAVE_GETPWUID + +/* Define to 1 if you have the `gettimeofday' function. */ +#undef HAVE_GETTIMEOFDAY + +/* Define to 1 if you have the `getuid' function. */ +#undef HAVE_GETUID + +/* Define to 1 if you have the header file. */ +#undef HAVE_GLOB_H + +/* Define to 1 if you have the `gmtime_r' function. */ +#undef HAVE_GMTIME_R + +/* Define if you have the iconv() function and it works. */ +#undef HAVE_ICONV + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_IOKIT_IOKITLIB_H + +/* Supports ISO _Pragma() macro */ +#undef HAVE_ISOC99_PRAGMA + +/* Define 1 if you want ISO-9660 Joliet extension support. On most platforms, + this requires libiconv to be installed. */ +#undef HAVE_JOLIET + +/* Define this if your libcurses has keypad */ +#undef HAVE_KEYPAD + +/* Define if you have and nl_langinfo(CODESET). */ +#undef HAVE_LANGINFO_CODESET + +/* Define to 1 if you have the `nsl' library (-lnsl). */ +#undef HAVE_LIBNSL + +/* Define to 1 if you have the `socket' library (-lsocket). */ +#undef HAVE_LIBSOCKET + +/* Define to 1 if you have the header file. */ +#undef HAVE_LIMITS_H + +/* Define 1 if you have Linux-type CD-ROM support */ +#undef HAVE_LINUX_CDROM + +/* Define to 1 if you have the header file. */ +#undef HAVE_LINUX_CDROM_H + +/* Define 1 if timeout is in cdrom_generic_command struct */ +#undef HAVE_LINUX_CDROM_TIMEOUT + +/* Define to 1 if you have the header file. */ +#undef HAVE_LINUX_MAJOR_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_LINUX_VERSION_H + +/* Define to 1 if you have the `localtime_r' function. */ +#undef HAVE_LOCALTIME_R + +/* Define to 1 if you have the `lseek64' function. */ +#undef HAVE_LSEEK64 + +/* Define to 1 if you have the `lstat' function. */ +#undef HAVE_LSTAT + +/* Define to 1 if you have the `memcpy' function. */ +#undef HAVE_MEMCPY + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the `memset' function. */ +#undef HAVE_MEMSET + +/* Define to 1 if you have the `mkstemp' function. */ +#undef HAVE_MKSTEMP + +/* Define to 1 if you have the header file. */ +#undef HAVE_NCURSES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_NCURSES_NCURSES_H + +/* Define 1 if you have NetBSD CD-ROM support */ +#undef HAVE_NETBSD_CDROM + +/* Define to 1 if you have the header file. */ +#undef HAVE_NTDDCDRM_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_NTDDSCSI_H + +/* Define 1 if you have OS/2 CD-ROM support */ +#undef HAVE_OS2_CDROM + +/* Define to 1 if you have the header file. */ +#undef HAVE_PWD_H + +/* Define to 1 if you have the `rand' function. */ +#undef HAVE_RAND + +/* Define to 1 if you have the `readlink' function. */ +#undef HAVE_READLINK + +/* Define to 1 if you have the `realpath' function. */ +#undef HAVE_REALPATH + +/* Define 1 if you want ISO-9660 Rock-Ridge extension support. */ +#undef HAVE_ROCK + +/* Define to 1 if you have the `setegid' function. */ +#undef HAVE_SETEGID + +/* Define to 1 if you have the `setenv' function. */ +#undef HAVE_SETENV + +/* Define to 1 if you have the `seteuid' function. */ +#undef HAVE_SETEUID + +/* Define to 1 if you have the `sleep' function. */ +#undef HAVE_SLEEP + +/* Define to 1 if you have the `snprintf' function. */ +#undef HAVE_SNPRINTF + +/* Define 1 if you have Solaris CD-ROM support */ +#undef HAVE_SOLARIS_CDROM + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDARG_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDBOOL_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDIO_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the `strndup' function. */ +#undef HAVE_STRNDUP + +/* Define this if you have struct timespec */ +#undef HAVE_STRUCT_TIMESPEC + +/* Define to 1 if `tm_zone' is a member of `struct tm'. */ +#undef HAVE_STRUCT_TM_TM_ZONE + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_CDIO_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_PARAM_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TIMEB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TIME_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_UTSNAME_H + +/* Define this defines S_ISLNK() */ +#undef HAVE_S_ISLNK + +/* Define this defines S_ISSOCK() */ +#undef HAVE_S_ISSOCK + +/* Define 1 if timegm is available */ +#undef HAVE_TIMEGM + +/* Define if you have an extern long timenzone variable. */ +#undef HAVE_TIMEZONE_VAR + +/* Define if struct tm has the tm_gmtoff member. */ +#undef HAVE_TM_GMTOFF + +/* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use + `HAVE_STRUCT_TM_TM_ZONE' instead. */ +#undef HAVE_TM_ZONE + +/* Define if time.h defines extern extern char *tzname[2] variable */ +#undef HAVE_TZNAME + +/* Define to 1 if you have the `tzset' function. */ +#undef HAVE_TZSET + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to 1 if you have the `unsetenv' function. */ +#undef HAVE_UNSETENV + +/* Define to 1 if you have the `usleep' function. */ +#undef HAVE_USLEEP + +/* Define this if you have libvcdinfo installed */ +#undef HAVE_VCDINFO + +/* Define to 1 if you have the `vsnprintf' function. */ +#undef HAVE_VSNPRINTF + +/* Define 1 if you have MinGW CD-ROM support */ +#undef HAVE_WIN32_CDROM + +/* Define to 1 if you have the header file. */ +#undef HAVE_WINDOWS_H + +/* Define to 1 if you have the `_stati64' function. */ +#undef HAVE__STATI64 + +/* Define as const if the declaration of iconv() needs const. */ +#undef ICONV_CONST + +/* Is set when libcdio's config.h has been included. Applications wishing to + sue their own config.h values (such as set by the application's configure + script can define this before including any of libcdio's headers. */ +#undef LIBCDIO_CONFIG_H + +/* Full path to libcdio top_sourcedir. */ +#undef LIBCDIO_SOURCE_PATH + +/* Define to the sub-directory where libtool stores uninstalled libraries. */ +#undef LT_OBJDIR + +/* Define 1 if you are compiling using MinGW */ +#undef MINGW32 + +/* Define this if mingw-w64 headers are used */ +#undef MINGW_W64_HEADERS + +/* Define 1 if you need timezone defined to get timzone defined as a variable. + In cygwin it is a function too */ +#undef NEED_TIMEZONEVAR + +/* Name of package */ +#undef PACKAGE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Define to 1 if your declares `struct tm'. */ +#undef TM_IN_SYS_TIME + +/* Enable extensions on AIX 3, Interix. */ +#ifndef _ALL_SOURCE +# undef _ALL_SOURCE +#endif +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# undef _GNU_SOURCE +#endif +/* Enable threading extensions on Solaris. */ +#ifndef _POSIX_PTHREAD_SEMANTICS +# undef _POSIX_PTHREAD_SEMANTICS +#endif +/* Enable extensions on HP NonStop. */ +#ifndef _TANDEM_SOURCE +# undef _TANDEM_SOURCE +#endif +/* Enable general extensions on Solaris. */ +#ifndef __EXTENSIONS__ +# undef __EXTENSIONS__ +#endif + + +/* Version number of package */ +#undef VERSION + +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +# undef WORDS_BIGENDIAN +# endif +#endif + +/* Enable large inode numbers on Mac OS X 10.5. */ +#ifndef _DARWIN_USE_64_BIT_INODE +# define _DARWIN_USE_64_BIT_INODE 1 +#endif + +/* Number of bits in a file offset, on hosts where this is settable. */ +#undef _FILE_OFFSET_BITS + +/* Define for large files, on AIX-style hosts. */ +#undef _LARGE_FILES + +/* Define to 1 if on MINIX. */ +#undef _MINIX + +/* Define to 2 if the system does not provide POSIX.1 features except with + this defined. */ +#undef _POSIX_1_SOURCE + +/* Define to 1 if you need to in order for `stat' and other things to work. */ +#undef _POSIX_SOURCE + +/* Define to empty if `const' does not conform to ANSI C. */ +#undef const + +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +#undef inline +#endif diff --git a/config.rpath b/config.rpath new file mode 100755 index 0000000..c547c68 --- /dev/null +++ b/config.rpath @@ -0,0 +1,666 @@ +#! /bin/sh +# Output a system dependent set of variables, describing how to set the +# run time search path of shared libraries in an executable. +# +# Copyright 1996-2007 Free Software Foundation, Inc. +# Taken from GNU libtool, 2001 +# Originally by Gordon Matzigkeit , 1996 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. +# +# The first argument passed to this file is the canonical host specification, +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld +# should be set by the caller. +# +# The set of defined variables is at the end of this script. + +# Known limitations: +# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer +# than 256 bytes, otherwise the compiler driver will dump core. The only +# known workaround is to choose shorter directory names for the build +# directory and/or the installation directory. + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a +shrext=.so + +host="$1" +host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + +# Code taken from libtool.m4's _LT_CC_BASENAME. + +for cc_temp in $CC""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` + +# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. + +wl= +if test "$GCC" = yes; then + wl='-Wl,' +else + case "$host_os" in + aix*) + wl='-Wl,' + ;; + darwin*) + case $cc_basename in + xlc*) + wl='-Wl,' + ;; + esac + ;; + mingw* | cygwin* | pw32* | os2*) + ;; + hpux9* | hpux10* | hpux11*) + wl='-Wl,' + ;; + irix5* | irix6* | nonstopux*) + wl='-Wl,' + ;; + newsos6) + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + icc* | ecc*) + wl='-Wl,' + ;; + pgcc | pgf77 | pgf90) + wl='-Wl,' + ;; + ccc*) + wl='-Wl,' + ;; + como) + wl='-lopt=' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + wl='-Wl,' + ;; + esac + ;; + esac + ;; + osf3* | osf4* | osf5*) + wl='-Wl,' + ;; + rdos*) + ;; + solaris*) + wl='-Wl,' + ;; + sunos4*) + wl='-Qoption ld ' + ;; + sysv4 | sysv4.2uw2* | sysv4.3*) + wl='-Wl,' + ;; + sysv4*MP*) + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + wl='-Wl,' + ;; + unicos*) + wl='-Wl,' + ;; + uts4*) + ;; + esac +fi + +# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. + +hardcode_libdir_flag_spec= +hardcode_libdir_separator= +hardcode_direct=no +hardcode_minus_L=no + +case "$host_os" in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; +esac + +ld_shlibs=yes +if test "$with_gnu_ld" = yes; then + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + # Unlike libtool, we use -rpath here, not --rpath, since the documented + # option of GNU ld is called -rpath, not --rpath. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + case "$host_os" in + aix3* | aix4* | aix5*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + fi + ;; + amigaos*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we cannot use + # them. + ld_shlibs=no + ;; + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + cygwin* | mingw* | pw32*) + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + interix[3-9]*) + hardcode_direct=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + gnu* | linux* | k*bsd*-gnu) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + netbsd*) + ;; + solaris*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + ;; + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' + else + ld_shlibs=no + fi + ;; + esac + ;; + sunos4*) + hardcode_direct=yes + ;; + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + : + else + ld_shlibs=no + fi + ;; + esac + if test "$ld_shlibs" = no; then + hardcode_libdir_flag_spec= + fi +else + case "$host_os" in + aix3*) + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + else + aix_use_runtimelinking=no + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix5*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + fi + hardcode_direct=yes + hardcode_libdir_separator=':' + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + fi + # Begin _LT_AC_SYS_LIBPATH_AIX. + echo 'int main () { return 0; }' > conftest.c + ${CC} ${LDFLAGS} conftest.c -o conftest + aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` + if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` + fi + if test -z "$aix_libpath"; then + aix_libpath="/usr/lib:/lib" + fi + rm -f conftest.c conftest + # End _LT_AC_SYS_LIBPATH_AIX. + if test "$aix_use_runtimelinking" = yes; then + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + else + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + fi + fi + ;; + amigaos*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # see comment about different semantics on the GNU ld section + ld_shlibs=no + ;; + bsdi[45]*) + ;; + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + libext=lib + ;; + darwin* | rhapsody*) + hardcode_direct=no + if test "$GCC" = yes ; then + : + else + case $cc_basename in + xlc*) + ;; + *) + ld_shlibs=no + ;; + esac + fi + ;; + dgux*) + hardcode_libdir_flag_spec='-L$libdir' + ;; + freebsd1*) + ld_shlibs=no + ;; + freebsd2.2*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + freebsd2*) + hardcode_direct=yes + hardcode_minus_L=yes + ;; + freebsd* | dragonfly*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + hpux9*) + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + hpux10*) + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + hpux11*) + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + ;; + *) + hardcode_direct=yes + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + irix5* | irix6* | nonstopux*) + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + netbsd*) + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + ;; + newsos6) + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + else + case "$host_os" in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + osf3*) + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + osf4* | osf5*) + if test "$GCC" = yes; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + # Both cc and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + ;; + solaris*) + hardcode_libdir_flag_spec='-R$libdir' + ;; + sunos4*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + ;; + sysv4) + case $host_vendor in + sni) + hardcode_direct=yes # is this really true??? + ;; + siemens) + hardcode_direct=no + ;; + motorola) + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + ;; + sysv4.3*) + ;; + sysv4*MP*) + if test -d /usr/nec; then + ld_shlibs=yes + fi + ;; + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + ;; + sysv5* | sco3.2v5* | sco5v6*) + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + hardcode_libdir_separator=':' + ;; + uts4*) + hardcode_libdir_flag_spec='-L$libdir' + ;; + *) + ld_shlibs=no + ;; + esac +fi + +# Check dynamic linker characteristics +# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. +# Unlike libtool.m4, here we don't care about _all_ names of the library, but +# only about the one the linker finds when passed -lNAME. This is the last +# element of library_names_spec in libtool.m4, or possibly two of them if the +# linker has special search rules. +library_names_spec= # the last element of library_names_spec in libtool.m4 +libname_spec='lib$name' +case "$host_os" in + aix3*) + library_names_spec='$libname.a' + ;; + aix4* | aix5*) + library_names_spec='$libname$shrext' + ;; + amigaos*) + library_names_spec='$libname.a' + ;; + beos*) + library_names_spec='$libname$shrext' + ;; + bsdi[45]*) + library_names_spec='$libname$shrext' + ;; + cygwin* | mingw* | pw32*) + shrext=.dll + library_names_spec='$libname.dll.a $libname.lib' + ;; + darwin* | rhapsody*) + shrext=.dylib + library_names_spec='$libname$shrext' + ;; + dgux*) + library_names_spec='$libname$shrext' + ;; + freebsd1*) + ;; + freebsd* | dragonfly*) + case "$host_os" in + freebsd[123]*) + library_names_spec='$libname$shrext$versuffix' ;; + *) + library_names_spec='$libname$shrext' ;; + esac + ;; + gnu*) + library_names_spec='$libname$shrext' + ;; + hpux9* | hpux10* | hpux11*) + case $host_cpu in + ia64*) + shrext=.so + ;; + hppa*64*) + shrext=.sl + ;; + *) + shrext=.sl + ;; + esac + library_names_spec='$libname$shrext' + ;; + interix[3-9]*) + library_names_spec='$libname$shrext' + ;; + irix5* | irix6* | nonstopux*) + library_names_spec='$libname$shrext' + case "$host_os" in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; + *) libsuff= shlibsuff= ;; + esac + ;; + esac + ;; + linux*oldld* | linux*aout* | linux*coff*) + ;; + linux* | k*bsd*-gnu) + library_names_spec='$libname$shrext' + ;; + knetbsd*-gnu) + library_names_spec='$libname$shrext' + ;; + netbsd*) + library_names_spec='$libname$shrext' + ;; + newsos6) + library_names_spec='$libname$shrext' + ;; + nto-qnx*) + library_names_spec='$libname$shrext' + ;; + openbsd*) + library_names_spec='$libname$shrext$versuffix' + ;; + os2*) + libname_spec='$name' + shrext=.dll + library_names_spec='$libname.a' + ;; + osf3* | osf4* | osf5*) + library_names_spec='$libname$shrext' + ;; + rdos*) + ;; + solaris*) + library_names_spec='$libname$shrext' + ;; + sunos4*) + library_names_spec='$libname$shrext$versuffix' + ;; + sysv4 | sysv4.3*) + library_names_spec='$libname$shrext' + ;; + sysv4*MP*) + library_names_spec='$libname$shrext' + ;; + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + library_names_spec='$libname$shrext' + ;; + uts4*) + library_names_spec='$libname$shrext' + ;; +esac + +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' +escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` +shlibext=`echo "$shrext" | sed -e 's,^\.,,'` +escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` +escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` +escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` + +LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). + + +# Please send patches to . +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright 1992-2016 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo $1 + exit ;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ + linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ + knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ + kopensolaris*-gnu* | cloudabi*-eabi* | \ + storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + android-linux) + os=-linux-android + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple | -axis | -knuth | -cray | -microblaze*) + os= + basic_machine=$1 + ;; + -bluegene*) + os=-cnk + ;; + -sim | -cisco | -oki | -wec | -winbond) + os= + basic_machine=$1 + ;; + -scout) + ;; + -wrs) + os=-vxworks + basic_machine=$1 + ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5) + os=-sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -udk*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*178) + os=-lynxos178 + ;; + -lynx*5) + os=-lynxos5 + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; + -mint | -mint[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + 1750a | 580 \ + | a29k \ + | aarch64 | aarch64_be \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ + | arc | arceb \ + | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ + | avr | avr32 \ + | ba \ + | be32 | be64 \ + | bfin \ + | c4x | c8051 | clipper \ + | d10v | d30v | dlx | dsp16xx \ + | e2k | epiphany \ + | fido | fr30 | frv | ft32 \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | hexagon \ + | i370 | i860 | i960 | ia64 \ + | ip2k | iq2000 \ + | k1om \ + | le32 | le64 \ + | lm32 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64octeon | mips64octeonel \ + | mips64orion | mips64orionel \ + | mips64r5900 | mips64r5900el \ + | mips64vr | mips64vrel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa32r6 | mipsisa32r6el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64r6 | mipsisa64r6el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipsr5900 | mipsr5900el \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | moxie \ + | mt \ + | msp430 \ + | nds32 | nds32le | nds32be \ + | nios | nios2 | nios2eb | nios2el \ + | ns16k | ns32k \ + | open8 | or1k | or1knd | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle \ + | pru \ + | pyramid \ + | riscv32 | riscv64 \ + | rl78 | rx \ + | score \ + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu \ + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ + | ubicom32 \ + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ + | visium \ + | we32k \ + | x86 | xc16x | xstormy16 | xtensa \ + | z8k | z80) + basic_machine=$basic_machine-unknown + ;; + c54x) + basic_machine=tic54x-unknown + ;; + c55x) + basic_machine=tic55x-unknown + ;; + c6x) + basic_machine=tic6x-unknown + ;; + leon|leon[3-9]) + basic_machine=sparc-$basic_machine + ;; + m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; + ms1) + basic_machine=mt-unknown + ;; + + strongarm | thumb | xscale) + basic_machine=arm-unknown + ;; + xgate) + basic_machine=$basic_machine-unknown + os=-none + ;; + xscaleeb) + basic_machine=armeb-unknown + ;; + + xscaleel) + basic_machine=armel-unknown + ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i*86 | x86_64) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + 580-* \ + | a29k-* \ + | aarch64-* | aarch64_be-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ + | avr-* | avr32-* \ + | ba-* \ + | be32-* | be64-* \ + | bfin-* | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* \ + | c8051-* | clipper-* | craynv-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | e2k-* | elxsi-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | hexagon-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* | iq2000-* \ + | k1om-* \ + | le32-* | le64-* \ + | lm32-* \ + | m32c-* | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ + | microblaze-* | microblazeel-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64octeon-* | mips64octeonel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64r5900-* | mips64r5900el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa32r6-* | mipsisa32r6el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64r6-* | mipsisa64r6el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipsr5900-* | mipsr5900el-* \ + | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | mt-* \ + | msp430-* \ + | nds32-* | nds32le-* | nds32be-* \ + | nios-* | nios2-* | nios2eb-* | nios2el-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | open8-* \ + | or1k*-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ + | pru-* \ + | pyramid-* \ + | riscv32-* | riscv64-* \ + | rl78-* | romp-* | rs6000-* | rx-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ + | tahoe-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tile*-* \ + | tron-* \ + | ubicom32-* \ + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ + | vax-* \ + | visium-* \ + | we32k-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* \ + | xstormy16-* | xtensa*-* \ + | ymp-* \ + | z8k-* | z80-*) + ;; + # Recognize the basic CPU types without company name, with glob match. + xtensa*) + basic_machine=$basic_machine-unknown + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 386bsd) + basic_machine=i386-unknown + os=-bsd + ;; + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + a29khif) + basic_machine=a29k-amd + os=-udi + ;; + abacus) + basic_machine=abacus-unknown + ;; + adobe68k) + basic_machine=m68010-adobe + os=-scout + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amd64) + basic_machine=x86_64-pc + ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-unknown + ;; + amigaos | amigados) + basic_machine=m68k-unknown + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + os=-bsd + ;; + aros) + basic_machine=i386-pc + os=-aros + ;; + asmjs) + basic_machine=asmjs-unknown + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + blackfin) + basic_machine=bfin-unknown + os=-linux + ;; + blackfin-*) + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + bluegene*) + basic_machine=powerpc-ibm + os=-cnk + ;; + c54x-*) + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c55x-*) + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c6x-*) + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + cegcc) + basic_machine=arm-unknown + os=-cegcc + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | j90) + basic_machine=j90-cray + os=-unicos + ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16 | cr16-*) + basic_machine=cr16-unknown + os=-elf + ;; + crds | unos) + basic_machine=m68k-crds + ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + dicos) + basic_machine=i686-pc + os=-dicos + ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + e500v[12]) + basic_machine=powerpc-unknown + os=$os"spe" + ;; + e500v[12]-*) + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + os=$os"spe" + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + os=-ose + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + go32) + basic_machine=i386-pc + os=-go32 + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + h8300xray) + basic_machine=h8300-hitachi + os=-xray + ;; + h8500hms) + basic_machine=h8500-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + basic_machine=hppa1.1-hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + hppaosf) + basic_machine=hppa1.1-hp + os=-osf + ;; + hppro) + basic_machine=hppa1.1-hp + os=-proelf + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + ;; + i*86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i*86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i*86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i*86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + i386mach) + basic_machine=i386-mach + os=-mach + ;; + i386-vsta | vsta) + basic_machine=i386-unknown + os=-vsta + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + leon-*|leon[3-9]-*) + basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` + ;; + m68knommu) + basic_machine=m68k-unknown + os=-linux + ;; + m68knommu-*) + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + microblaze*) + basic_machine=microblaze-xilinx + ;; + mingw64) + basic_machine=x86_64-pc + os=-mingw64 + ;; + mingw32) + basic_machine=i686-pc + os=-mingw32 + ;; + mingw32ce) + basic_machine=arm-unknown + os=-mingw32ce + ;; + miniframe) + basic_machine=m68000-convergent + ;; + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + monitor) + basic_machine=m68k-rom68k + os=-coff + ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; + moxiebox) + basic_machine=moxie-unknown + os=-moxiebox + ;; + msdos) + basic_machine=i386-pc + os=-msdos + ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; + msys) + basic_machine=i686-pc + os=-msys + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + nacl) + basic_machine=le32-unknown + os=-nacl + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + netbsd386) + basic_machine=i386-unknown + os=-netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + os=-linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + necv70) + basic_machine=v70-nec + os=-sysv + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + mon960) + basic_machine=i960-intel + os=-mon960 + ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; + np1) + basic_machine=np1-gould + ;; + neo-tandem) + basic_machine=neo-tandem + ;; + nse-tandem) + basic_machine=nse-tandem + ;; + nsr-tandem) + basic_machine=nsr-tandem + ;; + op50n-* | op60c-*) + basic_machine=hppa1.1-oki + os=-proelf + ;; + openrisc | openrisc-*) + basic_machine=or32-unknown + ;; + os400) + basic_machine=powerpc-ibm + os=-os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + os=-ose + ;; + os68k) + basic_machine=m68k-none + os=-os68k + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + parisc) + basic_machine=hppa-unknown + os=-linux + ;; + parisc-*) + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium | p5 | k5 | k6 | nexgen | viac3) + basic_machine=i586-pc + ;; + pentiumpro | p6 | 6x86 | athlon | athlon_*) + basic_machine=i686-pc + ;; + pentiumii | pentium2 | pentiumiii | pentium3) + basic_machine=i686-pc + ;; + pentium4) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium4-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=power-ibm + ;; + ppc | ppcbe) basic_machine=powerpc-unknown + ;; + ppc-* | ppcbe-*) + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + pw32) + basic_machine=i586-unknown + os=-pw32 + ;; + rdos | rdos64) + basic_machine=x86_64-pc + os=-rdos + ;; + rdos32) + basic_machine=i386-pc + os=-rdos + ;; + rom68k) + basic_machine=m68k-rom68k + os=-coff + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; + sa29200) + basic_machine=a29k-amd + os=-udi + ;; + sb1) + basic_machine=mipsisa64sb1-unknown + ;; + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; + sei) + basic_machine=mips-sei + os=-seiux + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sh5el) + basic_machine=sh5le-unknown + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparclite-wrs | simso-wrs) + basic_machine=sparclite-wrs + os=-vxworks + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + st2000) + basic_machine=m68k-tandem + ;; + stratus) + basic_machine=i860-stratus + os=-sysv4 + ;; + strongarm-* | thumb-*) + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + sv1) + basic_machine=sv1-cray + os=-unicos + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + t3e) + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray + os=-unicos + ;; + tile*) + basic_machine=$basic_machine-unknown + os=-linux-gnu + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + tpf) + basic_machine=s390x-ibm + os=-tpf + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + os=-none + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + w65*) + basic_machine=w65-wdc + os=-none + ;; + w89k-*) + basic_machine=hppa1.1-winbond + os=-proelf + ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + xscale-* | xscalee[bl]-*) + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` + ;; + ymp) + basic_machine=ymp-cray + os=-unicos + ;; + z8k-*-coff) + basic_machine=z8k-unknown + os=-sim + ;; + z80-*-coff) + basic_machine=z80-unknown + os=-sim + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + w89k) + basic_machine=hppa1.1-winbond + ;; + op50n) + basic_machine=hppa1.1-oki + ;; + op60c) + basic_machine=hppa1.1-oki + ;; + romp) + basic_machine=romp-ibm + ;; + mmix) + basic_machine=mmix-knuth + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp10) + # there are many clones, so DEC is not a safe bet + basic_machine=pdp10-unknown + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + mac | mpw | mac-mpw) + basic_machine=m68k-apple + ;; + pmac | pmac-mpw) + basic_machine=powerpc-apple + ;; + *-unknown) + # Make sure to match an already-canonicalized machine name. + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -auroraux) + os=-auroraux + ;; + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ + | -sym* | -kopensolaris* | -plan9* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* | -aros* | -cloudabi* | -sortix* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* | -cegcc* \ + | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ + | -linux-newlib* | -linux-musl* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ + | -onefs* | -tirtos* | -phoenix* | -fuchsia*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) + case $basic_machine in + x86-* | i*86-*) + ;; + *) + os=-nto$os + ;; + esac + ;; + -nto-qnx*) + ;; + -nto*) + os=`echo $os | sed -e 's|nto|nto-qnx|'` + ;; + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) + ;; + -mac*) + os=`echo $os | sed -e 's|mac|macos|'` + ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -opened*) + os=-openedition + ;; + -os400*) + os=-os400 + ;; + -wince*) + os=-wince + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -atheos*) + os=-atheos + ;; + -syllable*) + os=-syllable + ;; + -386bsd) + os=-bsd + ;; + -ctix* | -uts*) + os=-sysv + ;; + -nova*) + os=-rtmk-nova + ;; + -ns2 ) + os=-nextstep2 + ;; + -nsk*) + os=-nsk + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -tpf*) + os=-tpf + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -ose*) + os=-ose + ;; + -es1800*) + os=-ose + ;; + -xenix) + os=-xenix + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -aros*) + os=-aros + ;; + -zvmoe) + os=-zvmoe + ;; + -dicos*) + os=-dicos + ;; + -nacl*) + ;; + -ios) + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + score-*) + os=-elf + ;; + spu-*) + os=-elf + ;; + *-acorn) + os=-riscix1.2 + ;; + arm*-rebel) + os=-linux + ;; + arm*-semi) + os=-aout + ;; + c4x-* | tic4x-*) + os=-coff + ;; + c8051-*) + os=-elf + ;; + hexagon-*) + os=-elf + ;; + tic54x-*) + os=-coff + ;; + tic55x-*) + os=-coff + ;; + tic6x-*) + os=-coff + ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + ;; + m68*-cisco) + os=-aout + ;; + mep-*) + os=-elf + ;; + mips*-cisco) + os=-elf + ;; + mips*-*) + os=-elf + ;; + or32-*) + os=-coff + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-be) + os=-beos + ;; + *-haiku) + os=-haiku + ;; + *-ibm) + os=-aix + ;; + *-knuth) + os=-mmixware + ;; + *-wec) + os=-proelf + ;; + *-winbond) + os=-proelf + ;; + *-oki) + os=-proelf + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f30[01]-fujitsu | f700-fujitsu) + os=-uxpv + ;; + *-rom68k) + os=-coff + ;; + *-*bug) + os=-coff + ;; + *-apple) + os=-macos + ;; + *-atari*) + os=-mint + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -cnk*|-aix*) + vendor=ibm + ;; + -beos*) + vendor=be + ;; + -hpux*) + vendor=hp + ;; + -mpeix*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs* | -opened*) + vendor=ibm + ;; + -os400*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -tpf*) + vendor=ibm + ;; + -vxsim* | -vxworks* | -windiss*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + -hms*) + vendor=hitachi + ;; + -mpw* | -macos*) + vendor=apple + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + vendor=atari + ;; + -vos*) + vendor=stratus + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os +exit + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/configure b/configure new file mode 100755 index 0000000..19a77f7 --- /dev/null +++ b/configure @@ -0,0 +1,22865 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.69 for libcdio 2.0.0. +# +# Report bugs to . +# +# +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1 + + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and +$0: https://savannah.gnu.org/bugs/?group=libcdio about your +$0: system, including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + +SHELL=${CONFIG_SHELL-/bin/sh} + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='libcdio' +PACKAGE_TARNAME='libcdio' +PACKAGE_VERSION='2.0.0' +PACKAGE_STRING='libcdio 2.0.0' +PACKAGE_BUGREPORT='https://savannah.gnu.org/bugs/?group=libcdio' +PACKAGE_URL='' + +ac_unique_file="src/cd-info.c" +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIBOBJS +VCDINFO_LIBS +VCDINFO_CFLAGS +CDDA_PLAYER_LIBS +BUILD_CDDA_PLAYER_FALSE +BUILD_CDDA_PLAYER_TRUE +CDDB_LIBS +CDDB_CFLAGS +PKG_CONFIG +ENABLE_ROCK_FALSE +ENABLE_ROCK_TRUE +MINGW32 +HAVE_ROCK +HAVE_JOLIET +LTLIBICONV +LIBICONV +LIBCDIO_SOURCE_PATH +HAVE_OS2_CDROM +HAVE_WIN32_CDROM +HAVE_SOLARIS_CDROM +HAVE_LINUX_CDROM +HAVE_FREEBSD_CDROM +HAVE_DARWIN_CDROM +HAVE_BSDI_CDROM +LINUX_CDROM_TIMEOUT +LT_NO_UNDEFINED +LIBISO9660_CFLAGS +LIBCDIO_CFLAGS +DARWIN_PKG_LIB_HACK +native_abs_top_srcdir +SED_EXTENDED_RE_FLAG +LIBUDF_LIBS +LIBISO9660_LIBS +LIBCDIO_DEPS +LIBCDIOPP_LIBS +LIBCDIO_LIBS +LIBISO9660PP_LIBS +LIBCDIO_CDDA_LIBS +DISABLE_CPP_FALSE +DISABLE_CPP_TRUE +BUILD_VERSIONED_LIBS_FALSE +BUILD_VERSIONED_LIBS_TRUE +BUILD_CDIOTEST_FALSE +BUILD_CDIOTEST_TRUE +BUILD_CDINFO_LINUX_FALSE +BUILD_CDINFO_LINUX_TRUE +BUILD_ISO_READ_FALSE +BUILD_ISO_READ_TRUE +BUILD_ISO_INFO_FALSE +BUILD_ISO_INFO_TRUE +BUILD_CD_READ_FALSE +BUILD_CD_READ_TRUE +BUILD_CDINFO_FALSE +BUILD_CDINFO_TRUE +BUILD_CD_DRIVE_FALSE +BUILD_CD_DRIVE_TRUE +CYGWIN_FALSE +CYGWIN_TRUE +COS_LIB +CXXCPP +LT_SYS_LIBRARY_PATH +OTOOL64 +OTOOL +LIPO +NMEDIT +DSYMUTIL +MANIFEST_TOOL +RANLIB +ac_ct_AR +AR +LN_S +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +SED +LIBTOOL +OBJDUMP +DLLTOOL +AS +TYPESIZES +UCDROM_H +SBPCD_H +RM +DIFF_OPTS +DIFF +HAVE_PERL_FALSE +HAVE_PERL_TRUE +PERL +EGREP +GREP +CPP +ISO_MAKING_COMMAND +am__fastdepCXX_FALSE +am__fastdepCXX_TRUE +CXXDEPMODE +ac_ct_CXX +CXXFLAGS +CXX +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +am__nodep +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +BUILD_EXAMPLES_FALSE +BUILD_EXAMPLES_TRUE +ENABLE_CPP_FALSE +ENABLE_CPP_TRUE +ENABLE_CXX_BINDINGS_FALSE +ENABLE_CXX_BINDINGS_TRUE +MAINT +MAINTAINER_MODE_FALSE +MAINTAINER_MODE_TRUE +HELP2MAN +LIBCDIO_VERSION_NUM +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +AM_BACKSLASH +AM_DEFAULT_VERBOSITY +AM_DEFAULT_V +AM_V +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +runstatedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_silent_rules +enable_maintainer_mode +with_cd_drive +with_cd_info +with_cdda_player +with_cd_read +with_iso_info +with_iso_read +with_versioned_libs +enable_cxx +enable_cpp_progs +enable_example_progs +enable_dependency_tracking +enable_largefile +enable_shared +enable_static +with_pic +enable_fast_install +with_aix_soname +with_gnu_ld +with_sysroot +enable_libtool_lock +enable_rpath +with_libiconv_prefix +enable_joliet +enable_rock +enable_cddb +enable_vcd_info +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +CXX +CXXFLAGS +CCC +CPP +LT_SYS_LIBRARY_PATH +CXXCPP +PKG_CONFIG +CDDB_CFLAGS +CDDB_LIBS +VCDINFO_CFLAGS +VCDINFO_LIBS' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +runstatedir='${localstatedir}/run' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -runstatedir | --runstatedir | --runstatedi | --runstated \ + | --runstate | --runstat | --runsta | --runst | --runs \ + | --run | --ru | --r) + ac_prev=runstatedir ;; + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ + | --run=* | --ru=* | --r=*) + runstatedir=$ac_optarg ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir runstatedir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures libcdio 2.0.0 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/libcdio] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of libcdio 2.0.0:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-silent-rules less verbose build output (undo: "make V=1") + --disable-silent-rules verbose build output (undo: "make V=0") + --enable-maintainer-mode + enable make rules and dependencies not useful (and + sometimes confusing) to the casual installer + --disable-cxx Disable C++ bindings (default enabled) + --enable-cpp-progs make C++ example programs (default enabled) + --disable-example-progs Don't build libcdio sample programs + --enable-dependency-tracking + do not reject slow dependency extractors + --disable-dependency-tracking + speeds up one-time build + --disable-largefile omit support for large files + --enable-shared[=PKGS] build shared libraries [default=yes] + --enable-static[=PKGS] build static libraries [default=yes] + --enable-fast-install[=PKGS] + optimize for fast installation [default=yes] + --disable-libtool-lock avoid locking (might break parallel builds) + --disable-rpath do not hardcode runtime library paths + --disable-joliet don't include Joliet extension support (default + enabled) + --enable-rock include Rock-Ridge extension support (default + enabled) + --enable-cddb include CDDB lookups in cd_info (default enabled) + --enable-vcd-info include Video CD Info from libvcd + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --without-cd-drive don't build program cd-drive (default with) + --without-cd-info don't build program cd-info (default with) + --without-cdda-player don't build program cdda-player (default with) + --without-cd-read don't build program cd-read (default with) + --without-iso-info don't build program iso-info (default with) + --without-iso-read don't build program iso-read (default with) + --without-versioned-libs + build versioned library symbols (default enabled if + you have GNU ld) + --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use + both] + --with-aix-soname=aix|svr4|both + shared library versioning (aka "SONAME") variant to + provide on AIX, [default=aix]. + --with-gnu-ld assume the C compiler uses GNU ld [default=no] + --with-sysroot[=DIR] Search for dependent libraries within DIR (or the + compiler's sysroot if not specified). + --with-gnu-ld assume the C compiler uses GNU ld default=no + --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib + --without-libiconv-prefix don't search for libiconv in includedir and libdir + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + CXX C++ compiler command + CXXFLAGS C++ compiler flags + CPP C preprocessor + LT_SYS_LIBRARY_PATH + User-defined run-time library search path. + CXXCPP C++ preprocessor + PKG_CONFIG path to pkg-config utility + CDDB_CFLAGS C compiler flags for CDDB, overriding pkg-config + CDDB_LIBS linker flags for CDDB, overriding pkg-config + VCDINFO_CFLAGS + C compiler flags for VCDINFO, overriding pkg-config + VCDINFO_LIBS + linker flags for VCDINFO, overriding pkg-config + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +libcdio configure 2.0.0 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_cxx_try_compile LINENO +# ---------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## ----------------------------------------------------------- ## +## Report this to https://savannah.gnu.org/bugs/?group=libcdio ## +## ----------------------------------------------------------- ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_mongrel + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_compile + +# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES +# ---------------------------------------------------- +# Tries to find if the field MEMBER exists in type AGGR, after including +# INCLUDES, setting cache variable VAR accordingly. +ac_fn_c_check_member () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 +$as_echo_n "checking for $2.$3... " >&6; } +if eval \${$4+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$5 +int +main () +{ +static $2 ac_aggr; +if (ac_aggr.$3) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$4=yes" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$5 +int +main () +{ +static $2 ac_aggr; +if (sizeof ac_aggr.$3) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$4=yes" +else + eval "$4=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$4 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_member + +# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES +# --------------------------------------------- +# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR +# accordingly. +ac_fn_c_check_decl () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + as_decl_name=`echo $2|sed 's/ *(.*//'` + as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 +$as_echo_n "checking whether $as_decl_name is declared... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +#ifndef $as_decl_name +#ifdef __cplusplus + (void) $as_decl_use; +#else + (void) $as_decl_name; +#endif +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_decl + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func + +# ac_fn_cxx_try_cpp LINENO +# ------------------------ +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_cpp + +# ac_fn_cxx_try_link LINENO +# ------------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_link +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by libcdio $as_me 2.0.0, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +am__api_version='1.15' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken + alias in your environment" "$LINENO" 5 + fi + if test "$2" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! +fi + +rm -f conftest.file + +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# Expand $ac_aux_dir to an absolute path. +am_aux_dir=`cd "$ac_aux_dir" && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --is-lightweight"; then + am_missing_run="$MISSING " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in # ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=1;; +esac +am_make=${MAKE-make} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; } +if ${am_cv_make_support_nested_variables+:} false; then : + $as_echo_n "(cached) " >&6 +else + if $as_echo 'TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +$as_echo "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables = yes; then + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AM_BACKSLASH='\' + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='libcdio' + VERSION='2.0.0' + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +mkdir_p='$(MKDIR_P)' + +# We need awk for the "check" target (and possibly the TAP driver). The +# system "awk" is bad on some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + + +# We'll loop over all known methods to create a tar archive until one works. +_am_tools='gnutar pax cpio none' + +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + + +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes. So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else + cat >&2 <<'END' +Oops! + +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present. This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: + +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message. This +can help us improve future automake versions. + +END + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then + echo 'Configuration will proceed anyway, since you have set the' >&2 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 + echo >&2 + else + cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. + +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: . + +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. + +END + as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 + fi +fi + + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +ac_config_headers="$ac_config_headers config.h" + + + +# Enable silent build rules by default (Automake v1.11 or later). +# Disable by either passing --disable-silent-rules to configure or passing V=1 to make +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in # ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=0;; +esac +am_make=${MAKE-make} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; } +if ${am_cv_make_support_nested_variables+:} false; then : + $as_echo_n "(cached) " >&6 +else + if $as_echo 'TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +$as_echo "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables = yes; then + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AM_BACKSLASH='\' + + +# FIXME: write a m4 macro to convert x.y.zjunk to x*10000 + y*100 + z +# LIBCDIO_VERSION_NUM=`echo RELEASE_NUM | cut -d . -f 1 | tr -d a-z` +LIBCDIO_VERSION_NUM=20000 + + + +HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"} + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } + # Check whether --enable-maintainer-mode was given. +if test "${enable_maintainer_mode+set}" = set; then : + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval +else + USE_MAINTAINER_MODE=no +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 +$as_echo "$USE_MAINTAINER_MODE" >&6; } + if test $USE_MAINTAINER_MODE = yes; then + MAINTAINER_MODE_TRUE= + MAINTAINER_MODE_FALSE='#' +else + MAINTAINER_MODE_TRUE='#' + MAINTAINER_MODE_FALSE= +fi + + MAINT=$MAINTAINER_MODE_TRUE + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken + alias in your environment" "$LINENO" 5 + fi + if test "$2" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! +fi + +rm -f conftest.file + + + +# Check whether --with-cd-drive was given. +if test "${with_cd_drive+set}" = set; then : + withval=$with_cd_drive; enable_cd_drive="${withval}" +else + enable_cd_drive=yes +fi + + + +# Check whether --with-cd-info was given. +if test "${with_cd_info+set}" = set; then : + withval=$with_cd_info; enable_cd_info="${withval}" +else + enable_cd_info=yes +fi + + + +# Check whether --with-cdda-player was given. +if test "${with_cdda_player+set}" = set; then : + withval=$with_cdda_player; enable_cdda_player="${withval}" +else + enable_cdda_player=yes +fi + + + +# Check whether --with-cd-read was given. +if test "${with_cd_read+set}" = set; then : + withval=$with_cd_read; enable_cd_read="${withval}" +else + enable_cd_read=yes +fi + + + +# Check whether --with-iso-info was given. +if test "${with_iso_info+set}" = set; then : + withval=$with_iso_info; enable_iso_info="${withval}" +else + enable_iso_info=yes +fi + + + +# Check whether --with-iso-read was given. +if test "${with_iso_read+set}" = set; then : + withval=$with_iso_read; enable_iso_read="${withval}" +else + enable_iso_read=yes +fi + + + +# Check whether --with-versioned-libs was given. +if test "${with_versioned_libs+set}" = set; then : + withval=$with_versioned_libs; enable_versioned_libs="${withval}" +else + enable_versioned_libs=yes +fi + + +# Check whether --enable-cxx was given. +if test "${enable_cxx+set}" = set; then : + enableval=$enable_cxx; +fi + + if test "x$enable_cxx" != "xno"; then + ENABLE_CXX_BINDINGS_TRUE= + ENABLE_CXX_BINDINGS_FALSE='#' +else + ENABLE_CXX_BINDINGS_TRUE='#' + ENABLE_CXX_BINDINGS_FALSE= +fi + + +# Check whether --enable-cpp-progs was given. +if test "${enable_cpp_progs+set}" = set; then : + enableval=$enable_cpp_progs; +fi + + if test "x$enable_cpp_progs" = "xyes"; then + ENABLE_CPP_TRUE= + ENABLE_CPP_FALSE='#' +else + ENABLE_CPP_TRUE='#' + ENABLE_CPP_FALSE= +fi + + +# Check whether --enable-example-progs was given. +if test "${enable_example_progs+set}" = set; then : + enableval=$enable_example_progs; +fi + + + if test "x$enable_example_progs" != "xno"; then + BUILD_EXAMPLES_TRUE= + BUILD_EXAMPLES_FALSE='#' +else + BUILD_EXAMPLES_TRUE='#' + BUILD_EXAMPLES_FALSE= +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 +$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } +if ${am_cv_prog_cc_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF + # Make sure it works both with $CC and with simple cc. + # Following AC_PROG_CC_C_O, we do the test twice because some + # compilers refuse to overwrite an existing .o file with -o, + # though they will create one. + am_cv_prog_cc_c_o=yes + for am_i in 1 2; do + if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 + ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } \ + && test -f conftest2.$ac_objext; then + : OK + else + am_cv_prog_cc_c_o=no + break + fi + done + rm -f core conftest* + unset am_i +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 +$as_echo "$am_cv_prog_cc_c_o" >&6; } +if test "$am_cv_prog_cc_c_o" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from 'make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +# Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with '-c' and '-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok '-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + + + +if test "x$enable_cxx" != "xno" ; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CXX" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CXX_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with '-c' and '-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok '-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + +for ac_prog in genisoimage mkisofs +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ISO_MAKING_COMMAND+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ISO_MAKING_COMMAND"; then + ac_cv_prog_ISO_MAKING_COMMAND="$ISO_MAKING_COMMAND" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ISO_MAKING_COMMAND="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ISO_MAKING_COMMAND=$ac_cv_prog_ISO_MAKING_COMMAND +if test -n "$ISO_MAKING_COMMAND"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISO_MAKING_COMMAND" >&5 +$as_echo "$ISO_MAKING_COMMAND" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ISO_MAKING_COMMAND" && break +done + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" +if test "x$ac_cv_header_minix_config_h" = xyes; then : + MINIX=yes +else + MINIX= +fi + + + if test "$MINIX" = yes; then + +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h + + +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h + + +$as_echo "#define _MINIX 1" >>confdefs.h + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if ${ac_cv_safe_to_define___extensions__+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# define __EXTENSIONS__ 1 + $ac_includes_default +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_safe_to_define___extensions__=yes +else + ac_cv_safe_to_define___extensions__=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } + test $ac_cv_safe_to_define___extensions__ = yes && + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h + + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h + + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h + + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h + + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h + + + + +cd_drivers='cdrdao, BIN/CUE, NRG' + +WARN_CFLAGS='' +if test "x$GCC" != "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + *** non GNU CC compiler detected. + *** This package has not been tested very well with non GNU compilers + *** you should try to use 'gcc' for compiling this package." >&5 +$as_echo "$as_me: WARNING: + *** non GNU CC compiler detected. + *** This package has not been tested very well with non GNU compilers + *** you should try to use 'gcc' for compiling this package." >&2;} +else + CHECK_CFLAGS=" + -Wall + -Wbad-function-cast + -Wcast-align + -Wchar-subscripts + -Wdeclaration-after-statement + -Wdisabled-optimization + -Wendif-labels + -Winline + -Wmissing-declarations + -Wmissing-prototypes + -Wnested-externs + -Wno-sign-compare + -Wpointer-arith + -Wshadow + -Wstrict-prototypes + -Wundef + -Wunused + -Wwrite-strings +" + for OPT in $CHECK_CFLAGS; do + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $OPT" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $OPT" >&5 +$as_echo_n "checking whether $CC understands $OPT... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + has_option=yes +else + has_option=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS="$SAVE_CFLAGS" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 +$as_echo "$has_option" >&6; } + if test "x$has_option" = "xyes"; then + WARN_CFLAGS="$WARN_CFLAGS $OPT" + fi + unset has_option + unset SAVE_CFLAGS + done +fi +CFLAGS="$CFLAGS $WARN_CFLAGS" + +# We use Perl for documentation and regression tests +# Extract the first word of "perl", so it can be a program name with args. +set dummy perl; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PERL+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PERL in + [\\/]* | ?:[\\/]*) + ac_cv_path_PERL="$PERL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="false" + ;; +esac +fi +PERL=$ac_cv_path_PERL +if test -n "$PERL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 +$as_echo "$PERL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + if test "x$PERL" != "xfalse"; then + HAVE_PERL_TRUE= + HAVE_PERL_FALSE='#' +else + HAVE_PERL_TRUE='#' + HAVE_PERL_FALSE= +fi + + +# We use a diff in regression testing +# Extract the first word of "diff", so it can be a program name with args. +set dummy diff; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_DIFF+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $DIFF in + [\\/]* | ?:[\\/]*) + ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_DIFF" && ac_cv_path_DIFF="no" + ;; +esac +fi +DIFF=$ac_cv_path_DIFF +if test -n "$DIFF"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 +$as_echo "$DIFF" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +DIFF_OPTS= + +if test "x$DIFF" = "xno"; then + # Extract the first word of "cmp", so it can be a program name with args. +set dummy cmp; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_DIFF+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $DIFF in + [\\/]* | ?:[\\/]*) + ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_DIFF" && ac_cv_path_DIFF="no" + ;; +esac +fi +DIFF=$ac_cv_path_DIFF +if test -n "$DIFF"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 +$as_echo "$DIFF" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +else + # Try for GNU diff options. + # MSDOG output uses \r\n rather than \n in tests + for diff_opt in -w --unified ; do + if $DIFF $diff_opt ./configure ./configure > /dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding $diff_opt to diff in regression tests" >&5 +$as_echo "adding $diff_opt to diff in regression tests" >&6; } + DIFF_OPTS="$DIFF_OPTS $diff_opt" + fi + done +fi + + + + +# Check whether --enable-largefile was given. +if test "${enable_largefile+set}" = set; then : + enableval=$enable_largefile; +fi + +if test "$enable_largefile" != no; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 +$as_echo_n "checking for special C compiler options needed for large files... " >&6; } +if ${ac_cv_sys_largefile_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_sys_largefile_CC=no + if test "$GCC" != yes; then + ac_save_CC=$CC + while :; do + # IRIX 6.2 and later do not support large files by default, + # so use the C compiler's -n32 option if that helps. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF + if ac_fn_c_try_compile "$LINENO"; then : + break +fi +rm -f core conftest.err conftest.$ac_objext + CC="$CC -n32" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_largefile_CC=' -n32'; break +fi +rm -f core conftest.err conftest.$ac_objext + break + done + CC=$ac_save_CC + rm -f conftest.$ac_ext + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 +$as_echo "$ac_cv_sys_largefile_CC" >&6; } + if test "$ac_cv_sys_largefile_CC" != no; then + CC=$CC$ac_cv_sys_largefile_CC + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 +$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } +if ${ac_cv_sys_file_offset_bits+:} false; then : + $as_echo_n "(cached) " >&6 +else + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_file_offset_bits=no; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#define _FILE_OFFSET_BITS 64 +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_file_offset_bits=64; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_sys_file_offset_bits=unknown + break +done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 +$as_echo "$ac_cv_sys_file_offset_bits" >&6; } +case $ac_cv_sys_file_offset_bits in #( + no | unknown) ;; + *) +cat >>confdefs.h <<_ACEOF +#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits +_ACEOF +;; +esac +rm -rf conftest* + if test $ac_cv_sys_file_offset_bits = unknown; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 +$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } +if ${ac_cv_sys_large_files+:} false; then : + $as_echo_n "(cached) " >&6 +else + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_large_files=no; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#define _LARGE_FILES 1 +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_large_files=1; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_sys_large_files=unknown + break +done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 +$as_echo "$ac_cv_sys_large_files" >&6; } +case $ac_cv_sys_large_files in #( + no | unknown) ;; + *) +cat >>confdefs.h <<_ACEOF +#define _LARGE_FILES $ac_cv_sys_large_files +_ACEOF +;; +esac +rm -rf conftest* + fi + + +fi + + +if test "x$ac_cv_sys_largefiles" = "xyes"; then + if test "x$ac_cv_sys_file_offset_bits" = "x64"; then + LIBCDIO_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" + else + LIBCDIO_LARGEFILE_FLAGS="-D_LARGE_FILES" + fi + if test "x$ac_cv_sys_largefile_source" != "xno"; then + LIBCDIO_LARGEFILE_FLAGS="$LIBDDIO_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" + fi + CPPFLAGS="$CPPFLAGS $LIBCDIO_LARGEFILE_FLAGS" +fi + + +$as_echo "#define LIBCDIO_CONFIG_H 1" >>confdefs.h + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +for ac_header in alloca.h errno.h fcntl.h glob.h limits.h pwd.h stdbool.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +for ac_header in stdarg.h stdbool.h stdio.h sys/cdio.h sys/param.h \ + sys/time.h sys/timeb.h sys/utsname.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 +$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } +if ${ac_cv_struct_tm+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include + +int +main () +{ +struct tm tm; + int *p = &tm.tm_sec; + return !p; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_struct_tm=time.h +else + ac_cv_struct_tm=sys/time.h +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 +$as_echo "$ac_cv_struct_tm" >&6; } +if test $ac_cv_struct_tm = sys/time.h; then + +$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h + +fi + +ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include +#include <$ac_cv_struct_tm> + +" +if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_TM_TM_ZONE 1 +_ACEOF + + +fi + +if test "$ac_cv_member_struct_tm_tm_zone" = yes; then + +$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h + +else + ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include +" +if test "x$ac_cv_have_decl_tzname" = xyes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_TZNAME $ac_have_decl +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 +$as_echo_n "checking for tzname... " >&6; } +if ${ac_cv_var_tzname+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if !HAVE_DECL_TZNAME +extern char *tzname[]; +#endif + +int +main () +{ +return tzname[0][0]; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_var_tzname=yes +else + ac_cv_var_tzname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 +$as_echo "$ac_cv_var_tzname" >&6; } + if test $ac_cv_var_tzname = yes; then + +$as_echo "#define HAVE_TZNAME 1" >>confdefs.h + + fi +fi + + +## FreeBSD 4 has getopt in unistd.h. So we include that before +## getopt.h +for ac_header in unistd.h getopt.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + + + +## Check compiler-related things + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; } +if ${ac_cv_c_bigendian+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_bigendian=unknown + # See if we're dealing with a universal compiler. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __APPLE_CC__ + not a universal capable compiler + #endif + typedef int dummy; + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + # Check for potential -arch flags. It is not universal unless + # there are at least two -arch flags with different values. + ac_arch= + ac_prev= + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do + if test -n "$ac_prev"; then + case $ac_word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then + ac_arch=$ac_word + else + ac_cv_c_bigendian=universal + break + fi + ;; + esac + ac_prev= + elif test "x$ac_word" = "x-arch"; then + ac_prev=arch + fi + done +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if test $ac_cv_c_bigendian = unknown; then + # See if sys/param.h defines the BYTE_ORDER macro. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ + && LITTLE_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + # It does; now see whether it defined to BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ +#if BYTE_ORDER != BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_bigendian=yes +else + ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + # It does; now see whether it defined to _BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ +#ifndef _BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_bigendian=yes +else + ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # Compile a test program. + if test "$cross_compiling" = yes; then : + # Try to guess by grepping values from an object file. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +short int ascii_mm[] = + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; + short int ascii_ii[] = + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; + int use_ascii (int i) { + return ascii_mm[i] + ascii_ii[i]; + } + short int ebcdic_ii[] = + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; + short int ebcdic_mm[] = + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; + int use_ebcdic (int i) { + return ebcdic_mm[i] + ebcdic_ii[i]; + } + extern int foo; + +int +main () +{ +return use_ascii (foo) == use_ebcdic (foo); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then + ac_cv_c_bigendian=yes + fi + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then + if test "$ac_cv_c_bigendian" = unknown; then + ac_cv_c_bigendian=no + else + # finding both strings is unlikely to happen, but who knows? + ac_cv_c_bigendian=unknown + fi + fi +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + /* Are we little or big endian? From Harbison&Steele. */ + union + { + long int l; + char c[sizeof (long int)]; + } u; + u.l = 1; + return u.c[sizeof (long int) - 1] == 1; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_bigendian=no +else + ac_cv_c_bigendian=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +$as_echo "$ac_cv_c_bigendian" >&6; } + case $ac_cv_c_bigendian in #( + yes) + $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h +;; #( + no) + ;; #( + universal) + +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h + + ;; #( + *) + as_fn_error $? "unknown endianness + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; + esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; } +if ${ac_cv_c_const+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +#ifndef __cplusplus + /* Ultrix mips cc rejects this sort of thing. */ + typedef int charset[2]; + const charset cs = { 0, 0 }; + /* SunOS 4.1.1 cc rejects this. */ + char const *const *pcpcc; + char **ppc; + /* NEC SVR4.0.2 mips cc rejects this. */ + struct point {int x, y;}; + static struct point const zero = {0,0}; + /* AIX XL C 1.02.0.0 rejects this. + It does not let you subtract one const X* pointer from another in + an arm of an if-expression whose if-part is not a constant + expression */ + const char *g = "string"; + pcpcc = &g + (g ? g-g : 0); + /* HPUX 7.0 cc rejects these. */ + ++pcpcc; + ppc = (char**) pcpcc; + pcpcc = (char const *const *) ppc; + { /* SCO 3.2v4 cc rejects this sort of thing. */ + char tx; + char *t = &tx; + char const *s = 0 ? (char *) 0 : (char const *) 0; + + *t++ = 0; + if (s) return 0; + } + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ + int x[] = {25, 17}; + const int *foo = &x[0]; + ++foo; + } + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ + typedef const int *iptr; + iptr p = 0; + ++p; + } + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ + struct s { int j; const int *ap[3]; } bx; + struct s *b = &bx; b->j = 5; + } + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; + if (!foo) return 0; + } + return !cs[0] && !zero.x; +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_const=yes +else + ac_cv_c_const=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +$as_echo "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then + +$as_echo "#define const /**/" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + + +## ISOC99_PRAGMA +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports ISOC99 _Pragma()" >&5 +$as_echo_n "checking whether $CC supports ISOC99 _Pragma()... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +_Pragma("pack(1)") + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + ISOC99_PRAGMA=yes + +$as_echo "#define HAVE_ISOC99_PRAGMA /**/" >>confdefs.h + + +else + ISOC99_PRAGMA=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISOC99_PRAGMA" >&5 +$as_echo "$ISOC99_PRAGMA" >&6; } + +## Check for Windows header files +for ac_header in ntddcdrm.h ddk/ntddcdrm.h \ + ntddscsi.h ddk/ntddscsi.h ddk/scsi.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +#include + +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +## +## Check for S_ISSOCK() and S_ISLNK() macros +## +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for S_ISLNK() macro" >&5 +$as_echo_n "checking for S_ISLNK() macro... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#ifdef HAVE_SYS_STAT_H +# include +#endif + +int +main () +{ +return S_ISLNK(0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; }; +$as_echo "#define HAVE_S_ISLNK /**/" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for S_ISSOCK() macro" >&5 +$as_echo_n "checking for S_ISSOCK() macro... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#ifdef HAVE_SYS_STAT_H +# include +#endif + +int +main () +{ +return S_ISSOCK(0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; }; +$as_echo "#define HAVE_S_ISSOCK /**/" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5 +$as_echo_n "checking for struct timespec... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#ifdef HAVE_SYS_TIME_H +#include +#endif + +int +main () +{ +struct timespec ts; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; }; +$as_echo "#define HAVE_STRUCT_TIMESPEC /**/" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create empty arrays" >&5 +$as_echo_n "checking how to create empty arrays... " >&6; } + +empty_array_size="xxxx" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +struct { int foo; int bar[]; } doo; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + empty_array_size="" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test "x$empty_array_size" = "xxxx"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +struct { int foo; int bar[0]; } doo; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + empty_array_size="0" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + +if test "x$empty_array_size" = "xxxx"; then + as_fn_error $? "compiler is unable to creaty empty arrays" "$LINENO" 5 +else + +cat >>confdefs.h <<_ACEOF +#define EMPTY_ARRAY_SIZE $empty_array_size +_ACEOF + + + msg="[${empty_array_size}]" + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 +$as_echo "$msg" >&6; } +fi + +enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AS="${ac_tool_prefix}as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AS=$ac_cv_prog_AS +if test -n "$AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +$as_echo "$AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AS="as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +$as_echo "$ac_ct_AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_AS" = x; then + AS="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AS=$ac_ct_AS + fi +else + AS="$ac_cv_prog_AS" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + + ;; +esac + +test -z "$AS" && AS=as + + + + + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + + + +case `pwd` in + *\ * | *\ *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac + + + +macro_version='2.4.6' +macro_revision='2.4.6' + + + + + + + + + + + + + +ltmain=$ac_aux_dir/ltmain.sh + +# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +$as_echo_n "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} + +case $ECHO in + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +$as_echo "printf" >&6; } ;; + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +$as_echo "print -r" >&6; } ;; + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +$as_echo "cat" >&6; } ;; +esac + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +$as_echo_n "checking for fgrep... " >&6; } +if ${ac_cv_path_FGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in fgrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_FGREP" || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_FGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_FGREP"; then + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_FGREP=$FGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +$as_echo "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + + +test -z "$GREP" && GREP=grep + + + + + + + + + + + + + + + + + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test yes = "$GCC"; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return, which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD=$ac_prog + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test yes = "$with_gnu_ld"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD=$ac_dir/$ac_prog + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if ${lt_cv_path_NM+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM=$NM +else + lt_nm_to_check=${ac_tool_prefix}nm + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + tmp_nm=$ac_dir/$lt_tmp_nm + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the 'sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty + case $build_os in + mingw*) lt_bad_file=conftest.nm/nofile ;; + *) lt_bad_file=/dev/null ;; + esac + case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in + *$lt_bad_file* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break 2 + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break 2 + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS=$lt_save_ifs + done + : ${lt_cv_path_NM=no} +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +if test no != "$lt_cv_path_NM"; then + NM=$lt_cv_path_NM +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_DUMPBIN" && break +done + + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN + fi +fi + + case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols -headers" + ;; + *) + DUMPBIN=: + ;; + esac + fi + + if test : != "$DUMPBIN"; then + NM=$DUMPBIN + fi +fi +test -z "$NM" && NM=nm + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if ${lt_cv_nm_interface+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if ${lt_cv_sys_max_cmd_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring=ABCD + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len" && \ + test undefined != "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test X`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test 17 != "$i" # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n "$lt_cv_sys_max_cmd_len"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi +max_cmd_len=$lt_cv_sys_max_cmd_len + + + + + + +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi + + + + + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } +if ${lt_cv_to_host_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac + +fi + +to_host_file_cmd=$lt_cv_to_host_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +$as_echo "$lt_cv_to_host_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } +if ${lt_cv_to_tool_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + #assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac + +fi + +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if ${lt_cv_ld_reload_flag+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + if test yes != "$GCC"; then + reload_cmds=false + fi + ;; + darwin*) + if test yes = "$GCC"; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if ${lt_cv_deplibs_check_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# 'unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# that responds to the $file_magic_cmd with a given extended regex. +# If you have 'file' or equivalent on your system and you're not sure +# whether 'pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + if ( file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd* | bitrig*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +os2*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + + + + + + + + + + + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh; + # decide which one to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd=$ECHO + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + + + + + + + +if test -n "$ac_tool_prefix"; then + for ac_prog in ar + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AR" && break + done +fi +if test -z "$AR"; then + ac_ct_AR=$AR + for ac_prog in ar +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_AR" && break +done + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +fi + +: ${AR=ar} +: ${AR_FLAGS=cru} + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +$as_echo_n "checking for archiver @FILE support... " >&6; } +if ${lt_cv_ar_at_file+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ar_at_file=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test 0 -eq "$ac_status"; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test 0 -ne "$ac_status"; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +$as_echo "$lt_cv_ar_at_file" >&6; } + +if test no = "$lt_cv_ar_at_file"; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +test -z "$STRIP" && STRIP=: + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +test -z "$RANLIB" && RANLIB=: + + + + + + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + bitrig* | openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" +fi + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if ${lt_cv_sys_global_symbol_pipe+:} false; then : + $as_echo_n "(cached) " >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; +hpux*) + if test ia64 = "$host_cpu"; then + symcode='[ABCDEGRST]' + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Gets list of data symbols to import. + lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" + # Adjust the below global symbol transforms to fixup imported variables. + lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" + lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" + lt_c_name_lib_hook="\ + -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ + -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" +else + # Disable hooks by default. + lt_cv_sys_global_symbol_to_import= + lt_cdecl_hook= + lt_c_name_hook= + lt_c_name_lib_hook= +fi + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n"\ +$lt_cdecl_hook\ +" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ +" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ +$lt_c_name_hook\ +" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ +" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" + +# Transform an extracted symbol line into symbol name with lib prefix and +# symbol address. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ +$lt_c_name_lib_hook\ +" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ +" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ +" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function, + # D for any global variable and I for any imported variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK '"\ +" {last_section=section; section=\$ 3};"\ +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ +" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ +" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ +" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ +" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE +/* DATA imports from DLLs on WIN32 can't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT_DLSYM_CONST +#elif defined __osf__ +/* This system does not cope well with relocations in const data. */ +# define LT_DLSYM_CONST +#else +# define LT_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS=conftstm.$ac_objext + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test yes = "$pipe_works"; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + +# Check whether --with-sysroot was given. +if test "${with_sysroot+set}" = set; then : + withval=$with_sysroot; +else + with_sysroot=no +fi + + +lt_sysroot= +case $with_sysroot in #( + yes) + if test yes = "$GCC"; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 +$as_echo "$with_sysroot" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +$as_echo "${lt_sysroot:-no}" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 +$as_echo_n "checking for a working dd... " >&6; } +if ${ac_cv_path_lt_DD+:} false; then : + $as_echo_n "(cached) " >&6 +else + printf 0123456789abcdef0123456789abcdef >conftest.i +cat conftest.i conftest.i >conftest2.i +: ${lt_DD:=$DD} +if test -z "$lt_DD"; then + ac_path_lt_DD_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in dd; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_lt_DD" || continue +if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then + cmp -s conftest.i conftest.out \ + && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: +fi + $ac_path_lt_DD_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_lt_DD"; then + : + fi +else + ac_cv_path_lt_DD=$lt_DD +fi + +rm -f conftest.i conftest2.i conftest.out +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 +$as_echo "$ac_cv_path_lt_DD" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 +$as_echo_n "checking how to truncate binary pipes... " >&6; } +if ${lt_cv_truncate_bin+:} false; then : + $as_echo_n "(cached) " >&6 +else + printf 0123456789abcdef0123456789abcdef >conftest.i +cat conftest.i conftest.i >conftest2.i +lt_cv_truncate_bin= +if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then + cmp -s conftest.i conftest.out \ + && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" +fi +rm -f conftest.i conftest2.i conftest.out +test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 +$as_echo "$lt_cv_truncate_bin" >&6; } + + + + + + + +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +func_cc_basename () +{ + for cc_temp in $*""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac + done + func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` +} + +# Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi + +test no = "$enable_libtool_lock" || enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out what ABI is being produced by ac_compile, and set mode + # options accordingly. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE=32 + ;; + *ELF-64*) + HPUX_IA64_MODE=64 + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. + echo '#line '$LINENO' "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test yes = "$lt_cv_prog_gnu_ld"; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +mips64*-*linux*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. + echo '#line '$LINENO' "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + emul=elf + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + emul="${emul}32" + ;; + *64-bit*) + emul="${emul}64" + ;; + esac + case `/usr/bin/file conftest.$ac_objext` in + *MSB*) + emul="${emul}btsmip" + ;; + *LSB*) + emul="${emul}ltsmip" + ;; + esac + case `/usr/bin/file conftest.$ac_objext` in + *N32*) + emul="${emul}n32" + ;; + esac + LD="${LD-ld} -m $emul" + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. Note that the listed cases only cover the + # situations where additional linker options are needed (such as when + # doing 32-bit compilation for a host where ld defaults to 64-bit, or + # vice versa); the common cases where no linker options are needed do + # not appear in the list. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + case `/usr/bin/file conftest.o` in + *x86-64*) + LD="${LD-ld} -m elf32_x86_64" + ;; + *) + LD="${LD-ld} -m elf_i386" + ;; + esac + ;; + powerpc64le-*linux*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + powerpcle-*linux*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS=$CFLAGS + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if ${lt_cv_cc_needs_belf+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test yes != "$lt_cv_cc_needs_belf"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS=$SAVE_CFLAGS + fi + ;; +*-*solaris*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) + case $host in + i?86-*-solaris*|x86_64-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then + LD=${LD-ld}_sol2 + fi + ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks=$enable_libtool_lock + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. +set dummy ${ac_tool_prefix}mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MANIFEST_TOOL"; then + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL +if test -n "$MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +$as_echo "$MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL + # Extract the first word of "mt", so it can be a program name with args. +set dummy mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_MANIFEST_TOOL"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL +if test -n "$ac_ct_MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_MANIFEST_TOOL" = x; then + MANIFEST_TOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL + fi +else + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" +fi + +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if ${lt_cv_path_mainfest_tool+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&5 + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +$as_echo "$lt_cv_path_mainfest_tool" >&6; } +if test yes != "$lt_cv_path_mainfest_tool"; then + MANIFEST_TOOL=: +fi + + + + + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. +set dummy ${ac_tool_prefix}lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +$as_echo "$LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_LIPO"; then + ac_ct_LIPO=$LIPO + # Extract the first word of "lipo", so it can be a program name with args. +set dummy lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_LIPO"; then + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_LIPO="lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO +if test -n "$ac_ct_LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +$as_echo "$ac_ct_LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_LIPO" = x; then + LIPO=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + LIPO=$ac_ct_LIPO + fi +else + LIPO="$ac_cv_prog_LIPO" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL"; then + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL=$ac_cv_prog_OTOOL +if test -n "$OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +$as_echo "$OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL"; then + ac_ct_OTOOL=$OTOOL + # Extract the first word of "otool", so it can be a program name with args. +set dummy otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL"; then + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL="otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL +if test -n "$ac_ct_OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +$as_echo "$ac_ct_OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL" = x; then + OTOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL=$ac_ct_OTOOL + fi +else + OTOOL="$ac_cv_prog_OTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL64"; then + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL64=$ac_cv_prog_OTOOL64 +if test -n "$OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +$as_echo "$OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL64"; then + ac_ct_OTOOL64=$OTOOL64 + # Extract the first word of "otool64", so it can be a program name with args. +set dummy otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL64"; then + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL64="otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 +if test -n "$ac_ct_OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +$as_echo "$ac_ct_OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL64" = x; then + OTOOL64=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL64=$ac_ct_OTOOL64 + fi +else + OTOOL64="$ac_cv_prog_OTOOL64" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if ${lt_cv_apple_cc_single_mod+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "$LT_MULTI_MODULE"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + # If there is a non-empty error log, and "single_module" + # appears in it, assume the flag caused a linker warning + if test -s conftest.err && $GREP single_module conftest.err; then + cat conftest.err >&5 + # Otherwise, if the output was created with a 0 exit code from + # the compiler, it worked. + elif test -f libconftest.dylib && test 0 = "$_lt_result"; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&5 + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if ${lt_cv_ld_exported_symbols_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_ld_exported_symbols_list=yes +else + lt_cv_ld_exported_symbols_list=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +$as_echo_n "checking for -force_load linker flag... " >&6; } +if ${lt_cv_ld_force_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 + echo "$AR cru libconftest.a conftest.o" >&5 + $AR cru libconftest.a conftest.o 2>&5 + echo "$RANLIB libconftest.a" >&5 + $RANLIB libconftest.a 2>&5 + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -s conftest.err && $GREP force_load conftest.err; then + cat conftest.err >&5 + elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&5 + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +$as_echo "$lt_cv_ld_force_load" >&6; } + case $host_os in + rhapsody* | darwin1.[012]) + _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; + 10.[012][,.]*) + _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test yes = "$lt_cv_apple_cc_single_mod"; then + _lt_dar_single_mod='$single_module' + fi + if test yes = "$lt_cv_ld_exported_symbols_list"; then + _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' + fi + if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac + +# func_munge_path_list VARIABLE PATH +# ----------------------------------- +# VARIABLE is name of variable containing _space_ separated list of +# directories to be munged by the contents of PATH, which is string +# having a format: +# "DIR[:DIR]:" +# string "DIR[ DIR]" will be prepended to VARIABLE +# ":DIR[:DIR]" +# string "DIR[ DIR]" will be appended to VARIABLE +# "DIRP[:DIRP]::[DIRA:]DIRA" +# string "DIRP[ DIRP]" will be prepended to VARIABLE and string +# "DIRA[ DIRA]" will be appended to VARIABLE +# "DIR[:DIR]" +# VARIABLE will be replaced by "DIR[ DIR]" +func_munge_path_list () +{ + case x$2 in + x) + ;; + *:) + eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" + ;; + x:*) + eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" + ;; + *::*) + eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" + eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" + ;; + *) + eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" + ;; + esac +} + +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_DLFCN_H 1 +_ACEOF + +fi + +done + + + + +func_stripname_cnf () +{ + case $2 in + .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; + *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; + esac +} # func_stripname_cnf + + + + + +# Set options + + + + enable_dlopen=no + + + + # Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else + enable_shared=yes +fi + + + + + + + + + + # Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else + enable_static=yes +fi + + + + + + + + + + +# Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for lt_pkg in $withval; do + IFS=$lt_save_ifs + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else + pic_mode=default +fi + + + + + + + + + # Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else + enable_fast_install=yes +fi + + + + + + + + + shared_archive_member_spec= +case $host,$enable_shared in +power*-*-aix[5-9]*,yes) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 +$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } + +# Check whether --with-aix-soname was given. +if test "${with_aix_soname+set}" = set; then : + withval=$with_aix_soname; case $withval in + aix|svr4|both) + ;; + *) + as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 + ;; + esac + lt_cv_with_aix_soname=$with_aix_soname +else + if ${lt_cv_with_aix_soname+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_with_aix_soname=aix +fi + + with_aix_soname=$lt_cv_with_aix_soname +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 +$as_echo "$with_aix_soname" >&6; } + if test aix != "$with_aix_soname"; then + # For the AIX way of multilib, we name the shared archive member + # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', + # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. + # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, + # the AIX toolchain works better with OBJECT_MODE set (default 32). + if test 64 = "${OBJECT_MODE-32}"; then + shared_archive_member_spec=shr_64 + else + shared_archive_member_spec=shr + fi + fi + ;; +*) + with_aix_soname=aix + ;; +esac + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS=$ltmain + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +test -z "$LN_S" && LN_S="ln -s" + + + + + + + + + + + + + + +if test -n "${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if ${lt_cv_objdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +cat >>confdefs.h <<_ACEOF +#define LT_OBJDIR "$lt_cv_objdir/" +_ACEOF + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test set != "${COLLECT_NAMES+set}"; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a '.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld=$lt_cv_prog_gnu_ld + +old_CC=$CC +old_CFLAGS=$CFLAGS + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +func_cc_basename $compiler +cc_basename=$func_cc_basename_result + + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD=$MAGIC_CMD + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/${ac_tool_prefix}file"; then + lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD=$lt_cv_path_MAGIC_CMD + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS=$lt_save_ifs + MAGIC_CMD=$lt_save_MAGIC_CMD + ;; +esac +fi + +MAGIC_CMD=$lt_cv_path_MAGIC_CMD +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD=$MAGIC_CMD + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/file"; then + lt_cv_path_MAGIC_CMD=$ac_dir/"file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD=$lt_cv_path_MAGIC_CMD + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS=$lt_save_ifs + MAGIC_CMD=$lt_save_MAGIC_CMD + ;; +esac +fi + +MAGIC_CMD=$lt_cv_path_MAGIC_CMD +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + +# Use C for the default configuration in the libtool script + +lt_save_CC=$CC +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + +lt_prog_compiler_no_builtin_flag= + +if test yes = "$GCC"; then + case $cc_basename in + nvcc*) + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; + *) + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } + +if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + + + + + + + lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + + + if test yes = "$GCC"; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + lt_prog_compiler_pic='-fPIC' + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the '-m68020' flag to GCC prevents building anything better, + # like '-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + case $host_os in + os2*) + lt_prog_compiler_static='$wl-static' + ;; + esac + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + lt_prog_compiler_wl='-Xlinker ' + if test -n "$lt_prog_compiler_pic"; then + lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" + fi + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + case $cc_basename in + nagfor*) + # NAG Fortran compiler + lt_prog_compiler_wl='-Wl,-Wl,,' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + esac + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + case $host_os in + os2*) + lt_prog_compiler_static='$wl-static' + ;; + esac + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='$wl-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + # old Intel for x86_64, which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='--shared' + lt_prog_compiler_static='--static' + ;; + nagfor*) + # NAG Fortran compiler + lt_prog_compiler_wl='-Wl,-Wl,,' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + tcc*) + # Fabrice Bellard et al's Tiny C Compiler + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-qpic' + lt_prog_compiler_static='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + *Sun\ F* | *Sun*Fortran*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Qoption ld ' + ;; + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + *Intel*\ [CF]*Compiler*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + *Portland\ Group*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + esac + ;; + esac + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + + rdos*) + lt_prog_compiler_static='-non_shared' + ;; + + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi + +case $host_os in + # For platforms that do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +$as_echo "$lt_cv_prog_compiler_pic" >&6; } +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if ${lt_cv_prog_compiler_pic_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } + +if test yes = "$lt_cv_prog_compiler_pic_works"; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi + +fi + + + + + + + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works=no + save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $RM -r conftest* + LDFLAGS=$save_LDFLAGS + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } + +if test yes = "$lt_cv_prog_compiler_static_works"; then + : +else + lt_prog_compiler_static= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + +hard_links=nottested +if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test no = "$hard_links"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + runpath_var= + allow_undefined_flag= + always_export_symbols=no + archive_cmds= + archive_expsym_cmds= + compiler_needs_object=no + enable_shared_with_static_runtimes=no + export_dynamic_flag_spec= + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + hardcode_automatic=no + hardcode_direct=no + hardcode_direct_absolute=no + hardcode_libdir_flag_spec= + hardcode_libdir_separator= + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + inherit_rpath=no + link_all_deplibs=unknown + module_cmds= + module_expsym_cmds= + old_archive_from_new_cmds= + old_archive_from_expsyms_cmds= + thread_safe_flag_spec= + whole_archive_flag_spec= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ' (' and ')$', so one must not match beginning or + # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', + # as well as any symbol that contains 'd'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test yes != "$GCC"; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd* | bitrig*) + with_gnu_ld=no + ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs=no + ;; + esac + + ld_shlibs=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test yes = "$with_gnu_ld"; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; + *\ \(GNU\ Binutils\)\ [3-9]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test yes = "$lt_use_gnu_ld_interface"; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='$wl' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + export_dynamic_flag_spec='$wl--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test ia64 != "$host_cpu"; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + export_dynamic_flag_spec='$wl--export-all-symbols' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file, use it as + # is; otherwise, prepend EXPORTS... + archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; + + haiku*) + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + link_all_deplibs=yes + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + shrext_cmds=.dll + archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + prefix_cmds="$SED"~ + if test EXPORTS = "`$SED 1q $export_symbols`"; then + prefix_cmds="$prefix_cmds -e 1d"; + fi~ + prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ + cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' + enable_shared_with_static_runtimes=yes + ;; + + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='$wl-rpath,$libdir' + export_dynamic_flag_spec='$wl-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test linux-dietlibc = "$host_os"; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test no = "$tmp_diet" + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + whole_archive_flag_spec= + tmp_sharedflag='--shared' ;; + nagfor*) # NAGFOR 5.3 + tmp_sharedflag='-Wl,-shared' ;; + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + compiler_needs_object=yes + ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + compiler_needs_object=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + + if test yes = "$supports_anon_versioning"; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + tcc*) + export_dynamic_flag_spec='-rdynamic' + ;; + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test yes = "$supports_anon_versioning"; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + ld_shlibs=no + fi + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test no = "$ld_shlibs"; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix[4-9]*) + if test ia64 = "$host_cpu"; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag= + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to GNU nm, but means don't demangle to AIX nm. + # Without the "-l" option, or with the "-B" option, AIX nm treats + # weak defined symbols like other global defined symbols, whereas + # GNU nm marks them as "W". + # While the 'weak' keyword is ignored in the Export File, we need + # it in the Import File for the 'aix-soname' feature, so we have + # to replace the "-B" option with "-P" for AIX nm. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # have runtime linking enabled, and use it for executables. + # For shared libraries, we enable/disable runtime linking + # depending on the kind of the shared library created - + # when "with_aix_soname,aix_use_runtimelinking" is: + # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables + # "aix,yes" lib.so shared, rtl:yes, for executables + # lib.a static archive + # "both,no" lib.so.V(shr.o) shared, rtl:yes + # lib.a(lib.so.V) shared, rtl:no, for executables + # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a(lib.so.V) shared, rtl:no + # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a static archive + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then + aix_use_runtimelinking=yes + break + fi + done + if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then + # With aix-soname=svr4, we create the lib.so.V shared archives only, + # so we don't have lib.a shared libs to link our executables. + # We have to force runtime linking in this case. + aix_use_runtimelinking=yes + LDFLAGS="$LDFLAGS -Wl,-brtl" + fi + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_direct_absolute=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + file_list_spec='$wl-f,' + case $with_aix_soname,$aix_use_runtimelinking in + aix,*) ;; # traditional, no import file + svr4,* | *,yes) # use import file + # The Import File defines what to hardcode. + hardcode_direct=no + hardcode_direct_absolute=no + ;; + esac + + if test yes = "$GCC"; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`$CC -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test yes = "$aix_use_runtimelinking"; then + shared_flag="$shared_flag "'$wl-G' + fi + # Need to ensure runtime linking is disabled for the traditional + # shared library, or the linker may eventually find shared libraries + # /with/ Import File - we do not want to mix them. + shared_flag_aix='-shared' + shared_flag_svr4='-shared $wl-G' + else + # not using gcc + if test ia64 = "$host_cpu"; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test yes = "$aix_use_runtimelinking"; then + shared_flag='$wl-G' + else + shared_flag='$wl-bM:SRE' + fi + shared_flag_aix='$wl-bM:SRE' + shared_flag_svr4='$wl-G' + fi + fi + + export_dynamic_flag_spec='$wl-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + if test set = "${lt_cv_aix_libpath+set}"; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=/usr/lib:/lib + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag + else + if test ia64 = "$host_cpu"; then + hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test set = "${lt_cv_aix_libpath+set}"; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=/usr/lib:/lib + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' $wl-bernotok' + allow_undefined_flag=' $wl-berok' + if test yes = "$with_gnu_ld"; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + fi + archive_cmds_need_lc=yes + archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' + # -brtl affects multiple linker settings, -berok does not and is overridden later + compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' + if test svr4 != "$with_aix_soname"; then + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' + fi + if test aix != "$with_aix_soname"; then + archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' + else + # used by -dlpreopen to get the symbols + archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' + fi + archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + case $cc_basename in + cl*) + # Native MSVC + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + always_export_symbols=yes + file_list_spec='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=.dll + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' + archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then + cp "$export_symbols" "$output_objdir/$soname.def"; + echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; + else + $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' + enable_shared_with_static_runtimes=yes + exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + old_postinstall_cmds='chmod 644 $oldlib' + postlink_cmds='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile=$lt_outputfile.exe + lt_tool_outputfile=$lt_tool_outputfile.exe + ;; + esac~ + if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=.dll + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + enable_shared_with_static_runtimes=yes + ;; + esac + ;; + + darwin* | rhapsody*) + + + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + if test yes = "$lt_cv_ld_force_load"; then + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec='' + fi + link_all_deplibs=yes + allow_undefined_flag=$_lt_dar_allow_undefined + case $cc_basename in + ifort*|nagfor*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test yes = "$_lt_dar_can_shared"; then + output_verbose_link_cmd=func_echo_all + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" + archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" + module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" + + else + ld_shlibs=no + fi + + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2.*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test yes = "$GCC"; then + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + else + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='$wl+b $wl$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='$wl-E' + ;; + + hpux10*) + if test yes,no = "$GCC,$with_gnu_ld"; then + archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test no = "$with_gnu_ld"; then + hardcode_libdir_flag_spec='$wl+b $wl$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='$wl-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + + hpux11*) + if test yes,no = "$GCC,$with_gnu_ld"; then + case $host_cpu in + hppa*64*) + archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +$as_echo_n "checking if $CC understands -b... " >&6; } +if ${lt_cv_prog_compiler__b+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler__b=no + save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -b" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler__b=yes + fi + else + lt_cv_prog_compiler__b=yes + fi + fi + $RM -r conftest* + LDFLAGS=$save_LDFLAGS + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +$as_echo "$lt_cv_prog_compiler__b" >&6; } + +if test yes = "$lt_cv_prog_compiler__b"; then + archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' +else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' +fi + + ;; + esac + fi + if test no = "$with_gnu_ld"; then + hardcode_libdir_flag_spec='$wl+b $wl$libdir' + hardcode_libdir_separator=: + + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='$wl-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test yes = "$GCC"; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if ${lt_cv_irix_exported_symbol+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo (void) { return 0; } +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_irix_exported_symbol=yes +else + lt_cv_irix_exported_symbol=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +$as_echo "$lt_cv_irix_exported_symbol" >&6; } + if test yes = "$lt_cv_irix_exported_symbol"; then + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' + fi + link_all_deplibs=no + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + hardcode_libdir_separator=: + inherit_rpath=yes + link_all_deplibs=yes + ;; + + linux*) + case $cc_basename in + tcc*) + # Fabrice Bellard et al's Tiny C Compiler + ld_shlibs=yes + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + *nto* | *qnx*) + ;; + + openbsd* | bitrig*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + hardcode_direct_absolute=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='$wl-rpath,$libdir' + export_dynamic_flag_spec='$wl-E' + else + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='$wl-rpath,$libdir' + fi + else + ld_shlibs=no + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + shrext_cmds=.dll + archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + prefix_cmds="$SED"~ + if test EXPORTS = "`$SED 1q $export_symbols`"; then + prefix_cmds="$prefix_cmds -e 1d"; + fi~ + prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ + cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' + enable_shared_with_static_runtimes=yes + ;; + + osf3*) + if test yes = "$GCC"; then + allow_undefined_flag=' $wl-expect_unresolved $wl\*' + archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test yes = "$GCC"; then + allow_undefined_flag=' $wl-expect_unresolved $wl\*' + archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + archive_cmds_need_lc='no' + hardcode_libdir_separator=: + ;; + + solaris*) + no_undefined_flag=' -z defs' + if test yes = "$GCC"; then + wlarc='$wl' + archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='$wl' + archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands '-z linker_flag'. GCC discards it without '$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test yes = "$GCC"; then + whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' + else + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' + fi + ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test sequent = "$host_vendor"; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='$wl-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + + if test yes = "$GCC"; then + archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We CANNOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='$wl-z,text' + allow_undefined_flag='$wl-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='$wl-R,$libdir' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='$wl-Bexport' + runpath_var='LD_RUN_PATH' + + if test yes = "$GCC"; then + archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + + if test sni = "$host_vendor"; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + export_dynamic_flag_spec='$wl-Blargedynsym' + ;; + esac + fi + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test no = "$ld_shlibs" && can_build_shared=no + +with_gnu_ld=$with_gnu_ld + + + + + + + + + + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test yes,yes = "$GCC,$enable_shared"; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } + archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +if test yes = "$GCC"; then + case $host_os in + darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; + *) lt_awk_arg='/^libraries:/' ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; + *) lt_sed_strip_eq='s|=/|/|g' ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary... + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + # ...but if some path component already ends with the multilib dir we assume + # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). + case "$lt_multi_os_dir; $lt_search_path_spec " in + "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) + lt_multi_os_dir= + ;; + esac + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" + elif test -n "$lt_multi_os_dir"; then + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' +BEGIN {RS = " "; FS = "/|\n";} { + lt_foo = ""; + lt_count = 0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo = "/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's|/\([A-Za-z]:\)|\1|g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=.so +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + + + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='$libname$release$shared_ext$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test ia64 = "$host_cpu"; then + # AIX 5 supports IA64 + library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line '#! .'. This would cause the generated library to + # depend on '.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # Using Import Files as archive members, it is possible to support + # filename-based versioning of shared library archives on AIX. While + # this would work for both with and without runtime linking, it will + # prevent static linking of such archives. So we do filename-based + # shared library versioning with .so extension only, which is used + # when both runtime linking and shared linking is enabled. + # Unfortunately, runtime linking may impact performance, so we do + # not want this to be the default eventually. Also, we use the + # versioned .so libs for executables only if there is the -brtl + # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. + # To allow for filename-based versioning support, we need to create + # libNAME.so.V as an archive file, containing: + # *) an Import File, referring to the versioned filename of the + # archive as well as the shared archive member, telling the + # bitwidth (32 or 64) of that shared object, and providing the + # list of exported symbols of that shared object, eventually + # decorated with the 'weak' keyword + # *) the shared object with the F_LOADONLY flag set, to really avoid + # it being seen by the linker. + # At run time we better use the real file rather than another symlink, + # but for link time we create the symlink libNAME.so -> libNAME.so.V + + case $with_aix_soname,$aix_use_runtimelinking in + # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + aix,yes) # traditional libtool + dynamic_linker='AIX unversionable lib.so' + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + ;; + aix,no) # traditional AIX only + dynamic_linker='AIX lib.a(lib.so.V)' + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='$libname$release.a $libname.a' + soname_spec='$libname$release$shared_ext$major' + ;; + svr4,*) # full svr4 only + dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" + library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' + # We do not specify a path in Import Files, so LIBPATH fires. + shlibpath_overrides_runpath=yes + ;; + *,yes) # both, prefer svr4 + dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" + library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' + # unpreferred sharedlib libNAME.a needs extra handling + postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' + postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' + # We do not specify a path in Import Files, so LIBPATH fires. + shlibpath_overrides_runpath=yes + ;; + *,no) # both, prefer aix + dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" + library_names_spec='$libname$release.a $libname.a' + soname_spec='$libname$release$shared_ext$major' + # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling + postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' + postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' + ;; + esac + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='$libname$shared_ext' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=.dll + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + library_names_spec='$libname.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec=$LIB + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' + soname_spec='$libname$release$major$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=no + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + if test 32 = "$HPUX_IA64_MODE"; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + sys_lib_dlsearch_path_spec=/usr/lib/hpux32 + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + sys_lib_dlsearch_path_spec=/usr/lib/hpux64 + fi + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test yes = "$lt_cv_prog_gnu_ld"; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='$libname$release$shared_ext$major' + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" + sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +linux*android*) + version_type=none # Android doesn't support versioned libraries. + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext' + soname_spec='$libname$release$shared_ext' + finish_cmds= + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + dynamic_linker='Android linker' + # Don't embed -rpath directories since the linker doesn't support them. + hardcode_libdir_flag_spec='-L$libdir' + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Ideally, we could use ldconfig to report *all* directores which are + # searched for libraries, however this is still not possible. Aside from not + # being certain /sbin/ldconfig is available, command + # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, + # even though it is searched at run-time. Try to do the best guess by + # appending ld.so.conf contents (and includes) to the search path. + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd* | bitrig*) + version_type=sunos + sys_lib_dlsearch_path_spec=/usr/lib + need_lib_prefix=no + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + need_version=no + else + need_version=yes + fi + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +os2*) + libname_spec='$name' + version_type=windows + shrext_cmds=.dll + need_version=no + need_lib_prefix=no + # OS/2 can only load a DLL with a base name of 8 characters or less. + soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; + v=$($ECHO $release$versuffix | tr -d .-); + n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); + $ECHO $n$v`$shared_ext' + library_names_spec='${libname}_dll.$libext' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=BEGINLIBPATH + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='$libname$release$shared_ext$major' + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test yes = "$with_gnu_ld"; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec; then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' + soname_spec='$libname$shared_ext.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=sco + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test yes = "$with_gnu_ld"; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test no = "$dynamic_linker" && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test yes = "$GCC"; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then + sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec +fi + +if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then + sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec +fi + +# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... +configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec + +# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code +func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" + +# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool +configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || + test -n "$runpath_var" || + test yes = "$hardcode_automatic"; then + + # We can hardcode non-existent directories. + if test no != "$hardcode_direct" && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && + test no != "$hardcode_minus_L"; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test relink = "$hardcode_action" || + test yes = "$inherit_rpath"; then + # Fast installation is not supported + enable_fast_install=no +elif test yes = "$shlibpath_overrides_runpath" || + test no = "$enable_shared"; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + if test yes != "$enable_dlopen"; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen=load_add_on + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen=LoadLibrary + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen=dlopen + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl +else + + lt_cv_dlopen=dyld + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + tpf*) + # Don't try to run any link tests for TPF. We know it's impossible + # because TPF is a cross-compiler, and we know how we open DSOs. + lt_cv_dlopen=dlopen + lt_cv_dlopen_libs= + lt_cv_dlopen_self=no + ;; + + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : + lt_cv_dlopen=shl_load +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : + lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + lt_cv_dlopen=dlopen +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if ${ac_cv_lib_svld_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : + lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if ${ac_cv_lib_dld_dld_link+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes +else + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : + lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test no = "$lt_cv_dlopen"; then + enable_dlopen=no + else + enable_dlopen=yes + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS=$CPPFLAGS + test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS=$LDFLAGS + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS=$LIBS + LIBS="$lt_cv_dlopen_libs $LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test yes = "$cross_compiling"; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisibility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } + + if test yes = "$lt_cv_dlopen_self"; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self_static+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test yes = "$cross_compiling"; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisibility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + + CPPFLAGS=$save_CPPFLAGS + LDFLAGS=$save_LDFLAGS + LIBS=$save_LIBS + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + + + + + + + + + + + + + + + + +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP"; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi + + + + + + + + + + + + + # Report what library types will actually be built + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } + test no = "$can_build_shared" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test yes = "$enable_shared" && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[4-9]*) + if test ia64 != "$host_cpu"; then + case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in + yes,aix,yes) ;; # shared object as lib.so file only + yes,svr4,*) ;; # shared object as lib.so archive member only + yes,*) enable_static=no ;; # shared object in lib.a archive as well + esac + fi + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } + # Make sure either enable_shared or enable_static is yes. + test yes = "$enable_shared" || enable_static=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + + + + +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC=$lt_save_CC + + if test -n "$CXX" && ( test no != "$CXX" && + ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || + (test g++ != "$CXX"))); then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +else + _lt_caught_CXX_error=yes +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +compiler_needs_object_CXX=no +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_direct_absolute_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_shlibpath_var_CXX=unsupported +hardcode_automatic_CXX=no +inherit_rpath_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +reload_flag_CXX=$reload_flag +reload_cmds_CXX=$reload_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +objext_CXX=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test yes != "$_lt_caught_CXX_error"; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + + # save warnings/boilerplate of simple test code + ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + + ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_CFLAGS=$CFLAGS + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + CFLAGS=$CXXFLAGS + compiler=$CC + compiler_CXX=$CC + func_cc_basename $compiler +cc_basename=$func_cc_basename_result + + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test yes = "$GXX"; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' + else + lt_prog_compiler_no_builtin_flag_CXX= + fi + + if test yes = "$GXX"; then + # Set up default GNU C++ configuration + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test yes = "$GCC"; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return, which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD=$ac_prog + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test yes = "$with_gnu_ld"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD=$ac_dir/$ac_prog + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test yes = "$with_gnu_ld"; then + archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' + export_dynamic_flag_spec_CXX='$wl--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='$wl' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + ld_shlibs_CXX=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix[4-9]*) + if test ia64 = "$host_cpu"; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag= + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # have runtime linking enabled, and use it for executables. + # For shared libraries, we enable/disable runtime linking + # depending on the kind of the shared library created - + # when "with_aix_soname,aix_use_runtimelinking" is: + # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables + # "aix,yes" lib.so shared, rtl:yes, for executables + # lib.a static archive + # "both,no" lib.so.V(shr.o) shared, rtl:yes + # lib.a(lib.so.V) shared, rtl:no, for executables + # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a(lib.so.V) shared, rtl:no + # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a static archive + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then + # With aix-soname=svr4, we create the lib.so.V shared archives only, + # so we don't have lib.a shared libs to link our executables. + # We have to force runtime linking in this case. + aix_use_runtimelinking=yes + LDFLAGS="$LDFLAGS -Wl,-brtl" + fi + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + file_list_spec_CXX='$wl-f,' + case $with_aix_soname,$aix_use_runtimelinking in + aix,*) ;; # no import file + svr4,* | *,yes) # use import file + # The Import File defines what to hardcode. + hardcode_direct_CXX=no + hardcode_direct_absolute_CXX=no + ;; + esac + + if test yes = "$GXX"; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`$CC -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + esac + shared_flag='-shared' + if test yes = "$aix_use_runtimelinking"; then + shared_flag=$shared_flag' $wl-G' + fi + # Need to ensure runtime linking is disabled for the traditional + # shared library, or the linker may eventually find shared libraries + # /with/ Import File - we do not want to mix them. + shared_flag_aix='-shared' + shared_flag_svr4='-shared $wl-G' + else + # not using gcc + if test ia64 = "$host_cpu"; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test yes = "$aix_use_runtimelinking"; then + shared_flag='$wl-G' + else + shared_flag='$wl-bM:SRE' + fi + shared_flag_aix='$wl-bM:SRE' + shared_flag_svr4='$wl-G' + fi + fi + + export_dynamic_flag_spec_CXX='$wl-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + always_export_symbols_CXX=yes + if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + # The "-G" linker flag allows undefined symbols. + no_undefined_flag_CXX='-bernotok' + # Determine the default libpath from the value encoded in an empty + # executable. + if test set = "${lt_cv_aix_libpath+set}"; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=/usr/lib:/lib + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" + + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag + else + if test ia64 = "$host_cpu"; then + hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test set = "${lt_cv_aix_libpath+set}"; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=/usr/lib:/lib + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' $wl-bernotok' + allow_undefined_flag_CXX=' $wl-berok' + if test yes = "$with_gnu_ld"; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX='$convenience' + fi + archive_cmds_need_lc_CXX=yes + archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' + # -brtl affects multiple linker settings, -berok does not and is overridden later + compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' + if test svr4 != "$with_aix_soname"; then + # This is similar to how AIX traditionally builds its shared + # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. + archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' + fi + if test aix != "$with_aix_soname"; then + archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' + else + # used by -dlpreopen to get the symbols + archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' + fi + archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_CXX=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + else + ld_shlibs_CXX=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + case $GXX,$cc_basename in + ,cl* | no,cl*) + # Native MSVC + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec_CXX=' ' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=yes + file_list_spec_CXX='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=.dll + # FIXME: Setting linknames here is a bad hack. + archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' + archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then + cp "$export_symbols" "$output_objdir/$soname.def"; + echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; + else + $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' + enable_shared_with_static_runtimes_CXX=yes + # Don't use ranlib + old_postinstall_cmds_CXX='chmod 644 $oldlib' + postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile=$lt_outputfile.exe + lt_tool_outputfile=$lt_tool_outputfile.exe + ;; + esac~ + func_to_tool_file "$lt_outputfile"~ + if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # g++ + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + export_dynamic_flag_spec_CXX='$wl--export-all-symbols' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file, use it as + # is; otherwise, prepend EXPORTS... + archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs_CXX=no + fi + ;; + esac + ;; + darwin* | rhapsody*) + + + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + if test yes = "$lt_cv_ld_force_load"; then + whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec_CXX='' + fi + link_all_deplibs_CXX=yes + allow_undefined_flag_CXX=$_lt_dar_allow_undefined + case $cc_basename in + ifort*|nagfor*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test yes = "$_lt_dar_can_shared"; then + output_verbose_link_cmd=func_echo_all + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" + archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" + module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" + if test yes != "$lt_cv_apple_cc_single_mod"; then + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" + archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" + fi + + else + ld_shlibs_CXX=no + fi + + ;; + + os2*) + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_minus_L_CXX=yes + allow_undefined_flag_CXX=unsupported + shrext_cmds=.dll + archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + prefix_cmds="$SED"~ + if test EXPORTS = "`$SED 1q $export_symbols`"; then + prefix_cmds="$prefix_cmds -e 1d"; + fi~ + prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ + cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' + enable_shared_with_static_runtimes_CXX=yes + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + freebsd2.*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + ld_shlibs_CXX=no + ;; + + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; + + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + + haiku*) + archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + link_all_deplibs_CXX=yes + ;; + + hpux9*) + hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='$wl-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test yes = "$GXX"; then + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test no = "$with_gnu_ld"; then + hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' + hardcode_libdir_separator_CXX=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + export_dynamic_flag_spec_CXX='$wl-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + *) + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test yes = "$GXX"; then + if test no = "$with_gnu_ld"; then + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + interix[3-9]*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' + export_dynamic_flag_spec_CXX='$wl-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test yes = "$GXX"; then + if test no = "$with_gnu_ld"; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' + hardcode_libdir_separator_CXX=: + inherit_rpath_CXX=yes + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + + hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' + export_dynamic_flag_spec_CXX='$wl--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' + export_dynamic_flag_spec_CXX='$wl--export-dynamic' + whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [1-5].* | *pgcpp\ [1-5].*) + prelink_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' + old_archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ + $RANLIB $oldlib' + archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 6 and above use weak symbols + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' + export_dynamic_flag_spec_CXX='$wl--export-dynamic' + whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' + ;; + xl* | mpixl* | bgxl*) + # IBM XL 8.0 on PPC, with GNU ld + hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' + export_dynamic_flag_spec_CXX='$wl--export-dynamic' + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + if test yes = "$supports_anon_versioning"; then + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' + hardcode_libdir_flag_spec_CXX='-R$libdir' + whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + compiler_needs_object_CXX=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + + *nto* | *qnx*) + ld_shlibs_CXX=yes + ;; + + openbsd* | bitrig*) + if test -f /usr/libexec/ld.so; then + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + hardcode_direct_absolute_CXX=yes + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='$wl-E' + whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' + fi + output_verbose_link_cmd=func_echo_all + else + ld_shlibs_CXX=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + case $host in + osf3*) + allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' + archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' + ;; + *) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ + $RM $lib.exp' + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + ;; + esac + + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test yes,no = "$GXX,$with_gnu_ld"; then + allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' + case $host in + osf3*) + archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + ;; + *) + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands '-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + ;; + esac + link_all_deplibs_CXX=yes + + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test yes,no = "$GXX,$with_gnu_ld"; then + no_undefined_flag_CXX=' $wl-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + else + # g++ 2.7 appears to require '-G' NOT '-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + fi + + hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag_CXX='$wl-z,text' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We CANNOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag_CXX='$wl-z,text' + allow_undefined_flag_CXX='$wl-z,nodefs' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + export_dynamic_flag_spec_CXX='$wl-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ + '"$old_archive_cmds_CXX" + reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ + '"$reload_cmds_CXX" + ;; + *) + archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } + test no = "$ld_shlibs_CXX" && can_build_shared=no + + GCC_CXX=$GXX + LD_CXX=$LD + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + # Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= + +cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF + + +_lt_libdeps_save_CFLAGS=$CFLAGS +case "$CC $CFLAGS " in #( +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; +esac + +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + for p in `eval "$output_verbose_link_cmd"`; do + case $prev$p in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test x-L = "$p" || + test x-R = "$p"; then + prev=$p + continue + fi + + # Expand the sysroot to ease extracting the directories later. + if test -z "$prev"; then + case $p in + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; + esac + fi + case $p in + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; + esac + if test no = "$pre_test_object_deps_done"; then + case $prev in + -L | -R) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX=$prev$p + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX=$prev$p + else + postdeps_CXX="${postdeps_CXX} $prev$p" + fi + fi + prev= + ;; + + *.lto.$objext) ;; # Ignore GCC LTO objects + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test no = "$pre_test_object_deps_done"; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX=$p + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX=$p + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi + +$RM -f confest.$objext +CFLAGS=$_lt_libdeps_save_CFLAGS + +# PORTME: override above test on systems where it is broken +case $host_os in +interix[3-9]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + predep_objects_CXX= + postdep_objects_CXX= + postdeps_CXX= + ;; +esac + + +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + compiler_lib_search_dirs_CXX= +if test -n "${compiler_lib_search_path_CXX}"; then + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= + + + # C++ specific cases for pic, static, wl, etc. + if test yes = "$GXX"; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + lt_prog_compiler_pic_CXX='-fPIC' + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic_CXX='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the '-m68020' flag to GCC prevents building anything better, + # like '-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + case $host_os in + os2*) + lt_prog_compiler_static_CXX='$wl-static' + ;; + esac + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static_CXX= + ;; + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix[4-9]*) + # All AIX code is PIC. + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='$wl-a ${wl}archive' + if test ia64 != "$host_cpu"; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='$wl-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64, which still supported -KPIC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) + # IBM XL 8.0, 9.0 on PPC and BlueGene + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-qpic' + lt_prog_compiler_static_CXX='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd* | netbsdelf*-gnu) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi + +case $host_os in + # For platforms that do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= + ;; + *) + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } +lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works_CXX=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } + +if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac +else + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no +fi + +fi + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works_CXX=no + save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works_CXX=yes + fi + else + lt_cv_prog_compiler_static_works_CXX=yes + fi + fi + $RM -r conftest* + LDFLAGS=$save_LDFLAGS + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } + +if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then + : +else + lt_prog_compiler_static_CXX= +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + +hard_links=nottested +if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test no = "$hard_links"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + case $host_os in + aix[4-9]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to GNU nm, but means don't demangle to AIX nm. + # Without the "-l" option, or with the "-B" option, AIX nm treats + # weak defined symbols like other global defined symbols, whereas + # GNU nm marks them as "W". + # While the 'weak' keyword is ignored in the Export File, we need + # it in the Import File for the 'aix-soname' feature, so we have + # to replace the "-B" option with "-P" for AIX nm. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX=$ltdll_cmds + ;; + cygwin* | mingw* | cegcc*) + case $cc_basename in + cl*) + exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + ;; + esac + ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs_CXX=no + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test no = "$ld_shlibs_CXX" && can_build_shared=no + +with_gnu_ld_CXX=$with_gnu_ld + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_CXX" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_CXX=yes + + if test yes,yes = "$GCC,$enable_shared"; then + case $archive_cmds_CXX in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_CXX + pic_flag=$lt_prog_compiler_pic_CXX + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc_CXX=no + else + lt_cv_archive_cmds_need_lc_CXX=yes + fi + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } + archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=.so +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + + + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='$libname$release$shared_ext$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test ia64 = "$host_cpu"; then + # AIX 5 supports IA64 + library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line '#! .'. This would cause the generated library to + # depend on '.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # Using Import Files as archive members, it is possible to support + # filename-based versioning of shared library archives on AIX. While + # this would work for both with and without runtime linking, it will + # prevent static linking of such archives. So we do filename-based + # shared library versioning with .so extension only, which is used + # when both runtime linking and shared linking is enabled. + # Unfortunately, runtime linking may impact performance, so we do + # not want this to be the default eventually. Also, we use the + # versioned .so libs for executables only if there is the -brtl + # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. + # To allow for filename-based versioning support, we need to create + # libNAME.so.V as an archive file, containing: + # *) an Import File, referring to the versioned filename of the + # archive as well as the shared archive member, telling the + # bitwidth (32 or 64) of that shared object, and providing the + # list of exported symbols of that shared object, eventually + # decorated with the 'weak' keyword + # *) the shared object with the F_LOADONLY flag set, to really avoid + # it being seen by the linker. + # At run time we better use the real file rather than another symlink, + # but for link time we create the symlink libNAME.so -> libNAME.so.V + + case $with_aix_soname,$aix_use_runtimelinking in + # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + aix,yes) # traditional libtool + dynamic_linker='AIX unversionable lib.so' + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + ;; + aix,no) # traditional AIX only + dynamic_linker='AIX lib.a(lib.so.V)' + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='$libname$release.a $libname.a' + soname_spec='$libname$release$shared_ext$major' + ;; + svr4,*) # full svr4 only + dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" + library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' + # We do not specify a path in Import Files, so LIBPATH fires. + shlibpath_overrides_runpath=yes + ;; + *,yes) # both, prefer svr4 + dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" + library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' + # unpreferred sharedlib libNAME.a needs extra handling + postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' + postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' + # We do not specify a path in Import Files, so LIBPATH fires. + shlibpath_overrides_runpath=yes + ;; + *,no) # both, prefer aix + dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" + library_names_spec='$libname$release.a $libname.a' + soname_spec='$libname$release$shared_ext$major' + # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling + postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' + postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' + ;; + esac + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='$libname$shared_ext' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=.dll + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + library_names_spec='$libname.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec=$LIB + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' + soname_spec='$libname$release$major$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=no + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + if test 32 = "$HPUX_IA64_MODE"; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + sys_lib_dlsearch_path_spec=/usr/lib/hpux32 + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + sys_lib_dlsearch_path_spec=/usr/lib/hpux64 + fi + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test yes = "$lt_cv_prog_gnu_ld"; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='$libname$release$shared_ext$major' + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" + sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +linux*android*) + version_type=none # Android doesn't support versioned libraries. + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext' + soname_spec='$libname$release$shared_ext' + finish_cmds= + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + dynamic_linker='Android linker' + # Don't embed -rpath directories since the linker doesn't support them. + hardcode_libdir_flag_spec_CXX='-L$libdir' + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Ideally, we could use ldconfig to report *all* directores which are + # searched for libraries, however this is still not possible. Aside from not + # being certain /sbin/ldconfig is available, command + # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, + # even though it is searched at run-time. Try to do the best guess by + # appending ld.so.conf contents (and includes) to the search path. + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd* | bitrig*) + version_type=sunos + sys_lib_dlsearch_path_spec=/usr/lib + need_lib_prefix=no + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + need_version=no + else + need_version=yes + fi + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +os2*) + libname_spec='$name' + version_type=windows + shrext_cmds=.dll + need_version=no + need_lib_prefix=no + # OS/2 can only load a DLL with a base name of 8 characters or less. + soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; + v=$($ECHO $release$versuffix | tr -d .-); + n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); + $ECHO $n$v`$shared_ext' + library_names_spec='${libname}_dll.$libext' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=BEGINLIBPATH + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='$libname$release$shared_ext$major' + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test yes = "$with_gnu_ld"; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec; then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' + soname_spec='$libname$shared_ext.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=sco + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test yes = "$with_gnu_ld"; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test no = "$dynamic_linker" && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test yes = "$GCC"; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then + sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec +fi + +if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then + sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec +fi + +# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... +configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec + +# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code +func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" + +# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool +configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || + test -n "$runpath_var_CXX" || + test yes = "$hardcode_automatic_CXX"; then + + # We can hardcode non-existent directories. + if test no != "$hardcode_direct_CXX" && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && + test no != "$hardcode_minus_L_CXX"; then + # Linking always hardcodes the temporary library directory. + hardcode_action_CXX=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_CXX=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_CXX=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +$as_echo "$hardcode_action_CXX" >&6; } + +if test relink = "$hardcode_action_CXX" || + test yes = "$inherit_rpath_CXX"; then + # Fast installation is not supported + enable_fast_install=no +elif test yes = "$shlibpath_overrides_runpath" || + test no = "$enable_shared"; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + + fi # test -n "$compiler" + + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test yes != "$_lt_caught_CXX_error" + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + + + + + + + + + + + + + ac_config_commands="$ac_config_commands libtool" + + + + +# Only expand once: + + + + +# FIXME: +# I believe some OS's require -lm, but I don't recall for what function +# When we find it, put it in below instead of "cos". +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 +$as_echo_n "checking for cos in -lm... " >&6; } +if ${ac_cv_lib_m_cos+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char cos (); +int +main () +{ +return cos (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_cos=yes +else + ac_cv_lib_m_cos=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 +$as_echo "$ac_cv_lib_m_cos" >&6; } +if test "x$ac_cv_lib_m_cos" = xyes; then : + LIBS="$LIBS -lm"; COS_LIB="-lm" +fi + + + +# Do we have GNU ld? If we don't, we can't build versioned symbols. +if test "x$with_gnu_ld" != "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I don't see GNU ld. I'm going to assume --without-versioned-libs" >&5 +$as_echo "$as_me: WARNING: I don't see GNU ld. I'm going to assume --without-versioned-libs" >&2;} + enable_versioned_libs='no' +fi +# We also need GNU make to build versioned symbols. +if test "x$enable_versioned_libs" = "xyes"; then + if test -n "$MAKE" ; then + $MAKE --version 2>/dev/null >/dev/null + if test "$?" -ne 0 ; then + as_fn_error $? "Either set MAKE variable to GNU make or use + --without-versioned-libs option" "$LINENO" 5 + fi + else + make --version 2>/dev/null >/dev/null + if test "$?" -ne 0 ; then + as_fn_error $? "Either set MAKE variable to GNU make or use + --without-versioned-libs option" "$LINENO" 5 + fi + fi +fi + + if test "x$CYGWIN" = "xyes"; then + CYGWIN_TRUE= + CYGWIN_FALSE='#' +else + CYGWIN_TRUE='#' + CYGWIN_FALSE= +fi + + if test "x$enable_cd_drive" = "xyes"; then + BUILD_CD_DRIVE_TRUE= + BUILD_CD_DRIVE_FALSE='#' +else + BUILD_CD_DRIVE_TRUE='#' + BUILD_CD_DRIVE_FALSE= +fi + + if test "x$enable_cd_info" = "xyes"; then + BUILD_CDINFO_TRUE= + BUILD_CDINFO_FALSE='#' +else + BUILD_CDINFO_TRUE='#' + BUILD_CDINFO_FALSE= +fi + + if test "x$enable_cd_read" = "xyes"; then + BUILD_CD_READ_TRUE= + BUILD_CD_READ_FALSE='#' +else + BUILD_CD_READ_TRUE='#' + BUILD_CD_READ_FALSE= +fi + + if test "x$enable_iso_info" = "xyes"; then + BUILD_ISO_INFO_TRUE= + BUILD_ISO_INFO_FALSE='#' +else + BUILD_ISO_INFO_TRUE='#' + BUILD_ISO_INFO_FALSE= +fi + + if test "x$enable_iso_read" = "xyes"; then + BUILD_ISO_READ_TRUE= + BUILD_ISO_READ_FALSE='#' +else + BUILD_ISO_READ_TRUE='#' + BUILD_ISO_READ_FALSE= +fi + + if test "x$enable_cd_info_linux" = "xyes"; then + BUILD_CDINFO_LINUX_TRUE= + BUILD_CDINFO_LINUX_FALSE='#' +else + BUILD_CDINFO_LINUX_TRUE='#' + BUILD_CDINFO_LINUX_FALSE= +fi + + if test "x$enable_cdiotest" = "xyes"; then + BUILD_CDIOTEST_TRUE= + BUILD_CDIOTEST_FALSE='#' +else + BUILD_CDIOTEST_TRUE='#' + BUILD_CDIOTEST_FALSE= +fi + + if test "x$enable_versioned_libs" = "xyes"; then + BUILD_VERSIONED_LIBS_TRUE= + BUILD_VERSIONED_LIBS_FALSE='#' +else + BUILD_VERSIONED_LIBS_TRUE='#' + BUILD_VERSIONED_LIBS_FALSE= +fi + + if test "x$disable_cpp" = "xyes"; then + DISABLE_CPP_TRUE= + DISABLE_CPP_FALSE='#' +else + DISABLE_CPP_TRUE='#' + DISABLE_CPP_FALSE= +fi + + + +LIBCDIO_CDDA_LIBS='$(top_builddir)/lib/cdda_interface/libcdio_cdda.la' +LIBCDIO_CFLAGS='-I$(top_srcdir)/lib/driver -I$(top_builddir)/include -I$(top_srcdir)/include/' +LIBCDIO_LIBS='$(top_builddir)/lib/driver/libcdio.la' +LIBCDIO_DEPS="$LIBCDIO_LIBS" +LIBCDIOPP_LIBS='$(top_builddir)/lib/cdio++/libcdio++.la' +LIBISO9660PP_LIBS='$(top_builddir)/lib/cdio++/libiso9660++.la' +LIBISO9660_CFLAGS='-I$(top_srcdir)/lib/iso9660/' +LIBISO9660_LIBS='$(top_builddir)/lib/iso9660/libiso9660.la' +LIBUDF_CFLAGS='-I$(top_srcdir)/lib/udf/' +LIBUDF_LIBS='$(top_builddir)/lib/udf/libudf.la' + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking what sed uses for extended regular expressions" >&5 +$as_echo_n "checking Checking what sed uses for extended regular expressions... " >&6; } +test -n "$SED" || SED=$ac_path_SED +SED_EXTENDED_RE_FLAG='-r' +result=$(echo 'define' | $SED -r -e 's/^define/foo/' 2>/dev/null) +if [ $? -ne 0 ] ; then + result=$(echo 'define' | $SED -E -e 's/^define/foo/' 2>/dev/null) + if [ $? -eq 0 ] ; then + SED_EXTENDED_RE_FLAG='-E' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't have SED that understand extended RE's. Some minor compilation issues may fail." >&5 +$as_echo "$as_me: WARNING: Don't have SED that understand extended RE's. Some minor compilation issues may fail." >&2;} + SED_EXTENDED_RE_FLAG='' + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED_EXTENDED_RE_FLAG" >&5 +$as_echo "$SED_EXTENDED_RE_FLAG" >&6; } + + +LT_NO_UNDEFINED= + +case $srcdir in + .) # We are building in place. + native_abs_top_srcdir=$ac_pwd ;; + \\/* | ?:\\/* ) # Absolute name. + native_abs_top_srcdir=$srcdir ;; + *) # Relative name. + native_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac + + +case $host_os in + aix*) + ## Don't use AIX driver until starts to really work + ## cd_drivers="${cd_drivers}, AIX" + ## AC_DEFINE([HAVE_AIX_CDROM], [1], + ## [Define 1 if you have AIX CD-ROM support]) + ;; + darwin[6-9].*|darwin[1-9][0-9].*) + for ac_header in IOKit/IOKitLib.h CoreFoundation/CFBase.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + have_iokit_h="yes" +fi + +done + + if test "x$have_iokit_h" = "xyes" ; then + +$as_echo "#define HAVE_DARWIN_CDROM 1" >>confdefs.h + + DARWIN_PKG_LIB_HACK="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DiskArbitration framework" >&5 +$as_echo_n "checking for DiskArbitration framework... " >&6; } + ac_save_LIBS="$LIBS" LIBS="$LIBS -framework CoreFoundation -framework DiskArbitration" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + have_diskarbitration_framework=yes +else + have_diskarbitration_framework=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$ac_save_LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_diskarbitration_framework" >&5 +$as_echo "$have_diskarbitration_framework" >&6; } + if test "x$have_diskarbitration_framework" = "xyes"; then + +$as_echo "#define HAVE_DISKARBITRATION 1" >>confdefs.h + + DARWIN_PKG_LIB_HACK="$DARWIN_PKG_LIB_HACK -Wl,-framework,DiskArbitration" + fi + + + LIBCDIO_LIBS="$LIBCDIO_LIBS $DARWIN_PKG_LIB_HACK" + cd_drivers="${cd_drivers}, Darwin" + fi + ;; + linux*|uclinux) + for ac_header in linux/version.h linux/major.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + for ac_header in linux/cdrom.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "linux/cdrom.h" "ac_cv_header_linux_cdrom_h" "$ac_includes_default" +if test "x$ac_cv_header_linux_cdrom_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LINUX_CDROM_H 1 +_ACEOF + have_linux_cdrom_h="yes" +fi + +done + + if test "x$have_linux_cdrom_h" = "xyes"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +#include +struct cdrom_generic_command test; +int has_timeout=sizeof(test.timeout); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +$as_echo "#define HAVE_LINUX_CDROM_TIMEOUT 1" >>confdefs.h + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +$as_echo "#define HAVE_LINUX_CDROM 1" >>confdefs.h + + cd_drivers="${cd_drivers}, GNU/Linux" + fi + ;; + bsdi*) + for ac_header in dvd.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "dvd.h" "ac_cv_header_dvd_h" "$ac_includes_default" +if test "x$ac_cv_header_dvd_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_DVD_H 1 +_ACEOF + have_bsdi_dvd_h="yes" +fi + +done + + if test "x$have_bsdi_dvd_h" = "xyes" ; then + +$as_echo "#define HAVE_BSDI_CDROM 1" >>confdefs.h + + LIBS="$LIBS -ldvd -lcdrom" + LIBCDIO_LIBS="$LIBCDIO_LIBS -lcdrom" + cd_drivers="${cd_drivers}, BSDI" + fi + ;; + sunos*|sun*|solaris*) + +$as_echo "#define HAVE_SOLARIS_CDROM 1" >>confdefs.h + + cd_drivers="${cd_drivers}, Solaris" + ;; + cygwin*) + +$as_echo "#define CYGWIN 1" >>confdefs.h + + +$as_echo "#define HAVE_WIN32_CDROM 1" >>confdefs.h + + LIBS="$LIBS -lwinmm" + LT_NO_UNDEFINED="-no-undefined" + cd_drivers="${cd_drivers}, MinGW" + +$as_echo "#define NEED_TIMEZONEVAR 1" >>confdefs.h + + ;; + mingw*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MinGW-w64 headers" >&5 +$as_echo_n "checking for MinGW-w64 headers... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#if !defined(__MINGW64_VERSION_MAJOR) +# error not mingw-w64 headers +#endif +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + MINGW_W64_HEADERS=yes + +$as_echo "#define MINGW_W64_HEADERS /**/" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + MINGW_W64_HEADERS=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + # regression tests need native-style absolute paths. + # $native_srcdir is used here. + if test "$cross_compiling" != yes; then + native_abs_top_srcdir=$(cd $srcdir; /bin/bash.exe -c 'builtin pwd -W') + fi + + for ac_header in windows.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" +if test "x$ac_cv_header_windows_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WINDOWS_H 1 +_ACEOF + +fi + +done + + +$as_echo "#define MINGW32 1" >>confdefs.h + + MINGW32=1 + +$as_echo "#define HAVE_WIN32_CDROM 1" >>confdefs.h + + LIBS="$LIBS -lwinmm" + LT_NO_UNDEFINED="-no-undefined" + cd_drivers="${cd_drivers}, MinGW " + ## Cross-platform LFS support in MinGW requires an override of off_t + if test "x$enable_largefile" != "xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling support for large files (_FILE_OFFSET_BITS=64)" >&5 +$as_echo "enabling support for large files (_FILE_OFFSET_BITS=64)" >&6; } + if test "x$MINGW_W64_HEADERS" = "xyes" + then + LIBCDIO_CFLAGS+=' -D_FILE_OFFSET_BITS=64 ' + LIBISO9660_CFLAGS+=' -D_FILE_OFFSET_BITS=64 ' + else + LIBCDIO_CFLAGS+=' -D_FILE_OFFSET_BITS=64 -D_OFF_T_DEFINED -D_OFF_T_ -D_off_t=off64_t -Doff_t=off64_t' + LIBISO9660_CFLAGS+=' -D_FILE_OFFSET_BITS=64 -D_OFF_T_DEFINED -D_OFF_T_ -D_off_t=off64_t -Doff_t=off64_t' + fi + fi + joliet_supported="yes" + if test "x$enable_cdda_player" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling cdda_player (not supported on this platform)" >&5 +$as_echo "disabling cdda_player (not supported on this platform)" >&6; } + fi + enable_cdda_player="no" + ;; + freebsd[4-9].*|freebsd[1-9][0-9].*|dragonfly*|kfreebsd*) + +$as_echo "#define HAVE_FREEBSD_CDROM 1" >>confdefs.h + + LIBS="$LIBS -lcam" + cd_drivers="${cd_drivers}, FreeBSD " + ;; + netbsd*|openbsd*) + +$as_echo "#define HAVE_NETBSD_CDROM 1" >>confdefs.h + + # LIBS="$LIBS -lcam" + cd_drivers="${cd_drivers}, NetBSD " + ;; + os2*) + +$as_echo "#define HAVE_OS2_CDROM 1" >>confdefs.h + + LT_NO_UNDEFINED="-no-undefined" + LDFLAGS="$LDFLAGS -Zbin-files" + cd_drivers="${cd_drivers}, OS2 " + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't have OS CD-reading support for ${host_os}..." >&5 +$as_echo "$as_me: WARNING: Don't have OS CD-reading support for ${host_os}..." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will use generic support." >&5 +$as_echo "$as_me: WARNING: Will use generic support." >&2;} + ;; +esac + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking extern long timezone variable" >&5 +$as_echo_n "checking extern long timezone variable... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#ifdef NEED_TIMEZONEVAR +#define timezonevar 1 +#endif + +#include +extern long timezone; +int main(int argc, char **argv) { + long test_timezone = timezone; + return 0; +} + + +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; }; + +$as_echo "#define HAVE_TIMEZONE_VAR 1" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + + + + + + + + + + +LIBCDIO_SOURCE_PATH="`pwd`" + +cat >>confdefs.h <<_ACEOF +#define LIBCDIO_SOURCE_PATH "$LIBCDIO_SOURCE_PATH" +_ACEOF + + + +for ac_func in chdir drand48 fseeko fseeko64 ftruncate geteuid getgid \ + getuid getpwuid gettimeofday lseek64 lstat memcpy memset mkstemp rand \ + seteuid setegid snprintf setenv strndup unsetenv tzset sleep \ + _stati64 usleep vsnprintf readlink realpath gmtime_r localtime_r +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + +# check for timegm() support +ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" +if test "x$ac_cv_func_timegm" = xyes; then : + +$as_echo "#define HAVE_TIMEGM 1" >>confdefs.h + +fi + + +ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include +" +if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : + +$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h + +fi + + +if test "x$ac_cv_member_struct_tm_tm_gmtoff" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h defines daylight and timezone variables" >&5 +$as_echo_n "checking whether time.h defines daylight and timezone variables... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ +return (timezone != 0) + daylight; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h + + has_daylight=yes + +else + has_daylight=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_daylight" >&5 +$as_echo "$has_daylight" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h defines tzname variable" >&5 +$as_echo_n "checking whether time.h defines tzname variable... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include + +int +main () +{ +return (tzname != NULL); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +$as_echo "#define HAVE_TZNAME 1" >>confdefs.h + + has_tzname=yes + +else + has_tzname=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_tzname" >&5 +$as_echo "$has_tzname" >&6; } +fi + + + if test "X$prefix" = "XNONE"; then + acl_final_prefix="$ac_default_prefix" + else + acl_final_prefix="$prefix" + fi + if test "X$exec_prefix" = "XNONE"; then + acl_final_exec_prefix='${prefix}' + else + acl_final_exec_prefix="$exec_prefix" + fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" + prefix="$acl_save_prefix" + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 +$as_echo_n "checking for ld used by GCC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | [A-Za-z]:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the path of ld + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${acl_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + acl_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in + *GNU* | *'with BFD'*) + test "$with_gnu_ld" != no && break ;; + *) + test "$with_gnu_ld" != yes && break ;; + esac + fi + done + IFS="$ac_save_ifs" +else + acl_cv_path_LD="$LD" # Let the user override the test with a path. +fi +fi + +LD="$acl_cv_path_LD" +if test -n "$LD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${acl_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU ld's only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$acl_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$acl_cv_prog_gnu_ld + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 +$as_echo_n "checking for shared library run path origin... " >&6; } +if ${acl_cv_rpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh + . ./conftest.sh + rm -f ./conftest.sh + acl_cv_rpath=done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 +$as_echo "$acl_cv_rpath" >&6; } + wl="$acl_cv_wl" + acl_libext="$acl_cv_libext" + acl_shlibext="$acl_cv_shlibext" + acl_libname_spec="$acl_cv_libname_spec" + acl_library_names_spec="$acl_cv_library_names_spec" + acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" + acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" + acl_hardcode_direct="$acl_cv_hardcode_direct" + acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" + # Check whether --enable-rpath was given. +if test "${enable_rpath+set}" = set; then : + enableval=$enable_rpath; : +else + enable_rpath=yes +fi + + + + acl_libdirstem=lib + searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` + if test -n "$searchpath"; then + acl_save_IFS="${IFS= }"; IFS=":" + for searchdir in $searchpath; do + if test -d "$searchdir"; then + case "$searchdir" in + */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; + *) searchdir=`cd "$searchdir" && pwd` + case "$searchdir" in + */lib64 ) acl_libdirstem=lib64 ;; + esac ;; + esac + fi + done + IFS="$acl_save_IFS" + fi + + + + + + + + + + use_additional=yes + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + +# Check whether --with-libiconv-prefix was given. +if test "${with_libiconv_prefix+set}" = set; then : + withval=$with_libiconv_prefix; + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + fi + fi + +fi + + LIBICONV= + LTLIBICONV= + INCICONV= + LIBICONV_PREFIX= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='iconv ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBICONV; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$acl_hardcode_direct" = yes; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBICONV; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" + else + LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" + else + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + LIBICONV_PREFIX="$basedir" + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCICONV; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBICONV; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBICONV; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" + ;; + esac + done + fi + else + LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" + done + fi + + + + + + + + am_save_CPPFLAGS="$CPPFLAGS" + + for element in $INCICONV; do + haveit= + for x in $CPPFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" + fi + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 +$as_echo_n "checking for iconv... " >&6; } +if ${am_cv_func_iconv+:} false; then : + $as_echo_n "(cached) " >&6 +else + + am_cv_func_iconv="no, consider installing GNU libiconv" + am_cv_lib_iconv=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + am_cv_func_iconv=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$am_cv_func_iconv" != yes; then + am_save_LIBS="$LIBS" + LIBS="$LIBS $LIBICONV" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + am_cv_lib_iconv=yes + am_cv_func_iconv=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$am_save_LIBS" + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 +$as_echo "$am_cv_func_iconv" >&6; } + if test "$am_cv_func_iconv" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 +$as_echo_n "checking for working iconv... " >&6; } +if ${am_cv_func_iconv_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + + am_save_LIBS="$LIBS" + if test $am_cv_lib_iconv = yes; then + LIBS="$LIBS $LIBICONV" + fi + if test "$cross_compiling" = yes; then : + case "$host_os" in + aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; + *) am_cv_func_iconv_works="guessing yes" ;; + esac +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +int main () +{ + /* Test against AIX 5.1 bug: Failures are not distinguishable from successful + returns. */ + { + iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); + if (cd_utf8_to_88591 != (iconv_t)(-1)) + { + static const char input[] = "\342\202\254"; /* EURO SIGN */ + char buf[10]; + const char *inptr = input; + size_t inbytesleft = strlen (input); + char *outptr = buf; + size_t outbytesleft = sizeof (buf); + size_t res = iconv (cd_utf8_to_88591, + (char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); + if (res == 0) + return 1; + } + } +#if 0 /* This bug could be worked around by the caller. */ + /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ + { + iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); + if (cd_88591_to_utf8 != (iconv_t)(-1)) + { + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + char buf[50]; + const char *inptr = input; + size_t inbytesleft = strlen (input); + char *outptr = buf; + size_t outbytesleft = sizeof (buf); + size_t res = iconv (cd_88591_to_utf8, + (char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); + if ((int)res > 0) + return 1; + } + } +#endif + /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is + provided. */ + if (/* Try standardized names. */ + iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) + /* Try IRIX, OSF/1 names. */ + && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) + /* Try AIX names. */ + && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) + /* Try HP-UX names. */ + && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) + return 1; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + am_cv_func_iconv_works=yes +else + am_cv_func_iconv_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS="$am_save_LIBS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 +$as_echo "$am_cv_func_iconv_works" >&6; } + case "$am_cv_func_iconv_works" in + *no) am_func_iconv=no am_cv_lib_iconv=no ;; + *) am_func_iconv=yes ;; + esac + else + am_func_iconv=no am_cv_lib_iconv=no + fi + if test "$am_func_iconv" = yes; then + +$as_echo "#define HAVE_ICONV 1" >>confdefs.h + + fi + if test "$am_cv_lib_iconv" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 +$as_echo_n "checking how to link with libiconv... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 +$as_echo "$LIBICONV" >&6; } + else + CPPFLAGS="$am_save_CPPFLAGS" + LIBICONV= + LTLIBICONV= + fi + + + + if test "$am_cv_func_iconv" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 +$as_echo_n "checking for iconv declaration... " >&6; } + if ${am_cv_proto_iconv+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +extern +#ifdef __cplusplus +"C" +#endif +#if defined(__STDC__) || defined(__cplusplus) +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); +#else +size_t iconv(); +#endif + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + am_cv_proto_iconv_arg1="" +else + am_cv_proto_iconv_arg1="const" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" +fi + + am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- + }$am_cv_proto_iconv" >&5 +$as_echo "${ac_t:- + }$am_cv_proto_iconv" >&6; } + +cat >>confdefs.h <<_ACEOF +#define ICONV_CONST $am_cv_proto_iconv_arg1 +_ACEOF + + fi + +if test "x$am_cv_func_iconv" = "xno"; then + as_fn_error $? "iconv is needed" "$LINENO" 5 +fi + +# Check whether --enable-joliet was given. +if test "${enable_joliet+set}" = set; then : + enableval=$enable_joliet; enable_joliet=$enableval +else + enable_joliet=yes +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 +$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } +if ${am_cv_langinfo_codeset+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char* cs = nl_langinfo(CODESET); return !cs; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + am_cv_langinfo_codeset=yes +else + am_cv_langinfo_codeset=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 +$as_echo "$am_cv_langinfo_codeset" >&6; } + if test $am_cv_langinfo_codeset = yes; then + +$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h + + fi + +if test "x${enable_joliet}" != "xno"; then + joliet_supported="yes" + if test "x$joliet_supported" = "xyes"; then + +$as_echo "#define HAVE_JOLIET 1" >>confdefs.h + + HAVE_JOLIET=1 + else + as_fn_error $? "You must have iconv installed." "$LINENO" 5 + fi +fi + + +# Check whether --enable-rock was given. +if test "${enable_rock+set}" = set; then : + enableval=$enable_rock; enable_rock=$enableval +else + enable_rock=yes +fi + +if test "x${enable_rock}" != "xno"; then + +$as_echo "#define HAVE_ROCK 1" >>confdefs.h + + HAVE_ROCK=1 +fi + + + if test "x$enable_rock" = "xyes"; then + ENABLE_ROCK_TRUE= + ENABLE_ROCK_FALSE='#' +else + ENABLE_ROCK_TRUE='#' + ENABLE_ROCK_FALSE= +fi + + +# Check whether --enable-cddb was given. +if test "${enable_cddb+set}" = set; then : + enableval=$enable_cddb; enable_cddb=$enableval +else + enable_cddb=check +fi + +if test "x$enable_cddb" != "xno"; then + + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_path_PKG_CONFIG"; then + ac_pt_PKG_CONFIG=$PKG_CONFIG + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $ac_pt_PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +if test -n "$ac_pt_PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +$as_echo "$ac_pt_PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + PKG_CONFIG=$ac_pt_PKG_CONFIG + fi +else + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +fi + +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=0.9.0 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PKG_CONFIG="" + fi + +fi + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CDDB" >&5 +$as_echo_n "checking for CDDB... " >&6; } + +if test -n "$CDDB_CFLAGS"; then + pkg_cv_CDDB_CFLAGS="$CDDB_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcddb >= 1.0.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libcddb >= 1.0.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CDDB_CFLAGS=`$PKG_CONFIG --cflags "libcddb >= 1.0.1" 2>/dev/null` +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$CDDB_LIBS"; then + pkg_cv_CDDB_LIBS="$CDDB_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcddb >= 1.0.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libcddb >= 1.0.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CDDB_LIBS=`$PKG_CONFIG --libs "libcddb >= 1.0.1" 2>/dev/null` +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + CDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcddb >= 1.0.1" 2>&1` + else + CDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcddb >= 1.0.1" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$CDDB_PKG_ERRORS" >&5 + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: new enough libcddb not found. CDDB access disabled. Get libcddb from http://libcddb.sourceforge.net" >&5 +$as_echo "$as_me: WARNING: new enough libcddb not found. CDDB access disabled. Get libcddb from http://libcddb.sourceforge.net" >&2;} + HAVE_CDDB=no +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: new enough libcddb not found. CDDB access disabled. Get libcddb from http://libcddb.sourceforge.net" >&5 +$as_echo "$as_me: WARNING: new enough libcddb not found. CDDB access disabled. Get libcddb from http://libcddb.sourceforge.net" >&2;} + HAVE_CDDB=no +else + CDDB_CFLAGS=$pkg_cv_CDDB_CFLAGS + CDDB_LIBS=$pkg_cv_CDDB_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + HAVE_CDDB=yes + +$as_echo "#define HAVE_CDDB /**/" >>confdefs.h + + +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 +$as_echo_n "checking for connect in -lsocket... " >&6; } +if ${ac_cv_lib_socket_connect+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char connect (); +int +main () +{ +return connect (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_socket_connect=yes +else + ac_cv_lib_socket_connect=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 +$as_echo "$ac_cv_lib_socket_connect" >&6; } +if test "x$ac_cv_lib_socket_connect" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBSOCKET 1 +_ACEOF + + LIBS="-lsocket $LIBS" + +fi + + ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" +if test "x$ac_cv_func_gethostbyname" = xyes; then : + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 +$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_gethostbyname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +int +main () +{ +return gethostbyname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl_gethostbyname=yes +else + ac_cv_lib_nsl_gethostbyname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 +$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } +if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBNSL 1 +_ACEOF + + LIBS="-lnsl $LIBS" + +fi + +fi + +fi + + + + +# We have to disable cdda_player unless we have either ncurses.h or +# curses.h +have_ncurses_h='no' +if test "x$enable_cdda_player" = "xyes"; then + enable_cdda_player='no' + for ac_header in ncurses.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" +if test "x$ac_cv_header_ncurses_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_NCURSES_H 1 +_ACEOF + enable_cdda_player='yes'; have_ncurses_h='yes' +else + for ac_header in curses.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" +if test "x$ac_cv_header_curses_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_CURSES_H 1 +_ACEOF + enable_cdda_player='yes' +else + for ac_header in ncurses/ncurses.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "ncurses/ncurses.h" "ac_cv_header_ncurses_ncurses_h" "$ac_includes_default" +if test "x$ac_cv_header_ncurses_ncurses_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_NCURSES_NCURSES_H 1 +_ACEOF + enable_cdda_player='yes' +fi + +done + + +fi + +done + +fi + +done + +fi + + +$as_echo "#define HAVE_KEYPAD /**/" >>confdefs.h + +if test "x$enable_cdda_player" = "xyes"; then + if test "x$have_ncurses_h" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mvprintw in -lncurses" >&5 +$as_echo_n "checking for mvprintw in -lncurses... " >&6; } +if ${ac_cv_lib_ncurses_mvprintw+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lncurses $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mvprintw (); +int +main () +{ +return mvprintw (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ncurses_mvprintw=yes +else + ac_cv_lib_ncurses_mvprintw=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_mvprintw" >&5 +$as_echo "$ac_cv_lib_ncurses_mvprintw" >&6; } +if test "x$ac_cv_lib_ncurses_mvprintw" = xyes; then : + LIBCURSES=ncurses; CDDA_PLAYER_LIBS="$CDDA_PLAYER_LIBS -lncurses" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mvprintw in -lcurses" >&5 +$as_echo_n "checking for mvprintw in -lcurses... " >&6; } +if ${ac_cv_lib_curses_mvprintw+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcurses $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mvprintw (); +int +main () +{ +return mvprintw (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_curses_mvprintw=yes +else + ac_cv_lib_curses_mvprintw=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_mvprintw" >&5 +$as_echo "$ac_cv_lib_curses_mvprintw" >&6; } +if test "x$ac_cv_lib_curses_mvprintw" = xyes; then : + LIBCURSES=curses; + CDDA_PLAYER_LIBS="$CDDA_PLAYER_LIBS -lcurses" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will not build cdda-player - did not find libncurses or libcurses" >&5 +$as_echo "$as_me: WARNING: Will not build cdda-player - did not find libncurses or libcurses" >&2;} + enable_cdda_player=no +fi + +fi + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mvprintw in -lcurses" >&5 +$as_echo_n "checking for mvprintw in -lcurses... " >&6; } +if ${ac_cv_lib_curses_mvprintw+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcurses $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char mvprintw (); +int +main () +{ +return mvprintw (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_curses_mvprintw=yes +else + ac_cv_lib_curses_mvprintw=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_mvprintw" >&5 +$as_echo "$ac_cv_lib_curses_mvprintw" >&6; } +if test "x$ac_cv_lib_curses_mvprintw" = xyes; then : + LIBCURSES=curses; + CDDA_PLAYER_LIBS="$CDDA_PLAYER_LIBS -lcurses" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will not build cdda-player - did not find libcurses" >&5 +$as_echo "$as_me: WARNING: Will not build cdda-player - did not find libcurses" >&2;} +fi + + fi + if test "x$enable_cdda_player" = "xyes"; then + as_ac_Lib=`$as_echo "ac_cv_lib_$LIBCURSES''_keypad" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for keypad in -l$LIBCURSES" >&5 +$as_echo_n "checking for keypad in -l$LIBCURSES... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-l$LIBCURSES $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char keypad (); +int +main () +{ +return keypad (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$as_ac_Lib=yes" +else + eval "$as_ac_Lib=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +eval ac_res=\$$as_ac_Lib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + HAVE_KEYPAD=yes +fi + + fi +fi + + if test "x$enable_cdda_player" = "xyes"; then + BUILD_CDDA_PLAYER_TRUE= + BUILD_CDDA_PLAYER_FALSE='#' +else + BUILD_CDDA_PLAYER_TRUE='#' + BUILD_CDDA_PLAYER_FALSE= +fi + + + +# Check whether --enable-vcd_info was given. +if test "${enable_vcd_info+set}" = set; then : + enableval=$enable_vcd_info; enable_vcd_info=${enableval} +else + enable_vcd_info=no +fi + +if test "x$enable_vcd_info" = "xyes"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VCDINFO" >&5 +$as_echo_n "checking for VCDINFO... " >&6; } + +if test -n "$VCDINFO_CFLAGS"; then + pkg_cv_VCDINFO_CFLAGS="$VCDINFO_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvcdinfo >= 0.7.21\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libvcdinfo >= 0.7.21") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_VCDINFO_CFLAGS=`$PKG_CONFIG --cflags "libvcdinfo >= 0.7.21" 2>/dev/null` +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$VCDINFO_LIBS"; then + pkg_cv_VCDINFO_LIBS="$VCDINFO_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvcdinfo >= 0.7.21\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libvcdinfo >= 0.7.21") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_VCDINFO_LIBS=`$PKG_CONFIG --libs "libvcdinfo >= 0.7.21" 2>/dev/null` +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + VCDINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libvcdinfo >= 0.7.21" 2>&1` + else + VCDINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libvcdinfo >= 0.7.21" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$VCDINFO_PKG_ERRORS" >&5 + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: a new enough libvcdinfo not found. +VCD info display in cd-info disabled. +libvcdinfo is part of vcdimager. Get it from http://vcdimager.org" >&5 +$as_echo "$as_me: WARNING: a new enough libvcdinfo not found. +VCD info display in cd-info disabled. +libvcdinfo is part of vcdimager. Get it from http://vcdimager.org" >&2;} + enable_vcd_info=no +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: a new enough libvcdinfo not found. +VCD info display in cd-info disabled. +libvcdinfo is part of vcdimager. Get it from http://vcdimager.org" >&5 +$as_echo "$as_me: WARNING: a new enough libvcdinfo not found. +VCD info display in cd-info disabled. +libvcdinfo is part of vcdimager. Get it from http://vcdimager.org" >&2;} + enable_vcd_info=no +else + VCDINFO_CFLAGS=$pkg_cv_VCDINFO_CFLAGS + VCDINFO_LIBS=$pkg_cv_VCDINFO_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +$as_echo "#define HAVE_VCDINFO 1" >>confdefs.h + +fi +fi + + + + +mkdir_p="${MKDIR_P}" + + +ac_config_commands="$ac_config_commands checks" + + +## AC_CONFIG_FILES([ po/Makefile.in\ +ac_config_files="$ac_config_files Makefile example/Makefile include/Makefile include/cdio/Makefile include/cdio++/Makefile include/cdio/version.h doc/doxygen/Doxyfile doc/Makefile lib/Makefile lib/driver/Makefile lib/iso9660/Makefile lib/udf/Makefile libcdio.pc libiso9660.pc libudf.pc package/libcdio.spec src/Makefile test/check_common_fn test/data/Makefile test/driver/Makefile test/Makefile" + + +if test "x$enable_cxx" != "xno" ; then + ac_config_files="$ac_config_files example/C++/Makefile example/C++/OO/Makefile lib/cdio++/Makefile libcdio++.pc libiso9660++.pc" + +fi + +# AC_CONFIG_FILES([po/Makefile]) +ac_config_files="$ac_config_files test/check_cue.sh" + +ac_config_files="$ac_config_files test/check_iso.sh" + +ac_config_files="$ac_config_files test/check_nrg.sh" + +ac_config_files="$ac_config_files test/check_udf.sh" + +ac_config_files="$ac_config_files test/check_iso_read.sh" + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 +$as_echo_n "checking that generated files are newer than configure... " >&6; } + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then + as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 +$as_echo_n "checking that generated files are newer than configure... " >&6; } + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } +if test -z "${ENABLE_CXX_BINDINGS_TRUE}" && test -z "${ENABLE_CXX_BINDINGS_FALSE}"; then + as_fn_error $? "conditional \"ENABLE_CXX_BINDINGS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${ENABLE_CPP_TRUE}" && test -z "${ENABLE_CPP_FALSE}"; then + as_fn_error $? "conditional \"ENABLE_CPP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then + as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then + as_fn_error $? "conditional \"HAVE_PERL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then + as_fn_error $? "conditional \"CYGWIN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${BUILD_CD_DRIVE_TRUE}" && test -z "${BUILD_CD_DRIVE_FALSE}"; then + as_fn_error $? "conditional \"BUILD_CD_DRIVE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${BUILD_CDINFO_TRUE}" && test -z "${BUILD_CDINFO_FALSE}"; then + as_fn_error $? "conditional \"BUILD_CDINFO\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${BUILD_CD_READ_TRUE}" && test -z "${BUILD_CD_READ_FALSE}"; then + as_fn_error $? "conditional \"BUILD_CD_READ\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${BUILD_ISO_INFO_TRUE}" && test -z "${BUILD_ISO_INFO_FALSE}"; then + as_fn_error $? "conditional \"BUILD_ISO_INFO\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${BUILD_ISO_READ_TRUE}" && test -z "${BUILD_ISO_READ_FALSE}"; then + as_fn_error $? "conditional \"BUILD_ISO_READ\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${BUILD_CDINFO_LINUX_TRUE}" && test -z "${BUILD_CDINFO_LINUX_FALSE}"; then + as_fn_error $? "conditional \"BUILD_CDINFO_LINUX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${BUILD_CDIOTEST_TRUE}" && test -z "${BUILD_CDIOTEST_FALSE}"; then + as_fn_error $? "conditional \"BUILD_CDIOTEST\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${BUILD_VERSIONED_LIBS_TRUE}" && test -z "${BUILD_VERSIONED_LIBS_FALSE}"; then + as_fn_error $? "conditional \"BUILD_VERSIONED_LIBS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${DISABLE_CPP_TRUE}" && test -z "${DISABLE_CPP_FALSE}"; then + as_fn_error $? "conditional \"DISABLE_CPP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${ENABLE_ROCK_TRUE}" && test -z "${ENABLE_ROCK_FALSE}"; then + as_fn_error $? "conditional \"ENABLE_ROCK\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${BUILD_CDDA_PLAYER_TRUE}" && test -z "${BUILD_CDDA_PLAYER_FALSE}"; then + as_fn_error $? "conditional \"BUILD_CDDA_PLAYER\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by libcdio $as_me 2.0.0, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +libcdio config.status 2.0.0 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' +shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' +PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' +lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' +lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' +configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' +configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' +predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' +postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' +predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' +postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' +LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' +reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' +reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' +GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' +inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' +link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' +always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' +exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' +predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' +postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' +predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' +postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' + +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in AS \ +DLLTOOL \ +OBJDUMP \ +SHELL \ +ECHO \ +PATH_SEPARATOR \ +SED \ +GREP \ +EGREP \ +FGREP \ +LD \ +NM \ +LN_S \ +lt_SP2NL \ +lt_NL2SP \ +reload_flag \ +deplibs_check_method \ +file_magic_cmd \ +file_magic_glob \ +want_nocaseglob \ +sharedlib_from_linklib_cmd \ +AR \ +AR_FLAGS \ +archiver_list_spec \ +STRIP \ +RANLIB \ +CC \ +CFLAGS \ +compiler \ +lt_cv_sys_global_symbol_pipe \ +lt_cv_sys_global_symbol_to_cdecl \ +lt_cv_sys_global_symbol_to_import \ +lt_cv_sys_global_symbol_to_c_name_address \ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ +lt_cv_nm_interface \ +nm_file_list_spec \ +lt_cv_truncate_bin \ +lt_prog_compiler_no_builtin_flag \ +lt_prog_compiler_pic \ +lt_prog_compiler_wl \ +lt_prog_compiler_static \ +lt_cv_prog_compiler_c_o \ +need_locks \ +MANIFEST_TOOL \ +DSYMUTIL \ +NMEDIT \ +LIPO \ +OTOOL \ +OTOOL64 \ +shrext_cmds \ +export_dynamic_flag_spec \ +whole_archive_flag_spec \ +compiler_needs_object \ +with_gnu_ld \ +allow_undefined_flag \ +no_undefined_flag \ +hardcode_libdir_flag_spec \ +hardcode_libdir_separator \ +exclude_expsyms \ +include_expsyms \ +file_list_spec \ +variables_saved_for_relink \ +libname_spec \ +library_names_spec \ +soname_spec \ +install_override_mode \ +finish_eval \ +old_striplib \ +striplib \ +compiler_lib_search_dirs \ +predep_objects \ +postdep_objects \ +predeps \ +postdeps \ +compiler_lib_search_path \ +LD_CXX \ +reload_flag_CXX \ +compiler_CXX \ +lt_prog_compiler_no_builtin_flag_CXX \ +lt_prog_compiler_pic_CXX \ +lt_prog_compiler_wl_CXX \ +lt_prog_compiler_static_CXX \ +lt_cv_prog_compiler_c_o_CXX \ +export_dynamic_flag_spec_CXX \ +whole_archive_flag_spec_CXX \ +compiler_needs_object_CXX \ +with_gnu_ld_CXX \ +allow_undefined_flag_CXX \ +no_undefined_flag_CXX \ +hardcode_libdir_flag_spec_CXX \ +hardcode_libdir_separator_CXX \ +exclude_expsyms_CXX \ +include_expsyms_CXX \ +file_list_spec_CXX \ +compiler_lib_search_dirs_CXX \ +predep_objects_CXX \ +postdep_objects_CXX \ +predeps_CXX \ +postdeps_CXX \ +compiler_lib_search_path_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in reload_cmds \ +old_postinstall_cmds \ +old_postuninstall_cmds \ +old_archive_cmds \ +extract_expsyms_cmds \ +old_archive_from_new_cmds \ +old_archive_from_expsyms_cmds \ +archive_cmds \ +archive_expsym_cmds \ +module_cmds \ +module_expsym_cmds \ +export_symbols_cmds \ +prelink_cmds \ +postlink_cmds \ +postinstall_cmds \ +postuninstall_cmds \ +finish_cmds \ +sys_lib_search_path_spec \ +configure_time_dlsearch_path \ +configure_time_lt_sys_library_path \ +reload_cmds_CXX \ +old_archive_cmds_CXX \ +old_archive_from_new_cmds_CXX \ +old_archive_from_expsyms_cmds_CXX \ +archive_cmds_CXX \ +archive_expsym_cmds_CXX \ +module_cmds_CXX \ +module_expsym_cmds_CXX \ +export_symbols_cmds_CXX \ +prelink_cmds_CXX \ +postlink_cmds_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +ac_aux_dir='$ac_aux_dir' + +# See if we are running on zsh, and set the options that allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST +fi + + + PACKAGE='$PACKAGE' + VERSION='$VERSION' + RM='$RM' + ofile='$ofile' + + + + + + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "checks") CONFIG_COMMANDS="$CONFIG_COMMANDS checks" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;; + "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; + "include/cdio/Makefile") CONFIG_FILES="$CONFIG_FILES include/cdio/Makefile" ;; + "include/cdio++/Makefile") CONFIG_FILES="$CONFIG_FILES include/cdio++/Makefile" ;; + "include/cdio/version.h") CONFIG_FILES="$CONFIG_FILES include/cdio/version.h" ;; + "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;; + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; + "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; + "lib/driver/Makefile") CONFIG_FILES="$CONFIG_FILES lib/driver/Makefile" ;; + "lib/iso9660/Makefile") CONFIG_FILES="$CONFIG_FILES lib/iso9660/Makefile" ;; + "lib/udf/Makefile") CONFIG_FILES="$CONFIG_FILES lib/udf/Makefile" ;; + "libcdio.pc") CONFIG_FILES="$CONFIG_FILES libcdio.pc" ;; + "libiso9660.pc") CONFIG_FILES="$CONFIG_FILES libiso9660.pc" ;; + "libudf.pc") CONFIG_FILES="$CONFIG_FILES libudf.pc" ;; + "package/libcdio.spec") CONFIG_FILES="$CONFIG_FILES package/libcdio.spec" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "test/check_common_fn") CONFIG_FILES="$CONFIG_FILES test/check_common_fn" ;; + "test/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/data/Makefile" ;; + "test/driver/Makefile") CONFIG_FILES="$CONFIG_FILES test/driver/Makefile" ;; + "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; + "example/C++/Makefile") CONFIG_FILES="$CONFIG_FILES example/C++/Makefile" ;; + "example/C++/OO/Makefile") CONFIG_FILES="$CONFIG_FILES example/C++/OO/Makefile" ;; + "lib/cdio++/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cdio++/Makefile" ;; + "libcdio++.pc") CONFIG_FILES="$CONFIG_FILES libcdio++.pc" ;; + "libiso9660++.pc") CONFIG_FILES="$CONFIG_FILES libiso9660++.pc" ;; + "test/check_cue.sh") CONFIG_FILES="$CONFIG_FILES test/check_cue.sh" ;; + "test/check_iso.sh") CONFIG_FILES="$CONFIG_FILES test/check_iso.sh" ;; + "test/check_nrg.sh") CONFIG_FILES="$CONFIG_FILES test/check_nrg.sh" ;; + "test/check_udf.sh") CONFIG_FILES="$CONFIG_FILES test/check_udf.sh" ;; + "test/check_iso_read.sh") CONFIG_FILES="$CONFIG_FILES test/check_iso_read.sh" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Older Autoconf quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named 'Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running 'make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "$am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "libtool":C) + + # See if we are running on zsh, and set the options that allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST + fi + + cfgfile=${ofile}T + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL +# Generated automatically by $as_me ($PACKAGE) $VERSION +# NOTE: Changes made to this file will be lost: look at ltmain.sh. + +# Provide generalized library-building support services. +# Written by Gordon Matzigkeit, 1996 + +# Copyright (C) 2014 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# GNU Libtool is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of of the License, or +# (at your option) any later version. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program or library that is built +# using GNU Libtool, you may include this file under the same +# distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + + +# The names of the tagged configurations supported by this script. +available_tags='CXX ' + +# Configured defaults for sys_lib_dlsearch_path munging. +: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} + +# ### BEGIN LIBTOOL CONFIG + +# Assembler program. +AS=$lt_AS + +# DLL creation program. +DLLTOOL=$lt_DLLTOOL + +# Object dumper program. +OBJDUMP=$lt_OBJDUMP + +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# What type of objects to build. +pic_mode=$pic_mode + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# Shared archive member basename,for filename based shared library versioning on AIX. +shared_archive_member_spec=$shared_archive_member_spec + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# An echo program that protects backslashes. +ECHO=$lt_ECHO + +# The PATH separator for the build system. +PATH_SEPARATOR=$lt_PATH_SEPARATOR + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="\$SED -e 1s/^X//" + +# A grep program that handles long lines. +GREP=$lt_GREP + +# An ERE matcher. +EGREP=$lt_EGREP + +# A literal string matcher. +FGREP=$lt_FGREP + +# A BSD- or MS-compatible name lister. +NM=$lt_NM + +# Whether we need soft or hard links. +LN_S=$lt_LN_S + +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len + +# Object file suffix (normally "o"). +objext=$ac_objext + +# Executable file suffix (normally ""). +exeext=$exeext + +# whether the shell understands "unset". +lt_unset=$lt_unset + +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL + +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP + +# convert \$build file names to \$host format. +to_host_file_cmd=$lt_cv_to_host_file_cmd + +# convert \$build files to toolchain format. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method = "file_magic". +file_magic_cmd=$lt_file_magic_cmd + +# How to find potential files when deplibs_check_method = "file_magic". +file_magic_glob=$lt_file_magic_glob + +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". +want_nocaseglob=$lt_want_nocaseglob + +# Command to associate shared and link libraries. +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd + +# The archiver. +AR=$lt_AR + +# Flags to create an archive. +AR_FLAGS=$lt_AR_FLAGS + +# How to feed a file listing to the archiver. +archiver_list_spec=$lt_archiver_list_spec + +# A symbol stripping program. +STRIP=$lt_STRIP + +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Whether to use a lock for old archive extraction. +lock_old_archive_extraction=$lock_old_archive_extraction + +# A C compiler. +LTCC=$lt_CC + +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm into a list of symbols to manually relocate. +global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import + +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix + +# The name lister interface. +nm_interface=$lt_lt_cv_nm_interface + +# Specify filename containing input files for \$NM. +nm_file_list_spec=$lt_nm_file_list_spec + +# The root where to search for dependent libraries,and where our libraries should be installed. +lt_sysroot=$lt_sysroot + +# Command to truncate a binary pipe. +lt_truncate_bin=$lt_lt_cv_truncate_bin + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Manifest tool. +MANIFEST_TOOL=$lt_MANIFEST_TOOL + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL + +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 + +# Old archive suffix (normally "a"). +libext=$libext + +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink + +# Do we need the "lib" prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Library versioning type. +version_type=$version_type + +# Shared library runtime path variable. +runpath_var=$runpath_var + +# Shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode + +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Compile-time system search path for libraries. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Detected run-time system search path for libraries. +sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path + +# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. +configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + + +# The linker used to build libraries. +LD=$lt_LD + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds + +# A language specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU compiler? +with_gcc=$GCC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct + +# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \$shlibpath_var if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects +postdep_objects=$lt_postdep_objects +predeps=$lt_predeps +postdeps=$lt_postdeps + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + +# ### END LIBTOOL CONFIG + +_LT_EOF + + cat <<'_LT_EOF' >> "$cfgfile" + +# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE + +# func_munge_path_list VARIABLE PATH +# ----------------------------------- +# VARIABLE is name of variable containing _space_ separated list of +# directories to be munged by the contents of PATH, which is string +# having a format: +# "DIR[:DIR]:" +# string "DIR[ DIR]" will be prepended to VARIABLE +# ":DIR[:DIR]" +# string "DIR[ DIR]" will be appended to VARIABLE +# "DIRP[:DIRP]::[DIRA:]DIRA" +# string "DIRP[ DIRP]" will be prepended to VARIABLE and string +# "DIRA[ DIRA]" will be appended to VARIABLE +# "DIR[:DIR]" +# VARIABLE will be replaced by "DIR[ DIR]" +func_munge_path_list () +{ + case x$2 in + x) + ;; + *:) + eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" + ;; + x:*) + eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" + ;; + *::*) + eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" + eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" + ;; + *) + eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" + ;; + esac +} + + +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +func_cc_basename () +{ + for cc_temp in $*""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac + done + func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` +} + + +# ### END FUNCTIONS SHARED WITH CONFIGURE + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test set != "${COLLECT_NAMES+set}"; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + +ltmain=$ac_aux_dir/ltmain.sh + + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + + + cat <<_LT_EOF >> "$ofile" + +# ### BEGIN LIBTOOL TAG CONFIG: CXX + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# How to create reloadable object files. +reload_flag=$lt_reload_flag_CXX +reload_cmds=$lt_reload_cmds_CXX + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds_CXX + +# A language specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU compiler? +with_gcc=$GCC_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object_CXX + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld_CXX + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \$shlibpath_var if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath_CXX + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds_CXX + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds_CXX + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec_CXX + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects_CXX +postdep_objects=$lt_postdep_objects_CXX +predeps=$lt_predeps_CXX +postdeps=$lt_postdeps_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# ### END LIBTOOL TAG CONFIG: CXX +_LT_EOF + + ;; + "checks":C) chmod +x test/check_cue.sh; chmod +x test/check_nrg.sh + ;; + "test/check_cue.sh":F) chmod +x test/check_cue.sh ;; + "test/check_iso.sh":F) chmod +x test/check_iso.sh ;; + "test/check_nrg.sh":F) chmod +x test/check_nrg.sh ;; + "test/check_udf.sh":F) chmod +x test/check_udf.sh ;; + "test/check_iso_read.sh":F) chmod +x test/check_iso_read.sh ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: +Using CD-ROM drivers : $cd_drivers +Building cd-info : $(test \"x$enable_cd_info\" = \"xyes\" && echo yes || echo no) +Building cd-read : $(test \"x$enable_cd_read\" = \"xyes\" && echo yes || echo no) +Building cdda-player : $(test \"x$enable_cdda_player\" = \"xyes\" && echo yes || echo no) +Building iso-info : $(test \"x$enable_iso_info\" = \"xyes\" && echo yes || echo no) +Building iso-read : $(test \"x$enable_iso_read\" = \"xyes\" && echo yes || echo no) +Building C++ programs: $(test \"x$enable_cxx\" != \"xno\" && echo yes || echo no)" >&5 +$as_echo "$as_me: +Using CD-ROM drivers : $cd_drivers +Building cd-info : $(test \"x$enable_cd_info\" = \"xyes\" && echo yes || echo no) +Building cd-read : $(test \"x$enable_cd_read\" = \"xyes\" && echo yes || echo no) +Building cdda-player : $(test \"x$enable_cdda_player\" = \"xyes\" && echo yes || echo no) +Building iso-info : $(test \"x$enable_iso_info\" = \"xyes\" && echo yes || echo no) +Building iso-read : $(test \"x$enable_iso_read\" = \"xyes\" && echo yes || echo no) +Building C++ programs: $(test \"x$enable_cxx\" != \"xno\" && echo yes || echo no)" >&6;} diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..f8f7f7d --- /dev/null +++ b/configure.ac @@ -0,0 +1,772 @@ +dnl Copyright (C) 2003-2008, 2010, 2011-2014, 2018 +dnl Rocky Bernstein +dnl +dnl This program is free software: you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation, either version 3 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program. If not, see . + +define(RELEASE_NUM, 2.0.0) +define(CDIO_VERSION_STR, $1) + +AC_PREREQ(2.61) + +AC_INIT([libcdio], [CDIO_VERSION_STR(RELEASE_NUM)], [https://savannah.gnu.org/bugs/?group=libcdio]) +AC_CONFIG_SRCDIR(src/cd-info.c) +AM_INIT_AUTOMAKE([foreign subdir-objects]) + +AC_CANONICAL_HOST +AC_CONFIG_HEADERS(config.h) +AC_CONFIG_MACRO_DIR([m4]) + +# Enable silent build rules by default (Automake v1.11 or later). +# Disable by either passing --disable-silent-rules to configure or passing V=1 to make +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], + [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])]) + +# FIXME: write a m4 macro to convert x.y.zjunk to x*10000 + y*100 + z +# LIBCDIO_VERSION_NUM=`echo RELEASE_NUM | cut -d . -f 1 | tr -d a-z` +LIBCDIO_VERSION_NUM=20000 +AC_SUBST(LIBCDIO_VERSION_NUM) + +AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir) +AM_MAINTAINER_MODE + +AM_SANITY_CHECK + +AC_ARG_WITH(cd-drive, + AC_HELP_STRING([--without-cd-drive], [don't build program cd-drive (default with)]), +enable_cd_drive="${withval}", enable_cd_drive=yes) + +AC_ARG_WITH(cd-info, + AC_HELP_STRING([--without-cd-info], [don't build program cd-info (default with)]), +enable_cd_info="${withval}", enable_cd_info=yes) + +AC_ARG_WITH(cdda-player, + AC_HELP_STRING([--without-cdda-player], [don't build program cdda-player (default with)]), +enable_cdda_player="${withval}", enable_cdda_player=yes) + +AC_ARG_WITH(cd-read, + AC_HELP_STRING([--without-cd-read], [don't build program cd-read (default with)]), +enable_cd_read="${withval}", enable_cd_read=yes) + +AC_ARG_WITH(iso-info, + AC_HELP_STRING([--without-iso-info], [don't build program iso-info (default with)]), +enable_iso_info="${withval}", enable_iso_info=yes) + +AC_ARG_WITH(iso-read, + AC_HELP_STRING([--without-iso-read], [don't build program iso-read (default with)]), +enable_iso_read="${withval}", enable_iso_read=yes) + +AC_ARG_WITH(versioned-libs, + AC_HELP_STRING([--without-versioned-libs], [build versioned library symbols (default enabled if you have GNU ld)]), +enable_versioned_libs="${withval}", enable_versioned_libs=yes) + +AC_ARG_ENABLE([cxx], + AC_HELP_STRING([--disable-cxx], [Disable C++ bindings (default enabled)])) +AM_CONDITIONAL([ENABLE_CXX_BINDINGS], [test "x$enable_cxx" != "xno"]) + +AC_ARG_ENABLE(cpp-progs, + AC_HELP_STRING([--enable-cpp-progs], [make C++ example programs (default enabled)])) +AM_CONDITIONAL(ENABLE_CPP, test "x$enable_cpp_progs" = "xyes") + +AC_ARG_ENABLE(example-progs, + AC_HELP_STRING([--disable-example-progs], [Don't build libcdio sample programs])) + +AM_CONDITIONAL(BUILD_EXAMPLES, test "x$enable_example_progs" != "xno") + +dnl We use C +AC_PROG_CC +AM_PROG_CC_C_O + +if test "x$enable_cxx" != "xno" ; then + AC_PROG_CXX +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + +dnl For iso_read test +AC_CHECK_PROGS(ISO_MAKING_COMMAND, genisoimage mkisofs) + +dnl Checks for programs. +AC_AIX + +cd_drivers='cdrdao, BIN/CUE, NRG' + +WARN_CFLAGS='' +if test "x$GCC" != "xyes"; then + AC_MSG_WARN([ + *** non GNU CC compiler detected. + *** This package has not been tested very well with non GNU compilers + *** you should try to use 'gcc' for compiling this package.]) +else + CHECK_CFLAGS=" + -Wall + -Wbad-function-cast + -Wcast-align + -Wchar-subscripts + -Wdeclaration-after-statement + -Wdisabled-optimization + -Wendif-labels + -Winline + -Wmissing-declarations + -Wmissing-prototypes + -Wnested-externs + -Wno-sign-compare + -Wpointer-arith + -Wshadow + -Wstrict-prototypes + -Wundef + -Wunused + -Wwrite-strings +" + for OPT in $CHECK_CFLAGS; do + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $OPT" + AC_MSG_CHECKING([whether $CC understands $OPT]) + AC_TRY_COMPILE([], [], has_option=yes, has_option=no,) + CFLAGS="$SAVE_CFLAGS" + AC_MSG_RESULT($has_option) + if test "x$has_option" = "xyes"; then + WARN_CFLAGS="$WARN_CFLAGS $OPT" + fi + unset has_option + unset SAVE_CFLAGS + done +fi +CFLAGS="$CFLAGS $WARN_CFLAGS" + +# We use Perl for documentation and regression tests +AC_PATH_PROG(PERL, perl, false) +AC_SUBST(PERL) +AM_CONDITIONAL(HAVE_PERL, test "x$PERL" != "xfalse") + +# We use a diff in regression testing +AC_PATH_PROG(DIFF, diff, no) +DIFF_OPTS= + +if test "x$DIFF" = "xno"; then + AC_PATH_PROG(DIFF, cmp, no) +else + # Try for GNU diff options. + # MSDOG output uses \r\n rather than \n in tests + for diff_opt in -w --unified ; do + if $DIFF $diff_opt ./configure ./configure > /dev/null 2>&1; then + AC_MSG_RESULT([adding $diff_opt to diff in regression tests]) + DIFF_OPTS="$DIFF_OPTS $diff_opt" + fi + done +fi +AC_SUBST(DIFF) +AC_SUBST(DIFF_OPTS) +AC_SUBST(RM) + +dnl check for large file support +AC_SYS_LARGEFILE + +dnl we need to define _FILE_OFFSET_BITS or _LARGE_FILES on the compiler command +dnl line because otherwise the system headers risk being included before +dnl problems +if test "x$ac_cv_sys_largefiles" = "xyes"; then + if test "x$ac_cv_sys_file_offset_bits" = "x64"; then + LIBCDIO_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" + else + LIBCDIO_LARGEFILE_FLAGS="-D_LARGE_FILES" + fi + if test "x$ac_cv_sys_largefile_source" != "xno"; then + LIBCDIO_LARGEFILE_FLAGS="$LIBDDIO_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" + fi + CPPFLAGS="$CPPFLAGS $LIBCDIO_LARGEFILE_FLAGS" +fi + +AC_DEFINE(LIBCDIO_CONFIG_H, 1, + [Is set when libcdio's config.h has been included. Applications wishing to sue their own config.h values (such as set by the application's configure script can define this before including any of libcdio's headers.]) + +dnl headers + +AC_HEADER_STDC +AC_CHECK_HEADERS(alloca.h errno.h fcntl.h glob.h limits.h pwd.h stdbool.h) +AC_CHECK_HEADERS(stdarg.h stdbool.h stdio.h sys/cdio.h sys/param.h \ + sys/time.h sys/timeb.h sys/utsname.h) +AC_STRUCT_TIMEZONE + +## FreeBSD 4 has getopt in unistd.h. So we include that before +## getopt.h +AC_CHECK_HEADERS(unistd.h getopt.h) + +AC_SUBST(SBPCD_H) +AC_SUBST(UCDROM_H) +AC_SUBST(TYPESIZES) + +## Check compiler-related things +AC_C_BIGENDIAN +AC_C_CONST +AC_C_INLINE + +## ISOC99_PRAGMA +AC_MSG_CHECKING([whether $CC supports ISOC99 _Pragma()]) +AC_TRY_COMPILE([],[_Pragma("pack(1)")], [ + ISOC99_PRAGMA=yes + AC_DEFINE(HAVE_ISOC99_PRAGMA, [], [Supports ISO _Pragma() macro]) +],ISOC99_PRAGMA=no) +AC_MSG_RESULT($ISOC99_PRAGMA) + +## Check for Windows header files +AC_CHECK_HEADERS([ntddcdrm.h ddk/ntddcdrm.h \ + ntddscsi.h ddk/ntddscsi.h ddk/scsi.h], +[], [], [AC_INCLUDES_DEFAULT +#include +]) + +## +## Check for S_ISSOCK() and S_ISLNK() macros +## +AC_MSG_CHECKING(for S_ISLNK() macro) +AC_LINK_IFELSE([AC_LANG_PROGRAM([ +#ifdef HAVE_SYS_STAT_H +# include +#endif +],[return S_ISLNK(0);])], +[ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_S_ISLNK, [], [Define this defines S_ISLNK()]) ], +[ AC_MSG_RESULT(no) ]) + +AC_MSG_CHECKING([for S_ISSOCK() macro]) +AC_LINK_IFELSE([AC_LANG_PROGRAM([ +#ifdef HAVE_SYS_STAT_H +# include +#endif +],[return S_ISSOCK(0);])], +[ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_S_ISSOCK, [], [Define this defines S_ISSOCK()]) ], +[ AC_MSG_RESULT(no) ]) + +AC_MSG_CHECKING([for struct timespec]) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ +#ifdef HAVE_SYS_TIME_H +#include +#endif +],[struct timespec ts;])], +[ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_STRUCT_TIMESPEC, [], [Define this if you have struct timespec]) ], +[ AC_MSG_RESULT(no) ]) + +dnl empty_array_size +AC_MSG_CHECKING([how to create empty arrays]) + +empty_array_size="xxxx" +AC_TRY_COMPILE([],[struct { int foo; int bar[]; } doo;], empty_array_size="") + +if test "x$empty_array_size" = "xxxx"; then + AC_TRY_COMPILE([],[struct { int foo; int bar[0]; } doo;], empty_array_size="0") +fi + +if test "x$empty_array_size" = "xxxx"; then + AC_MSG_ERROR([compiler is unable to creaty empty arrays]) +else + AC_DEFINE_UNQUOTED(EMPTY_ARRAY_SIZE, $empty_array_size, + [what to put between the brackets for empty arrays]) + changequote(`,') + msg="[${empty_array_size}]" + changequote([,]) + AC_MSG_RESULT($msg) +fi + +dnl Enable the creation of shared libraries under Win32. +AC_LIBTOOL_WIN32_DLL + +dnl AM_PROG_LIBTOOL tests whether we have GNU ld +dnl this must come before checking --with-versioned-libs +dnl which requires GNU ld. +AM_PROG_LIBTOOL + +dnl system + +# FIXME: +# I believe some OS's require -lm, but I don't recall for what function +# When we find it, put it in below instead of "cos". +AC_CHECK_LIB(m, cos, [LIBS="$LIBS -lm"; COS_LIB="-lm"]) +AC_SUBST(COS_LIB) + +# Do we have GNU ld? If we don't, we can't build versioned symbols. +if test "x$with_gnu_ld" != "xyes"; then + AC_MSG_WARN([I don't see GNU ld. I'm going to assume --without-versioned-libs]) + enable_versioned_libs='no' +fi +# We also need GNU make to build versioned symbols. +if test "x$enable_versioned_libs" = "xyes"; then + if test -n "$MAKE" ; then + $MAKE --version 2>/dev/null >/dev/null + if test "$?" -ne 0 ; then + AC_MSG_ERROR(Either set MAKE variable to GNU make or use + --without-versioned-libs option) + fi + else + make --version 2>/dev/null >/dev/null + if test "$?" -ne 0 ; then + AC_MSG_ERROR(Either set MAKE variable to GNU make or use + --without-versioned-libs option) + fi + fi +fi + +AM_CONDITIONAL(CYGWIN, test "x$CYGWIN" = "xyes") +AM_CONDITIONAL(BUILD_CD_DRIVE, test "x$enable_cd_drive" = "xyes") +AM_CONDITIONAL(BUILD_CDINFO, test "x$enable_cd_info" = "xyes") +AM_CONDITIONAL(BUILD_CD_READ, test "x$enable_cd_read" = "xyes") +AM_CONDITIONAL(BUILD_ISO_INFO, test "x$enable_iso_info" = "xyes") +AM_CONDITIONAL(BUILD_ISO_READ, test "x$enable_iso_read" = "xyes") +AM_CONDITIONAL(BUILD_CDINFO_LINUX, test "x$enable_cd_info_linux" = "xyes") +AM_CONDITIONAL(BUILD_CDIOTEST, test "x$enable_cdiotest" = "xyes") +AM_CONDITIONAL(BUILD_VERSIONED_LIBS, test "x$enable_versioned_libs" = "xyes") +AM_CONDITIONAL(DISABLE_CPP, test "x$disable_cpp" = "xyes") + +dnl Checks for header files. + +LIBCDIO_CDDA_LIBS='$(top_builddir)/lib/cdda_interface/libcdio_cdda.la' +LIBCDIO_CFLAGS='-I$(top_srcdir)/lib/driver -I$(top_builddir)/include -I$(top_srcdir)/include/' +LIBCDIO_LIBS='$(top_builddir)/lib/driver/libcdio.la' +LIBCDIO_DEPS="$LIBCDIO_LIBS" +LIBCDIOPP_LIBS='$(top_builddir)/lib/cdio++/libcdio++.la' +LIBISO9660PP_LIBS='$(top_builddir)/lib/cdio++/libiso9660++.la' +LIBISO9660_CFLAGS='-I$(top_srcdir)/lib/iso9660/' +LIBISO9660_LIBS='$(top_builddir)/lib/iso9660/libiso9660.la' +LIBUDF_CFLAGS='-I$(top_srcdir)/lib/udf/' +LIBUDF_LIBS='$(top_builddir)/lib/udf/libudf.la' +AC_SUBST(LIBCDIO_CDDA_LIBS) +AC_SUBST(LIBISO9660PP_LIBS) +AC_SUBST(LIBCDIO_LIBS) +AC_SUBST(LIBCDIOPP_LIBS) +AC_SUBST(LIBCDIO_DEPS) +AC_SUBST(LIBISO9660_LIBS) +AC_SUBST(LIBUDF_LIBS) + +AC_MSG_CHECKING([Checking what sed uses for extended regular expressions]) +test -n "$SED" || SED=$ac_path_SED +SED_EXTENDED_RE_FLAG='-r' +result=$(echo 'define' | $SED -r -e 's/^define/foo/' 2>/dev/null) +if [[ $? -ne 0 ]] ; then + result=$(echo 'define' | $SED -E -e 's/^define/foo/' 2>/dev/null) + if [[ $? -eq 0 ]] ; then + SED_EXTENDED_RE_FLAG='-E' + else + AC_MSG_WARN([Don't have SED that understand extended RE's. Some minor compilation issues may fail.]) + SED_EXTENDED_RE_FLAG='' + fi +fi +AC_MSG_RESULT($SED_EXTENDED_RE_FLAG) +AC_SUBST(SED_EXTENDED_RE_FLAG) + +dnl Libtool flag for strict linkage +LT_NO_UNDEFINED= + +dnl regression tests need native-style absolute paths. +dnl native_abs_top_srcdir is used here. +case $srcdir in + .) # We are building in place. + native_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + native_abs_top_srcdir=$srcdir ;; + *) # Relative name. + native_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +AC_SUBST(native_abs_top_srcdir) + +case $host_os in + aix*) + ## Don't use AIX driver until starts to really work + ## cd_drivers="${cd_drivers}, AIX" + ## AC_DEFINE([HAVE_AIX_CDROM], [1], + ## [Define 1 if you have AIX CD-ROM support]) + ;; + darwin[[6-9]].*|darwin[[1-9]][[0-9]].*) + AC_CHECK_HEADERS(IOKit/IOKitLib.h CoreFoundation/CFBase.h, + [have_iokit_h="yes"]) + if test "x$have_iokit_h" = "xyes" ; then + AC_DEFINE([HAVE_DARWIN_CDROM], [1], + [Define 1 if you have Darwin OS X-type CD-ROM support]) + DARWIN_PKG_LIB_HACK="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit" + + dnl Prior to Mac OS X 10.4 (Tiger), DiskArbitration was a private framework. + dnl It's now public, and it's needed to do cd/dvd unmount/eject. + AC_MSG_CHECKING([for DiskArbitration framework]) + ac_save_LIBS="$LIBS" LIBS="$LIBS -framework CoreFoundation -framework DiskArbitration" + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[]])], + [have_diskarbitration_framework=yes], [have_diskarbitration_framework=no]) + LIBS="$ac_save_LIBS" + AC_MSG_RESULT([$have_diskarbitration_framework]) + if test "x$have_diskarbitration_framework" = "xyes"; then + AC_DEFINE([HAVE_DISKARBITRATION], 1, [Define 1 if you have the Apple DiskArbitration framework]) + DARWIN_PKG_LIB_HACK="$DARWIN_PKG_LIB_HACK -Wl,-framework,DiskArbitration" + fi + + AC_SUBST(DARWIN_PKG_LIB_HACK) + LIBCDIO_LIBS="$LIBCDIO_LIBS $DARWIN_PKG_LIB_HACK" + cd_drivers="${cd_drivers}, Darwin" + fi + ;; + linux*|uclinux) + AC_CHECK_HEADERS(linux/version.h linux/major.h) + AC_CHECK_HEADERS(linux/cdrom.h, [have_linux_cdrom_h="yes"]) + if test "x$have_linux_cdrom_h" = "xyes"; then + AC_TRY_COMPILE(,[ +#include +struct cdrom_generic_command test; +int has_timeout=sizeof(test.timeout);], + [AC_DEFINE([HAVE_LINUX_CDROM_TIMEOUT], [1], + [Define 1 if timeout is in cdrom_generic_command struct])]) + AC_DEFINE([HAVE_LINUX_CDROM], [1], + [Define 1 if you have Linux-type CD-ROM support]) + cd_drivers="${cd_drivers}, GNU/Linux" + fi + ;; + bsdi*) + AC_CHECK_HEADERS(dvd.h, [have_bsdi_dvd_h="yes"]) + if test "x$have_bsdi_dvd_h" = "xyes" ; then + AC_DEFINE([HAVE_BSDI_CDROM], [1], + [Define 1 if you have BSDI-type CD-ROM support]) + LIBS="$LIBS -ldvd -lcdrom" + LIBCDIO_LIBS="$LIBCDIO_LIBS -lcdrom" + cd_drivers="${cd_drivers}, BSDI" + fi + ;; + sunos*|sun*|solaris*) + AC_DEFINE([HAVE_SOLARIS_CDROM], [1], + [Define 1 if you have Solaris CD-ROM support]) + cd_drivers="${cd_drivers}, Solaris" + ;; + cygwin*) + AC_DEFINE([CYGWIN], [1], + [Define 1 if you are compiling using cygwin]) + AC_DEFINE([HAVE_WIN32_CDROM], [1], + [Define 1 if you have MinGW CD-ROM support]) + LIBS="$LIBS -lwinmm" + LT_NO_UNDEFINED="-no-undefined" + cd_drivers="${cd_drivers}, MinGW" + AC_DEFINE([NEED_TIMEZONEVAR], [1], + [Define 1 if you need timezone defined to get timzone + defined as a variable. In cygwin it is a function too]) + ;; + mingw*) + AC_MSG_CHECKING(for MinGW-w64 headers) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ +#include +#if !defined(__MINGW64_VERSION_MAJOR) +# error not mingw-w64 headers +#endif])], + [ AC_MSG_RESULT(yes) + MINGW_W64_HEADERS=yes + AC_DEFINE(MINGW_W64_HEADERS, [], [Define this if mingw-w64 headers are used]) ], + [ AC_MSG_RESULT(no) + MINGW_W64_HEADERS=no + ]) + # regression tests need native-style absolute paths. + # $native_srcdir is used here. + if test "$cross_compiling" != yes; then + native_abs_top_srcdir=$(cd $srcdir; /bin/bash.exe -c 'builtin pwd -W') + fi + + AC_CHECK_HEADERS(windows.h) + AC_DEFINE([MINGW32], [1], + [Define 1 if you are compiling using MinGW]) + MINGW32=1 + AC_DEFINE([HAVE_WIN32_CDROM], [1], + [Define 1 if you have MinGW CD-ROM support]) + LIBS="$LIBS -lwinmm" + LT_NO_UNDEFINED="-no-undefined" + cd_drivers="${cd_drivers}, MinGW " + ## Cross-platform LFS support in MinGW requires an override of off_t + if test "x$enable_largefile" != "xno"; then + AC_MSG_RESULT([enabling support for large files (_FILE_OFFSET_BITS=64)]) + if test "x$MINGW_W64_HEADERS" = "xyes" + then + LIBCDIO_CFLAGS+=' -D_FILE_OFFSET_BITS=64 ' + LIBISO9660_CFLAGS+=' -D_FILE_OFFSET_BITS=64 ' + else + LIBCDIO_CFLAGS+=' -D_FILE_OFFSET_BITS=64 -D_OFF_T_DEFINED -D_OFF_T_ -D_off_t=off64_t -Doff_t=off64_t' + LIBISO9660_CFLAGS+=' -D_FILE_OFFSET_BITS=64 -D_OFF_T_DEFINED -D_OFF_T_ -D_off_t=off64_t -Doff_t=off64_t' + fi + fi + joliet_supported="yes" + if test "x$enable_cdda_player" = "xyes"; then + AC_MSG_RESULT([disabling cdda_player (not supported on this platform)]) + fi + enable_cdda_player="no" + ;; + freebsd[[4-9]].*|freebsd[[1-9]][[0-9]].*|dragonfly*|kfreebsd*) + AC_DEFINE([HAVE_FREEBSD_CDROM], [1], + [Define 1 if you have FreeBSD CD-ROM support]) + LIBS="$LIBS -lcam" + cd_drivers="${cd_drivers}, FreeBSD " + ;; + netbsd*|openbsd*) + AC_DEFINE([HAVE_NETBSD_CDROM], [1], + [Define 1 if you have NetBSD CD-ROM support]) + # LIBS="$LIBS -lcam" + cd_drivers="${cd_drivers}, NetBSD " + ;; + os2*) + AC_DEFINE([HAVE_OS2_CDROM], [1], + [Define 1 if you have OS/2 CD-ROM support]) + LT_NO_UNDEFINED="-no-undefined" + LDFLAGS="$LDFLAGS -Zbin-files" + cd_drivers="${cd_drivers}, OS2 " + ;; + *) + AC_MSG_WARN([Don't have OS CD-reading support for ${host_os}...]) + AC_MSG_WARN([Will use generic support.]) + ;; +esac + +AC_SUBST(LIBCDIO_CFLAGS) +AC_SUBST(LIBISO9660_CFLAGS) +AC_SUBST(LT_NO_UNDEFINED) + +AC_MSG_CHECKING(extern long timezone variable) +AC_LINK_IFELSE([AC_LANG_SOURCE([[ +#ifdef NEED_TIMEZONEVAR +#define timezonevar 1 +#endif + +#include +extern long timezone; +int main(int argc, char **argv) { + long test_timezone = timezone; + return 0; +} +]]) +], [AC_MSG_RESULT(yes); + AC_DEFINE([HAVE_TIMEZONE_VAR], 1, + [Define if you have an extern long timenzone variable.])], + [AC_MSG_RESULT(no)]) +dnl + +AC_SUBST(LINUX_CDROM_TIMEOUT) +AC_SUBST(DARWIN_PKG_LIB_HACK) +AC_SUBST(HAVE_BSDI_CDROM) +AC_SUBST(HAVE_DARWIN_CDROM) +AC_SUBST(HAVE_FREEBSD_CDROM) +AC_SUBST(HAVE_LINUX_CDROM) +AC_SUBST(HAVE_SOLARIS_CDROM) +AC_SUBST(HAVE_WIN32_CDROM) +AC_SUBST(HAVE_OS2_CDROM) + +LIBCDIO_SOURCE_PATH="`pwd`" +AC_DEFINE_UNQUOTED(LIBCDIO_SOURCE_PATH, "$LIBCDIO_SOURCE_PATH", + [Full path to libcdio top_sourcedir.]) +AC_SUBST(LIBCDIO_SOURCE_PATH) + +AC_CHECK_FUNCS( [chdir drand48 fseeko fseeko64 ftruncate geteuid getgid \ + getuid getpwuid gettimeofday lseek64 lstat memcpy memset mkstemp rand \ + seteuid setegid snprintf setenv strndup unsetenv tzset sleep \ + _stati64 usleep vsnprintf readlink realpath gmtime_r localtime_r] ) + +# check for timegm() support +AC_CHECK_FUNC(timegm, AC_DEFINE(HAVE_TIMEGM,1, + [Define 1 if timegm is available])) + +AC_CHECK_MEMBER([struct tm.tm_gmtoff], + [AC_DEFINE(HAVE_TM_GMTOFF, 1, + [Define if struct tm has the tm_gmtoff member.])], + , + [#include ]) + +if test "x$ac_cv_member_struct_tm_tm_gmtoff" = "xyes"; then + AC_MSG_CHECKING([whether time.h defines daylight and timezone variables]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ +#include +],[return (timezone != 0) + daylight;])], + [AC_DEFINE(HAVE_DAYLIGHT, 1, + [Define if time.h defines extern long timezone and int daylight vars.]) + has_daylight=yes + ],[has_daylight=no]) + AC_MSG_RESULT($has_daylight) + + AC_MSG_CHECKING([whether time.h defines tzname variable]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ +#include +],[return (tzname != NULL);])], + [AC_DEFINE(HAVE_TZNAME, 1, + [Define if time.h defines extern extern char *tzname[2] variable]) + has_tzname=yes + ],[has_tzname=no]) + AC_MSG_RESULT($has_tzname) +fi + +AM_ICONV +if test "x$am_cv_func_iconv" = "xno"; then + AC_MSG_ERROR([iconv is needed]) +fi + +AC_ARG_ENABLE(joliet, + AS_HELP_STRING([--disable-joliet], [don't include Joliet extension support (default enabled)]), + [enable_joliet=$enableval], + [enable_joliet=yes]) + +AM_LANGINFO_CODESET +if test "x${enable_joliet}" != "xno"; then + joliet_supported="yes" + if test "x$joliet_supported" = "xyes"; then + AC_DEFINE(HAVE_JOLIET, [1], + [Define 1 if you want ISO-9660 Joliet extension support. + On most platforms, this requires libiconv to be installed.]) + HAVE_JOLIET=1 + else + AC_MSG_ERROR([You must have iconv installed.]) + fi +fi +AC_SUBST(HAVE_JOLIET) + +AC_ARG_ENABLE(rock, + AC_HELP_STRING([--enable-rock], [include Rock-Ridge extension support (default enabled)]), + enable_rock=$enableval, enable_rock=yes) +if test "x${enable_rock}" != "xno"; then + AC_DEFINE(HAVE_ROCK, [1], + [Define 1 if you want ISO-9660 Rock-Ridge extension support.]) + HAVE_ROCK=1 +fi +AC_SUBST(HAVE_ROCK) +AC_SUBST(MINGW32) +AM_CONDITIONAL(ENABLE_ROCK, test "x$enable_rock" = "xyes") + +AC_ARG_ENABLE(cddb, + AC_HELP_STRING([--enable-cddb], [include CDDB lookups in cd_info (default enabled)]), + enable_cddb=$enableval, enable_cddb=check) +if test "x$enable_cddb" != "xno"; then + PKG_CHECK_MODULES(CDDB, libcddb >= 1.0.1, [ + HAVE_CDDB=yes + AC_DEFINE(HAVE_CDDB, [], [Define this if you have libcddb installed]) + ], + [AC_MSG_WARN([new enough libcddb not found. CDDB access disabled. Get libcddb from http://libcddb.sourceforge.net]) + HAVE_CDDB=no]) + AC_CHECK_LIB(socket, connect) + AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname)) +fi + + +AC_SUBST(CDDB_LIBS) + +# We have to disable cdda_player unless we have either ncurses.h or +# curses.h +have_ncurses_h='no' +if test "x$enable_cdda_player" = "xyes"; then + enable_cdda_player='no' + AC_CHECK_HEADERS(ncurses.h, + [enable_cdda_player='yes'; have_ncurses_h='yes'], + [AC_CHECK_HEADERS(curses.h, + [enable_cdda_player='yes'], + [AC_CHECK_HEADERS(ncurses/ncurses.h, + enable_cdda_player='yes') + ])]) +fi + +AC_DEFINE(HAVE_KEYPAD, [], [Define this if your libcurses has keypad]) +if test "x$enable_cdda_player" = "xyes"; then + if test "x$have_ncurses_h" = "xyes"; then + AC_CHECK_LIB(ncurses, mvprintw, + [LIBCURSES=ncurses; CDDA_PLAYER_LIBS="$CDDA_PLAYER_LIBS -lncurses"], + AC_CHECK_LIB(curses, mvprintw, + [LIBCURSES=curses; + CDDA_PLAYER_LIBS="$CDDA_PLAYER_LIBS -lcurses"], + [AC_MSG_WARN([Will not build cdda-player - did not find libncurses or libcurses]) + enable_cdda_player=no])) + else + AC_CHECK_LIB(curses, mvprintw, + [LIBCURSES=curses; + CDDA_PLAYER_LIBS="$CDDA_PLAYER_LIBS -lcurses"], + [AC_MSG_WARN([Will not build cdda-player - did not find libcurses])]) + fi + if test "x$enable_cdda_player" = "xyes"; then + AC_CHECK_LIB($LIBCURSES, keypad, [HAVE_KEYPAD=yes]) + fi +fi + +AM_CONDITIONAL(BUILD_CDDA_PLAYER, test "x$enable_cdda_player" = "xyes") +AC_SUBST(CDDA_PLAYER_LIBS) + +AC_ARG_ENABLE(vcd_info, + AC_HELP_STRING([--enable-vcd-info], [include Video CD Info from libvcd]), + enable_vcd_info=${enableval}, + enable_vcd_info=no) +if test "x$enable_vcd_info" = "xyes"; then + PKG_CHECK_MODULES(VCDINFO, libvcdinfo >= 0.7.21, + [AC_DEFINE([HAVE_VCDINFO],1, + [Define this if you have libvcdinfo installed])], + [AC_MSG_WARN(a new enough libvcdinfo not found. +VCD info display in cd-info disabled. +libvcdinfo is part of vcdimager. Get it from http://vcdimager.org) + enable_vcd_info=no]) +fi + +AC_SUBST(VCDINFO_LIBS) +AC_SUBST(VCDINFO_CFLAGS) + +dnl +dnl Newest automake workaround - needed for multi-language manual pages +dnl +AC_SUBST(mkdir_p, "${MKDIR_P}") + +AC_CONFIG_COMMANDS([checks], + [chmod +x test/check_cue.sh; chmod +x test/check_nrg.sh + ]) + +dnl +dnl Output configuration files +dnl +## AC_CONFIG_FILES([ po/Makefile.in\ +AC_CONFIG_FILES([ + Makefile \ + example/Makefile \ + include/Makefile \ + include/cdio/Makefile \ + include/cdio++/Makefile \ + include/cdio/version.h \ + doc/doxygen/Doxyfile \ + doc/Makefile \ + lib/Makefile \ + lib/driver/Makefile \ + lib/iso9660/Makefile \ + lib/udf/Makefile \ + libcdio.pc \ + libiso9660.pc \ + libudf.pc \ + package/libcdio.spec \ + src/Makefile \ + test/check_common_fn \ + test/data/Makefile \ + test/driver/Makefile \ + test/Makefile \ + ]) + +if test "x$enable_cxx" != "xno" ; then + AC_CONFIG_FILES([ + example/C++/Makefile \ + example/C++/OO/Makefile \ + lib/cdio++/Makefile \ + libcdio++.pc \ + libiso9660++.pc \ + ]) +fi + +# AC_CONFIG_FILES([po/Makefile]) +AC_CONFIG_FILES([test/check_cue.sh], [chmod +x test/check_cue.sh]) +AC_CONFIG_FILES([test/check_iso.sh], [chmod +x test/check_iso.sh]) +AC_CONFIG_FILES([test/check_nrg.sh], [chmod +x test/check_nrg.sh]) +AC_CONFIG_FILES([test/check_udf.sh], [chmod +x test/check_udf.sh]) +AC_CONFIG_FILES([test/check_iso_read.sh], [chmod +x test/check_iso_read.sh]) +AC_OUTPUT + +AC_MSG_NOTICE([ +Using CD-ROM drivers : $cd_drivers +Building cd-info : $(test "x$enable_cd_info" = "xyes" && echo yes || echo no) +Building cd-read : $(test "x$enable_cd_read" = "xyes" && echo yes || echo no) +Building cdda-player : $(test "x$enable_cdda_player" = "xyes" && echo yes || echo no) +Building iso-info : $(test "x$enable_iso_info" = "xyes" && echo yes || echo no) +Building iso-read : $(test "x$enable_iso_read" = "xyes" && echo yes || echo no) +Building C++ programs: $(test "x$enable_cxx" != "xno" && echo yes || echo no)]) diff --git a/depcomp b/depcomp new file mode 100755 index 0000000..fc98710 --- /dev/null +++ b/depcomp @@ -0,0 +1,791 @@ +#! /bin/sh +# depcomp - compile a program generating dependencies as side-effects + +scriptversion=2013-05-30.07; # UTC + +# Copyright (C) 1999-2014 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Originally written by Alexandre Oliva . + +case $1 in + '') + echo "$0: No command. Try '$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: depcomp [--help] [--version] PROGRAM [ARGS] + +Run PROGRAMS ARGS to compile a file, generating dependencies +as side-effects. + +Environment variables: + depmode Dependency tracking mode. + source Source file read by 'PROGRAMS ARGS'. + object Object file output by 'PROGRAMS ARGS'. + DEPDIR directory where to store dependencies. + depfile Dependency file to output. + tmpdepfile Temporary file to use when outputting dependencies. + libtool Whether libtool is used (yes/no). + +Report bugs to . +EOF + exit $? + ;; + -v | --v*) + echo "depcomp $scriptversion" + exit $? + ;; +esac + +# Get the directory component of the given path, and save it in the +# global variables '$dir'. Note that this directory component will +# be either empty or ending with a '/' character. This is deliberate. +set_dir_from () +{ + case $1 in + */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; + *) dir=;; + esac +} + +# Get the suffix-stripped basename of the given path, and save it the +# global variable '$base'. +set_base_from () +{ + base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` +} + +# If no dependency file was actually created by the compiler invocation, +# we still have to create a dummy depfile, to avoid errors with the +# Makefile "include basename.Plo" scheme. +make_dummy_depfile () +{ + echo "#dummy" > "$depfile" +} + +# Factor out some common post-processing of the generated depfile. +# Requires the auxiliary global variable '$tmpdepfile' to be set. +aix_post_process_depfile () +{ + # If the compiler actually managed to produce a dependency file, + # post-process it. + if test -f "$tmpdepfile"; then + # Each line is of the form 'foo.o: dependency.h'. + # Do two passes, one to just change these to + # $object: dependency.h + # and one to simply output + # dependency.h: + # which is needed to avoid the deleted-header problem. + { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" + sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" + } > "$depfile" + rm -f "$tmpdepfile" + else + make_dummy_depfile + fi +} + +# A tabulation character. +tab=' ' +# A newline character. +nl=' +' +# Character ranges might be problematic outside the C locale. +# These definitions help. +upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ +lower=abcdefghijklmnopqrstuvwxyz +digits=0123456789 +alpha=${upper}${lower} + +if test -z "$depmode" || test -z "$source" || test -z "$object"; then + echo "depcomp: Variables source, object and depmode must be set" 1>&2 + exit 1 +fi + +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. +depfile=${depfile-`echo "$object" | + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} + +rm -f "$tmpdepfile" + +# Avoid interferences from the environment. +gccflag= dashmflag= + +# Some modes work just like other modes, but use different flags. We +# parameterize here, but still list the modes in the big case below, +# to make depend.m4 easier to write. Note that we *cannot* use a case +# here, because this file can only contain one case statement. +if test "$depmode" = hp; then + # HP compiler uses -M and no extra arg. + gccflag=-M + depmode=gcc +fi + +if test "$depmode" = dashXmstdout; then + # This is just like dashmstdout with a different argument. + dashmflag=-xM + depmode=dashmstdout +fi + +cygpath_u="cygpath -u -f -" +if test "$depmode" = msvcmsys; then + # This is just like msvisualcpp but w/o cygpath translation. + # Just convert the backslash-escaped backslashes to single forward + # slashes to satisfy depend.m4 + cygpath_u='sed s,\\\\,/,g' + depmode=msvisualcpp +fi + +if test "$depmode" = msvc7msys; then + # This is just like msvc7 but w/o cygpath translation. + # Just convert the backslash-escaped backslashes to single forward + # slashes to satisfy depend.m4 + cygpath_u='sed s,\\\\,/,g' + depmode=msvc7 +fi + +if test "$depmode" = xlc; then + # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. + gccflag=-qmakedep=gcc,-MF + depmode=gcc +fi + +case "$depmode" in +gcc3) +## gcc 3 implements dependency tracking that does exactly what +## we want. Yay! Note: for some reason libtool 1.4 doesn't like +## it if -MD -MP comes after the -MF stuff. Hmm. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon +## the command line argument order; so add the flags where they +## appear in depend2.am. Note that the slowdown incurred here +## affects only configure: in makefiles, %FASTDEP% shortcuts this. + for arg + do + case $arg in + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; + *) set fnord "$@" "$arg" ;; + esac + shift # fnord + shift # $arg + done + "$@" + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + mv "$tmpdepfile" "$depfile" + ;; + +gcc) +## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. +## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. +## (see the conditional assignment to $gccflag above). +## There are various ways to get dependency output from gcc. Here's +## why we pick this rather obscure method: +## - Don't want to use -MD because we'd like the dependencies to end +## up in a subdir. Having to rename by hand is ugly. +## (We might end up doing this anyway to support other compilers.) +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like +## -MM, not -M (despite what the docs say). Also, it might not be +## supported by the other compilers which use the 'gcc' depmode. +## - Using -M directly means running the compiler twice (even worse +## than renaming). + if test -z "$gccflag"; then + gccflag=-MD, + fi + "$@" -Wp,"$gccflag$tmpdepfile" + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + # The second -e expression handles DOS-style file names with drive + # letters. + sed -e 's/^[^:]*: / /' \ + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" +## This next piece of magic avoids the "deleted header file" problem. +## The problem is that when a header file which appears in a .P file +## is deleted, the dependency causes make to die (because there is +## typically no way to rebuild the header). We avoid this by adding +## dummy dependencies for each header file. Too bad gcc doesn't do +## this for us directly. +## Some versions of gcc put a space before the ':'. On the theory +## that the space means something, we add a space to the output as +## well. hp depmode also adds that space, but also prefixes the VPATH +## to the object. Take care to not repeat it in the output. +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + tr ' ' "$nl" < "$tmpdepfile" \ + | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ + | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +sgi) + if test "$libtool" = yes; then + "$@" "-Wp,-MDupdate,$tmpdepfile" + else + "$@" -MDupdate "$tmpdepfile" + fi + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files + echo "$object : \\" > "$depfile" + # Clip off the initial element (the dependent). Don't try to be + # clever and replace this with sed code, as IRIX sed won't handle + # lines with more than a fixed number of characters (4096 in + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; + # the IRIX cc adds comments like '#:fec' to the end of the + # dependency line. + tr ' ' "$nl" < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ + | tr "$nl" ' ' >> "$depfile" + echo >> "$depfile" + # The second pass generates a dummy entry for each header file. + tr ' ' "$nl" < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ + >> "$depfile" + else + make_dummy_depfile + fi + rm -f "$tmpdepfile" + ;; + +xlc) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +aix) + # The C for AIX Compiler uses -M and outputs the dependencies + # in a .u file. In older versions, this file always lives in the + # current directory. Also, the AIX compiler puts '$object:' at the + # start of each line; $object doesn't have directory information. + # Version 6 uses the directory in both cases. + set_dir_from "$object" + set_base_from "$object" + if test "$libtool" = yes; then + tmpdepfile1=$dir$base.u + tmpdepfile2=$base.u + tmpdepfile3=$dir.libs/$base.u + "$@" -Wc,-M + else + tmpdepfile1=$dir$base.u + tmpdepfile2=$dir$base.u + tmpdepfile3=$dir$base.u + "$@" -M + fi + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + do + test -f "$tmpdepfile" && break + done + aix_post_process_depfile + ;; + +tcc) + # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 + # FIXME: That version still under development at the moment of writing. + # Make that this statement remains true also for stable, released + # versions. + # It will wrap lines (doesn't matter whether long or short) with a + # trailing '\', as in: + # + # foo.o : \ + # foo.c \ + # foo.h \ + # + # It will put a trailing '\' even on the last line, and will use leading + # spaces rather than leading tabs (at least since its commit 0394caf7 + # "Emit spaces for -MD"). + "$@" -MD -MF "$tmpdepfile" + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. + # We have to change lines of the first kind to '$object: \'. + sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" + # And for each line of the second kind, we have to emit a 'dep.h:' + # dummy dependency, to avoid the deleted-header problem. + sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" + rm -f "$tmpdepfile" + ;; + +## The order of this option in the case statement is important, since the +## shell code in configure will try each of these formats in the order +## listed in this file. A plain '-MD' option would be understood by many +## compilers, so we must ensure this comes after the gcc and icc options. +pgcc) + # Portland's C compiler understands '-MD'. + # Will always output deps to 'file.d' where file is the root name of the + # source file under compilation, even if file resides in a subdirectory. + # The object file name does not affect the name of the '.d' file. + # pgcc 10.2 will output + # foo.o: sub/foo.c sub/foo.h + # and will wrap long lines using '\' : + # foo.o: sub/foo.c ... \ + # sub/foo.h ... \ + # ... + set_dir_from "$object" + # Use the source, not the object, to determine the base name, since + # that's sadly what pgcc will do too. + set_base_from "$source" + tmpdepfile=$base.d + + # For projects that build the same source file twice into different object + # files, the pgcc approach of using the *source* file root name can cause + # problems in parallel builds. Use a locking strategy to avoid stomping on + # the same $tmpdepfile. + lockdir=$base.d-lock + trap " + echo '$0: caught signal, cleaning up...' >&2 + rmdir '$lockdir' + exit 1 + " 1 2 13 15 + numtries=100 + i=$numtries + while test $i -gt 0; do + # mkdir is a portable test-and-set. + if mkdir "$lockdir" 2>/dev/null; then + # This process acquired the lock. + "$@" -MD + stat=$? + # Release the lock. + rmdir "$lockdir" + break + else + # If the lock is being held by a different process, wait + # until the winning process is done or we timeout. + while test -d "$lockdir" && test $i -gt 0; do + sleep 1 + i=`expr $i - 1` + done + fi + i=`expr $i - 1` + done + trap - 1 2 13 15 + if test $i -le 0; then + echo "$0: failed to acquire lock after $numtries attempts" >&2 + echo "$0: check lockdir '$lockdir'" >&2 + exit 1 + fi + + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + # Each line is of the form `foo.o: dependent.h', + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" + # Some versions of the HPUX 10.20 sed can't process this invocation + # correctly. Breaking it into two sed invocations is a workaround. + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ + | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp2) + # The "hp" stanza above does not work with aCC (C++) and HP's ia64 + # compilers, which have integrated preprocessors. The correct option + # to use with these is +Maked; it writes dependencies to a file named + # 'foo.d', which lands next to the object file, wherever that + # happens to be. + # Much of this is similar to the tru64 case; see comments there. + set_dir_from "$object" + set_base_from "$object" + if test "$libtool" = yes; then + tmpdepfile1=$dir$base.d + tmpdepfile2=$dir.libs/$base.d + "$@" -Wc,+Maked + else + tmpdepfile1=$dir$base.d + tmpdepfile2=$dir$base.d + "$@" +Maked + fi + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile1" "$tmpdepfile2" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" + # Add 'dependent.h:' lines. + sed -ne '2,${ + s/^ *// + s/ \\*$// + s/$/:/ + p + }' "$tmpdepfile" >> "$depfile" + else + make_dummy_depfile + fi + rm -f "$tmpdepfile" "$tmpdepfile2" + ;; + +tru64) + # The Tru64 compiler uses -MD to generate dependencies as a side + # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put + # dependencies in 'foo.d' instead, so we check for that too. + # Subdirectories are respected. + set_dir_from "$object" + set_base_from "$object" + + if test "$libtool" = yes; then + # Libtool generates 2 separate objects for the 2 libraries. These + # two compilations output dependencies in $dir.libs/$base.o.d and + # in $dir$base.o.d. We have to check for both files, because + # one of the two compilations can be disabled. We should prefer + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is + # automatically cleaned when .libs/ is deleted, while ignoring + # the former would cause a distcleancheck panic. + tmpdepfile1=$dir$base.o.d # libtool 1.5 + tmpdepfile2=$dir.libs/$base.o.d # Likewise. + tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 + "$@" -Wc,-MD + else + tmpdepfile1=$dir$base.d + tmpdepfile2=$dir$base.d + tmpdepfile3=$dir$base.d + "$@" -MD + fi + + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + do + test -f "$tmpdepfile" && break + done + # Same post-processing that is required for AIX mode. + aix_post_process_depfile + ;; + +msvc7) + if test "$libtool" = yes; then + showIncludes=-Wc,-showIncludes + else + showIncludes=-showIncludes + fi + "$@" $showIncludes > "$tmpdepfile" + stat=$? + grep -v '^Note: including file: ' "$tmpdepfile" + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + # The first sed program below extracts the file names and escapes + # backslashes for cygpath. The second sed program outputs the file + # name when reading, but also accumulates all include files in the + # hold buffer in order to output them again at the end. This only + # works with sed implementations that can handle large buffers. + sed < "$tmpdepfile" -n ' +/^Note: including file: *\(.*\)/ { + s//\1/ + s/\\/\\\\/g + p +}' | $cygpath_u | sort -u | sed -n ' +s/ /\\ /g +s/\(.*\)/'"$tab"'\1 \\/p +s/.\(.*\) \\/\1:/ +H +$ { + s/.*/'"$tab"'/ + G + p +}' >> "$depfile" + echo >> "$depfile" # make sure the fragment doesn't end with a backslash + rm -f "$tmpdepfile" + ;; + +msvc7msys) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +#nosideeffect) + # This comment above is used by automake to tell side-effect + # dependency tracking mechanisms from slower ones. + +dashmstdout) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout, regardless of -o. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + # Remove '-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + test -z "$dashmflag" && dashmflag=-M + # Require at least two characters before searching for ':' + # in the target name. This is to cope with DOS-style filenames: + # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. + "$@" $dashmflag | + sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + # Some versions of the HPUX 10.20 sed can't process this sed invocation + # correctly. Breaking it into two sed invocations is a workaround. + tr ' ' "$nl" < "$tmpdepfile" \ + | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ + | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +dashXmstdout) + # This case only exists to satisfy depend.m4. It is never actually + # run, as this mode is specially recognized in the preamble. + exit 1 + ;; + +makedepend) + "$@" || exit $? + # Remove any Libtool call + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + # X makedepend + shift + cleared=no eat=no + for arg + do + case $cleared in + no) + set ""; shift + cleared=yes ;; + esac + if test $eat = yes; then + eat=no + continue + fi + case "$arg" in + -D*|-I*) + set fnord "$@" "$arg"; shift ;; + # Strip any option that makedepend may not understand. Remove + # the object too, otherwise makedepend will parse it as a source file. + -arch) + eat=yes ;; + -*|$object) + ;; + *) + set fnord "$@" "$arg"; shift ;; + esac + done + obj_suffix=`echo "$object" | sed 's/^.*\././'` + touch "$tmpdepfile" + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" + rm -f "$depfile" + # makedepend may prepend the VPATH from the source file name to the object. + # No need to regex-escape $object, excess matching of '.' is harmless. + sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" + # Some versions of the HPUX 10.20 sed can't process the last invocation + # correctly. Breaking it into two sed invocations is a workaround. + sed '1,2d' "$tmpdepfile" \ + | tr ' ' "$nl" \ + | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ + | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" "$tmpdepfile".bak + ;; + +cpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + # Remove '-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + "$@" -E \ + | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ + | sed '$ s: \\$::' > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + cat < "$tmpdepfile" >> "$depfile" + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvisualcpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + IFS=" " + for arg + do + case "$arg" in + -o) + shift + ;; + $object) + shift + ;; + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") + set fnord "$@" + shift + shift + ;; + *) + set fnord "$@" "$arg" + shift + shift + ;; + esac + done + "$@" -E 2>/dev/null | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" + echo "$tab" >> "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvcmsys) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +none) + exec "$@" + ;; + +*) + echo "Unknown depmode $depmode" 1>&2 + exit 1 + ;; +esac + +exit 0 + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 0000000..055c2f4 --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,54 @@ +# Copyright (C) 2003, 2004, 2008, 2012, 2016 Rocky Bernstein +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +EXTRA_DIST = doxygen/Doxyfile.in doxygen/run_doxygen +info_TEXINFOS = libcdio.texi +libcdio_TEXINFOS = fdl.texi glossary.texi + +reference: + -( cd ${top_srcdir} && $(MAKE) doxygen ) + +#: Create documentation in PDF format +pdf: libcdio.pdf cd-text-foramt.pdf + +#: Create documentation as a text file +txt: libcdio.txt + +#: Create documentation in PostScript format +ps: libcdio.ps cd-text-format.ps + +#: Create documentation in HTML format +html: libcdio.html cd-text-format.html + +%.ps.gz: %.ps + gzip -9c $< > $@ + +.texi.dvi: + @echo texi2dvi is broken + +.texi.pdf: stamp-vti + texi2pdf $< + +.texi.html: stamp-vti + texi2html $< + +.texi.txt: + makeinfo --no-headers $< > $@ + +#: Create documentation in all formats, e.g. PDF, DVI, plain text and HTML +all-formats: pdf txt ps html + +MOSTLYCLEANFILES = \ + libcdio.html libcdio.pdf libcdio.ps.gz \ + cd-text-foramt.html cd-text-format.pdf cd-text-foramt.ps.gz diff --git a/doc/Makefile.in b/doc/Makefile.in new file mode 100644 index 0000000..2c3b6e3 --- /dev/null +++ b/doc/Makefile.in @@ -0,0 +1,852 @@ +# Makefile.in generated by automake 1.15 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2014 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# Copyright (C) 2003, 2004, 2008, 2012, 2016 Rocky Bernstein +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = doc +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/pkg.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/version.texi \ + $(srcdir)/stamp-vti $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +AM_V_DVIPS = $(am__v_DVIPS_@AM_V@) +am__v_DVIPS_ = $(am__v_DVIPS_@AM_DEFAULT_V@) +am__v_DVIPS_0 = @echo " DVIPS " $@; +am__v_DVIPS_1 = +AM_V_MAKEINFO = $(am__v_MAKEINFO_@AM_V@) +am__v_MAKEINFO_ = $(am__v_MAKEINFO_@AM_DEFAULT_V@) +am__v_MAKEINFO_0 = @echo " MAKEINFO" $@; +am__v_MAKEINFO_1 = +AM_V_INFOHTML = $(am__v_INFOHTML_@AM_V@) +am__v_INFOHTML_ = $(am__v_INFOHTML_@AM_DEFAULT_V@) +am__v_INFOHTML_0 = @echo " INFOHTML" $@; +am__v_INFOHTML_1 = +AM_V_TEXI2DVI = $(am__v_TEXI2DVI_@AM_V@) +am__v_TEXI2DVI_ = $(am__v_TEXI2DVI_@AM_DEFAULT_V@) +am__v_TEXI2DVI_0 = @echo " TEXI2DVI" $@; +am__v_TEXI2DVI_1 = +AM_V_TEXI2PDF = $(am__v_TEXI2PDF_@AM_V@) +am__v_TEXI2PDF_ = $(am__v_TEXI2PDF_@AM_DEFAULT_V@) +am__v_TEXI2PDF_0 = @echo " TEXI2PDF" $@; +am__v_TEXI2PDF_1 = +AM_V_texinfo = $(am__v_texinfo_@AM_V@) +am__v_texinfo_ = $(am__v_texinfo_@AM_DEFAULT_V@) +am__v_texinfo_0 = -q +am__v_texinfo_1 = +AM_V_texidevnull = $(am__v_texidevnull_@AM_V@) +am__v_texidevnull_ = $(am__v_texidevnull_@AM_DEFAULT_V@) +am__v_texidevnull_0 = > /dev/null +am__v_texidevnull_1 = +INFO_DEPS = $(srcdir)/libcdio.info +am__TEXINFO_TEX_DIR = $(srcdir) +DVIS = libcdio.dvi +PDFS = libcdio.pdf +PSS = libcdio.ps +HTMLS = libcdio.html +TEXINFOS = libcdio.texi +TEXI2DVI = texi2dvi +TEXI2PDF = $(TEXI2DVI) --pdf --batch +MAKEINFOHTML = $(MAKEINFO) --html +AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS) +DVIPS = dvips +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__installdirs = "$(DESTDIR)$(infodir)" +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +am__DIST_COMMON = $(libcdio_TEXINFOS) $(srcdir)/Makefile.in mdate-sh \ + texinfo.tex +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CDDA_PLAYER_LIBS = @CDDA_PLAYER_LIBS@ +CDDB_CFLAGS = @CDDB_CFLAGS@ +CDDB_LIBS = @CDDB_LIBS@ +CFLAGS = @CFLAGS@ +COS_LIB = @COS_LIB@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DARWIN_PKG_LIB_HACK = @DARWIN_PKG_LIB_HACK@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DIFF = @DIFF@ +DIFF_OPTS = @DIFF_OPTS@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +HAVE_BSDI_CDROM = @HAVE_BSDI_CDROM@ +HAVE_DARWIN_CDROM = @HAVE_DARWIN_CDROM@ +HAVE_FREEBSD_CDROM = @HAVE_FREEBSD_CDROM@ +HAVE_JOLIET = @HAVE_JOLIET@ +HAVE_LINUX_CDROM = @HAVE_LINUX_CDROM@ +HAVE_OS2_CDROM = @HAVE_OS2_CDROM@ +HAVE_ROCK = @HAVE_ROCK@ +HAVE_SOLARIS_CDROM = @HAVE_SOLARIS_CDROM@ +HAVE_WIN32_CDROM = @HAVE_WIN32_CDROM@ +HELP2MAN = @HELP2MAN@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +ISO_MAKING_COMMAND = @ISO_MAKING_COMMAND@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBCDIOPP_LIBS = @LIBCDIOPP_LIBS@ +LIBCDIO_CDDA_LIBS = @LIBCDIO_CDDA_LIBS@ +LIBCDIO_CFLAGS = @LIBCDIO_CFLAGS@ +LIBCDIO_DEPS = @LIBCDIO_DEPS@ +LIBCDIO_LIBS = @LIBCDIO_LIBS@ +LIBCDIO_SOURCE_PATH = @LIBCDIO_SOURCE_PATH@ +LIBCDIO_VERSION_NUM = @LIBCDIO_VERSION_NUM@ +LIBICONV = @LIBICONV@ +LIBISO9660PP_LIBS = @LIBISO9660PP_LIBS@ +LIBISO9660_CFLAGS = @LIBISO9660_CFLAGS@ +LIBISO9660_LIBS = @LIBISO9660_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIBUDF_LIBS = @LIBUDF_LIBS@ +LINUX_CDROM_TIMEOUT = @LINUX_CDROM_TIMEOUT@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBICONV = @LTLIBICONV@ +LTLIBOBJS = @LTLIBOBJS@ +LT_NO_UNDEFINED = @LT_NO_UNDEFINED@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MINGW32 = @MINGW32@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ +PKG_CONFIG = @PKG_CONFIG@ +RANLIB = @RANLIB@ +RM = @RM@ +SBPCD_H = @SBPCD_H@ +SED = @SED@ +SED_EXTENDED_RE_FLAG = @SED_EXTENDED_RE_FLAG@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TYPESIZES = @TYPESIZES@ +UCDROM_H = @UCDROM_H@ +VCDINFO_CFLAGS = @VCDINFO_CFLAGS@ +VCDINFO_LIBS = @VCDINFO_LIBS@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +native_abs_top_srcdir = @native_abs_top_srcdir@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +runstatedir = @runstatedir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +EXTRA_DIST = doxygen/Doxyfile.in doxygen/run_doxygen +info_TEXINFOS = libcdio.texi +libcdio_TEXINFOS = fdl.texi glossary.texi +MOSTLYCLEANFILES = \ + libcdio.html libcdio.pdf libcdio.ps.gz \ + cd-text-foramt.html cd-text-format.pdf cd-text-foramt.ps.gz + +all: all-am + +.SUFFIXES: +.SUFFIXES: .dvi .html .info .pdf .ps .texi .txt +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign doc/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +.texi.info: + $(AM_V_MAKEINFO)restore=: && backupdir="$(am__leading_dot)am$$$$" && \ + am__cwd=`pwd` && $(am__cd) $(srcdir) && \ + rm -rf $$backupdir && mkdir $$backupdir && \ + if ($(MAKEINFO) --version) >/dev/null 2>&1; then \ + for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \ + if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \ + done; \ + else :; fi && \ + cd "$$am__cwd"; \ + if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \ + -o $@ $<; \ + then \ + rc=0; \ + $(am__cd) $(srcdir); \ + else \ + rc=$$?; \ + $(am__cd) $(srcdir) && \ + $$restore $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \ + fi; \ + rm -rf $$backupdir; exit $$rc +$(srcdir)/libcdio.info: libcdio.texi $(srcdir)/version.texi $(libcdio_TEXINFOS) +libcdio.dvi: libcdio.texi $(srcdir)/version.texi $(libcdio_TEXINFOS) +libcdio.pdf: libcdio.texi $(srcdir)/version.texi $(libcdio_TEXINFOS) +libcdio.html: libcdio.texi $(srcdir)/version.texi $(libcdio_TEXINFOS) +$(srcdir)/version.texi: @MAINTAINER_MODE_TRUE@ $(srcdir)/stamp-vti +$(srcdir)/stamp-vti: libcdio.texi $(top_srcdir)/configure + @(dir=.; test -f ./libcdio.texi || dir=$(srcdir); \ + set `$(SHELL) $(srcdir)/mdate-sh $$dir/libcdio.texi`; \ + echo "@set UPDATED $$1 $$2 $$3"; \ + echo "@set UPDATED-MONTH $$2 $$3"; \ + echo "@set EDITION $(VERSION)"; \ + echo "@set VERSION $(VERSION)") > vti.tmp$$$$ && \ + (cmp -s vti.tmp$$$$ $(srcdir)/version.texi \ + || (echo "Updating $(srcdir)/version.texi" && \ + cp vti.tmp$$$$ $(srcdir)/version.texi.tmp$$$$ && \ + mv $(srcdir)/version.texi.tmp$$$$ $(srcdir)/version.texi)) && \ + rm -f vti.tmp$$$$ $(srcdir)/version.texi.$$$$ + @cp $(srcdir)/version.texi $@ + +mostlyclean-vti: + -rm -f vti.tmp* $(srcdir)/version.texi.tmp* + +maintainer-clean-vti: +@MAINTAINER_MODE_TRUE@ -rm -f $(srcdir)/stamp-vti $(srcdir)/version.texi +.dvi.ps: + $(AM_V_DVIPS)TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \ + $(DVIPS) $(AM_V_texinfo) -o $@ $< + +uninstall-dvi-am: + @$(NORMAL_UNINSTALL) + @list='$(DVIS)'; test -n "$(dvidir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(dvidir)/$$f'"; \ + rm -f "$(DESTDIR)$(dvidir)/$$f"; \ + done + +uninstall-html-am: + @$(NORMAL_UNINSTALL) + @list='$(HTMLS)'; test -n "$(htmldir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " rm -rf '$(DESTDIR)$(htmldir)/$$f'"; \ + rm -rf "$(DESTDIR)$(htmldir)/$$f"; \ + done + +uninstall-info-am: + @$(PRE_UNINSTALL) + @if test -d '$(DESTDIR)$(infodir)' && $(am__can_run_installinfo); then \ + list='$(INFO_DEPS)'; \ + for file in $$list; do \ + relfile=`echo "$$file" | sed 's|^.*/||'`; \ + echo " install-info --info-dir='$(DESTDIR)$(infodir)' --remove '$(DESTDIR)$(infodir)/$$relfile'"; \ + if install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \ + then :; else test ! -f "$(DESTDIR)$(infodir)/$$relfile" || exit 1; fi; \ + done; \ + else :; fi + @$(NORMAL_UNINSTALL) + @list='$(INFO_DEPS)'; \ + for file in $$list; do \ + relfile=`echo "$$file" | sed 's|^.*/||'`; \ + relfile_i=`echo "$$relfile" | sed 's|\.info$$||;s|$$|.i|'`; \ + (if test -d "$(DESTDIR)$(infodir)" && cd "$(DESTDIR)$(infodir)"; then \ + echo " cd '$(DESTDIR)$(infodir)' && rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]"; \ + rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]; \ + else :; fi); \ + done + +uninstall-pdf-am: + @$(NORMAL_UNINSTALL) + @list='$(PDFS)'; test -n "$(pdfdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(pdfdir)/$$f'"; \ + rm -f "$(DESTDIR)$(pdfdir)/$$f"; \ + done + +uninstall-ps-am: + @$(NORMAL_UNINSTALL) + @list='$(PSS)'; test -n "$(psdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(psdir)/$$f'"; \ + rm -f "$(DESTDIR)$(psdir)/$$f"; \ + done + +dist-info: $(INFO_DEPS) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + list='$(INFO_DEPS)'; \ + for base in $$list; do \ + case $$base in \ + $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \ + esac; \ + if test -f $$base; then d=.; else d=$(srcdir); fi; \ + base_i=`echo "$$base" | sed 's|\.info$$||;s|$$|.i|'`; \ + for file in $$d/$$base $$d/$$base-[0-9] $$d/$$base-[0-9][0-9] $$d/$$base_i[0-9] $$d/$$base_i[0-9][0-9]; do \ + if test -f $$file; then \ + relfile=`expr "$$file" : "$$d/\(.*\)"`; \ + test -f "$(distdir)/$$relfile" || \ + cp -p $$file "$(distdir)/$$relfile"; \ + else :; fi; \ + done; \ + done + +mostlyclean-aminfo: + -rm -rf libcdio.t2d libcdio.t2p + +clean-aminfo: + -test -z "libcdio.dvi libcdio.pdf libcdio.ps libcdio.html" \ + || rm -rf libcdio.dvi libcdio.pdf libcdio.ps libcdio.html + +maintainer-clean-aminfo: + @list='$(INFO_DEPS)'; for i in $$list; do \ + i_i=`echo "$$i" | sed 's|\.info$$||;s|$$|.i|'`; \ + echo " rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]"; \ + rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]; \ + done +tags TAGS: + +ctags CTAGS: + +cscope cscopelist: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$(top_distdir)" distdir="$(distdir)" \ + dist-info +check-am: all-am +check: check-am +all-am: Makefile $(INFO_DEPS) +installdirs: + for dir in "$(DESTDIR)$(infodir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-aminfo clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: $(DVIS) + +html-am: $(HTMLS) + +info: info-am + +info-am: $(INFO_DEPS) + +install-data-am: install-info-am + +install-dvi: install-dvi-am + +install-dvi-am: $(DVIS) + @$(NORMAL_INSTALL) + @list='$(DVIS)'; test -n "$(dvidir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(dvidir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(dvidir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(dvidir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(dvidir)" || exit $$?; \ + done +install-exec-am: + +install-html: install-html-am + +install-html-am: $(HTMLS) + @$(NORMAL_INSTALL) + @list='$(HTMLS)'; list2=; test -n "$(htmldir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(htmldir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p" || test -d "$$p"; then d=; else d="$(srcdir)/"; fi; \ + $(am__strip_dir) \ + d2=$$d$$p; \ + if test -d "$$d2"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)/$$f'"; \ + $(MKDIR_P) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \ + echo " $(INSTALL_DATA) '$$d2'/* '$(DESTDIR)$(htmldir)/$$f'"; \ + $(INSTALL_DATA) "$$d2"/* "$(DESTDIR)$(htmldir)/$$f" || exit $$?; \ + else \ + list2="$$list2 $$d2"; \ + fi; \ + done; \ + test -z "$$list2" || { echo "$$list2" | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmldir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(htmldir)" || exit $$?; \ + done; } +install-info: install-info-am + +install-info-am: $(INFO_DEPS) + @$(NORMAL_INSTALL) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(infodir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(infodir)" || exit 1; \ + fi; \ + for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + esac; \ + if test -f $$file; then d=.; else d=$(srcdir); fi; \ + file_i=`echo "$$file" | sed 's|\.info$$||;s|$$|.i|'`; \ + for ifile in $$d/$$file $$d/$$file-[0-9] $$d/$$file-[0-9][0-9] \ + $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \ + if test -f $$ifile; then \ + echo "$$ifile"; \ + else : ; fi; \ + done; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(infodir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(infodir)" || exit $$?; done + @$(POST_INSTALL) + @if $(am__can_run_installinfo); then \ + list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \ + for file in $$list; do \ + relfile=`echo "$$file" | sed 's|^.*/||'`; \ + echo " install-info --info-dir='$(DESTDIR)$(infodir)' '$(DESTDIR)$(infodir)/$$relfile'";\ + install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$$relfile" || :;\ + done; \ + else : ; fi +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: $(PDFS) + @$(NORMAL_INSTALL) + @list='$(PDFS)'; test -n "$(pdfdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(pdfdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pdfdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pdfdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(pdfdir)" || exit $$?; done +install-ps: install-ps-am + +install-ps-am: $(PSS) + @$(NORMAL_INSTALL) + @list='$(PSS)'; test -n "$(psdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(psdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(psdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(psdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(psdir)" || exit $$?; done +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-aminfo \ + maintainer-clean-generic maintainer-clean-vti + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-aminfo mostlyclean-generic \ + mostlyclean-libtool mostlyclean-vti + +pdf-am: $(PDFS) + +ps-am: $(PSS) + +uninstall-am: uninstall-dvi-am uninstall-html-am uninstall-info-am \ + uninstall-pdf-am uninstall-ps-am + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-aminfo clean-generic \ + clean-libtool cscopelist-am ctags-am dist-info distclean \ + distclean-generic distclean-libtool distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-aminfo maintainer-clean-generic \ + maintainer-clean-vti mostlyclean mostlyclean-aminfo \ + mostlyclean-generic mostlyclean-libtool mostlyclean-vti pdf \ + pdf-am ps ps-am tags-am uninstall uninstall-am \ + uninstall-dvi-am uninstall-html-am uninstall-info-am \ + uninstall-pdf-am uninstall-ps-am + +.PRECIOUS: Makefile + + +reference: + -( cd ${top_srcdir} && $(MAKE) doxygen ) + +#: Create documentation in PDF format +pdf: libcdio.pdf cd-text-foramt.pdf + +#: Create documentation as a text file +txt: libcdio.txt + +#: Create documentation in PostScript format +ps: libcdio.ps cd-text-format.ps + +#: Create documentation in HTML format +html: libcdio.html cd-text-format.html + +%.ps.gz: %.ps + gzip -9c $< > $@ + +.texi.dvi: + @echo texi2dvi is broken + +.texi.pdf: stamp-vti + texi2pdf $< + +.texi.html: stamp-vti + texi2html $< + +.texi.txt: + makeinfo --no-headers $< > $@ + +#: Create documentation in all formats, e.g. PDF, DVI, plain text and HTML +all-formats: pdf txt ps html + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/doc/doxygen/Doxyfile.in b/doc/doxygen/Doxyfile.in new file mode 100644 index 0000000..a16b99e --- /dev/null +++ b/doc/doxygen/Doxyfile.in @@ -0,0 +1,1800 @@ +# Doxyfile 1.7.6.1 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project. +# +# All text after a hash (#) is considered a comment and will be ignored. +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" "). + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or sequence of words) that should +# identify the project. Note that if you do not use Doxywizard you need +# to put quotes around the project name if it contains spaces. + +PROJECT_NAME = @PACKAGE@ + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = @VERSION@ + +# Using the PROJECT_BRIEF tag one can provide an optional one line description +# for a project that appears at the top of each page and should give viewer +# a quick idea about the purpose of the project. Keep the description short. + +PROJECT_BRIEF = + +# With the PROJECT_LOGO tag one can specify an logo or icon that is +# included in the documentation. The maximum height of the logo should not +# exceed 55 pixels and the maximum width should not exceed 200 pixels. +# Doxygen will copy the logo to the output directory. + +PROJECT_LOGO = + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, +# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English +# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, +# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = "The $name class " \ + "The $name widget " \ + "The $name file " \ + is \ + provides \ + specifies \ + contains \ + represents \ + a \ + an \ + the + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = NO + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = @LIBCDIO_SOURCE_PATH@ + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful if your file system +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = NO + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# This tag can be used to specify a number of word-keyword mappings (TCL only). +# A mapping has the form "name=value". For example adding +# "class=itcl::class" will allow you to use the command class in the +# itcl::class meaning. + +TCL_SUBST = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = YES + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it +# parses. With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this +# tag. The format is ext=language, where ext is a file extension, and language +# is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C, +# C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make +# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C +# (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions +# you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also makes the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and +# unions are shown inside the group in which they are included (e.g. using +# @ingroup) instead of on a separate page (for HTML and Man pages) or +# section (for LaTeX and RTF). + +INLINE_GROUPED_CLASSES = NO + +# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and +# unions with only public data fields will be shown inline in the documentation +# of the scope in which they are defined (i.e. file, namespace, or group +# documentation), provided this scope is documented. If set to NO (the default), +# structs, classes, and unions are shown on a separate page (for HTML and Man +# pages) or section (for LaTeX and RTF). + +INLINE_SIMPLE_STRUCTS = NO + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to +# determine which symbols to keep in memory and which to flush to disk. +# When the cache is full, less often used symbols will be written to disk. +# For small to medium size projects (<1000 input files) the default value is +# probably good enough. For larger projects a too small cache size can cause +# doxygen to be busy swapping symbols to and from disk most of the time +# causing a significant performance penalty. +# If the system has enough physical memory increasing the cache will improve the +# performance by keeping more symbols in memory. Note that the value works on +# a logarithmic scale so increasing the size by one will roughly double the +# memory usage. The cache size is given by this formula: +# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols. + +SYMBOL_CACHE_SIZE = 0 + +# Similar to the SYMBOL_CACHE_SIZE the size of the symbol lookup cache can be +# set using LOOKUP_CACHE_SIZE. This cache is used to resolve symbols given +# their name and scope. Since this can be an expensive process and often the +# same symbol appear multiple times in the code, doxygen keeps a cache of +# pre-resolved symbols. If the cache is too small doxygen will become slower. +# If the cache is too large, memory is wasted. The cache size is given by this +# formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols. + +LOOKUP_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = YES + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = YES + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespaces are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen +# will list include files with double quotes in the documentation +# rather than with sharp brackets. + +FORCE_LOCAL_INCLUDES = NO + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen +# will sort the (brief and detailed) documentation of class members so that +# constructors and destructors are listed first. If set to NO (the default) +# the constructors will appear in the respective orders defined by +# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. +# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO +# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to +# do proper type resolution of all parameters of a function it will reject a +# match between the prototype and the implementation of a member function even +# if there is only one candidate or it is obvious which candidate to choose +# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen +# will still accept a match between prototype and implementation in such cases. + +STRICT_PROTO_MATCHING = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or macro consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and macros in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# in the documentation. The default is NO. + +SHOW_DIRECTORIES = NO + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. +# This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed +# by doxygen. The layout file controls the global structure of the generated +# output files in an output format independent way. The create the layout file +# that represents doxygen's defaults, run doxygen with the -l option. +# You can optionally specify a file name after the option, if omitted +# DoxygenLayout.xml will be used as the name of the layout file. + +LAYOUT_FILE = + +# The CITE_BIB_FILES tag can be used to specify one or more bib files +# containing the references data. This must be a list of .bib files. The +# .bib extension is automatically appended if omitted. Using this command +# requires the bibtex tool to be installed. See also +# http://en.wikipedia.org/wiki/BibTeX for more info. For LaTeX the style +# of the bibliography can be controlled using LATEX_BIB_STYLE. To use this +# feature you need bibtex and perl available in the search path. + +CITE_BIB_FILES = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# The WARN_NO_PARAMDOC option can be enabled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text " + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = ../../include/cdio/ + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh +# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py +# *.f90 *.f *.for *.vhd *.vhdl + +FILE_PATTERNS = *.h + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = NO + +# The EXCLUDE tag can be used to specify files and/or directories that should be +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. +# Note that relative paths are relative to the directory from which doxygen is +# run. + +EXCLUDE = ../../include/cdio/cdio_config.h + +# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or +# directories that are symbolic links (a Unix file system feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = ../../example + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. +# If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. +# Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. +# The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty or if +# non of the patterns match the file name, INPUT_FILTER is applied. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file +# pattern. A pattern will override the setting for FILTER_PATTERN (if any) +# and it is also possible to disable source filtering for a specific pattern +# using *.ext= (so without naming a filter). This option only has effect when +# FILTER_SOURCE_FILES is enabled. + +FILTER_SOURCE_PATTERNS = + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = NO + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = YES + +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = YES + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. +# Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = NO + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = html + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. Note that when using a custom header you are responsible +# for the proper inclusion of any scripts and style sheets that doxygen +# needs, which is dependent on the configuration options used. +# It is advised to generate a default header using "doxygen -w html +# header.html footer.html stylesheet.css YourConfigFile" and then modify +# that header. Note that the header is subject to change so you typically +# have to redo this when upgrading to a newer version of doxygen or when +# changing the value of configuration settings such as GENERATE_TREEVIEW! + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# style sheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or +# other source files which should be copied to the HTML output directory. Note +# that these files will be copied to the base HTML output directory. Use the +# $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these +# files. In the HTML_STYLESHEET file, use the file name only. Also note that +# the files will be copied as-is; there are no commands or markers available. + +HTML_EXTRA_FILES = + +# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. +# Doxygen will adjust the colors in the style sheet and background images +# according to this color. Hue is specified as an angle on a colorwheel, +# see http://en.wikipedia.org/wiki/Hue for more information. +# For instance the value 0 represents red, 60 is yellow, 120 is green, +# 180 is cyan, 240 is blue, 300 purple, and 360 is red again. +# The allowed range is 0 to 359. + +HTML_COLORSTYLE_HUE = 220 + +# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of +# the colors in the HTML output. For a value of 0 the output will use +# grayscales only. A value of 255 will produce the most vivid colors. + +HTML_COLORSTYLE_SAT = 100 + +# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to +# the luminance component of the colors in the HTML output. Values below +# 100 gradually make the output lighter, whereas values above 100 make +# the output darker. The value divided by 100 is the actual gamma applied, +# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, +# and 100 does not change the gamma. + +HTML_COLORSTYLE_GAMMA = 80 + +# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML +# page will contain the date and time when the page was generated. Setting +# this to NO can help when comparing the output of multiple runs. + +HTML_TIMESTAMP = YES + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = YES + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. For this to work a browser that supports +# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox +# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). + +HTML_DYNAMIC_SECTIONS = NO + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html +# for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify +# the documentation publisher. This should be a reverse domain-name style +# string, e.g. com.mycompany.MyDocSet.documentation. + +DOCSET_PUBLISHER_ID = org.doxygen.Publisher + +# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. + +DOCSET_PUBLISHER_NAME = Publisher + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and +# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated +# that can be used as input for Qt's qhelpgenerator to generate a +# Qt Compressed Help (.qch) of the generated HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = org.doxygen.Project + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to +# add. For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the +# custom filter to add. For more information please see +# +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this +# project's +# filter section matches. +# +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files +# will be generated, which together with the HTML files, form an Eclipse help +# plugin. To install this plugin and make it available under the help contents +# menu in Eclipse, the contents of the directory containing the HTML and XML +# files needs to be copied into the plugins directory of eclipse. The name of +# the directory within the plugins directory should be the same as +# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before +# the help appears. + +GENERATE_ECLIPSEHELP = NO + +# A unique identifier for the eclipse help plugin. When installing the plugin +# the directory name containing the HTML and XML files should also have +# this name. + +ECLIPSE_DOC_ID = org.doxygen.Project + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) +# at top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. Since the tabs have the same information as the +# navigation tree you can set this option to NO if you already set +# GENERATE_TREEVIEW to YES. + +DISABLE_INDEX = NO + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to YES, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. +# Since the tree basically has the same information as the tab index you +# could consider to set DISABLE_INDEX to NO when enabling this option. + +GENERATE_TREEVIEW = NO + +# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values +# (range [0,1..20]) that doxygen will group on one line in the generated HTML +# documentation. Note that a value of 0 will completely suppress the enum +# values from appearing in the overview section. + +ENUM_VALUES_PER_LINE = 4 + +# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, +# and Class Hierarchy pages using a tree view instead of an ordered list. + +USE_INLINE_TREES = NO + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open +# links to external symbols imported via tag files in a separate window. + +EXT_LINKS_IN_WINDOW = NO + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# Use the FORMULA_TRANPARENT tag to determine whether or not the images +# generated for formulas are transparent PNGs. Transparent PNGs are +# not supported properly for IE 6.0, but are supported on all modern browsers. +# Note that when changing this option you need to delete any form_*.png files +# in the HTML output before the changes have effect. + +FORMULA_TRANSPARENT = YES + +# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax +# (see http://www.mathjax.org) which uses client side Javascript for the +# rendering instead of using prerendered bitmaps. Use this if you do not +# have LaTeX installed or if you want to formulas look prettier in the HTML +# output. When enabled you also need to install MathJax separately and +# configure the path to it using the MATHJAX_RELPATH option. + +USE_MATHJAX = NO + +# When MathJax is enabled you need to specify the location relative to the +# HTML output directory using the MATHJAX_RELPATH option. The destination +# directory should contain the MathJax.js script. For instance, if the mathjax +# directory is located at the same level as the HTML output directory, then +# MATHJAX_RELPATH should be ../mathjax. The default value points to the +# mathjax.org site, so you can quickly see the result without installing +# MathJax, but it is strongly recommended to install a local copy of MathJax +# before deployment. + +MATHJAX_RELPATH = http://www.mathjax.org/mathjax + +# The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension +# names that should be enabled during MathJax rendering. + +MATHJAX_EXTENSIONS = + +# When the SEARCHENGINE tag is enabled doxygen will generate a search box +# for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using +# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets +# (GENERATE_DOCSET) there is already a search function so this one should +# typically be disabled. For large projects the javascript based search engine +# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. + +SEARCHENGINE = NO + +# When the SERVER_BASED_SEARCH tag is enabled the search engine will be +# implemented using a PHP enabled web server instead of at the web client +# using Javascript. Doxygen will generate the search PHP script and index +# file to put on the web server. The advantage of the server +# based approach is that it scales better to large projects and allows +# full text search. The disadvantages are that it is more difficult to setup +# and does not have live searching capabilities. + +SERVER_BASED_SEARCH = NO + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = YES + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. +# Note that when enabling USE_PDFLATEX this option is only used for +# generating bitmaps for formulas in the HTML output, but not in the +# Makefile that is written to the output directory. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = letter + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for +# the generated latex document. The footer should contain everything after +# the last chapter. If it is left blank doxygen will generate a +# standard footer. Notice: only use this tag if you know what you are doing! + +LATEX_FOOTER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = NO + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = NO + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +# If LATEX_SOURCE_CODE is set to YES then doxygen will include +# source code with syntax highlighting in the LaTeX output. +# Note that which sources are shown also depends on other settings +# such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = NO + +# The LATEX_BIB_STYLE tag can be used to specify the style to use for the +# bibliography, e.g. plainnat, or ieeetr. The default style is "plain". See +# http://en.wikipedia.org/wiki/BibTeX for more info. + +LATEX_BIB_STYLE = plain + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load style sheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. +# This is useful +# if you want to understand what is going on. +# On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = NO + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = NO + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# pointed to by INCLUDE_PATH will be searched when a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition that +# overrules the definition found in the source code. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all references to function-like macros +# that are alone on a line, have an all uppercase name, and do not end with a +# semicolon, because these will confuse the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = libcdio.xml + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option also works with HAVE_DOT disabled, but it is recommended to +# install and use dot, since it yields more powerful graphs. + +CLASS_DIAGRAMS = YES + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = NO + +# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is +# allowed to run in parallel. When set to 0 (the default) doxygen will +# base this on the number of processors available in the system. You can set it +# explicitly to a value larger than 0 to get control over the balance +# between CPU load and processing speed. + +DOT_NUM_THREADS = 0 + +# By default doxygen will use the Helvetica font for all dot files that +# doxygen generates. When you want a differently looking font you can specify +# the font name using DOT_FONTNAME. You need to make sure dot is able to find +# the font, which can be done by putting it in a standard location or by setting +# the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the +# directory containing the font. + +DOT_FONTNAME = Helvetica + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the Helvetica font. +# If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to +# set the path where dot can find it. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = NO + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = NO + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will generate a graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are svg, png, jpg, or gif. +# If left blank png will be used. If you choose svg you need to set +# HTML_FILE_EXTENSION to xhtml in order to make the SVG files +# visible in IE 9+ (other browsers do not have this requirement). + +DOT_IMAGE_FORMAT = png + +# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to +# enable generation of interactive SVG images that allow zooming and panning. +# Note that this requires a modern browser other than Internet Explorer. +# Tested and working are Firefox, Chrome, Safari, and Opera. For IE 9+ you +# need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files +# visible. Older versions of IE do not have SVG support. + +INTERACTIVE_SVG = NO + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The MSCFILE_DIRS tag can be used to specify one or more directories that +# contain msc files that are included in the documentation (see the +# \mscfile command). + +MSCFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- + +# The SEARCHENGINE tag specifies whether or not a search engine should be +# used. If set to NO the values of all tags below this one will be ignored. + +SEARCHENGINE = NO diff --git a/doc/doxygen/run_doxygen b/doc/doxygen/run_doxygen new file mode 100755 index 0000000..1765ed5 --- /dev/null +++ b/doc/doxygen/run_doxygen @@ -0,0 +1,107 @@ +#!/bin/sh +# $Id: run_doxygen,v 1.1 2003/11/09 14:11:02 rocky Exp $ + +# Runs doxygen and massages the output files. +# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. +# +# Synopsis: run_doxygen --mode=[user|maint|man] v3srcdir v3builddir +# +# Originally hacked together by Phil Edwards + + +# We can check now that the version of doxygen is >= this variable. +DOXYVER=1.2.15 +doxygen= + +find_doxygen() { + v_required=`echo $DOXYVER | \ + awk -F. '{if(NF<3)$3=0;print ($1*100+$2)*100+$3}'` + testing_version= + # thank you goat book + set `IFS=:; X="$PATH:/usr/local/bin:/bin:/usr/bin"; echo $X` + for dir + do + # AC_EXEEXT could come in useful here + maybedoxy="$dir/doxygen" + test -f "$maybedoxy" && testing_version=`$maybedoxy --version` + if test -n "$testing_version"; then + v_found=`echo $testing_version | \ + awk -F. '{if(NF<3)$3=0;print ($1*100+$2)*100+$3}'` + if test $v_found -ge $v_required; then + doxygen="$maybedoxy" + break + fi + fi + done + if test -z "$doxygen"; then + echo run_doxygen error: Could not find Doxygen $DOXYVER in path. 1>&2 + print_usage + fi +} + +print_usage() { + cat 1>&2 <] + MODE is one of: + user Generate user-level HTML library documentation. + maint Generate maintainers' HTML documentation (lots more; + exposes non-public members, etc). + man Generate user-level man pages. + + more options when i think of them + +Note: Requires Doxygen ${DOXYVER} or later; get it at + ftp://ftp.stack.nl/pub/users/dimitri/doxygen-${DOXYVER}.src.tar.gz + +EOF + exit 1 +} + +parse_options() { + for o + do + # Blatantly ripped from autoconf, er, I mean, "gratefully standing + # on the shoulders of those giants who have gone before us." + case "$o" in + -*=*) arg=`echo "$o" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) arg= ;; + esac + + case "$o" in + --mode=*) + mode=$arg ;; + --mode | --help | -h) + print_usage ;; + *) + # this turned out to be a mess, maybe change to --srcdir=, etc + if test $srcdir = unset; then + srcdir=$o + elif test $outdir = unset; then + builddir=${o} + outdir=${o}/doc/doxygen + else + echo run_doxygen error: Too many arguments 1>&2 + exit 1 + fi + ;; + esac + done +} + + +# script begins here +mode=unset +srcdir=unset +outdir=unset +do_html=no +do_man=no +enabled_sections= +DATEtext=`date '+%Y-%m-%d'` + +parse_options $* +find_doxygen +$doxygen ./Doxyfile + +exit 0 + +# vim:ts=4:et: diff --git a/doc/fdl.texi b/doc/fdl.texi new file mode 100644 index 0000000..96ce74e --- /dev/null +++ b/doc/fdl.texi @@ -0,0 +1,451 @@ +@c The GNU Free Documentation License. +@center Version 1.2, November 2002 + +@c This file is intended to be included within another document, +@c hence no sectioning command or @node. + +@display +Copyright @copyright{} 2000,2001,2002 Free Software Foundation, Inc. +51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + +Everyone is permitted to copy and distribute verbatim copies +of this license document, but changing it is not allowed. +@end display + +@enumerate 0 +@item +PREAMBLE + +The purpose of this License is to make a manual, textbook, or other +functional and useful document @dfn{free} in the sense of freedom: to +assure everyone the effective freedom to copy and redistribute it, +with or without modifying it, either commercially or noncommercially. +Secondarily, this License preserves for the author and publisher a way +to get credit for their work, while not being considered responsible +for modifications made by others. + +This License is a kind of ``copyleft'', which means that derivative +works of the document must themselves be free in the same sense. It +complements the GNU General Public License, which is a copyleft +license designed for free software. + +We have designed this License in order to use it for manuals for free +software, because free software needs free documentation: a free +program should come with manuals providing the same freedoms that the +software does. But this License is not limited to software manuals; +it can be used for any textual work, regardless of subject matter or +whether it is published as a printed book. We recommend this License +principally for works whose purpose is instruction or reference. + +@item +APPLICABILITY AND DEFINITIONS + +This License applies to any manual or other work, in any medium, that +contains a notice placed by the copyright holder saying it can be +distributed under the terms of this License. Such a notice grants a +world-wide, royalty-free license, unlimited in duration, to use that +work under the conditions stated herein. The ``Document'', below, +refers to any such manual or work. Any member of the public is a +licensee, and is addressed as ``you''. You accept the license if you +copy, modify or distribute the work in a way requiring permission +under copyright law. + +A ``Modified Version'' of the Document means any work containing the +Document or a portion of it, either copied verbatim, or with +modifications and/or translated into another language. + +A ``Secondary Section'' is a named appendix or a front-matter section +of the Document that deals exclusively with the relationship of the +publishers or authors of the Document to the Document's overall +subject (or to related matters) and contains nothing that could fall +directly within that overall subject. (Thus, if the Document is in +part a textbook of mathematics, a Secondary Section may not explain +any mathematics.) The relationship could be a matter of historical +connection with the subject or with related matters, or of legal, +commercial, philosophical, ethical or political position regarding +them. + +The ``Invariant Sections'' are certain Secondary Sections whose titles +are designated, as being those of Invariant Sections, in the notice +that says that the Document is released under this License. If a +section does not fit the above definition of Secondary then it is not +allowed to be designated as Invariant. The Document may contain zero +Invariant Sections. If the Document does not identify any Invariant +Sections then there are none. + +The ``Cover Texts'' are certain short passages of text that are listed, +as Front-Cover Texts or Back-Cover Texts, in the notice that says that +the Document is released under this License. A Front-Cover Text may +be at most 5 words, and a Back-Cover Text may be at most 25 words. + +A ``Transparent'' copy of the Document means a machine-readable copy, +represented in a format whose specification is available to the +general public, that is suitable for revising the document +straightforwardly with generic text editors or (for images composed of +pixels) generic paint programs or (for drawings) some widely available +drawing editor, and that is suitable for input to text formatters or +for automatic translation to a variety of formats suitable for input +to text formatters. A copy made in an otherwise Transparent file +format whose markup, or absence of markup, has been arranged to thwart +or discourage subsequent modification by readers is not Transparent. +An image format is not Transparent if used for any substantial amount +of text. A copy that is not ``Transparent'' is called ``Opaque''. + +Examples of suitable formats for Transparent copies include plain +@sc{ascii} without markup, Texinfo input format, La@TeX{} input +format, @acronym{SGML} or @acronym{XML} using a publicly available +@acronym{DTD}, and standard-conforming simple @acronym{HTML}, +PostScript or @acronym{PDF} designed for human modification. Examples +of transparent image formats include @acronym{PNG}, @acronym{XCF} and +@acronym{JPG}. Opaque formats include proprietary formats that can be +read and edited only by proprietary word processors, @acronym{SGML} or +@acronym{XML} for which the @acronym{DTD} and/or processing tools are +not generally available, and the machine-generated @acronym{HTML}, +PostScript or @acronym{PDF} produced by some word processors for +output purposes only. + +The ``Title Page'' means, for a printed book, the title page itself, +plus such following pages as are needed to hold, legibly, the material +this License requires to appear in the title page. For works in +formats which do not have any title page as such, ``Title Page'' means +the text near the most prominent appearance of the work's title, +preceding the beginning of the body of the text. + +A section ``Entitled XYZ'' means a named subunit of the Document whose +title either is precisely XYZ or contains XYZ in parentheses following +text that translates XYZ in another language. (Here XYZ stands for a +specific section name mentioned below, such as ``Acknowledgements'', +``Dedications'', ``Endorsements'', or ``History''.) To ``Preserve the Title'' +of such a section when you modify the Document means that it remains a +section ``Entitled XYZ'' according to this definition. + +The Document may include Warranty Disclaimers next to the notice which +states that this License applies to the Document. These Warranty +Disclaimers are considered to be included by reference in this +License, but only as regards disclaiming warranties: any other +implication that these Warranty Disclaimers may have is void and has +no effect on the meaning of this License. + +@item +VERBATIM COPYING + +You may copy and distribute the Document in any medium, either +commercially or noncommercially, provided that this License, the +copyright notices, and the license notice saying this License applies +to the Document are reproduced in all copies, and that you add no other +conditions whatsoever to those of this License. You may not use +technical measures to obstruct or control the reading or further +copying of the copies you make or distribute. However, you may accept +compensation in exchange for copies. If you distribute a large enough +number of copies you must also follow the conditions in section 3. + +You may also lend copies, under the same conditions stated above, and +you may publicly display copies. + +@item +COPYING IN QUANTITY + +If you publish printed copies (or copies in media that commonly have +printed covers) of the Document, numbering more than 100, and the +Document's license notice requires Cover Texts, you must enclose the +copies in covers that carry, clearly and legibly, all these Cover +Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on +the back cover. Both covers must also clearly and legibly identify +you as the publisher of these copies. The front cover must present +the full title with all words of the title equally prominent and +visible. You may add other material on the covers in addition. +Copying with changes limited to the covers, as long as they preserve +the title of the Document and satisfy these conditions, can be treated +as verbatim copying in other respects. + +If the required texts for either cover are too voluminous to fit +legibly, you should put the first ones listed (as many as fit +reasonably) on the actual cover, and continue the rest onto adjacent +pages. + +If you publish or distribute Opaque copies of the Document numbering +more than 100, you must either include a machine-readable Transparent +copy along with each Opaque copy, or state in or with each Opaque copy +a computer-network location from which the general network-using +public has access to download using public-standard network protocols +a complete Transparent copy of the Document, free of added material. +If you use the latter option, you must take reasonably prudent steps, +when you begin distribution of Opaque copies in quantity, to ensure +that this Transparent copy will remain thus accessible at the stated +location until at least one year after the last time you distribute an +Opaque copy (directly or through your agents or retailers) of that +edition to the public. + +It is requested, but not required, that you contact the authors of the +Document well before redistributing any large number of copies, to give +them a chance to provide you with an updated version of the Document. + +@item +MODIFICATIONS + +You may copy and distribute a Modified Version of the Document under +the conditions of sections 2 and 3 above, provided that you release +the Modified Version under precisely this License, with the Modified +Version filling the role of the Document, thus licensing distribution +and modification of the Modified Version to whoever possesses a copy +of it. In addition, you must do these things in the Modified Version: + +@enumerate A +@item +Use in the Title Page (and on the covers, if any) a title distinct +from that of the Document, and from those of previous versions +(which should, if there were any, be listed in the History section +of the Document). You may use the same title as a previous version +if the original publisher of that version gives permission. + +@item +List on the Title Page, as authors, one or more persons or entities +responsible for authorship of the modifications in the Modified +Version, together with at least five of the principal authors of the +Document (all of its principal authors, if it has fewer than five), +unless they release you from this requirement. + +@item +State on the Title page the name of the publisher of the +Modified Version, as the publisher. + +@item +Preserve all the copyright notices of the Document. + +@item +Add an appropriate copyright notice for your modifications +adjacent to the other copyright notices. + +@item +Include, immediately after the copyright notices, a license notice +giving the public permission to use the Modified Version under the +terms of this License, in the form shown in the Addendum below. + +@item +Preserve in that license notice the full lists of Invariant Sections +and required Cover Texts given in the Document's license notice. + +@item +Include an unaltered copy of this License. + +@item +Preserve the section Entitled ``History'', Preserve its Title, and add +to it an item stating at least the title, year, new authors, and +publisher of the Modified Version as given on the Title Page. If +there is no section Entitled ``History'' in the Document, create one +stating the title, year, authors, and publisher of the Document as +given on its Title Page, then add an item describing the Modified +Version as stated in the previous sentence. + +@item +Preserve the network location, if any, given in the Document for +public access to a Transparent copy of the Document, and likewise +the network locations given in the Document for previous versions +it was based on. These may be placed in the ``History'' section. +You may omit a network location for a work that was published at +least four years before the Document itself, or if the original +publisher of the version it refers to gives permission. + +@item +For any section Entitled ``Acknowledgements'' or ``Dedications'', Preserve +the Title of the section, and preserve in the section all the +substance and tone of each of the contributor acknowledgements and/or +dedications given therein. + +@item +Preserve all the Invariant Sections of the Document, +unaltered in their text and in their titles. Section numbers +or the equivalent are not considered part of the section titles. + +@item +Delete any section Entitled ``Endorsements''. Such a section +may not be included in the Modified Version. + +@item +Do not retitle any existing section to be Entitled ``Endorsements'' or +to conflict in title with any Invariant Section. + +@item +Preserve any Warranty Disclaimers. +@end enumerate + +If the Modified Version includes new front-matter sections or +appendices that qualify as Secondary Sections and contain no material +copied from the Document, you may at your option designate some or all +of these sections as invariant. To do this, add their titles to the +list of Invariant Sections in the Modified Version's license notice. +These titles must be distinct from any other section titles. + +You may add a section Entitled ``Endorsements'', provided it contains +nothing but endorsements of your Modified Version by various +parties---for example, statements of peer review or that the text has +been approved by an organization as the authoritative definition of a +standard. + +You may add a passage of up to five words as a Front-Cover Text, and a +passage of up to 25 words as a Back-Cover Text, to the end of the list +of Cover Texts in the Modified Version. Only one passage of +Front-Cover Text and one of Back-Cover Text may be added by (or +through arrangements made by) any one entity. If the Document already +includes a cover text for the same cover, previously added by you or +by arrangement made by the same entity you are acting on behalf of, +you may not add another; but you may replace the old one, on explicit +permission from the previous publisher that added the old one. + +The author(s) and publisher(s) of the Document do not by this License +give permission to use their names for publicity for or to assert or +imply endorsement of any Modified Version. + +@item +COMBINING DOCUMENTS + +You may combine the Document with other documents released under this +License, under the terms defined in section 4 above for modified +versions, provided that you include in the combination all of the +Invariant Sections of all of the original documents, unmodified, and +list them all as Invariant Sections of your combined work in its +license notice, and that you preserve all their Warranty Disclaimers. + +The combined work need only contain one copy of this License, and +multiple identical Invariant Sections may be replaced with a single +copy. If there are multiple Invariant Sections with the same name but +different contents, make the title of each such section unique by +adding at the end of it, in parentheses, the name of the original +author or publisher of that section if known, or else a unique number. +Make the same adjustment to the section titles in the list of +Invariant Sections in the license notice of the combined work. + +In the combination, you must combine any sections Entitled ``History'' +in the various original documents, forming one section Entitled +``History''; likewise combine any sections Entitled ``Acknowledgements'', +and any sections Entitled ``Dedications''. You must delete all +sections Entitled ``Endorsements.'' + +@item +COLLECTIONS OF DOCUMENTS + +You may make a collection consisting of the Document and other documents +released under this License, and replace the individual copies of this +License in the various documents with a single copy that is included in +the collection, provided that you follow the rules of this License for +verbatim copying of each of the documents in all other respects. + +You may extract a single document from such a collection, and distribute +it individually under this License, provided you insert a copy of this +License into the extracted document, and follow this License in all +other respects regarding verbatim copying of that document. + +@item +AGGREGATION WITH INDEPENDENT WORKS + +A compilation of the Document or its derivatives with other separate +and independent documents or works, in or on a volume of a storage or +distribution medium, is called an ``aggregate'' if the copyright +resulting from the compilation is not used to limit the legal rights +of the compilation's users beyond what the individual works permit. +When the Document is included in an aggregate, this License does not +apply to the other works in the aggregate which are not themselves +derivative works of the Document. + +If the Cover Text requirement of section 3 is applicable to these +copies of the Document, then if the Document is less than one half of +the entire aggregate, the Document's Cover Texts may be placed on +covers that bracket the Document within the aggregate, or the +electronic equivalent of covers if the Document is in electronic form. +Otherwise they must appear on printed covers that bracket the whole +aggregate. + +@item +TRANSLATION + +Translation is considered a kind of modification, so you may +distribute translations of the Document under the terms of section 4. +Replacing Invariant Sections with translations requires special +permission from their copyright holders, but you may include +translations of some or all Invariant Sections in addition to the +original versions of these Invariant Sections. You may include a +translation of this License, and all the license notices in the +Document, and any Warranty Disclaimers, provided that you also include +the original English version of this License and the original versions +of those notices and disclaimers. In case of a disagreement between +the translation and the original version of this License or a notice +or disclaimer, the original version will prevail. + +If a section in the Document is Entitled ``Acknowledgements'', +``Dedications'', or ``History'', the requirement (section 4) to Preserve +its Title (section 1) will typically require changing the actual +title. + +@item +TERMINATION + +You may not copy, modify, sublicense, or distribute the Document except +as expressly provided for under this License. Any other attempt to +copy, modify, sublicense or distribute the Document is void, and will +automatically terminate your rights under this License. However, +parties who have received copies, or rights, from you under this +License will not have their licenses terminated so long as such +parties remain in full compliance. + +@item +FUTURE REVISIONS OF THIS LICENSE + +The Free Software Foundation may publish new, revised versions +of the GNU Free Documentation License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. See +@uref{http://www.gnu.org/copyleft/}. + +Each version of the License is given a distinguishing version number. +If the Document specifies that a particular numbered version of this +License ``or any later version'' applies to it, you have the option of +following the terms and conditions either of that specified version or +of any later version that has been published (not as a draft) by the +Free Software Foundation. If the Document does not specify a version +number of this License, you may choose any version ever published (not +as a draft) by the Free Software Foundation. +@end enumerate + +@page +@heading ADDENDUM: How to use this License for your documents + +To use this License in a document you have written, include a copy of +the License in the document and put the following copyright and +license notices just after the title page: + +@smallexample +@group + Copyright (C) @var{year} @var{your name}. + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.2 + or any later version published by the Free Software Foundation; + with no Invariant Sections, no Front-Cover Texts, and no Back-Cover + Texts. A copy of the license is included in the section entitled ``GNU + Free Documentation License''. +@end group +@end smallexample + +If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, +replace the ``with@dots{}Texts.'' line with this: + +@smallexample +@group + with the Invariant Sections being @var{list their titles}, with + the Front-Cover Texts being @var{list}, and with the Back-Cover Texts + being @var{list}. +@end group +@end smallexample + +If you have Invariant Sections without Cover Texts, or some other +combination of the three, merge those two alternatives to suit the +situation. + +If your document contains nontrivial examples of program code, we +recommend releasing these examples in parallel under your choice of +free software license, such as the GNU General Public License, +to permit their use in free software. + +@c Local Variables: +@c ispell-local-pdict: "ispell-dict" +@c End: + diff --git a/doc/glossary.texi b/doc/glossary.texi new file mode 100644 index 0000000..d3ea8f3 --- /dev/null +++ b/doc/glossary.texi @@ -0,0 +1,558 @@ +Thomas Schmitt has made significant contributions to this glossary. +See also @uref{http://www.dvdrhelp.com/glossary}. + +@table @dfn + +@item @anchor{ASPI}ASPI +@cindex ASPI +See @acronym{Win32 ASPI} + +@item ATA + +Advanced Technology Attachment (ATA). The same thing as IDE. + +@item ATAPI + +Advanced Technology Attachment (ATA) Packet Interface. The interface +provides a mechanism for transferring and executing SCSI CDBs on IDE +CD Drives and DVD Drives. + +IDE (also called ATA) was originally designed for hard drives only, +but with help of ATAPI it is possible to connect other devices, in +particular CD-ROMS to the IDE/EIDE connections. + +The ATAPI CD-ROM drives understand a subset of SCSI commands. In +particular multi-initiator commands are neither needed nor defined for +ATAPI devices. + +@item BIN/CUE + +A CD-image format developed by Jeff Arnold for CDRWIN software on +Microsoft Windows. Many other programs subsequently support using this +format. The @code{.CUE} file is a text file which contains CD format +and track layout information, while the @code{.BIN} file holds the +actual data of each track. + +@item Blu-ray Disc (BD) +@cindex Blu-ray Disc (BD) +Optical media with capacity of 25 GB as single layer and 50 GB as +double layer. See also @pxref{models-profiles,,"Media models and +profiles"}. + + +@item CD +@cindex CD +Compact Disc. Capacity up to 900 MB. See also +@pxref{models-profiles,,"Media models and profiles"}. + +@item CD-DA +@cindex CD-DA +Compact Disc Digital Audio, described in the ``Red Book'' or IEC 60908 +(formerly IEC 908). This commonly referred to as an audio @acronym{CD} +and what most people think of when you play a @acronym{CD} as it was +the first to use the @acronym{CD} medium. + +See @url{http://en.wikipedia.org/wiki/Red_Book_(audio_CD_standard)} + +@item CD+G +@cindex CD+G + +Compact Disc + Graphics. An extension of the CD audio format contains +a limited amount of graphics in subcode channels. This disc works in +all audio players but the graphics portion is only available in a +special CD+G or Karaoke player. + +@item CD-i +@cindex CD-i + +Compact Disc Interactive. An extension of the CD format designed +around a set-top computer that connects to a TV to provide interactive +home entertainment, including digital audio and video, video games, +and software applications. Defined by the ``Green Book'' standard. +@uref{http://www.icdia.org/}. CD-i for video and video music has +largely (if not totally) been superseded by VCDs. + +@item CD-i Bridge +@cindex CD-i Bridge + +A standard allowing CD-ROM XA discs to play on CD-i. Kodak PhotoCDs +are CD-XA Bridge discs. + +@item CD-ROM +@cindex CD-ROM + +Compact Disc Read Only Memory or ``Yellow Book'' describe in Standards +ISO/IEC 10149. The data stored on it can be either in the form of +audio, computer or video files. + +@item CD-ROM Mode 1 and Mode2 + +The Yellow Book specifies two types of tracks, Mode 1 and Mode 2. Mode +1 is used for computer data and text and has an extra error correction +layer. Mode 2 is for audio and video data and has no extra correction +layer. CD-ROM/XA An expansion of the CD-ROM Mode 2 format that allows +both computer and audio/video to be mixed in the same track. + +@item CD Text +@cindex CD Text + +CD Text is a technology developed by Sony Corporation and Philips +Electronics in 1996 that allows storing in an audio CD and its tracks +information such as artist name, title, songwriter, composer, or +arranger. Commercially available audio CDs sometimes contain CD Text +information. + +Information on how CD Text is stored can be found in in older MMC +standards. Specifically, try ``Annex J'' of ``mmc3r10g.pdf''. + +An ``Unofficial CD Text FAQ'' is at +@url{http://web.ncf.ca/aa571/cdtext.htm} + +@item @anchor{XA}CD XA +@cindex CD XA + +CD-ROM EXtended Architecture. A modification to the CD-ROM +specification that defines two new types of sectors. CD-ROM XA was +developed jointly by Sony, Philips, and Microsoft, and announced in +August 1988. Its specifications were published in an extension to the +Yellow Book. CD-i, Photo CD, Video CD and CD-EXTRA have all +subsequently been based on CD-ROM XA. + +CD-XA defines another way of formatting sectors on a CD-ROM, including +headers in the sectors that describe the type (audio, video, data) and +some additional info (markers, resolution in case of a video or audio +sector, file numbers, etc). + +The data written on a CD-XA is consistent with and can be in ISO-9660 +file system format and therefore be readable by ISO-9660 file system +translators. But also a CD-I player can read CD-XA discs even if +its own `Green Book' file system only resembles ISO 9660 and isn't +fully compatible. + +@item DVD +@cindex DVD +Digital Versatile Disc. Capacity up to 4.5 GB as single layer and 8.5 +GB as double layer media. See also @pxref{models-profiles,,"Media +models and profiles"}. + +@item Defect management +@cindex Defect management +A method to compensate small amounts of bad spots on media by replacing +them out of a pool of reserve blocks and performing address translation. +The necessary checkreading slows down write performance by a factor of 2 or 3. +Defect management applies by default to DVD-RAM and BD-RE. Optionally it +can be formatted onto CD-RW and DVD+RW, where it has the name "Mount Rainier". +Sequential BD-R can be formatted for defect management too. + +@item Command Packet +@cindex Command Packet + +The data structure that is used to issue an ATAPI command. It contains +a SCSI Command Descriptor Block (CDB). + +@item ECMA-119 (ISO-9660) +@cindex ECMA-119 + +(@uref{http://www.ecma-international.org/publications/standards/Ecma-119.htm} +is a freely available specification which is technically identical to ISO 9660. + +@item ECMA-167 (UDF) +@cindex ECMA-167 + +(@uref{http://www.ecma-international.org/publications/standards/Ecma-167.htm} +is a freely available specification which is also approved as ISO 13346. +It serves as base for UDF. + +@item ECMA-168 +@cindex ECMA-168 + +(@uref{http://www.ecma-international.org/publications/standards/Ecma-168.htm} +is a freely available specification which is also approved as ISO 13490. + +@item FSF +@cindex FSF + +Free Software Foundation, @uref{http://www.fsf.org/} + +@item GNU +@cindex GNU + +@acronym{GNU} is not @acronym{UNIX}, @uref{http://www.gnu.org/} + +@item IDE + +Integrated Drive Electronics. This is a commonly used interface for +hard disk drives and CD-ROM drives. It is less expensive than SCSI, +but offers slightly less in terms of performance. + +@item ISO +@cindex ISO + +International Standards Organization. + +@item ISO 13346 +@cindex ISO 13346 + +ISO 13346 / ECMA-167 is a filesystem framework for data exchange on +overwriteable or pseudo-overwriteable media. It serves as base of UDF. + +@item ISO 13490 +@cindex ISO 13490 + +ISO 13490 / ECMA-168 is an attempt to replace ISO 9660 by a format that +allows finer write granularity and representation of typical disk file +properties. It resembles ECMA-167 which led to UDF. + +@item ISO 9660 +@cindex ISO 9660 + +ISO 9660 / ECMA-119 is an operating-system independent filesystem format +originally intended for CD-ROM media. It was standardized in 1988 and +replaced the High Sierra standard for the logical format on CD-ROM media +(ISO 9660 and High Sierra are identical in content, but the exact format is +different). ISO 9660 and ECMA-119 are technically identical meanwhile. + +There are several specification levels. In Level 1, file names must be +in the 8.3 format (no more than eight characters in the name, no more +than three characters in the suffix) and in capital letters. Directory +names can be no longer than eight characters. There can be no more +than eight nested directory levels. Level 2 and 3 specifications allow +file names up to 32 characters long. Level 3 allows data file sizes to be +4 GB or larger. File data content is stored in extents, i.e. contiguous +sequences of blocks. A single extent can hold only up to 2 exp 32 - 1 bytes. +So files of 4 GB or larger need more than one extent to be stored. +Older operating systems might have trouble with multi-extent files. + +@item Joliet extensions +@cindex Joliet extensions + +This ISO-9660 upward-compatible standard was developed for Windows 95 +and Windows NT by Microsoft as an extension of ISO 9600 which allows +the use of Unicode characters and supports file names up to 64 +characters. + +See @uref{http://bmrc.berkeley.edu/people/chaffee/jolspec.html} for +the Joliet Specification. + +The name Joliet comes from the city in Illinois (U.S) that the +standard was defined. + +@item LBA +@cindex LBA + +Logical Block Addressing. Mapped integer numbers from CD Red Book +Addressing MSF. The starting sector is -150 and ending sector is +449849, which correlates directly to MSF: 00:00:00 to 99:59:74. +Because an LBA is a single number it is often easier to work with in +programming than an MSF. + +@item Lead in +@cindex lead in + +The area of a CD where the Table Of Contents (TOC) and CD Text are +stored. I think it is supposed to be around 4500 (1 min) or more +sectors in length. On a CDR(W) the lead-in length is variable, +because manufacturers have a different starting position +indicated by the ATIP start of lead-in position that is recorded in +the ATIP groove on the disk. For example: + +@table @dfn +@item Ricoh Company Limited +97:27:00, 97:27:06, 97:27:66 +@item Mitsubishi Chemical (Verbatim) +97:34:21 to 97:34:25 +@end table + +@item LSN +@cindex LSN + +Logical Sector Number. Mapped integer numbers from CD Red Book +Addressing MSF. The starting sector is 0 and ending sector is 449699, +which correlates to MSF: 00:00:00 to 99:59:74. Because an LSN is a +single number it is often easier to work with in programming than an +MSF. Because it starts at 0 rather than -150 as is the case of an LBA +it can be represented as an unsigned value. + +@item MCN +@cindex MCN + +Media Catalog Number. A identification number on an audio CD. Also +called a UPC. Another identification number is ISRC. + +@item @anchor{MMC}MMC +@cindex MMC (Multimedia Commands) + +MMC (Multimedia Commands). + +MMC are raw commands for communicating with CDROM drives, +CD-Rewriters, DVD-Rewriters, etc. The are subset of the larger SCSI +command set. See also @pxref{SCSI,,@acronym{SCSI}}. + +Many manufacturers have adopted this standard and it also applies to +ATAPI versions of their drives. + +The documents @code{libcdio} makes use of are described in the +Multi-Media Commands standard (MMC). This document generally has a +numeric level number appended. For example MMC-5 refers to +``Multi-Media Commands - 5. + +@item @anchor{models-profiles}Media models and profiles +@cindex Media models and profiles + +MMC classifies media as models, which describe their logical structure, +and as profiles, which describe the capabilities of the drive with the +particular media. So both are closely related but not identical. + +There are three model families: CD, DVD, Blu-ray. +CD allows special sector formats like audio as well as data +sectors of 2048 bytes. DVD and Blu-ray only record data sectors. +@table @dfn +@item Non-writable media: CD-ROM, DVD-ROM, BD-ROM. +@item Write-once media: CD-R, DVD-R, DVD+R, BD-R. +@item Reusable media: CD-RW, DVD-RW, DVD+RW, DVD-RAM, BD-RE. +@end table + +Profiles depend on drive type and media state. They are expressed as +numbers. It is unfortunate that formatted CD-RW have the same +profile number as unformatted ones. + +ROM drives often announce all media as ROM profiles. +Some writer drives show closed sequential media as ROM profile. +@table @dfn +@item CD-ROM 0x08 +@item DVD-ROM 0x10 +@item BD-ROM 0x40 +@end table + +Sequentially recordable profiles allow multisession in most cases. +Special burn programs are needed for writing to them. +@table @dfn +@item CD-R 0x09 +@item CD-RW 0x0a (unformatted) +@item DVD-R 0x11 +@item DVD-RW 0x14 (unformatted) +@item DVD-R DL 0x15 (double layer) +@item DVD-R DL 0x16 (double layer, jump recording) +@item DVD+R 0x1a +@item DVD+RW DL 0x2a (double layer) +@item DVD+R DL 0x2b (double layer) +@item BD-R 0x41 (single or double layer, formatted or not) +@item HD DVD-ROM 0x50 +@item HD DVD-R 0x51 +@item HD DVD-RAM 0x52 +@end table +They can assume three states: +@table @dfn +@item "Blank" is not readable but writeable from scratch +@item "Appendable" is readable and after the readable part still writeable +@item "Closed" is only readable +@end table +CD-RW and DVD-RW can be brought back to blank state, +or they can be formatted to become overwriteable. + +Overwriteable profiles allow random read-write access with a +granularity of 2 kB or 32 kB. +One can hope for having read-write access via the normal +POSIX operations lseek(), read(), write() of the operating system. +@table @dfn +@item CD-RW 0x0a (formatted) +@item DVD-RAM 0x12 +@item DVD-RW 0x13 (formatted, 32 kB write granularity) +@item DVD+RW 0x1a +@item BD-R 0x42 (formatted for pseudo-random recording) +@item BD-RE 0x43 (single or double layer) +@end table +BD-R profile 0x42 is defined by MMC but not implemented by the consumer +priced Blu-ray burners as of year 2010. + +@item Mixed Mode CD +@cindex Mixed Mode CD + +A Mixed Mode is a CD that contains tracks of differing CD-ROM Mode +formats. In particular the first track may contain both computer data +(Yellow Book) CD ROM data while the remaining tracks are audio or +video data. Video CD's can be Mixed Mode CDs. + +@item Multisession +@cindex Multisession + +A way of writing to a CD , DVD or Blu-ray Disc that allows more data to be +added to readable discs at a later time. The media must not have been closed +by the previous write session. This applies originally to unformatted CD-R, +CD-RW, DVD-R, DVD-RW, DVD+R, and sequential BD-R which all can record more +than one session. They hold a table-of-content with sessions and tracks. +Formatted CD-RW, DVD-RAM, DVD+RW, DVD-RW, and BD-RE have only one track. +Multisession on these media needs help by the recorded data formats. + +Multisession can be used to add a changeset to an existing ISO 9660 +filesystem. Typically the add-on session contains a whole new filesystem tree +with old and new files. It also contains the data blocks of the newly +introduced or freshly overwritten files. +The convention for mounting multisession ISO 9660 images is to load the +superblock from the start of the first track in the last session as listed +in the media table-of-content. Formatted media are assumed to have a single +track starting at block 0. So ISO 9660 multisession on formatted media has +to overwrite the volume descriptors at block 16 ff. with every new session. +A chain of recognizable sessions can be achieved by starting the first +ISO 9660 image at block 32 so that its descriptors get not overwritten later. + +@item Nero NRG format file +@cindex Nero NRG, CD-Image format + +A proprietary CD image file format use by a popular program for +Microsoft Windows, Ahead Nero. The specification of this format is +not to our knowledge published. + +@item Rock Ridge Extensions +@cindex Rock Ridge extensions + +An extension to the ISO-9660 standard which adds POSIX information to files. +It allows long file names, owner, group, access permissions @code{ugo+-rwx}, +inode numbers, hard-link count, file types other than directory or regular +file. Rock Ridge is described by unapproved standard IEEE P1282 / RRIP-1.12 +and based on unapproved IEEE P1281 / SUSP-1.10. It has become a de-facto +standard on X/Open systems like GNU/Linux, FreeBSD, Solaris, et.\ al. + +@item @anchor{SCSI}SCSI +@cindex SCSI + +Small Computer System Interface. A set of ANSI standard electronic +interfaces (originally developed at Apple Computer) that allow +personal computers to communicate with peripheral hardware such as +CD-ROM drives, disk drives, printers, etc. + +Although the original hardware is outdated since years, the SCSI command +set nowadays controls most storage devices including all optical disc drives. +The contemporary electronic technologies which transport SCSI commands +to optical drives are P-ATA, SATA, and USB. + +A SCSI programming specification made by the SCSI committee T10 +organization @url{http://www.t10.org/}. + +The documents @code{libcdio} makes use of are described in SCSI +standards documents SCSI Primary Commands (SPC), SCSI Block Commands +(SBC), and Multi-Media Commands (MMC). These documents generally have +a numeric level number appended. For example SPC-3 refers to +``SCSI Primary Commands - 3'. + +In year 2010 the current versions were SPC-3, SBC-2, MMC-5. + +@item SCSI CDB +@cindex SCSI CDB + +SCSI Command Descriptor Block. The data structure that is used to +issue a SCSI command. + +@item SCSI Pass Through Interface. +@cindex SCSI Pass Through Interface. + +Yet another way of issuing MMC commands for accessing a CD-ROM. As +with MMC or ASPI, the CD-ROM doesn't necessarily have to be a +SCSI-attached drive. See also @pxref{MMC,,@acronym{MMC}} and +@pxref{MMC,,@acronym{ASPI}}. + +@item Session + +A fully readable complete recording that contains one or more tracks +of computer data or audio on a CD. On a DVD or Blu-ray Disc, there are only +data sessions. + +@item SVCD +@cindex Super VCD (SVCD) + +Super @acronym{VCD} + +An improvement of Video CD 2.0 specification which includes most +notably a switch from @acronym{MPEG}-1 (constant bit rate encoding) to +@acronym{MPEG}-2 (variable bit rate encoding) for the video stream. + +Also added was higher video-stream resolution, up to 4 overlay +graphics and text (@dfn{OGT}) sub-channels for user switchable +subtitle displaying, closed caption text, and command lists for +controlling the @acronym{SVCD} virtual machine. + +See @uref{http://www.dvdrhelp.com/svcd} + +@item TOC +@cindex TOC (CD Table of Contents) + +(Compact Disc) Table of Contents. The TOC contains a list of sessions +and their tracks. For sessions, it records the starting track +number and the last track number. For tracks it records starting time +block address, size, copy protection, linear audio preemphasis, track format +(CDDA or data) in that order. +Session and track information is also available on sequential DVD and +Blu-ray Discs. Several track properties are fixed to equivalents of CD data. + +@item Track +@cindex track + +A unit of data of a CD. The size of a track can vary; it can occupy +the entire contents of the CD. Most CD standards however require that +tracks have a 150 frame (or ``2 second'') lead-in gap. + +An abstraction of tracks for CD, DVD and Blu-ray Discs is the Logical Track +as of MMC specs. Overwriteable media have a single logical track, sequential +media can have one or more logical tracks which they describe in their TOC. + +@item UDF +@cindex UDF + +Universal Disc Format was designed as successor of ISO 9660. It allows +to record long file names and advanced file properties. Although intended +as format for data exchange its main importance is with DVD video players. +Video DVDs have to bear a simple UDF filesystem with a prescribed set +of files. + +@item VCD +@cindex Video CD (VCD) + +The Video Compact Disc (@dfn{Video CD} or @dfn{VCD}) is a standardized +digital video storage format. It is based on the commonly available +Compact Disc technology, which allows for low-cost video authoring. +Video CD's can be played in most @acronym{DVD} standalone player, +dedicated VCD players and finally, modern Personal Computers with +multimedia support. + +A Video CD is made up of @acronym{CD-ROM XA} sectors, +i.e. @acronym{CD-ROM} mode 2 form 1 & 2 sectors. Non-@acronym{MPEG} data +is stored in mode 2 form 1 sectors with a user data area of 2048 byte, +which have a similar L2 error correction and detection +(@acronym{ECC}/@acronym{EDC}) to @acronym{CD-ROM} mode 1 sectors. While +real-time @acronym{MPEG} streams is stored in @acronym{CD-ROM} mode 2 +form 2 sectors, which by have no L2 @acronym{ECC}, yield a ~14% greater +user data area consisting of 2324 bytes@footnote{actually raw mode 2 +sectors have a 2336 byte user data area, but parts of it are used for +error codes and headers when using the mode 2 form 1 or form 2 +configurations.} + +@uref{http://www.dvdrhelp.com/vcd} + +@item Win32 ASPI +@cindex ASPI + +The ASPI interface specification was developed by Adaptec for +sending commands to a SCSI host adapter (such as those controlling CD +and DVD drives) and used on Window 9x/NT and later. Emulation for +ATAPI drives was added so that the same sets of commands worked those +even though the drives might not be SCSI nor might there even be a +SCSI controller attached. + +However in Windows NT/2K/XP, Microsoft provides their Win32 ioctl +interface, and has take steps to make using ASPI more inaccessible +(e.g. requiring administrative access to use ASPI). + +See also @pxref{MMC,,@acronym{MMC}}. + +@item Win32 ioctl driver + +Ioctl (Input Output ConTroLs). A Win32 function, implemented in all +Microsoft Windows. It is used for sending commands to devices using +defined codes and structures. + +@item XA +@cindex XA + +@xref{XA,,@acronym{CD-ROM XA}}. + +@end table diff --git a/doc/libcdio.info b/doc/libcdio.info new file mode 100644 index 0000000..9e6e2d8 --- /dev/null +++ b/doc/libcdio.info @@ -0,0 +1,3941 @@ +This is libcdio.info, produced by makeinfo version 6.4.90 from +libcdio.texi. + +This manual documents 'libcdio', the GNU CD Input, Output, and Control +Library. + +Copyright (C) 2003-2008, 2010, 2012-2014 Rocky Bernstein and Herbert +Valerio Riedel. + + Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU Free Documentation License, + Version 1.2 or any later version published by the Free Software + Foundation; with no Invariant Sections, with no Front-Cover Texts, + and with no Back-Cover Texts. A copy of the license is included in + the section entitled "GNU Free Documentation License". +INFO-DIR-SECTION Software libraries +START-INFO-DIR-ENTRY +* libcdio: (libcdio). GNU Compact Disc Input, Output, and Control Library. +END-INFO-DIR-ENTRY + + +File: libcdio.info, Node: Top, Next: History, Up: (dir) + +GNU 'libcdio' +************* + +This manual documents 'libcdio', the GNU CD Input, Output, and Control +Library. + +Copyright (C) 2003-2008, 2010, 2012-2014 Rocky Bernstein and Herbert +Valerio Riedel. + + Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU Free Documentation License, + Version 1.2 or any later version published by the Free Software + Foundation; with no Invariant Sections, with no Front-Cover Texts, + and with no Back-Cover Texts. A copy of the license is included in + the section entitled "GNU Free Documentation License". + +* Menu: + +* History:: How this came about +* Previous Work:: The problem and previous work +* Purpose:: What is in this package (and what's not) +* CD Formats:: A tour through the CD-specification spectrum +* CD Image Formats:: A tour through various CD-image formats +* CD Units:: The units that make up a CD +* How to use:: Okay enough babble, lemme at the library! +* Utility Programs:: Diagnostic programs that come with this library +* CD-ROM Access and Drivers:: CD-ROM access and drivers +* Internal Program Organization:: Looking under the hood + +Appendices +* ISO-9660 Character Sets:: +* Glossary:: +* GNU Free Documentation License:: + +Indices +* General Index:: Overall index + + +File: libcdio.info, Node: History, Next: Previous Work, Prev: Top, Up: Top + +1 History +********* + +As a result of the repressive Digital Millennium Copyright Act, DMCA, I +became aware of Video CD's (VCD's). Video CD's are not subject to the +DMCA and therefore enjoy the protection afforded by copyright but no +more. But in order for VCD's to be competitive with DVD's, good tools - +including GPL tools - are needed for authoring and playing them. And so +through VCD's I became aware of the excellent Video CD tools by Herbert +Valerio Riedel which form the 'vcdimager' package. + +Although vcdimager is great for authoring, examining and extracting +parts of a Video CD, it is not a VCD player. And when I looked at the +state of Video CD handling in existing VCD players: 'xine', 'MPlayer', +and 'vlc', I was a bit disappointed. None handled playback control, +menu selections, or playing still frames and segments from track 1. + +Version 0.7.12 of vcdimager was very impressive, however it lacked +exportable libraries that could be used in other projects. So with the +blessing and encouragement of Herbert Valerio Riedel, I took to extract +and create libraries from this code base. The result was two libraries: +one to extract information from a VCD which I called libvcdinfo, and +another to do the reading and control of a VCD. Well, actually, at this +point I should say that a Video CD is really just Video put on a +existing well-established Compact Disc or CD format. So the library for +this is called 'libcdio' rather than 'libvcdio'. + +While on the topic of the name 'libcdio', I should also explain that the +library really doesn't handle writing or output (the final "o" in the +name). However it was felt that if I put 'libcdi' that might be +confused with a particular CD format called CD-I. + +Later on, the ISO-9660 filesystem handling component from 'vcdimager' +was extracted, expanded and made a separate library. Next the ability +to add MMC commands was added, and then CD paranoia support. And from +there, the rest is history. + + +File: libcdio.info, Node: Previous Work, Next: Purpose, Prev: History, Up: Top + +2 The problem and previous work +******************************* + +If around the year 2002 you were to look at the code for a number of +free software CD or media players that work on several platforms such as +vlc, MPlayer, xine, or xmms to name but a few, you'd find the code to +read a CD sprinkled with conditional compilation for this or that +platform. That is there was _no_ OS-independent programmer library for +CD reading and control even though the technology was over 10 years old; +yet there are media players which strive for OS independence. + +One early CD player, 'xmcd' by Ti Kan, was I think a bit better than +most in that it tried to _encapsulate_ the kinds of CD control +mechanisms, e.g.\ SCSI, Linux ioctl, Toshiba, in a "CD Audio Device +Interface Library" called 'libdi'. However this library is for Audio +CD's only and I don't believe this library has been used outside of +xmcd. + +Another project, Simple DirectMedia Layer also encapsulates CD reading. + + SDL is a library that allows you portable low-level access to a + video framebuffer, audio output, mouse, and keyboard. With SDL, it + is easy to write portable games which run on ... + +Many of the media players mentioned above do in fact can make use of the +SDL library but for _video_ output only. Because the encapsulation is +over _many_ kinds of I/O (video, joysticks, mice, as well as CD's), I +believe that the level of control provided for CD a little bit limited. +(However to be fair, it may have only been intended for games and may be +suitable for that). Applications that just want the CD reading and +control portion I think will find quite a bit overhead. + +Another related project is Jo"rg Schilling's SCSI library. You can use +that to make a non-SCSI CD-ROM act like one that understands SCSI MMC +commands which is a neat thing to do. However it is a little weird to +have to install drivers just so you can run a particular user-level +program. Installing drivers often requires special privileges and +permissions and it is pervasive on a system. It is a little sad that +along the way to creating such a SCSI library a library similar to +'libcdio' wasn't created which could be used. Were that the case, this +library certainly never would have been written. + +At the OS level there is the "A Linux CD-ROM Standard" by David van +Leeuwen from around 1999. This defines a set of definitions and ioctl's +that mask hardware differences of various Compact Disc hardware. It is +a great idea, however this "standard" lacked adoption on OS's other than +GNU/Linux. Or maybe it's the case that the standard on other OS's +lacked adoption on GNU/Linux. For example on FreeBSD there is a "Common +Access Method" (CAM) used for all SCSI access which seems not to be +adopted in GNU/Linux.(1) + +Finally at the hardware level where a similar chaos exists, there has +been an attempt to do something similar with the MMC (multimedia +commands). This attempts to provide a uniform command set for CD +devices like PostScript does for printer commands.(2) In contrast to +PostScript where there one in theory can write a PostScript program in a +uniform ASCII representation and send that to a printer, for MMC +although there are common internal structures defined, there is no +common syntax for representing the structures or an OS-independent +library or API for issuing MMC-commands which a programmer would need to +use. Instead each Operating System has its own interface. For example +Adaptec's ASPI or Microsoft's DeviceIoControl on Microsoft Windows, or +IOKit for Apple's OS/X, or FreeBSD's CAM. I've been positively awed at +how many different variations and differing levels of complexity there +are for doing basically the same thing. How easy it is to issue an MMC +command from a program varies from easy to very difficult. And +mastering the boilerplate code to issue an MMC command on one OS really +doesn't help much in figuring out how to do it on another OS. So in +'libcdio' we provide a common (and hopefully simple) API to issue MMC +commands. + + ---------- Footnotes ---------- + + (1) And I'm thankful for that since, at least for MMC commands, it is +inordinately complicated and in some places arcane. + + (2) I wrote "attempts" because over time the command set has changed +and now there are several different commands to do a particular function +like read a CD table of contents and some hardware understands some of +the version of the commands set but might not others + + +File: libcdio.info, Node: Purpose, Next: CD Formats, Prev: Previous Work, Up: Top + +3 What is in this package (and what's not) +****************************************** + +The library, 'libcdio', encapsulates CD-ROM reading and control. +Applications wishing to be oblivious of the OS- and device-dependent +properties of a CD-ROM can use this library. + +Also included is a library, 'libiso9660', for working with ISO-9660 +filesystems. + +Some support for disk-image types like cdrdao's TOC, CDRWIN's BIN/CUE +and Ahead Nero's NRG format is available, so applications that use this +library also have the ability to read disc images as though they were +CDs. + +'libcdio' also provides a way to issue SCSI "MultiMedia Commands", MMC. +MMC is supported by many hardware CD-ROM manufacturers; and in some +cases where a CD-ROM doesn't understand MMC directly, some Operating +Systems (such as GNU/Linux, Solaris, or FreeBSD or Microsoft Windows +ASPI to name a few) provide the MMC emulation.(1) + +As a separate package under a separate GPL2 license are +'libcdio_paranoia', and 'libcdio_cdda' libraries for applications which +want to use cdparanoia's error-correction and jitter detection. + +The first use of the library in this package are the Video CD authoring +and ripping tools, VCDImager (). See + for a list of +projects using 'libcdio'. + +A version of the CD-DA extraction tool cdparanoia, +, and its library which corrects for +CD-ROM jitter are part of the distribution. + +Also included in the libcdio package is a utility program 'cd-info' +which displays CD information: number of tracks, CD-format and if +possible basic information about the format. If libcddb +() is available, the 'cd-info' program +will display CDDB matches on CD-DA discs. And if a new enough version +of libvcdinfo is available from the vcdimager project, then 'cd-info' +shows basic VCD information. + +Other utility programs in the libcdio package are: + +'cdda-player' + + shows off 'libcdio' audio and CD-ROM control commands. It can play + a track, eject or load media and show the the status of a CD-DA + that is might be currently played via the audio control commands. + It can be run in batch mode or has a simple curses-based interface. + + If libcddb is available or a CD has CD-Text and your CD-ROM drive + supports CD-Text, track/album information about the CD can be + shown. + +'cd-drive' + + shows what drivers are available and some basic properties of + cd-drives attached to the system. Media may have to be inserted in + order to get this info. The program also lists out drive + capabilities + +'cd-read' + performs low-level block reading of a CD or CD image + +'iso-info' + + displays ISO-9660 information from an ISO-9660 image. Below is + some sample output + + iso-info version 0.82 x86_64-unknown-linux-gnu + Copyright (c) 2003, 2004, 2005, 2007, 2008 R. Bernstein + This is free software; see the source for copying conditions. + There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A + PARTICULAR PURPOSE. + __________________________________ + ISO 9660 image: ../test/joliet.iso + Application: K3B THE CD KREATOR VERSION 0.11.12 (C) 2003 SEBASTIAN TRUEG AND... + Preparer : K3b - Version 0.11.12 + Publisher : Rocky Bernstein + System : LINUX + Volume : K3b data project + Volume Set : + __________________________________ + ISO-9660 Information + /: + Oct 22 2004 19:44 . + Oct 22 2004 19:44 .. + Oct 22 2004 19:44 libcdio + + /libcdio/: + Oct 22 2004 19:44 . + Oct 22 2004 19:44 .. + Mar 12 2004 02:18 COPYING + Jun 26 2004 07:01 README + Aug 12 2004 06:22 README.libcdio + Oct 22 2004 19:44 test + + /libcdio/test/: + Oct 22 2004 19:44 . + Oct 22 2004 19:44 .. + Jul 25 2004 06:52 isofs-m1.cue + +'iso-read' + + extracts files from an ISO-9660 image. + +'mmc-tool' + + a program for issuing some MMC commands + +Historically, 'libcdio' did not support write access to drives. In +conjunction with additional work in a separate project 'libburn', Thomas +Schmitt has modified 'libcdio' to enable sending SCSI write commands on +some of the drivers. This enables other programs like 'libburn' to +write to CD's, DVD's and Blu-Ray discs. + +For the OS drivers which are lacking write access, volunteers are +welcome. + + ---------- Footnotes ---------- + + (1) This concept of software emulation of a common hardware command +language is common for printers such as using ghostscript to private +postscript emulation for a non-postscript printer. + + +File: libcdio.info, Node: CD Formats, Next: CD Image Formats, Prev: Purpose, Up: Top + +4 CD Formats +************ + +Much of what I write in this section can be found elsewhere. See for +example or + + +We give just enough background here to cover Compact Discs and Compact +Disc formats that are handled by this library. + +The Sony and Philips Corporations invented and Compact Disc (CD) in the +early 1980s. The specifications for the layout is often referred to by +the color of the cover on the specification. + +* Menu: + +* Red Book:: Red Book (CD-DA) CD Text, CDDB +* Yellow Book:: Yellow Book (CD-ROM Digital Data) +* Green Book:: Green Book (CD-i) +* White Book:: White Book (DV, Video CD) + + +File: libcdio.info, Node: Red Book, Next: Yellow Book, Up: CD Formats + +4.1 Red Book (CD-DA) +==================== + +* Menu: + +* CD Text:: CD Text and CD+G +* CDDB:: Internet CD Database (CDDB) + +The first type of CD that was produced was the Compact Disc Digital +Audio (CD-DA) or just plain "audio CD". The specification, ICE 60908 +(formerly IEC 908) is commonly called the "Red Book", +''. Music +CD's are recorded in this format which basically allows for around 74 +minutes of audio per disc and for that information to be split up into +tracks. Tracks are broken up into "sectors" and each sector contains up +to 2,352 bytes. To play one 44.1 kHz CD-DA sampled audio second, 75 +sectors are used. + +The minute/second/frame numbering of sectors or MSF format is based on +the fact that 75 sectors are used in a second of playing of sound. (And +for almost every other CD format and application the MSF format doesn't +make that much sense). + +In 'libcdio' when you you want to read an audio sector, you call +'cdio_read_audio_sector()' or 'cdio_read_audio_sectors()'. + +In addition the the audio data "channel" a provision for other +information or _subchannel_ information) can be stored in a sector. +Other subchannels include a Media Catalog Number (also abbreviated as +MCN and sometimes a UPC), or album meta data (also called CD-Text). +Karioke graphics can also be stored in a format called _CD+G_. + + +File: libcdio.info, Node: CD Text, Next: CDDB, Up: Red Book + +4.1.1 CD Text, CD+G +------------------- + +CD Text is an extension to the CD-DA standard that adds the ability to +album and track meta data (titles, artist/performer names, song titles) +and graphical (e.g. Karaoke) information. For an alternative way to +get album and track meta-data see *Note CDDB::. + +Information is stored in such a way that it doesn't interfere with the +normal operation of any CD players or CDROM drives. There are two +different parts of the CD where the data can be stored. + +The first place the information can be recorded is in the R-W sub codes +in the lead in area of the CD. This information is stored as a single +block of data and is the format. The method for reading this data from +a CDROM drive is covered under the Sony proposal to the MMC +specification. The format of the data is partially covered in the MMC +specification. + +CD Text information is stored in this area. The format that follows the +Interactive Text Transmission System (ITTS) is the same data +transmission standard used by such things as Digital Audio Broadcasting +(DAB), and virtually the same as the data standard for the MiniDisc. + +The second place the information can be recorded is in the R-W sub codes +in the program area of the CD giving a data capacity of roughly 31MB. +CD+G (CD w/graphics) uses this method. + +The methods for reading this data from a CD-ROM drive were first covered +by the programming specs from the individual drive manufacturers. In +the case of ATAPI drives, the SFF8020 spec covers the reading of the RW +subcodes. Subsequently it has been encorporated into the MMC +specifications. + +Not all drives support reading the RW subcodes from the program area. +However for those that do, 'libcdio' provides a way to get at this +information via 'cdtext_get()' and its friends. + +There is a separate document in this distribution describing CD-Text +information and how it is encoded. + + +File: libcdio.info, Node: CDDB, Prev: CD Text, Up: Red Book + +4.1.2 Internet CD Database (CDDB) +--------------------------------- + +CDDB is an database on the Internet of of CD album/track, artist, and +genre information similar to CD Text information. Using track +information (number of tracks and length of the tracks), devices that +have access to the Internet can query for meta information and +contribute information for CD's where there is no existing information. +When storage is available (such as you'd expect for any program using +'libcdio', the information is often saved for later use when the +Internet is not available; people tend request the same information +since they via programs play the same music. + +Obtaining CD meta information when none is encoded in an audio CD is +useful in media players or making ones own compilations from audio CDs. + +There are currently two popular CDDB services on the Internet. The +original database has been renamed Gracenote and is a profit making +entity. FreeDB ( is an open source CD information +resource that is free for developers and the public to use. + +As there already is an excellent library for handling CDDB libcddb +( we suggest using that. Our utility +program 'cd-info' will make use it if it is available and it's what we +use in our applications that need it. + + +File: libcdio.info, Node: Yellow Book, Next: Green Book, Prev: Red Book, Up: CD Formats + +4.2 Yellow Book (CD-ROM Digital Data) +===================================== + +The CD-ROM specification or the "Yellow Book" followed a few years later +(Standards ISO/IEC 10149), and describes the extension of CD's to store +computer data, i.e. CD-ROM (Compact Disk Read Only Memory). + +The specification in the Yellow Book defines two modes: Mode 1 and Mode +2. + +* Menu: + +* ISO 9660:: +* Mode 1:: Mode 1 Format +* Mode 2:: Mode 2 Format + + +File: libcdio.info, Node: ISO 9660, Next: Mode 1, Up: Yellow Book + +4.2.1 ISO 9660 +-------------- + +* Menu: + +* ISO 9660 Level 1:: +* ISO 9660 Level 2:: +* ISO 9660 Level 3:: +* Joliet Extensions:: +* Rock Ridge Extensions:: + +The Yellow Book doesn't specify how data is to be stored on a CD-ROM. It +was feared that different companies would implement proprietary data +storage formats using this specification, resulting in incompatible data +CDs. To prevent this, representatives of major manufacturers met at the +High Sierra Hotel and Casino in Lake Tahoe, NV, in 1985, to define a +standard for storing data on CDs. This format was nicknamed High Sierra +Format. In a slightly modified form it was later adopted as ISO the ISO +9660 standard. This standard is further broken down into 3 "levels", +the higher the level, the more permissive. + + +File: libcdio.info, Node: ISO 9660 Level 1, Next: ISO 9660 Level 2, Up: ISO 9660 + +4.2.1.1 ISO 9660 Level 1 +........................ + +Level 1 ISO 9660 defines names in the 8+3 convention so familiar to +MS-DOS: eight characters for the filename, a period, and then three +characters for the file type, all in upper case. The allowed characters +are A-Z, 0-9, ".", and "_".Level 1 ISO 9660 requires that files occupy a +contiguous range of sectors. This allows a file to be specified with a +start block and a count. The maximum directory depth is 8. For a table +of the characters, see *Note ISO-9660 Character Sets::. + + +File: libcdio.info, Node: ISO 9660 Level 2, Next: ISO 9660 Level 3, Prev: ISO 9660 Level 1, Up: ISO 9660 + +4.2.1.2 ISO 9660 Level 2 +........................ + +Level 2 ISO 9660 allows far more flexibility in filenames, but isn't +usable on some systems, notably MS-DOS. + + +File: libcdio.info, Node: ISO 9660 Level 3, Next: Joliet Extensions, Prev: ISO 9660 Level 2, Up: ISO 9660 + +4.2.1.3 ISO 9660 Level 3 +........................ + +Level 3 ISO-9660 allows non-contiguous files, useful if the file was +written in multiple packets with packet-writing software. + +There have been a number of extensions to the ISO 9660 CD-ROM file +format. One extension is Microsoft's Joliet specification, designed to +resolve a number of deficiencies in the original ISO 9660 Level 1 file +system, and in particular to support the long file names used in Windows +95 and subsequent versions of Windows. + +Another extension is the Rock Ridge Interchange Protocol (RRIP), which +enables the recording of sufficient information to support POSIX File +System semantics. + + +File: libcdio.info, Node: Joliet Extensions, Next: Rock Ridge Extensions, Prev: ISO 9660 Level 3, Up: ISO 9660 + +4.2.1.4 Joliet Extensions +......................... + +Joliet extensions were an upward-compatible extension to the ISO 9660 +specification that removes the limitation initially put in to deal with +the limited filename conventions found in Microsoft DOS OS. In +particular, the Joliet specification allows for long filenames and +allows for UCS-BE (BigEndian Unicode) encoding of filenames which +include mixed case letter, accented characters spaces and various +symbols. + +The way all of this is encoded is by adding a second directory and +filesystem structure in addition to or in parallels to original ISO 9600 +filesystem. The root node of the ISO 9660 filesystem is found via the +_Primary Volume Descriptor_ or _PVD_. The root of the Joliet-encode +filesystem is found in a Supplementary Volume Descriptor or _SVD_ +defined in the ISO 9660 specification. The SVD structure is almost +identical to a PVD with a couple of unused fields getting used and with +the filename encoding changed to UCS-BE. + + +File: libcdio.info, Node: Rock Ridge Extensions, Prev: Joliet Extensions, Up: ISO 9660 + +4.2.1.5 Rock Ridge Extensions +............................. + +Using the Joliet Extension one overcome the limitedness of the original +ISO-9660 naming scheme. But another and probably better method is to +use the Rock Ridge Extension. Not only can one store a filename as one +does in a POSIX OS, but the other file attributes, such as the various +timestamps (creation, modification, access), file attributes (user, +group, file mode permissions, device type, symbolic links) can be +stored. This is much as one would do in XA attributes; however the two +are not completely interchangeable in the information they store: XA +does _not_ address filename limitations, and the Rock Ridge extensions +don't indicate if a sector is in Mode 1 or Mode 2 format. + +The Rock Ridge extension makes use of a hook that was defined as part of +the ISO 9660 standard. + + +File: libcdio.info, Node: Mode 1, Next: Mode 2, Prev: ISO 9660, Up: Yellow Book + +4.2.2 Mode 1 (2048 data bytes per sector) +----------------------------------------- + +Mode 1 is the data storage mode used by to store computer data. There +are 3 layers of error correction. A Compact Disc using only this format +can hold at most 650 MB. The data is laid out in basically the same way +as in and audio CD format, except that the 2,352 bytes of data in each +block are broken down further. 2,048 of these bytes are for "real" +data. The other 304 bytes are used for an additional level of error +detecting and correcting code. This is necessary because data CDs +cannot tolerate the loss of a handful of bits now and then, the way +audio CDs can. + +In 'libcdio' when you you want to read a mode1 sector you call the +'cdio_read_mode1_sector()' or 'cdio_read_mode1_sectors()'. + + +File: libcdio.info, Node: Mode 2, Prev: Mode 1, Up: Yellow Book + +4.2.3 Mode 2 (2336 data bytes per sector) +----------------------------------------- + +Mode 2 data CDs are the same as mode 1 CDs except that the error +detecting and correcting codes are omitted. So still there are 2 layers +of error correction. A Compact Disc using only this mode can thus hold +at most 742 MB. Similar to audio CDs, the mode 2 format provides a more +flexible vehicle for storing types of data that do not require high data +integrity: for example, graphics and video can use this format. But in +contrast to the Red Book standard, different modes can be mixed +together; this is the basis for the extensions to the original data CD +standards known as CD-ROM Extended Architecture, or CD-ROM XA. CD-ROM XA +formats currently in use are CD-I Bridge formats, Photo CD and Video CD +plus Sony's Playstation. + +In 'libcdio' when you you want to read a mode1 sector you call the +'cdio_read_mode2_sector()' or 'cdio_read_mode2_sectors()'. + + +File: libcdio.info, Node: Green Book, Next: White Book, Prev: Yellow Book, Up: CD Formats + +4.3 Green Book (CD-i) +===================== + +This was a CD-ROM format developed by Philips for CD-i (an obsolete +embedded CD-ROM application allowing limited user user interaction with +films, games and educational applications). The format is ISO 9660 +compliant and introduced mode 2 form 2 addressing. It also contains XA +(Extended Architecture) attributes. + +Although some Green Book discs contain CD-i applications which can only +be played on a CD-i player, others have films or music videos. Video +CDs in Green-Book format are labeled "Digital Video on CD." The Green +Book for video is largely superseded by White book CD-ROM which draws on +this specification. + + +File: libcdio.info, Node: White Book, Prev: Green Book, Up: CD Formats + +4.4 White Book (DV, Video CD) +============================= + +The White Book was released by Sony, Philips, Matsushita, and JVC in +1993, defines the Video CD specification. The White Book is also known +as Digital Video (DV). + +A Video CD contains one data track recorded in CD-ROM XA Mode 2 Form 2. +It is always the first track on the disc (Track 1). The ISO-9660 file +structure and a CD-i application program are recorded in this track, as +well as the Video CD Information Area which gives general information +about the Video Compact Disc. After the data track, video is written in +one or more subsequent tracks within the same session. These tracks are +also recorded in Mode 2 Form 2. + +In 'libcdio' when you you want to read a mode2 format 2 audio sector you +call the 'cdio_read_mode2_sector()' or 'cdio_read_mode2_sectors()' +setting 'b_form2' to 'true'. + + +File: libcdio.info, Node: CD Image Formats, Next: CD Units, Prev: CD Formats, Up: Top + +5 CD Image Formats +****************** + +* Menu: + +* CDRDAO TOC Format:: +* CDRWIN BIN/CUE Format:: +* NRG Format:: + +In both the 'cdrdao' and bin/cue formats there is one meta-file with +extensions '.toc' or '.cue' respectively and one or more files (often +with the extension '.bin') which contains the content of tracks. The +format of the track data is often interchangeable between the two +formats. For example, in 'libcdio''s regression tests we make use of +this to reduce the size of the test data and just provide alternate +meta-data files ('.toc' or '.cue'). + +In contrast to the first two formats, the NRG format consists of a +single file. This has the advantage of being a self-contained unit: in +the other two formats it is possible for the meta file to refer to a +file that can't be found. A disadvantage of the NRG format is that the +meta data can't be easily viewed or modified say in a text file as it +can be with the first two formats. In conjunction with this +disadvantage is another disadvantage that the format is not documented, +so how 'libcdio' interprets an NRG image is based on inference. It is +recommended that one of the other forms be used instead of NRG where +possible. + + +File: libcdio.info, Node: CDRDAO TOC Format, Next: CDRWIN BIN/CUE Format, Up: CD Image Formats + +5.1 CDRDAO TOC Format +===================== + +This is 'cdrdao''s CD-image description format. Since this program is +GPL and everything about it is in the open, it is the preferred format +to use. (Alas, at present it isn't as well supported in 'libcdio' as +the BIN/CUE format.) + +The _toc_-file describes what data is written to the media in the +CD-ROM; it allows control over track/index positions, pre-gaps and +sub-channel information. It is a text file, so a text editor can be +used to create, view or modify it. + +The 'cdrdao(1) manual page', contains more information about this +format. + +5.1.1 CDRDAO Grammar +-------------------- + +Below are the lexical tokens and grammar for a cdrdao TOC. It was taken +from the cdrdao's pacct grammar; the token and nonterminal names are the +same. + + #lexclass START + #token Eof "@" + #token "[\t\r\ ]+" + #token Comment "//~[\n@]*" + #token "\n" + #token BeginString "\"" + #token Integer "[0-9]+" + #tokclass AudioFile { "AUDIOFILE" "FILE" } + + #lexclass STRING + #token EndString "\"" + #token StringQuote "\\\"" + #token StringOctal "\\[0-9][0-9][0-9]" + #token String "\\" + #token String "[ ]+" + #token String "~[\\\n\"\t ]*" + + + ::= ( "CATALOG" | )* { } + ( )+ Eof + + ::= "TRACK" + { } + ( "ISRC" | { "NO" } "COPY" | { "NO" } "PRE_EMPHASIS" + | "TWO_CHANNEL_AUDIO" | "FOUR_CHANNEL_AUDIO" )* + { } + { "PREGAP" } + ( | "START" { msf } | "END" { msf } )+ + ( "INDEX" )* + + ::= + AudioFile { "SWAP" } { "#" } + | "DATAFILE" { "#" { } } + | "FIFO" + | "SILENCE" + | "ZERO" { dataMode } { } + + + ::= BeginString ( String | StringQuote | StringOctal )+ + EndString + + ::= BeginString ( String | StringQuote | StringOctal )* + EndString + + ::= Integer + + ::= Integer + + ::= Integer ":" Integer ":" Integer + + ::= | + + ::= | + + ::= "AUDIO" | "MODE0" | "MODE1" | "MODE1_RAW" | "MODE2" + | "MODE2_RAW" | "MODE2_FORM1" | "MODE2_FORM2" | "MODE2_FORM_MIX" + + ::= "AUDIO" | "MODE1" | "MODE1_RAW" | "MODE2" + | "MODE2_RAW" | "MODE2_FORM1" | "MODE2_FORM2" | "MODE2_FORM_MIX" + + ::= "RW" | "RW_RAW" + + ::= "CD_DA" | "CD_ROM" | "CD_ROM_XA" | "CD_I" + + ::= "TITLE" | "PERFORMER" | "SONGWRITER" | "COMPOSER" | "ARRANGER" + | "MESSAGE" | "DISC_ID" | "GENRE" | "TOC_INFO1" | "TOC_INFO2" + | "RESERVED1" | "RESERVED2" | "RESERVED3" | "RESERVED4" | "UPC_EAN" | + "ISRC" | "SIZE_INFO" + + ::= "{" + { Integer ( "," Integer )* } + "}" + + ::= ( | ) + + ::= "LANGUAGE" Integer "{" ( )* "}" + + ::= + "LANGUAGE_MAP" "{" + ( Integer ":" ( Integer | "EN" ) )+ + "}" + + ::= "CD_TEXT" "{" ( )* "}" + + ::= "CD_TEXT" "{" { } ( )* "}" + + +File: libcdio.info, Node: CDRWIN BIN/CUE Format, Next: NRG Format, Prev: CDRDAO TOC Format, Up: CD Image Formats + +5.2 CDRWIN BIN/CUE Format +========================= + +The format referred to as _CDRWIN BIN/CUE Format_ in this manual is a +popular CD image format used in the PC world. Not unlike 'cdrdao''s TOC +file, the _cue_ file describes the track layout, i.e. how the sectors +are to be placed on the CD media. The _cue_ file usually contains a +reference to a file traditionally having the '.bin' extension in its +filename, the _bin_ file. This _bin_ file contains the sector data +payload which is to be written to the CD medium according to the +description in the _cue_ file. + +The following is an attempt to describe the subset of the '.cue' file +syntax used in 'libcdio' and vcdimager in an EBNF-like notation: + +5.2.1 BIN/CUE Grammar +--------------------- + + ::= +( + ) + + ::= "0" | "1" ... "8" | "9" + ::= + + ::= ":" ":" + + ::= "FILE" + + ::= [ "\"" ] [ "\"" ] + | "\"" "\"" + + ::= "BINARY" + + ::= [ ] + [ ] * [ ] + + ::= "FLAGS" * + ::= "DCP" + + ::= "TRACK" + + ::= "PREGAP" + + ::= "INDEX" + + ::= "POSTGAP" + + ::= "AUDIO" | "MODE1/2048" | "MODE1/2352" + | "MODE2/2336" | "MODE2/2352" + + ::= "REM" * + + +File: libcdio.info, Node: NRG Format, Prev: CDRWIN BIN/CUE Format, Up: CD Image Formats + +5.3 NRG Format +============== + +The format referred to as _NRG Format_ in this manual is another popular +CD image format. It is available only on Nero software on a Microsoft +Windows Operating System. It is proprietary and not generally +published, so the information we have comes from guessing based on +sample CD images. So support for this is incomplete and using this +format is not recommended. + +Unlike 'cdrdao''s TOC file the BIN/CUE format everything is contained in +one file that one can edit. Meta information such as the number of +tracks and track format is contained at the end of the file. This +information is not intended to be edited through a text editor. + + +File: libcdio.info, Node: CD Units, Next: How to use, Prev: CD Image Formats, Up: Top + +6 The units that make up a CD +***************************** + +* Menu: + +* Tracks:: Tracks +* Sectors:: Block addressing (MSF, LSN, LBA) +* Pre-gaps:: Track pre-gaps + + +File: libcdio.info, Node: Tracks, Next: Sectors, Up: CD Units + +6.1 tracks -- disc subdivisions +=============================== + +In this section we describe CD properties and terms that we make use of +in 'libcdio'. + +A CD is formatted into a number of _tracks_, and a CD can hold at most +99 such tracks. This is defined by 'CDIO_CD_MAX_TRACKS' in +'cdio/sector.h'. Between some tracks CD specifications require a "2 +second" in gap (called a _lead-in gap_. This is unused space with no +"data" similar to the space between tracks on an old phonograph. The +word "second" here really refers to a measure of space and not really +necessarily an amount of time. However in the special case that the CD +encodes an audio CD or CD-DA, the amount of time to play a gap of this +size will take 2 seconds. + +The beginning (or inner edge) of the CD is supposed to have a "2 second" +lead-in gap and there is supposed to be another "2 second" _lead-out_ +gap at the end (or outer edge) of the CD. + +People have discovered that they can put useful data in the _lead-in_ +and _lead-out_ gaps, and their equipment can read this, violating the +standards but allowing a CD to store more data. + +In order to determine the number of tracks on a CD and where they start, +commands are used to get this table-of-contents or _TOC_ information. +Asking about the start of the _lead-out track_ gives the amount of data +stored on the Compact Disk. To make it easy to specify this leadout +track, special constant 0xAA (decimal 170) is used to indicate it. This +is safe since this is higher than the largest legal track position. In +'libcdio', 'CDIO_CDROM_LEADOUT_TRACK' is defined to be this special +value. + + +File: libcdio.info, Node: Sectors, Next: Pre-gaps, Prev: Tracks, Up: CD Units + +6.2 block addressing (MSF, LSN, LBA) +==================================== + +A track is broken up into a number of 2352-byte _blocks_ which we +sometimes call _sectors_ or _frames_. Whereas tracks may have a gap +between them, a block or sector does not. (In 'libcdio' the block size +constant is defined using 'CDIO_CD_FRAMESIZE_RAW'). + +A Compact Disc has a limit on the number of blocks or sectors. This +values is defined by constant 'CDIO_CD_MAX_LSN' in 'cdio/sector.h'. + +One can addressing a block in one of three formats. The oldest format +is by it's minute/second/frame number, also referred to as _MSF_ and +written in time-like format MM:SS:FF (e.g. 30:01:40). It is best +suited in audio (Red Book) applications. In 'libcdio', the type 'msf_t' +can be used to declare variables to hold such values. Minute, second +and frame values are one byte _and stored BCD notation_.(1) There are +'libcdio' conversion routines 'cdio_from_bcd8()' and 'cdio_to_bcd8()' to +convert the minute, second, and frame values into or out of integers. +If you want to print a field in a BCD-encoded MSF, one can use the +format specifier '%x' _(not '%d')_ and things will come out right. + +In the MSF notation, there are 75 "frames" in a "second," and the +familiar (if awkward) 60 seconds in a minute. _Frame_ here is what we +called a _block_ above. The CD specification defines "frame" to be +_another_ unit which makes up a block. Very confusing. A frame is also +sometimes called a sector, analogous to hard-disk terminology. + +Even more confusing is using this time-like notation for an address or +for a length. Too often people confuse the MSF notation this with an +amount of time. A "second" (or 'CDIO_CD_FRAMES_PER_SEC' blocks) in this +notation is only a second of playing time for something encoded as +CD-DA. It does _not_ necessarily represent the amount time that it will +take to play a of Video CD--usually you need more blocks than this. Nor +does it represent the amount of data used to play a second of an +MP3--usually you need fewer blocks than this. It is also not the amount +of time your CD-ROM will take to read a "second" of data off a Compact +Disc: for example a 12x CD player will read 12x 'CDIO_CD_FRAMES_PER_SEC' +'CDIO_CD_FRAMSIZE_RAW'-byte blocks in a one second of time. + +When programming, unless one is working with a CD-DA (and even here, +only in a time-like fashion), is generally more cumbersome to use an MSF +rather than a LBA or LSN described below, since subtraction of two MSF's +has the awkwardness akin to subtraction using Roman Numerals. + +A simpler way to address a block is to use a "Logical Sector Number" +(_LSN_) or a "Logical Block Address (_LBA_). In the MMC-5 glossary these +are synonymous terms. However historically it has been used +differently. In libcdio, to convert a LBA into an LSN you just subtract +150. Both LBA's and LSN's can be negative. + + ---------- Footnotes ---------- + + (1) Perhaps this is a 'libcdio' design flaw. It was originally done +I guess because it was convenient for VCDs. + + +File: libcdio.info, Node: Pre-gaps, Prev: Sectors, Up: CD Units + +6.3 track pre-gaps - CD-DA discs and gaps +========================================= + +Gaps are possibly one of the least understood topics in audio discs. In +the case of CD-DA discs, standards require a silent 2 second gap before +the first audio track and after the last audio track (in each session.) +These are respectively referred to as _lead-in_ and _lead-out_ gaps. No +other gaps are required. It is important not to confuse the required +_lead-in_ and _lead-out_ gaps with the optional track _pre-gap_s. Track +_pre-gap_s are the gaps that may occur between audio tracks. Typically, +track _pre-gap_s are filled with silence so that the listener knows that +one song has ended, and the next will soon begin. However, track +_pre-gap_s do not have to contain silence. One exception is an audio +disc of a live performance. Because the performer may seamlessly move +from one piece of the performance to the next, it would be unnatural for +the disc to contain silence between the two pieces. Instead, the track +number updates with no interruption in the performance. This allows the +listener to either hear the entire performance without unnatural +interruptions, or to conveniently skip to certain pieces of the +performance. Finally, some CD-DA discs-whose behavior will be described +below-lack track _pre-gap_s altogether although they must still include +the _lead-in_ and _lead-out_ gaps. + +In order to understand the track _pre-gap_s that occur between audio +tracks, it is necessary to understand how CD players display the track +number and time. Embedded in each block of audio data is non-audio +information known as the _Q sub-channel_. The _Q sub-channel_ data +tells the CD player what track number and time it should display while +it is playing the block of audio data in which the _Q sub-channel_ data +is embedded. Near the end of some tracks, the _Q sub-channel_ may +instruct the CD player to update the track number to the next track, and +display a count down to the next track, often starting at -2 seconds and +proceeding to zero. This is known as an audio track _pre-gap_. It may +either contain silence, or as previously discussed-in the case of live +performances-it may contain audio. Almost as often as not, there is no +_pre-gap_ whatsoever. Regardless, an audio track _pre-gap_ is purely +determined by the contents of the _Q sub-channel_, which is embedded in +each audio sector. This has some interesting implications for the track +forward button. + +When the track forward button is pressed on a CD player, the CD player +advances to the next track, skipping that track's _pre-gap_. This is +because the CD player uses the starting address of the track from the +disc's table of contents (TOC) to determine where to start playing a +track when either the track forward or track backward buttons are +pressed. So to hear a _pre-gap_ for track 4, the listener must either +listen to track 3 first, or use the track forward or backward buttons to +go to track 4, then use the seek backward button to back up into track +4's _pre-gap_, which is really part of track 3, at least according to +the TOC. Track 1 _pre-gap_s are especially interesting because some +commercial discs have audio hidden before the beginning of the first +track! The only way to hear this hidden audio with a standard player is +to use the seek backward button as soon as track 1 begins playing! + +Audio track _pre-gap_s may be specified in a couple of different ways in +the popular cue file format. The first way of specifying a _pre-gap_ is +to use the 'PREGAP' command. This will place a _pre-gap_ containing +silence before a track. The second way of specifying a _pre-gap_ is to +give a track an 'INDEX 00' as well as the more normal 'INDEX 01'. +'INDEX 01' will be used to specify the start of the track in the disc's +TOC, while 'INDEX 00' will be used to specify the start of the track's +_pre-gap_ as recorded in the _Q sub-channel_. 'INDEX 00' is ordinarily +used for specifying track _pre-gap_s that contain audio rather than +silence. Thus, the cue file format may be used to specify track +_pre-gap_s with silence or audio, depending on whether the 'PREGAP' or +'INDEX 00' commands are specified. If neither type of _pre-gap_ is +specified for a track, no _pre-gap_ is created for that track, which +merely means the absence of _pre-gap_ information in the _Q +sub-channel_, and the lack of a short count down to the next track. + +Various CD-DA ripping programs take various approaches to track +_pre-gap_s. Some ripping programs ignore track _pre-gap_s altogether, +relying solely on the disc's TOC to determine where tracks begin and +end. If a disc is ripped with such a program, then re-burned later, the +resulting disc will lack track _pre-gap_s, and thereby lack the playback +behavior of counting down to the next track. Other ripping programs +detect track _pre-gap_s and record them in the popular cue file format +among others. Such ripping programs sometimes allow the user to +determine whether track _pre-gap_s will be appended to the prior track +or pre-pended to the track to which they "belong". Note that if a +ripping program is ignorant of track _pre-gap_s, the track _pre-gap_s +will be appended to the prior track, because that is where the disc's +TOC puts them. Thus, there are many different ways an application may +chose to deal with track _pre-gap_s. Consequently, 'libcdio' does not +dictate the policy a ripping program should use in dealing with track +_pre-gap_s. Hence, 'libcdio' provides the +'cdio_get_track_pregap_[lba|lsn]()' interfaces to allow the application +to deal with track _pre-gap_s as it sees fit. + +Note that the 'cdio_get_track_pregap_[lba|lsn]()' interfaces currently +only provide information for CDRDAO TOC, CDRWIN BIN/CUE, and NRG images. +Getting the track _pre-gap_s from a CD drive is a more complicated +problem because not all CD drives support reading the _Q sub-channel_ +_directly_ at _high_ speed, and there is no interface to determine +whether or not a drive supports this optional feature, aside from trying +to read the _Q sub-channel_, and possibly incurring IO errors. However, +all drives _do_ support reading the _Q sub-channel_ _indirectly_ while +playing an audio disc by asking the drive for the current position. +Unfortunately, this occurs at normal playback speed, and requires a +certain settling time after the disc starts playing. Thus, using this +_slow_ interface requires a more sophisticated algorithm, such as binary +search or some heuristic, like backing up progressively from the end of +the prior track to look for the next track's _pre-gap_. Note that CD +drives seek _slow_ly, so it is better to simply use a drive that can +read the _Q sub-channel_ directly at _high_ speed, and avoid complicated +software solutions. (Not to mention that if the user has an older +system with an analog audio cable hooked up between their soundboard and +their drive, and a ripping program uses the _slow_ interface, the user +will hear bits of the audio on the disc!) Consequently, because there +is no good universal solution to the problem of reading the _Q +sub-channel_ from a drive, 'libcdio' currently leaves this problem up to +the application, a problem which is readily approachable through either +'libcdio''s MMC interface or 'libcdio''s cdda interface. For an example +of one such application, see . + +The preceding section on track _pre-gaps_ and CD-DA was contributed by +Robert William Fuller (). + + +File: libcdio.info, Node: How to use, Next: Utility Programs, Prev: CD Units, Up: Top + +7 How to use +************ + +The 'libcdio' package comes with a number of small example programs in +the directory 'example' which demonstrate different aspects of the +library and show how to use the library. The source code to all of the +examples here are contained on the package. + +Other sources for examples would be the larger utility programs +'cd-drive', 'cd-info', 'cd-read', 'iso-info', and 'iso-read' which are +all in the 'src' directory of the 'libcdio' package. See also *Note +Utility Programs::. + +* Menu: + +* Include problem:: A note about including +* Example 1:: list out tracks and LSNs +* Example 2:: list drivers available and default CD device +* Example 3:: figure out what kind of CD (image) we've got +* Example 4:: use libiso9660 to extract a file from an ISO-9660 image +* Example 5:: list CD-Text and CD disc mode info +* Example 6:: run a MMC INQUIRY command +* Example 7:: using the CD Paranoia library for CD-DA reading +* Example 8:: Setting output verbosity +* All sample programs:: list of all programs in the example directory + + +File: libcdio.info, Node: Include problem, Next: Example 1, Up: How to use + +7.1 A note about including '' +========================================== + +libcdio installs ''. This file contains all of the +C Preprocessor values from 'config.h' (created by configure). + +This header can be used to consult exactly how libcdio was built. +Initially I had selected "interesting" values, but this became too hard +to maintain. + +One set of values that libdio needs internally is the whether the CPU +that was used to compile libcdio is BigEndian or not; it can get this +from libcdio's 'config.h' which is not installed and preferred or +'cdio/cdio_config.h'. + +Some of the libcdio programs like the demo programs include 'config.h' +for the generic reasons that the configuration-created 'config.h' file +is used: to figure out what headers are available. For example, do we +have ''? + +The file 'config.h' is generated by an autotools-generated 'configure' +script. It doesn't check to see if it has been included previously. + +Later, the demo programs include '' to get libcdio headers. But +because libcdio needs some of the same information like the BigEndian +value, this creates a duplicate include. + +The way I get around this in the demo programs is by defining +'__CDIO_CONFIG_H__' after including 'config.h' as follows: + + #ifdef HAVE_CONFIG_H + # include "config.h" + # define __CDIO_CONFIG_H__ 1 + #endif + +Applications using libcdio may find it handy to do something like this +as well. + +Defining '__CDIO_CONFIG_H__' will make sure 'config_cdio.h' which is +internally used, doesn't try to redefine preprocessor symbols. + +Ok. But now what about the problem that there are common preprocessor +symbols in 'config_cdio.h' that an application may want to define in a +different manner, like 'PACKAGE_NAME'? + +For this, there is yet another header, ''. This +file undefines any symbol that 'config.h' defines. And now we bounce to +the problem that there may be symbols that are normally defined +('HAVE_UNISTD_H') and you want to keep that way, but others that you +don't. So here is what I suggest: + + // for cdio: + #include + #include # remove *all* symbols libcdio defines + + // Add back in the ones you want your program + #include + +The solution isn't the most simple or natural, but programming sometimes +can be difficult. If someone has a better solution, let me know. + +Between header files 'cdio_config.h' and 'cdio_unconfig.h' and all the +fact that almost all headers(1) define a symbol to indicate they have +been included, I think there is enough mechanism to cover most +situations that may arise. + + ---------- Footnotes ---------- + + (1) '' is one of the few headers that doesn't set a +preprocessor symbol: it does its thing every time it is '#included' + + +File: libcdio.info, Node: Example 1, Next: Example 2, Prev: Include problem, Up: How to use + +7.2 Example 1: list out tracks and LSNs +======================================= + +Here we will give an annotated example which can be found in the +distribution as 'example/tracks.c'. + + 1: #include + 2: #include + 3: #include + 4: int + 5: main(int argc, const char *argv[]) + 6: { + 7: CdIo_t *p_cdio = cdio_open ("/dev/cdrom", DRIVER_DEVICE); + 8: track_t first_track_num = cdio_get_first_track_num(p_cdio); + 9: track_t i_tracks = cdio_get_num_tracks(p_cdio); + 10: int j, i=first_track_num; + 11: + 12: printf("CD-ROM Track List (%i - %i)\n", first_track_num, i_tracks); + 13 + 14: printf(" #: LSN\n"); + 15: + 16: for (j = 0; j < i_tracks; i++, j++) { + 17: lsn_t lsn = cdio_get_track_lsn(p_cdio, i); + 18: if (CDIO_INVALID_LSN != lsn) + 19: printf("%3d: %06d\n", (int) i, lsn); + 20: } + 21: printf("%3X: %06d leadout\n", CDIO_CDROM_LEADOUT_TRACK, + 22: cdio_get_track_lsn(p_cdio, CDIO_CDROM_LEADOUT_TRACK)); + 23: cdio_destroy(p_cdio); + 24: return 0; + 25: } + +Already from the beginning on line 2 we see something odd. The +'#include ' is needed because 'libcdio' assumes type +definitions exist for 'uint32_t', 'uint16_t' and so on. Alternatively +you change line 2 to: + + #define HAVE_SYS_TYPES_H + +and '' will insert line 2. If you use GNU autoconf to +configure your program, add 'sys/types.h' to 'AC_HAVE_HEADERS' and _it_ +will arrange for 'HAVE_SYS_TYPES_H' to get defined. If you don't have +'' but have some other include that defines these types, +put that instead of line 2. Or you could roll your own typedefs. +(Note: In the future, this will probably get "fixed" by requiring +glib.h.) + +Okay after getting over the hurdle of line 2, the next line pretty +straightforward: you need to include this to get cdio definitions. One +of the types that is defined via line 3 is 'CdIo_t' and a pointer that +is used pretty much in all operations. Line 6 initializes the variable +'cdio' which we will be using in all of the subsequent libcdio calls. +It does this via a call to 'cdio_open()'. + +The second parameter of 'cdio_open' is DRIVER_UNKNOWN. For any given +installation a number of Compact Disc device drivers may be available. +In particular it's not uncommon to have several drivers that can read CD +disk-image formats as well as a driver that handles some CD-ROM piece of +hardware. Using DRIVER_UNKNOWN as that second parameter we let the +library select a driver amongst those that are available; generally the +first hardware driver that is available is the one selected. + +If there is no CD in any of the CD-ROM drives or one does not have +access to the CD-ROM, it is possible that 'libcdio' will find a CD image +in the directory you run this program and will pick a suitable CD-image +driver. If this is not what you want, but always want some sort of +CD-ROM driver (or failure if none), then use DRIVER_DEVICE instead of +DRIVER_UNKNOWN. + +Note that in contrast to what is typically done using ioctls to read a +CD, you don't issue any sort of CD-ROM read TOC command--that is all +done by the driver. Of course, the information that you get from +reading the TOC is often desired: many tracks are on the CD, or what +number the first one is called. This is done through calls on lines 8 +and 9. + +For each track, we call a cdio routine to get the logical sector number, +'cdio_get_track_lsn()' on line 17 and print the track number and LSN +value. Finally we print out the "lead-out track" information and we +finally call 'cdio_destroy()' in line 23 to indicate we're done with the +CD. + + +File: libcdio.info, Node: Example 2, Next: Example 3, Prev: Example 1, Up: How to use + +7.3 Example 2: list drivers available and default CD device +=========================================================== + +One thing that's a bit hockey in Example 1 is hard-coding the name of +the device used: '/dev/cdrom'. Although often this is the name of a +CD-ROM device on GNU/Linux and possibly some other Unix derivatives, +there are many OSs for which use a different device name. + +In the next example, we'll let the driver give us the name of the CD-ROM +device that is right for it. + + 1: #include + 2: #include + 3: #include + 4: int + 5: main(int argc, const char *argv[]) + 6: { + 7: CdIo_t *p_cdio = cdio_open (NULL, DRIVER_DEVICE); + 8: const driver_id_t *driver_id_p; + 9: + 10: if (NULL != p_cdio) { + 11: printf("The driver selected is %s\n", cdio_get_driver_name(p_cdio)); + 12: printf("The default device for this driver is %s\n\n", + 13: cdio_get_default_device(p_cdio)); + 14: cdio_destroy(p_cdio); + 15: } else { + 16: printf("Problem in trying to find a driver.\n\n"); + 17: } + 18: + 19: for (driver_id_p=cdio_drivers; *driver_id_p!=DRIVER_UNKNOWN; driver_id_p++) + 20: if (cdio_have_driver(*driver_id_p)) + 21: printf("We have: %s\n", cdio_driver_describe(*driver_id_p)); + 22: else + 23: printf("We don't have: %s\n", cdio_driver_describe(*driver_id_p)); + 24: return 0; + 25: } + + +File: libcdio.info, Node: Example 3, Next: Example 4, Prev: Example 2, Up: How to use + +7.4 Example 3: figure out what kind of CD (image) we've got +=========================================================== + +In this example is a somewhat simplified program to show the use of +'cdio_guess_cd_type()' to figure out the kind of CD image we've got. +This can be found in the distribution as 'example/sample3.c'. + + #ifdef HAVE_CONFIG_H + # include "config.h" + #endif + #include + #include + #include + #include + #include + + static void + print_analysis(cdio_iso_analysis_t cdio_iso_analysis, + cdio_fs_anal_t fs, int first_data, unsigned int num_audio, + track_t i_tracks, track_t first_track_num, CdIo_t *cdio) + { + switch(CDIO_FSTYPE(fs)) { + case CDIO_FS_AUDIO: + break; + case CDIO_FS_ISO_9660: + printf("CD-ROM with ISO 9660 filesystem"); + if (fs & CDIO_FS_ANAL_JOLIET) { + printf(" and joliet extension level %d", cdio_iso_analysis.joliet_level); + } + if (fs & CDIO_FS_ANAL_ROCKRIDGE) + printf(" and rockridge extensions"); + printf("\n"); + break; + case CDIO_FS_ISO_9660_INTERACTIVE: + printf("CD-ROM with CD-RTOS and ISO 9660 filesystem\n"); + break; + case CDIO_FS_HIGH_SIERRA: + printf("CD-ROM with High Sierra filesystem\n"); + break; + case CDIO_FS_INTERACTIVE: + printf("CD-Interactive%s\n", num_audio > 0 ? "/Ready" : ""); + break; + case CDIO_FS_HFS: + printf("CD-ROM with Macintosh HFS\n"); + break; + case CDIO_FS_ISO_HFS: + printf("CD-ROM with both Macintosh HFS and ISO 9660 filesystem\n"); + break; + case CDIO_FS_UFS: + printf("CD-ROM with Unix UFS\n"); + break; + case CDIO_FS_EXT2: + printf("CD-ROM with Linux second extended filesystem\n"); + break; + case CDIO_FS_3DO: + printf("CD-ROM with Panasonic 3DO filesystem\n"); + break; + case CDIO_FS_UNKNOWN: + printf("CD-ROM with unknown filesystem\n"); + break; + } + switch(CDIO_FSTYPE(fs)) { + case CDIO_FS_ISO_9660: + case CDIO_FS_ISO_9660_INTERACTIVE: + case CDIO_FS_ISO_HFS: + printf("ISO 9660: %i blocks, label `%.32s'\n", + cdio_iso_analysis.isofs_size, cdio_iso_analysis.iso_label); + break; + } + if (first_data == 1 && num_audio > 0) + printf("mixed mode CD "); + if (fs & CDIO_FS_ANAL_XA) + printf("XA sectors "); + if (fs & CDIO_FS_ANAL_MULTISESSION) + printf("Multisession"); + if (fs & CDIO_FS_ANAL_HIDDEN_TRACK) + printf("Hidden Track "); + if (fs & CDIO_FS_ANAL_PHOTO_CD) + printf("%sPhoto CD ", + num_audio > 0 ? " Portfolio " : ""); + if (fs & CDIO_FS_ANAL_CDTV) + printf("Commodore CDTV "); + if (first_data > 1) + printf("CD-Plus/Extra "); + if (fs & CDIO_FS_ANAL_BOOTABLE) + printf("bootable CD "); + if (fs & CDIO_FS_ANAL_VIDEOCD && num_audio == 0) { + printf("Video CD "); + } + if (fs & CDIO_FS_ANAL_SVCD) + printf("Super Video CD (SVCD) or Chaoji Video CD (CVD)"); + if (fs & CDIO_FS_ANAL_CVD) + printf("Chaoji Video CD (CVD)"); + printf("\n"); + } + + int + main(int argc, const char *argv[]) + { + CdIo_t *p_cdio = cdio_open (NULL, DRIVER_UNKNOWN); + cdio_fs_anal_t fs=0; + + track_t i_tracks; + track_t first_track_num; + lsn_t start_track; /* first sector of track */ + lsn_t data_start =0; /* start of data area */ + + int first_data = -1; /* # of first data track */ + int first_audio = -1; /* # of first audio track */ + unsigned int num_data = 0; /* # of data tracks */ + unsigned int num_audio = 0; /* # of audio tracks */ + unsigned int i; + + if (NULL == p_cdio) { + printf("Problem in trying to find a driver.\n\n"); + return 1; + } + + first_track_num = cdio_get_first_track_num(p_cdio); + i_tracks = cdio_get_num_tracks(p_cdio); + + /* Count the number of data and audio tracks. */ + for (i = first_track_num; i <= i_tracks; i++) { + if (TRACK_FORMAT_AUDIO == cdio_get_track_format(p_cdio, i)) { + num_audio++; + if (-1 == first_audio) first_audio = i; + } else { + num_data++; + if (-1 == first_data) first_data = i; + } + } + + /* try to find out what sort of CD we have */ + if (0 == num_data) { + printf("Audio CD\n"); + } else { + /* we have data track(s) */ + int j; + cdio_iso_analysis_t cdio_iso_analysis; + + memset(&cdio_iso_analysis, 0, sizeof(cdio_iso_analysis)); + + for (j = 2, i = first_data; i <= i_tracks; i++) { + lsn_t lsn; + track_format_t track_format = cdio_get_track_format(p_cdio, i); + + lsn = cdio_get_track_lsn(p_cdio, i); + + switch ( track_format ) { + case TRACK_FORMAT_AUDIO: + case TRACK_FORMAT_ERROR: + break; + case TRACK_FORMAT_CDI: + case TRACK_FORMAT_XA: + case TRACK_FORMAT_DATA: + case TRACK_FORMAT_PSX: + ; + } + + start_track = (i == 1) ? 0 : lsn; + + /* save the start of the data area */ + if (i == first_data) + data_start = start_track; + + /* skip tracks which belong to the current walked session */ + if (start_track < data_start + cdio_iso_analysis.isofs_size) + continue; + + fs = cdio_guess_cd_type(p_cdio, start_track, i, &cdio_iso_analysis); + + print_analysis(cdio_iso_analysis, fs, first_data, num_audio, + i_tracks, first_track_num, p_cdio); + + if ( !(CDIO_FSTYPE(fs) == CDIO_FS_ISO_9660 || + CDIO_FSTYPE(fs) == CDIO_FS_ISO_HFS || + CDIO_FSTYPE(fs) == CDIO_FS_ISO_9660_INTERACTIVE) ) + /* no method for non-ISO9660 multisessions */ + break; + } + } + cdio_destroy(p_cdio); + return 0; + } + + +File: libcdio.info, Node: Example 4, Next: Example 5, Prev: Example 3, Up: How to use + +7.5 Example 4: use libiso9660 to extract a file from an ISO-9660 image +====================================================================== + +Next a program to show using 'libiso9660' to extract a file from an +ISO-9660 image. This can be found in the distribution as +'example/isofile.c'. A more complete and expanded version of this is +'iso-read', part of this distribution. + + /* This is the ISO 9660 image. */ + #define ISO9660_IMAGE_PATH "../" + #define ISO9660_IMAGE ISO9660_IMAGE_PATH "test/copying.iso" + + #define LOCAL_FILENAME "copying" + + #ifdef HAVE_CONFIG_H + # include "config.h" + #endif + + #include + #include + #include + + #include + + #ifdef HAVE_ERRNO_H + #include + #endif + #ifdef HAVE_STRING_H + #include + #endif + #ifdef HAVE_UNISTD_H + #include + #endif + #ifdef HAVE_SYS_TYPES_H + #include + #endif + + #define my_exit(rc) \ + fclose (p_outfd); \ + free(p_statbuf); \ + iso9660_close(p_iso); \ + return rc; \ + + int + main(int argc, const char *argv[]) + { + iso9660_stat_t *p_statbuf; + FILE *p_outfd; + int i; + + iso9660_t *p_iso = iso9660_open (ISO9660_IMAGE); + + if (NULL == p_iso) { + fprintf(stderr, "Sorry, couldn't open ISO 9660 image %s\n", ISO9660_IMAGE); + return 1; + } + + p_statbuf = iso9660_ifs_stat_translate (p_iso, LOCAL_FILENAME); + + if (NULL == p_statbuf) + { + fprintf(stderr, + "Could not get ISO-9660 file information for file %s\n", + LOCAL_FILENAME); + iso9660_close(p_iso); + return 2; + } + + if (!(p_outfd = fopen (LOCAL_FILENAME, "wb"))) + { + perror ("fopen()"); + free(p_statbuf); + iso9660_close(p_iso); + return 3; + } + + /* Copy the blocks from the ISO-9660 filesystem to the local filesystem. */ + for (i = 0; i < p_statbuf->size; i += ISO_BLOCKSIZE) + { + char buf[ISO_BLOCKSIZE]; + + memset (buf, 0, ISO_BLOCKSIZE); + + if ( ISO_BLOCKSIZE != iso9660_iso_seek_read (p_iso, buf, p_statbuf->lsn + + (i / ISO_BLOCKSIZE), + 1) ) + { + fprintf(stderr, "Error reading ISO 9660 file at lsn %lu\n", + (long unsigned int) p_statbuf->lsn + (i / ISO_BLOCKSIZE)); + my_exit(4); + } + + + fwrite (buf, ISO_BLOCKSIZE, 1, p_outfd); + + if (ferror (p_outfd)) + { + perror ("fwrite()"); + my_exit(5); + } + } + + fflush (p_outfd); + + /* Make sure the file size has the exact same byte size. Without the + truncate below, the file will a multiple of ISO_BLOCKSIZE. + */ + if (ftruncate (fileno (p_outfd), p_statbuf->size)) + perror ("ftruncate()"); + + my_exit(0); + } + + +File: libcdio.info, Node: Example 5, Next: Example 6, Prev: Example 4, Up: How to use + +7.6 Example 5: list CD-Text and disc mode info +============================================== + +Next a program to show using 'libcdio' to list CD-TEXT data. This can +be found in the distribution as 'example/cdtext.c'. + + /* Simple program to list CD-Text info of a Compact Disc using libcdio. */ + #ifdef HAVE_CONFIG_H + # include "config.h" + #endif + #include + #include + #include + #include + + + static void + print_cdtext_track_info(CdIo_t *p_cdio, track_t i_track, const char *message) { + const cdtext_t *cdtext = cdio_get_cdtext(p_cdio, 0); + if (NULL != cdtext) { + cdtext_field_t i; + + printf("%s\n", message); + + for (i=0; i < MAX_CDTEXT_FIELDS; i++) { + if (cdtext->field[i]) { + printf("\t%s: %s\n", cdtext_field2str(i), cdtext->field[i]); + } + } + } + + } + + static void + print_disc_info(CdIo_t *p_cdio, track_t i_tracks, track_t i_first_track) { + track_t i_last_track = i_first_track+i_tracks; + discmode_t cd_discmode = cdio_get_discmode(p_cdio); + + printf("%s\n", discmode2str[cd_discmode]); + + print_cdtext_track_info(p_cdio, 0, "\nCD-Text for Disc:"); + for ( ; i_first_track < i_last_track; i_first_track++ ) { + char psz_msg[50]; + sprintf(msg, "CD-Text for Track %d:", i_first_track); + print_cdtext_track_info(p_cdio, i_first_track, psz_msg); + } + } + + int + main(int argc, const char *argv[]) + { + track_t i_first_track; + track_t i_tracks; + CdIo_t *p_cdio; + cdio = cdio_open (NULL, DRIVER_UNKNOWN); + i_first_track = cdio_get_first_track_num(p_cdio); + i_tracks = cdio_get_num_tracks(p_cdio); + + if (NULL == p_cdio) { + printf("Couldn't find CD\n"); + return 1; + } else { + print_disc_info(p_cdio, i_tracks, i_first_track); + } + + cdio_destroy(p_cdio); + + return 0; + } + + +File: libcdio.info, Node: Example 6, Next: Example 7, Prev: Example 5, Up: How to use + +7.7 Example 6: Using MMC to run an 'INQURY' command +=================================================== + +Now a program to show issuing a simple MMC command ('INQUIRY'). This +MMC command retrieves the vendor, model and firmware revision number of +a CD drive. For this command to work, usually a CD to be loaded into +the drive; odd since the CD itself is not used. + +This can be found in the distribution as 'example/mmc1.c'. + + #ifdef HAVE_CONFIG_H + # include "config.h" + # define __CDIO_CONFIG_H__ 1 /* assumes config.h is libcdio's config.h / + #endif + #include + #include + #include + #include + #include + + /* Set how long to wait for MMC commands to complete */ + #define DEFAULT_TIMEOUT_MS 10000 + + int + main(int argc, const char *argv[]) + { + CdIo_t *p_cdio; + + p_cdio = cdio_open (NULL, DRIVER_UNKNOWN); + + if (NULL == p_cdio) { + printf("Couldn't find CD\n"); + return 1; + } else { + int i_status; /* Result of MMC command */ + char buf[36] = { 0, }; /* Place to hold returned data */ + scsi_mmc_cdb_t cdb = {{0, }}; /* Command Descriptor Buffer */ + + CDIO_MMC_SET_COMMAND(cdb.field, CDIO_MMC_GPCMD_INQUIRY); + cdb.field[4] = sizeof(buf); + + i_status = scsi_mmc_run_cmd(p_cdio, DEFAULT_TIMEOUT_MS, + &cdb, SCSI_MMC_DATA_READ, + sizeof(buf), &buf); + if (i_status == 0) { + char psz_vendor[CDIO_MMC_HW_VENDOR_LEN+1]; + char psz_model[CDIO_MMC_HW_MODEL_LEN+1]; + char psz_rev[CDIO_MMC_HW_REVISION_LEN+1]; + + memcpy(psz_vendor, buf + 8, sizeof(psz_vendor)-1); + psz_vendor[sizeof(psz_vendor)-1] = '\0'; + memcpy(psz_model, + buf + 8 + CDIO_MMC_HW_VENDOR_LEN, + sizeof(psz_model)-1); + psz_model[sizeof(psz_model)-1] = '\0'; + memcpy(psz_rev, + buf + 8 + CDIO_MMC_HW_VENDOR_LEN +CDIO_MMC_HW_MODEL_LEN, + sizeof(psz_rev)-1); + psz_rev[sizeof(psz_rev)-1] = '\0'; + + printf("Vendor: %s\nModel: %s\nRevision: %s\n", + psz_vendor, psz_model, psz_rev); + } else { + printf("Couldn't get INQUIRY data (vendor, model, and revision\n"); + } + } + + cdio_destroy(p_cdio); + + return 0; + } + +Note the include of '#define' of '__CDIO_CONFIG_H__' towards the +beginning. This is useful if the prior '#include' of 'config.h' refers +to libcdio's configuration header. It indicates that libcdio's +configuration settings have been used. Without it, you may get messages +about C Preprocessor symbols getting redefined in the '#include' of +''. + + +File: libcdio.info, Node: Example 7, Next: Example 8, Prev: Example 6, Up: How to use + +7.8 Example 7: Using the CD Paranoia library for CD-DA reading +============================================================== + +The below program reads CD-DA data. For a more complete program to add +a WAV header so that the CD can be played from a copy on a hard disk, +see the corresponding distribution program. + +This can be found in the distribution as 'example/paranoia.c'. + + #ifdef HAVE_CONFIG_H + # include "config.h" + # define __CDIO_CONFIG_H__ 1 /* assumes config.h is libcdio's config.h / + #endif + + #include + #include + #include + + #ifdef HAVE_STDLIB_H + #include + #endif + + int + main(int argc, const char *argv[]) + { + cdrom_drive_t *d = NULL; /* Place to store handle given by cd-paranoia. */ + char **ppsz_cd_drives; /* List of all drives with a loaded CDDA in it. */ + + /* See if we can find a device with a loaded CD-DA in it. */ + ppsz_cd_drives = cdio_get_devices_with_cap(NULL, CDIO_FS_AUDIO, false); + + if (ppsz_cd_drives) { + /* Found such a CD-ROM with a CD-DA loaded. Use the first drive in + the list. */ + d=cdio_cddap_identify(*ppsz_cd_drives, 1, NULL); + } else { + printf("Unable find or access a CD-ROM drive with an audio CD in it.\n"); + exit(1); + } + + /* Don't need a list of CD's with CD-DA's any more. */ + cdio_free_device_list(ppsz_cd_drives); + + /* We'll set for verbose paranoia messages. */ + cdio_cddap_verbose_set(d, CDDA_MESSAGE_PRINTIT, CDDA_MESSAGE_PRINTIT); + + if ( 0 != cdio_cddap_open(d) ) { + printf("Unable to open disc.\n"); + exit(1); + } + + /* Okay now set up to read up to the first 300 frames of the first + audio track of the Audio CD. */ + { + cdrom_paranoia_t *p = cdio_paranoia_init(d); + lsn_t i_first_lsn = cdio_cddap_disc_firstsector(d); + + if ( -1 == i_first_lsn ) { + printf("Trouble getting starting LSN\n"); + } else { + lsn_t i_cursor; + track_t i_track = cdio_cddap_sector_gettrack(d, i_first_lsn); + lsn_t i_last_lsn = cdio_cddap_track_lastsector(d, i_track); + + /* For demo purposes we'll read only 300 frames (about 4 + seconds). We don't want this to take too long. On the other + hand, I suppose it should be something close to a real test. + */ + if ( i_last_lsn - i_first_lsn > 300) i_last_lsn = i_first_lsn + 299; + + printf("Reading track %d from LSN %ld to LSN %ld\n", i_track, + (long int) i_first_lsn, (long int) i_last_lsn); + + /* Set reading mode for full paranoia, but allow skipping sectors. */ + paranoia_modeset(p, PARANOIA_MODE_FULL^PARANOIA_MODE_NEVERSKIP); + + paranoia_seek(p, i_first_lsn, SEEK_SET); + + for ( i_cursor = i_first_lsn; i_cursor <= i_last_lsn; i_cursor ++) { + /* read a sector */ + int16_t *p_readbuf=cdio_paranoia_read(p, NULL); + char *psz_err=cdio_cddap_errors(d); + char *psz_mes=cdio_cddap_messages(d); + + if (psz_mes || psz_err) + printf("%s%s\n", psz_mes ? psz_mes: "", psz_err ? psz_err: ""); + + if (psz_err) cdio_cddap_free_messages(psz_err); + if (psz_mes) cdio_cddap_free_messages(psz_mes); + if( !p_readbuf ) { + printf("paranoia read error. Stopping.\n"); + break; + } + } + } + cdio_paranoia_free(p); + } + + cdio_cdda_close(d); + exit(0); + } + +Those who are die-hard cdparanoia programmers will notice that the +'libcdio' paranoia names are similar but a little bit different. In +particular instead of 'paranoia_read' we have above 'cdio_paranoia_read' +and instead of 'cdda_open' we have 'cdio_cddap_open'. + +This was done intentionally so that it is possible for the original +paranoia program can co-exist both in source code and linked libraries +and not conflict with 'libcdio''s paranoia source and libraries. + +In general in place of any paranoia routine that begins 'paranoia_', use +'cdio_paranoia_' and in place of any paranoia routine that begins +'cdda_', use 'cdio_cddap_'. But for a limited time 'libcdio' will +accept the old paranoia names which may be useful for legacy paranoia +code. The way this magic works is by defining the old paranoia name to +be the 'libcdio' name. + +In the unusual case where you do want to use both the original paranoia +and 'libcdio' routines in a single source, the C preprocessor symbol +'DO_NOT_WANT_PARANOIA_COMPATIBILITY' can be 'define''d and this disables +the '#define' substitution done automatically. The may still be a +problem with conflicting structure definitions like 'cdrom_drive_t'. + + +File: libcdio.info, Node: Example 8, Next: All sample programs, Prev: Example 7, Up: How to use + +7.9 Example 8: Setting output verbosity +======================================= + +Sometimes in tracking down a problem in your code or libcdio's you may +want more information about what is going on inside the 'libcdio' +library. + +The setting global variable 'cdio_loglevel_default' defined in header +file '' controls the verbosity level. By default, only +warnings, errors, and fatal errors are printed. However by setting this +variable you can get either debug or informational messages, or cause +the normal messages that appear to be suppressed. + +The verbosity levels defined in the library are from lowest number to +highest are: + +'CDIO_LOG_DEBUG (value 1)' + + These are of a debugging nature and are give the most verbose + output. + +'CDIO_LOG_INFO (value 2)' + + These are informational message. + +'CDIO_LOG_WARN (value 3)' + + These are warning message. Not an error, per se, but something + that might be of concern. + +'CDIO_LOG_ERROR (value 4)' + + These are error messages that force program termination. + +'CDIO_LOG_ASSERT (value 5)' + + These are error messages that represent an internal inconsistency + in the 'libcdio' library. In the absence of 'libcdio' bugs, these + should never appear. + +Setting a lower or more verbose log level will cause higher-level +messages to appear, but not those that are less than the set verbosity +level. The "debug" level is the lowest. So setting +'cdio_loglevel_default' to level causes all other levels of messages to +be displayed. However setting the verbosity level to "warn" will cause +debug and informational messages (lower level messages) to be ignored +while still showing warning, error, and fatal error messages. + +Another thing that can be done is to write a custom log handler that +will be used instead of 'libcdio''s default handlers. Using this, you +have complete control of how you want logging to be handled. + +Here is an example adapted from example program 'logging.c'. + + #include + #include + #include + #include + #include + #include + + #include + #include + #include + + /* Here is an example of a custom log handler. */ + static void + custom_log_handler (cdio_log_level_t level, const char *message) + { + switch(level) { + case CDIO_LOG_DEBUG: + printf("-- custom debug message: %s\n", message); + return; + case CDIO_LOG_INFO: + printf("-- custom info message: %s\n", message); + return; + case CDIO_LOG_WARN: + printf("-- custom warning message: %s\n", message); + return; + case CDIO_LOG_ERROR: + printf("-- custom error message: %s\n", message); + return; + case CDIO_LOG_ASSERT: + printf("-- custom fatal error message: %s\n", message); + return; + default: + printf("custom level %d message: %s\n", level, message); + } + } + + static void + print_drives() + { + char **ppsz_cd_drives=NULL, **c; + /* Print out a list of CD-drives with the above set log level. */ + ppsz_cd_drives = cdio_get_devices(DRIVER_DEVICE); + if (NULL != ppsz_cd_drives) + for( c = ppsz_cd_drives; *c != NULL; c++ ) { + printf("-- Drive %s\n", *c); + } + cdio_free_device_list(ppsz_cd_drives); + } + + int + main(int argc, const char *argv[]) + { + /* Set the log level to the warning verbosity. */ + cdio_loglevel_default = CDIO_LOG_WARN; + + print_drives(); + + /* Do the same thing again but with a custom log handler. */ + cdio_log_set_handler (custom_log_handler); + + print_drives(); + return 0; + + } + + +File: libcdio.info, Node: All sample programs, Prev: Example 8, Up: How to use + +7.10 A list of all sample programs in the 'example' directory +============================================================= + +The 'example' directory contains some simple examples of the use of the +'libcdio' library. + +A larger more-complicated example are the 'cd-drive', 'cd-info', +'cd-read', 'iso-info' and 'iso-info' programs in the 'src' directory. + +Descriptions of the sample are as follows... + +'audio.c' + + A program to show audio controls. + +'cdchange.c' + + A program to test if a CD has been changed since the last change + test. + +'cd-eject.c' + + A a stripped-down "eject" command to open or close a CD-ROM tray. + +'cdtext.c' + + A program to show CD-Text and CD disc mode info. + +'drives.c' + + A program to show drivers installed and what the default CD-ROM + drive is and what CD drives are available. + +'eject.c' + + A program eject a CD from a CD-ROM drive and then close the door + again. + +'isofile.c' + + A program to show using libiso9660 to extract a file from an + ISO-9660 image. + +'isofile2.c' + + A program to show using libiso9660 to extract a file from a CDRWIN + cue/bin CD image. + +'C++/isofile2.cpp' + + The same program as 'isofile2.c' written in C++. + +'isofuzzy.c' + + A program showing fuzzy ISO-9660 detection/reading. + +'isolist.c' + + A program to show using 'libiso9660' to list files in a directory + of an ISO-9660 image. + +'C++/isolist.cpp' + + The same program as 'isolist.c' written in C++. + +'isofuzzy.c' + + A program showing fuzzy ISO-9660 detection/reading. + +'logging.c' + + A program to show to to set log verbosity levels and how to write a + custom log handler. + +'mmc1.c' + + A program to show issuing a simple MMC command ('INQUIRY'). + +'C++/mmc1.cpp' + + The same program as 'mmc1.c' written in C++. + +'mmc2.c' + + A more involved MMC command to list CD and drive features from a + SCSI-MMC 'GET_CONFIGURATION' command. + +'mmc2a.c' + + Prints MMC 'MODE_SENSE' page 2A parameters. Page 2a are the CD/DVD + Capabilities and Mechanical Status. + +'C++/mmc2.cpp' + + The same program as 'mmc2.c' written in C++. + +'paranoia.c' + + A program to show using libcdio's version of the CD-DA paranoia. + +'paranoia2.c' + + A program to show using libcdio's version of the CD-DA paranoia + library. But in this version, we'll open a cdio object before + calling paranoia's open. I imagine in many cases such as media + players this may be what will be done since, one may want to get + CDDB/CD-Text info beforehand. + +'tracks.c' + + A simple program to list track numbers and logical sector numbers + of a Compact Disc using 'libcdio'. + +'sample2.c' + + A simple program to show drivers installed and what the default + CD-ROM drive is. + +'sample3.c' + + A simple program to show the use of 'cdio_guess_cd_type()'. + Figures out the kind of CD image we've got. + +'sample4.c' + + A slightly improved sample3 program: we handle cdio logging and + take an optional CD-location. + +'udf1.c' + + A program to show using libudf to list files in a directory of an + UDF image. + +'udf2.c' + + A program to show using libudf to extract a file from an UDF image. + + +File: libcdio.info, Node: Utility Programs, Next: CD-ROM Access and Drivers, Prev: How to use, Up: Top + +8 Diagnostic programs: 'cd-drive', 'cd-info', 'cd-read', 'iso-info', 'iso-read' +******************************************************************************* + +* Menu: + +* cd-drive:: list out CD-ROM drive information +* cd-info:: list out CD or CD-image information +* cd-read:: read blocks of a CD or CD image +* iso-info:: list out ISO-9600 image information +* iso-read:: extract a file from an ISO 9660 image + + +File: libcdio.info, Node: cd-drive, Next: cd-info, Up: Utility Programs + +8.1 'cd-drive' +============== + +'cd-drive' lists out drive information, what features drive supports, +and information about what hardware drivers are available. + + +File: libcdio.info, Node: cd-info, Next: cd-read, Prev: cd-drive, Up: Utility Programs + +8.2 'cd-info' +============= + +'cd-info' will print out the structure of a CD medium which could either +be a Compact Disc in a CD ROM or an CD image. It can try to analyze the +medium to give characteristics of the medium, such as how many tracks +are in the CD and the format of each track, whether a CD contains a +Video CD, CD-DA, PhotoCD, whether a track has an ISO-9660 filesystem. + + +File: libcdio.info, Node: cd-read, Next: iso-info, Prev: cd-info, Up: Utility Programs + +8.3 'cd-read' +============= + +'cd-info' can be used to read blocks a CD medium which could either be a +Compact Disc in a CD ROM or an CD image. You specify the beginning and +ending LSN and what mode format to use in the reading. + + +File: libcdio.info, Node: iso-info, Next: iso-read, Prev: cd-read, Up: Utility Programs + +8.4 'iso-info' +============== + +'iso-info' can be used to print out the structure of an ISO 9660 image. + + +File: libcdio.info, Node: iso-read, Prev: iso-info, Up: Utility Programs + +8.5 'iso-read' +============== + +'iso-read' can be used to extract a file in an ISO-9660 image. + + +File: libcdio.info, Node: CD-ROM Access and Drivers, Next: Internal Program Organization, Prev: Utility Programs, Up: Top + +9 CD-ROM Access and Drivers +*************************** + +* Menu: + +* SCSI mess:: SCSI, SCSI commands, and MMC commands +* Access Modes:: Access Modes +* Accessing Driver Parameters:: Accessing Driver Parameters + +* GNU/Linux:: GNU/Linux ioctl +* Microsoft:: Microsoft Windows ioctl and ASPI +* Solaris:: Solaris ATAPI and SCSI +* FreeBSD:: FreeBSD ioctl and CAM +* OS X:: OSX (non-exclussive access) + + +File: libcdio.info, Node: SCSI mess, Next: Access Modes, Up: CD-ROM Access and Drivers + +9.1 SCSI, SCSI commands, and MMC commands +========================================= + +Historically, SCSI referred to a class of hardware devices and device +controllers, bus technology and the data cables and protocols which +attached to such devices. This is now called "Parallel SCSI". + +A specification standard grew out of the _commands_ that controlled such +SCSI devices, but now covers a wider variety of bus technologies +including Parallel SCSI, ATA/ATAPI, Serial ATA, Universal Serial Bus +(USB versions 1.1 and 2.0), and High Performance Serial Bus (IEEE 1394, +1394A, and 1394B). + +Another similar class of hardware devices and controllers is called ATA +and a command interface to that is called ATAPI (ATA Packetized +Interface). ATAPI provides a mechanism for transferring and executing +SCSI commands. + +MMC (Multimedia commands) is a specification which adds special SCSI +commands for CD, DVD, Blu-Ray devices. + +If your optical drive understands MMC commands as most do nowadays, this +probably gives the most flexibility in control. SCSI and ATAPI CD-ROM +devices generally support a fairly large set of MMC commands. +Unfortunately, on most Operating Systems one may need to do some +additional setup, such as install drivers or modules, to allow access in +this manner. + +The name "SCSI MMC" is often found in the literature in specifications +and on the Internet. The "SCSI" part is probably a little bit +misleading because a drive can understand "SCSI MMC" commands but not +use a SCSI bus protocol--ATAPI CD-ROMs are one such broad class of +examples. In fact there are drivers to "encapsulate" non-SCSI drives to +make them act like more like SCSI drives, such as by adding SCSI address +naming. + +For clarity and precision we will use the term "MMC" rather than "SCSI +MMC". + +One of the problems with MMC is that there are so many different +"standards". In particular: + * MMC -- , + * MMC 2 -- + * MMC 3 -- + * MMC 4 -- + * MMC 5 -- +along with the several "drafts" of these. + +Another problem with the MMC commands related to the variations in +standards is the variation in the commands themselves and there are +perhaps two or three ways to do many of the basic commands like read a +CD frame. + +There seems to be a fascination with the number of bytes a command takes +in the MMC-specification world. (Size matters?) So often the name of +an operation will have a suffix with the number of bytes of the command +(actually in MMC jargon this is called a "CDB" or command descriptor +block). So for example there is a 6-byte "MODE SELECT" often called +"MODE SELECT 6" and a 10-byte "MODE SELECT" often called "MODE SELECT +10". Presumably the 6-byte command came first and it was discovered +that there was some deficiency causing the longer command. In 'libcdio' +where there are two formats we add the suffix in the name, e.g. +'CDIO_MMC_GPCMD_MODE_SELECT_6' or 'CDIO_MMC_GPCMD_MODE_SELECT_10'. + +If the fascination and emphasis in the MMC specifications of CDB size is +a bit odd, equally so is the fact that this too often has bled through +at the OS programming API. However in 'libcdio', you just give the +opcode in 'scsi_mmc_run_cmd()' and we'll do the work to figure out how +many bytes of the CDB are used. + +Down the line it is hoped that 'libcdio' will have a way to remove a +distinction between the various alternative and alternative-size MMC +commands. In 'cdio/scsi-mmc.h' you will find a little bit of this for +example via the routine 'scsi_mmc_get_drive_cap()'. However much more +work is needed. + +Finally, in 'libcdio' there is a driver access mode (not a driver) +called "MMC". It tells the specific drivers to use MMC commands instead +of other OS-specific mechanisms. + + +File: libcdio.info, Node: Access Modes, Next: Accessing Driver Parameters, Prev: SCSI mess, Up: CD-ROM Access and Drivers + +9.2 Access Modes +================ + +There are serveral ways that you can open a CD-ROM drive for subsequent +use. Each way is called an _access mode_. Historically libcdio only +supported a reading kind of access. + +Adding the abilty to writing to a drive for "burning" is being added by +Thomas Schmitt, and this is accomplished by opening the drive in a +read-write mode. Currently writing modes are only supported via the MMC +command interface. Under this, one can get exclusive read-write access +or non-exclusive read-write access. The names of these two modes are +'MMC_RDWR_EXCL' and 'MMC_RDWR' respectively. + +On various OS's often there are two kinds of read modes that are +supported, one which uses MMC commands and one which uses some sort of +OS-specific native command interface. For example on Unix, there is +often a access mode associated with issuing an device-specific 'ioctl''s +that the OS supports. + +To specify a particular kind of access mode, use 'cdio_open_am' which is +like 'cdio_open' but it requires one to specify an access mode. + + +File: libcdio.info, Node: Accessing Driver Parameters, Next: GNU/Linux, Prev: Access Modes, Up: CD-ROM Access and Drivers + +9.3 Accessing Driver Parameters -- 'cdio_get_arg' +================================================= + +Once a driver is opened, you can use call 'cdio_get_arg' to get +information about the driver. Each driver can have specific features +that can be queried, but there are features that are common to all +drivers. These are listed below: + +'access-mode' + This returns a string which is the name of the access mode in use. +'mmc-supported?' + This returns a string "true" or "false" depending whether the + driver with this access mode support MMC commands. +'scsi-tuple' + On drivers that support MMC commands, this returns the SCSI name or + a faked-up SCSI name that ripping front ends typically use. + + +File: libcdio.info, Node: GNU/Linux, Next: Microsoft, Prev: Accessing Driver Parameters, Up: CD-ROM Access and Drivers + +9.4 GNU/Linux +============= + +The GNU/Linux uses a hybrid of methods. Somethings are done via ioctl +and some things via MMC. GNU/Linux has a rather nice and complete ioctl +mechanism. On the other hand, the MMC mechanism is more universal. +There are other "access modes" listed which are not really access modes +and should probably be redone/rethought. They are just different ways +to run the read command. But for completeness These are "READ_CD" and +"READ_10". + +Writing/burning to a drive is supported via access modes 'MMC_RDWR_EXCL' +or 'MMC_RDWR'. + + +File: libcdio.info, Node: Microsoft, Next: Solaris, Prev: GNU/Linux, Up: CD-ROM Access and Drivers + +9.5 Microsoft Windows ioctl and ASPI +==================================== + +There are two CD drive access methods on Microsoft Windows platforms: +ioctl and ASPI. + +The ASPI interface specification was developed by Adaptec for sending +commands to a SCSI host adapter (such as those controlling CD and DVD +drives) and used on Window 9x/NT and later. Emulation for ATAPI drives +was added so that the same sets of commands worked those even though the +drives might not be SCSI nor might there even be a SCSI controller +attached. The DLL is not part of Microsoft Windows and has to be +downloaded and installed separately. + +However in Windows NT/2K/XP, Microsoft provides their Win32 ioctl +interface, and has taken steps to make using ASPI more inaccessible +(e.g. requiring administrative access to use ASPI). + + +File: libcdio.info, Node: Solaris, Next: FreeBSD, Prev: Microsoft, Up: CD-ROM Access and Drivers + +9.6 Solaris ATAPI and SCSI +========================== + +There is currently only one CD drive access methods in Solaris: SCSI +(called "USCSI" or "user SCSI" in Solaris). There used to be an ATAPI +method and it could be resurrected if needed. USCSI was preferred since +on newer releases of Solaris and Solaris environments one need to have +root access for ATAPI. + + +File: libcdio.info, Node: FreeBSD, Next: OS X, Prev: Solaris, Up: CD-ROM Access and Drivers + +9.7 FreeBSD ioctl and CAM +========================= + +There are two classes of access methods on FreeBSD: ioctl and CAM +(common access method). CAM is preferred when possible, especially on +newer releases. However CAM is right now sort of a hybrid and includes +some ioctl code. + +Writing/burning to a drive is supported via access modes 'MMC_RDWR_EXCL' +or 'MMC_RDWR' which underneath use CAM access. + + +File: libcdio.info, Node: OS X, Prev: FreeBSD, Up: CD-ROM Access and Drivers + +9.8 OS X (non-exclusive access) +=============================== + +A problem with libcdio on OS/X is that if the OS thinks it understands +the drive, it will get exclusive access to the drive and thus prevents a +library like this from obtaining non-exclusive access. + +Currently 'libcdio' access the CD-ROM non-exclusively. However in order +to be able to issue MMC, the current belief is that exclusive access is +needed. Probably in a future 'libcdio', there will be some way to +specify which kind of access is desired (with the inherent consequences +of each). + +More work on this driver is needed. Volunteers? + + +File: libcdio.info, Node: Internal Program Organization, Next: ISO-9660 Character Sets, Prev: CD-ROM Access and Drivers, Up: Top + +10 Internal Program Organization +******************************** + +* Menu: + +* File Organization:: +* Library Organization:: +* Programming Conventions:: + + +File: libcdio.info, Node: File Organization, Next: Library Organization, Up: Internal Program Organization + +10.1 File Organization +====================== + +Here is a list of 'libcdio' directories. + + * 'include/cdio' + + This contains the headers that are public. One that will probably + be used quite a bit is ''. + + * 'lib' + + Code for installed libraries. See below for further breakout + + * 'lib/driver' + + Code for various OS-specific CD-ROM drivers, image drivers, and + common MMC routines. + + This code comprises 'libcdio.a' (or the shared version of it). + + * 'lib/iso9660' + + Code for to extract or query ISO-9660 images. + + This code comprises 'libiso9660.a' (or the shared version of it). + + * 'lib/paranoia' + + This is from cdparanoia. It is the OS- and hardware- dependent + code to detect and correct jitter for CD-DA CDs. + + * 'lib/cdda_interface' + + This is also from cdparanoia. It is the OS- and hardware- + independent code to detect and correct jitter for CD-DA CDs. + + * 'doc' + + A home for fine documentation such as this masterpiece. + + * 'example' + + Here you will find various small example programs using 'libcdio' + which are largely for pedagogical purposes. You might be able to + find one that is similar to what you want to do that could be + extended. In fact some these are contain the kernel ideas behind + of some of the larger programs in 'src'. + + * 'src' + + Various stand-alone utility programs. See below. + + * 'src/paranoia' + + 'libcdio''s version of 'cdparanoia'. Except for the fact that the + back-end CD-reading code has been replaced by 'libcdio''s routines + the code is pretty much identical. + + * 'test' + + Regression tests + + * 'test/data' + + Disk images and image meta-data used in tests + + * 'test/driver' + + Unit tests centered around the libcdio library ('libcdio', source + location 'lib/driver' + + +File: libcdio.info, Node: Library Organization, Next: Programming Conventions, Prev: File Organization, Up: Internal Program Organization + +10.2 Library Organization +========================= + +* Menu: + +* libcdio:: +* libcdio_cdda:: Access to CD-DA via the CD Paranoia library +* libcdio_paranoia:: Access to the CD Paranoia library +* libiso9660:: Access to ISO 9660 file systems and structures +* libudf:: Access to UDF file systems and structures + + +File: libcdio.info, Node: libcdio, Next: libcdio_cdda, Up: Library Organization + +10.2.1 'libcdio' +---------------- + +'libcdio' exports one opaque type 'CdIo_t'. Internally this a structure +containing an enumeration for the driver, a structure containing +function pointers and a generic "environment" pointer which is passed as +a parameter on a function call. See 'lib/driver/cdio_private.h'. The +initialization routine for each driver sets up the function pointers and +allocates memory for the environment. When a particular user-level cdio +routine is called (e.g 'cdio_get_first_track_num' for +lib/driver/track.c), the environment pointer is passed to a +device-specific routine which will then cast this pointer into something +of the appropriate type. + +Because function pointers are used, there can be and is quite a bit of +sharing of common routines. Some of the common routines are found in +the file 'lib/driver/_cdio_generic.c'. + +Another set of routines that one is likely to find shared amongst +drivers are the MMC commands. These are located in +'lib/driver/scsi_mmc.c'. + +There is not only an attempt to share functions but we've tried to +create a generic CD structure 'generic_img_private_t' of file +'lib/driver/generic.h'. By putting information into a common structure, +we increase the likelihood of being able to have a common routine to +perform some sort of function. + +The generic CD structure would also be useful in a utility to convert +one CD-image format to another. Basically the first image format is +"parsed" into the common internal format and then from this structure it +is not parsed. + + +File: libcdio.info, Node: libcdio_cdda, Next: libcdio_paranoia, Prev: libcdio, Up: Library Organization + +10.2.2 'libcdio_cdda' +--------------------- + +This library is intended to give access CD-DA disks using Monty's +cd-paranoia library underneath. + +To be completed.... + + +File: libcdio.info, Node: libcdio_paranoia, Next: libiso9660, Prev: libcdio_cdda, Up: Library Organization + +10.2.3 'libcdio_paranoia' +------------------------- + +This library is intended to give access Monty's cd-paranoia library. It +is the gap detection and jitter correction part without the part dealing +with CD-DA reading. + +To be completed.... + + +File: libcdio.info, Node: libiso9660, Next: libudf, Prev: libcdio_paranoia, Up: Library Organization + +10.2.4 'libiso9660' +------------------- + +This library is intended to give access and manipulate a ISO-9600 file +image. One part of it is concerned with the the entire ISO-9660 file +system image, and the other part access routines for manipulating data +structures and fields that go into such an image. + +To be completed.... + + +File: libcdio.info, Node: libudf, Prev: libiso9660, Up: Library Organization + +10.2.5 'libudf' +--------------- + +This library is intended to give access and manipulate a UDF file image. + +To be completed.... + + +File: libcdio.info, Node: Programming Conventions, Prev: Library Organization, Up: Internal Program Organization + +10.3 Programming Conventions +============================ + +* Menu: + +* Coding Conventions:: +* Namespace Conventions:: + + +File: libcdio.info, Node: Coding Conventions, Next: Namespace Conventions, Up: Programming Conventions + +10.3.1 Coding Conventions +------------------------- + +In 'libcdio' there are a number of conventions used. If you understand +some of these conventions it may facilitate understanding the code a +little. + + +File: libcdio.info, Node: Namespace Conventions, Prev: Coding Conventions, Up: Programming Conventions + +10.3.2 Namespace Conventions +---------------------------- + +For the most part, the visible external 'libcdio' names follow +conventions so as not to be confused with other applications or +libraries. If you understand these conventions, there will be little or +no chance that the names you use will conflict with 'libcdio' and +'libiso9660' and vice versa. + +All of the external 'libcdio' C routines start out with 'cdio_', e.g. +'cdio_open'; as a corollary, the 'libcdio' CD-Paranoia routines start +'cdio_cddap_', e.g. 'cdio_cddap_open'. 'libiso9660' routines start +'iso9660_', e.g. 'iso9660_open'. + +'libcdio' C-Preprocessor names generally start 'CDIO_', for example +'CDIO_CD_FRAMESIZE_RAW'; 'libiso9660' C-preprocessor names start +'ISO9660_', e.g. 'ISO9660_FRAMESIZE'. + +10.3.2.1 suffixes (type and structure names) +............................................ + +A few suffixes are used in type and structure names: + + * '_e' + + An enumeration tag. Generally though the same name will appear + with the '_t' suffix and probably that should be used instead. + + * '_s' + + A structure tag. Generally though the same name will appear with + the '_t' suffix and probably that should be used instead. + + * '_t' + + A type suffix. + +10.3.2.2 prefixes (variable names) +.................................. + +A number of prefixes are used in variable names here's what they mean + + * 'i_' + + An integer type of some sort. A variable of this ilk one might + find being iterated over in 'for' loops or used as the index of an + array for example. + + * 'b_' + + A Boolean type of some sort. A variable of this ilk one might find + being in an 'if' condition for example. + + * 'p_' + + A pointer of some sort. A variable of this ilk, say 'p_foo' one is + like likely to see '*p_foo' or 'p_foo->...'. + + * 'pp_' + + A pointer to a pointer of some sort. A variable of this ilk, say + 'pp_foo' one is like likely to see '**p_foo' or 'p_foo[x][y]' for + example + + * 'psz_' + + A 'char *' pointer of some sort. A variable of this ilk, say + 'psz_foo' may be used in a string operation. For example + 'printf(%s\n", psz_foo)' or 'strdup(psz_foo)'. + + * 'ppsz_' + + A pointer to a 'char *' pointer of some sort. A variable of this + ilk, say 'ppsz_foo' is used for example to return a list of CD-ROM + device names + +There are a some other naming conventions. Generally if a routine name +starts 'cdio_', e.g. 'cdio_open', then it is an externally visible +routine in 'libcdio'. If a name starts 'iso9660_', e.g. +'iso9660_is_dchar' then it is an externally visible routine in +'libiso9660'. If a name starts 'scsi_mmc_', e.g. +'scsi_mmc_get_discmode', then it is an externally visible MMC routine. +(We don't have a separate library for this yet. + +Names using entirely capital letters and that start 'CDIO_' are +externally visible '#defines'. + + +File: libcdio.info, Node: ISO-9660 Character Sets, Next: Glossary, Prev: Internal Program Organization, Up: Top + +Appendix A ISO-9660 Character Sets +********************************** + +For a description of where are used see *Note ISO 9660 Level 1::. + +* Menu: + +* ISO646 d-Characters:: +* ISO646 a-Characters:: + + +File: libcdio.info, Node: ISO646 d-Characters, Next: ISO646 a-Characters, Up: ISO-9660 Character Sets + +A.1 ISO646 d-Characters +======================= + + | 0 1 2 3 4 5 6 7 + --+----------------- + 0 | 0 P + 1 | 1 A Q + 2 | 2 B R + 3 | 3 C S + 4 | 4 D T + 5 | 5 E U + 6 | 6 F V + 7 | 7 G W + 8 | 8 H X + 9 | 9 I Y + a | J Z + b | K + c | L + d | M + e | N + f | O _ + + +File: libcdio.info, Node: ISO646 a-Characters, Prev: ISO646 d-Characters, Up: ISO-9660 Character Sets + +A.2 ISO646 a-Characters +======================= + + | 0 1 2 3 4 5 6 7 + --+----------------- + 0 | 0 P + 1 | ! 1 A Q + 2 | " 2 B R + 3 | 3 C S + 4 | 4 D T + 5 | % 5 E U + 6 | & 6 F V + 7 | ' 7 G W + 8 | ( 8 H X + 9 | ) 9 I Y + a | * : J Z + b | + ; K + c | , < L + d | - = M + e | . > N + f | / ? O _ + + +File: libcdio.info, Node: Glossary, Next: GNU Free Documentation License, Prev: ISO-9660 Character Sets, Up: Top + +Appendix B Glossary +******************* + +Thomas Schmitt has made significant contributions to this glossary. See +also . + +"ASPI" + See Win32 ASPI + +"ATA" + + Advanced Technology Attachment (ATA). The same thing as IDE. + +"ATAPI" + + Advanced Technology Attachment (ATA) Packet Interface. The + interface provides a mechanism for transferring and executing SCSI + CDBs on IDE CD Drives and DVD Drives. + + IDE (also called ATA) was originally designed for hard drives only, + but with help of ATAPI it is possible to connect other devices, in + particular CD-ROMS to the IDE/EIDE connections. + + The ATAPI CD-ROM drives understand a subset of SCSI commands. In + particular multi-initiator commands are neither needed nor defined + for ATAPI devices. + +"BIN/CUE" + + A CD-image format developed by Jeff Arnold for CDRWIN software on + Microsoft Windows. Many other programs subsequently support using + this format. The '.CUE' file is a text file which contains CD + format and track layout information, while the '.BIN' file holds + the actual data of each track. + +"Blu-ray Disc (BD)" + Optical media with capacity of 25 GB as single layer and 50 GB as + double layer. See also *note "Media models and profiles": + models-profiles. + +"CD" + Compact Disc. Capacity up to 900 MB. See also *note "Media models + and profiles": models-profiles. + +"CD-DA" + Compact Disc Digital Audio, described in the "Red Book" or IEC + 60908 (formerly IEC 908). This commonly referred to as an audio CD + and what most people think of when you play a CD as it was the + first to use the CD medium. + + See + +"CD+G" + + Compact Disc + Graphics. An extension of the CD audio format + contains a limited amount of graphics in subcode channels. This + disc works in all audio players but the graphics portion is only + available in a special CD+G or Karaoke player. + +"CD-i" + + Compact Disc Interactive. An extension of the CD format designed + around a set-top computer that connects to a TV to provide + interactive home entertainment, including digital audio and video, + video games, and software applications. Defined by the "Green + Book" standard. . CD-i for video and video + music has largely (if not totally) been superseded by VCDs. + +"CD-i Bridge" + + A standard allowing CD-ROM XA discs to play on CD-i. Kodak + PhotoCDs are CD-XA Bridge discs. + +"CD-ROM" + + Compact Disc Read Only Memory or "Yellow Book" describe in + Standards ISO/IEC 10149. The data stored on it can be either in + the form of audio, computer or video files. + +"CD-ROM Mode 1 and Mode2" + + The Yellow Book specifies two types of tracks, Mode 1 and Mode 2. + Mode 1 is used for computer data and text and has an extra error + correction layer. Mode 2 is for audio and video data and has no + extra correction layer. CD-ROM/XA An expansion of the CD-ROM Mode + 2 format that allows both computer and audio/video to be mixed in + the same track. + +"CD Text" + + CD Text is a technology developed by Sony Corporation and Philips + Electronics in 1996 that allows storing in an audio CD and its + tracks information such as artist name, title, songwriter, + composer, or arranger. Commercially available audio CDs sometimes + contain CD Text information. + + Information on how CD Text is stored can be found in in older MMC + standards. Specifically, try "Annex J" of "mmc3r10g.pdf". + + An "Unofficial CD Text FAQ" is at + + +"CD XA" + + CD-ROM EXtended Architecture. A modification to the CD-ROM + specification that defines two new types of sectors. CD-ROM XA was + developed jointly by Sony, Philips, and Microsoft, and announced in + August 1988. Its specifications were published in an extension to + the Yellow Book. CD-i, Photo CD, Video CD and CD-EXTRA have all + subsequently been based on CD-ROM XA. + + CD-XA defines another way of formatting sectors on a CD-ROM, + including headers in the sectors that describe the type (audio, + video, data) and some additional info (markers, resolution in case + of a video or audio sector, file numbers, etc). + + The data written on a CD-XA is consistent with and can be in + ISO-9660 file system format and therefore be readable by ISO-9660 + file system translators. But also a CD-I player can read CD-XA + discs even if its own 'Green Book' file system only resembles ISO + 9660 and isn't fully compatible. + +"DVD" + Digital Versatile Disc. Capacity up to 4.5 GB as single layer and + 8.5 GB as double layer media. See also *note "Media models and + profiles": models-profiles. + +"Defect management" + A method to compensate small amounts of bad spots on media by + replacing them out of a pool of reserve blocks and performing + address translation. The necessary checkreading slows down write + performance by a factor of 2 or 3. Defect management applies by + default to DVD-RAM and BD-RE. Optionally it can be formatted onto + CD-RW and DVD+RW, where it has the name "Mount Rainier". + Sequential BD-R can be formatted for defect management too. + +"Command Packet" + + The data structure that is used to issue an ATAPI command. It + contains a SCSI Command Descriptor Block (CDB). + +"ECMA-119 (ISO-9660)" + + ( + is a freely available specification which is technically identical + to ISO 9660. + +"ECMA-167 (UDF)" + + ( + is a freely available specification which is also approved as ISO + 13346. It serves as base for UDF. + +"ECMA-168" + + ( + is a freely available specification which is also approved as ISO + 13490. + +"FSF" + + Free Software Foundation, + +"GNU" + + GNU is not UNIX, + +"IDE" + + Integrated Drive Electronics. This is a commonly used interface + for hard disk drives and CD-ROM drives. It is less expensive than + SCSI, but offers slightly less in terms of performance. + +"ISO" + + International Standards Organization. + +"ISO 13346" + + ISO 13346 / ECMA-167 is a filesystem framework for data exchange on + overwriteable or pseudo-overwriteable media. It serves as base of + UDF. + +"ISO 13490" + + ISO 13490 / ECMA-168 is an attempt to replace ISO 9660 by a format + that allows finer write granularity and representation of typical + disk file properties. It resembles ECMA-167 which led to UDF. + +"ISO 9660" + + ISO 9660 / ECMA-119 is an operating-system independent filesystem + format originally intended for CD-ROM media. It was standardized + in 1988 and replaced the High Sierra standard for the logical + format on CD-ROM media (ISO 9660 and High Sierra are identical in + content, but the exact format is different). ISO 9660 and ECMA-119 + are technically identical meanwhile. + + There are several specification levels. In Level 1, file names + must be in the 8.3 format (no more than eight characters in the + name, no more than three characters in the suffix) and in capital + letters. Directory names can be no longer than eight characters. + There can be no more than eight nested directory levels. Level 2 + and 3 specifications allow file names up to 32 characters long. + Level 3 allows data file sizes to be 4 GB or larger. File data + content is stored in extents, i.e. contiguous sequences of blocks. + A single extent can hold only up to 2 exp 32 - 1 bytes. So files + of 4 GB or larger need more than one extent to be stored. Older + operating systems might have trouble with multi-extent files. + +"Joliet extensions" + + This ISO-9660 upward-compatible standard was developed for Windows + 95 and Windows NT by Microsoft as an extension of ISO 9600 which + allows the use of Unicode characters and supports file names up to + 64 characters. + + See for the + Joliet Specification. + + The name Joliet comes from the city in Illinois (U.S) that the + standard was defined. + +"LBA" + + Logical Block Addressing. Mapped integer numbers from CD Red Book + Addressing MSF. The starting sector is -150 and ending sector is + 449849, which correlates directly to MSF: 00:00:00 to 99:59:74. + Because an LBA is a single number it is often easier to work with + in programming than an MSF. + +"Lead in" + + The area of a CD where the Table Of Contents (TOC) and CD Text are + stored. I think it is supposed to be around 4500 (1 min) or more + sectors in length. On a CDR(W) the lead-in length is variable, + because manufacturers have a different starting position indicated + by the ATIP start of lead-in position that is recorded in the ATIP + groove on the disk. For example: + + "Ricoh Company Limited" + 97:27:00, 97:27:06, 97:27:66 + "Mitsubishi Chemical (Verbatim)" + 97:34:21 to 97:34:25 + +"LSN" + + Logical Sector Number. Mapped integer numbers from CD Red Book + Addressing MSF. The starting sector is 0 and ending sector is + 449699, which correlates to MSF: 00:00:00 to 99:59:74. Because an + LSN is a single number it is often easier to work with in + programming than an MSF. Because it starts at 0 rather than -150 as + is the case of an LBA it can be represented as an unsigned value. + +"MCN" + + Media Catalog Number. A identification number on an audio CD. Also + called a UPC. Another identification number is ISRC. + +"MMC" + + MMC (Multimedia Commands). + + MMC are raw commands for communicating with CDROM drives, + CD-Rewriters, DVD-Rewriters, etc. The are subset of the larger + SCSI command set. See also *note SCSI: SCSI. + + Many manufacturers have adopted this standard and it also applies + to ATAPI versions of their drives. + + The documents 'libcdio' makes use of are described in the + Multi-Media Commands standard (MMC). This document generally has a + numeric level number appended. For example MMC-5 refers to + "Multi-Media Commands - 5. + +"Media models and profiles" + + MMC classifies media as models, which describe their logical + structure, and as profiles, which describe the capabilities of the + drive with the particular media. So both are closely related but + not identical. + + There are three model families: CD, DVD, Blu-ray. CD allows + special sector formats like audio as well as data sectors of 2048 + bytes. DVD and Blu-ray only record data sectors. + "Non-writable media: CD-ROM, DVD-ROM, BD-ROM." + "Write-once media: CD-R, DVD-R, DVD+R, BD-R." + "Reusable media: CD-RW, DVD-RW, DVD+RW, DVD-RAM, BD-RE." + + Profiles depend on drive type and media state. They are expressed + as numbers. It is unfortunate that formatted CD-RW have the same + profile number as unformatted ones. + + ROM drives often announce all media as ROM profiles. Some writer + drives show closed sequential media as ROM profile. + "CD-ROM 0x08" + "DVD-ROM 0x10" + "BD-ROM 0x40" + + Sequentially recordable profiles allow multisession in most cases. + Special burn programs are needed for writing to them. + "CD-R 0x09" + "CD-RW 0x0a (unformatted)" + "DVD-R 0x11" + "DVD-RW 0x14 (unformatted)" + "DVD-R DL 0x15 (double layer)" + "DVD-R DL 0x16 (double layer, jump recording)" + "DVD+R 0x1a" + "DVD+RW DL 0x2a (double layer)" + "DVD+R DL 0x2b (double layer)" + "BD-R 0x41 (single or double layer, formatted or not)" + "HD DVD-ROM 0x50" + "HD DVD-R 0x51" + "HD DVD-RAM 0x52" + They can assume three states: + ""Blank" is not readable but writeable from scratch" + ""Appendable" is readable and after the readable part still writeable" + ""Closed" is only readable" + CD-RW and DVD-RW can be brought back to blank state, or they can be + formatted to become overwriteable. + + Overwriteable profiles allow random read-write access with a + granularity of 2 kB or 32 kB. One can hope for having read-write + access via the normal POSIX operations lseek(), read(), write() of + the operating system. + "CD-RW 0x0a (formatted)" + "DVD-RAM 0x12" + "DVD-RW 0x13 (formatted, 32 kB write granularity)" + "DVD+RW 0x1a" + "BD-R 0x42 (formatted for pseudo-random recording)" + "BD-RE 0x43 (single or double layer)" + BD-R profile 0x42 is defined by MMC but not implemented by the + consumer priced Blu-ray burners as of year 2010. + +"Mixed Mode CD" + + A Mixed Mode is a CD that contains tracks of differing CD-ROM Mode + formats. In particular the first track may contain both computer + data (Yellow Book) CD ROM data while the remaining tracks are audio + or video data. Video CD's can be Mixed Mode CDs. + +"Multisession" + + A way of writing to a CD , DVD or Blu-ray Disc that allows more + data to be added to readable discs at a later time. The media must + not have been closed by the previous write session. This applies + originally to unformatted CD-R, CD-RW, DVD-R, DVD-RW, DVD+R, and + sequential BD-R which all can record more than one session. They + hold a table-of-content with sessions and tracks. Formatted CD-RW, + DVD-RAM, DVD+RW, DVD-RW, and BD-RE have only one track. + Multisession on these media needs help by the recorded data + formats. + + Multisession can be used to add a changeset to an existing ISO 9660 + filesystem. Typically the add-on session contains a whole new + filesystem tree with old and new files. It also contains the data + blocks of the newly introduced or freshly overwritten files. The + convention for mounting multisession ISO 9660 images is to load the + superblock from the start of the first track in the last session as + listed in the media table-of-content. Formatted media are assumed + to have a single track starting at block 0. So ISO 9660 + multisession on formatted media has to overwrite the volume + descriptors at block 16 ff. with every new session. A chain of + recognizable sessions can be achieved by starting the first ISO + 9660 image at block 32 so that its descriptors get not overwritten + later. + +"Nero NRG format file" + + A proprietary CD image file format use by a popular program for + Microsoft Windows, Ahead Nero. The specification of this format is + not to our knowledge published. + +"Rock Ridge Extensions" + + An extension to the ISO-9660 standard which adds POSIX information + to files. It allows long file names, owner, group, access + permissions 'ugo+-rwx', inode numbers, hard-link count, file types + other than directory or regular file. Rock Ridge is described by + unapproved standard IEEE P1282 / RRIP-1.12 and based on unapproved + IEEE P1281 / SUSP-1.10. It has become a de-facto standard on + X/Open systems like GNU/Linux, FreeBSD, Solaris, et.\ al. + +"SCSI" + + Small Computer System Interface. A set of ANSI standard electronic + interfaces (originally developed at Apple Computer) that allow + personal computers to communicate with peripheral hardware such as + CD-ROM drives, disk drives, printers, etc. + + Although the original hardware is outdated since years, the SCSI + command set nowadays controls most storage devices including all + optical disc drives. The contemporary electronic technologies + which transport SCSI commands to optical drives are P-ATA, SATA, + and USB. + + A SCSI programming specification made by the SCSI committee T10 + organization . + + The documents 'libcdio' makes use of are described in SCSI + standards documents SCSI Primary Commands (SPC), SCSI Block + Commands (SBC), and Multi-Media Commands (MMC). These documents + generally have a numeric level number appended. For example SPC-3 + refers to "SCSI Primary Commands - 3'. + + In year 2010 the current versions were SPC-3, SBC-2, MMC-5. + +"SCSI CDB" + + SCSI Command Descriptor Block. The data structure that is used to + issue a SCSI command. + +"SCSI Pass Through Interface." + + Yet another way of issuing MMC commands for accessing a CD-ROM. As + with MMC or ASPI, the CD-ROM doesn't necessarily have to be a + SCSI-attached drive. See also *note MMC: MMC. and *note ASPI: MMC. + +"Session" + + A fully readable complete recording that contains one or more + tracks of computer data or audio on a CD. On a DVD or Blu-ray Disc, + there are only data sessions. + +"SVCD" + + Super VCD + + An improvement of Video CD 2.0 specification which includes most + notably a switch from MPEG-1 (constant bit rate encoding) to MPEG-2 + (variable bit rate encoding) for the video stream. + + Also added was higher video-stream resolution, up to 4 overlay + graphics and text ("OGT") sub-channels for user switchable subtitle + displaying, closed caption text, and command lists for controlling + the SVCD virtual machine. + + See + +"TOC" + + (Compact Disc) Table of Contents. The TOC contains a list of + sessions and their tracks. For sessions, it records the starting + track number and the last track number. For tracks it records + starting time block address, size, copy protection, linear audio + preemphasis, track format (CDDA or data) in that order. Session + and track information is also available on sequential DVD and + Blu-ray Discs. Several track properties are fixed to equivalents + of CD data. + +"Track" + + A unit of data of a CD. The size of a track can vary; it can occupy + the entire contents of the CD. Most CD standards however require + that tracks have a 150 frame (or "2 second") lead-in gap. + + An abstraction of tracks for CD, DVD and Blu-ray Discs is the + Logical Track as of MMC specs. Overwriteable media have a single + logical track, sequential media can have one or more logical tracks + which they describe in their TOC. + +"UDF" + + Universal Disc Format was designed as successor of ISO 9660. It + allows to record long file names and advanced file properties. + Although intended as format for data exchange its main importance + is with DVD video players. Video DVDs have to bear a simple UDF + filesystem with a prescribed set of files. + +"VCD" + + The Video Compact Disc ("Video CD" or "VCD") is a standardized + digital video storage format. It is based on the commonly + available Compact Disc technology, which allows for low-cost video + authoring. Video CD's can be played in most DVD standalone player, + dedicated VCD players and finally, modern Personal Computers with + multimedia support. + + A Video CD is made up of CD-ROM XA sectors, i.e. CD-ROM mode 2 + form 1 & 2 sectors. Non-MPEG data is stored in mode 2 form 1 + sectors with a user data area of 2048 byte, which have a similar L2 + error correction and detection (ECC/EDC) to CD-ROM mode 1 sectors. + While real-time MPEG streams is stored in CD-ROM mode 2 form 2 + sectors, which by have no L2 ECC, yield a ~14% greater user data + area consisting of 2324 bytes(1) + + + +"Win32 ASPI" + + The ASPI interface specification was developed by Adaptec for + sending commands to a SCSI host adapter (such as those controlling + CD and DVD drives) and used on Window 9x/NT and later. Emulation + for ATAPI drives was added so that the same sets of commands worked + those even though the drives might not be SCSI nor might there even + be a SCSI controller attached. + + However in Windows NT/2K/XP, Microsoft provides their Win32 ioctl + interface, and has take steps to make using ASPI more inaccessible + (e.g. requiring administrative access to use ASPI). + + See also *note MMC: MMC. + +"Win32 ioctl driver" + + Ioctl (Input Output ConTroLs). A Win32 function, implemented in + all Microsoft Windows. It is used for sending commands to devices + using defined codes and structures. + +"XA" + + *Note CD-ROM XA: XA. + + ---------- Footnotes ---------- + + (1) actually raw mode 2 sectors have a 2336 byte user data area, but +parts of it are used for error codes and headers when using the mode 2 +form 1 or form 2 configurations. + + +File: libcdio.info, Node: GNU Free Documentation License, Next: General Index, Prev: Glossary, Up: Top + +Appendix C GNU Free Documentation License +***************************************** + + Version 1.2, November 2002 + + Copyright (C) 2000,2001,2002 Free Software Foundation, Inc. + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + 0. PREAMBLE + + The purpose of this License is to make a manual, textbook, or other + functional and useful document "free" in the sense of freedom: to + assure everyone the effective freedom to copy and redistribute it, + with or without modifying it, either commercially or + noncommercially. Secondarily, this License preserves for the + author and publisher a way to get credit for their work, while not + being considered responsible for modifications made by others. + + This License is a kind of "copyleft", which means that derivative + works of the document must themselves be free in the same sense. + It complements the GNU General Public License, which is a copyleft + license designed for free software. + + We have designed this License in order to use it for manuals for + free software, because free software needs free documentation: a + free program should come with manuals providing the same freedoms + that the software does. But this License is not limited to + software manuals; it can be used for any textual work, regardless + of subject matter or whether it is published as a printed book. We + recommend this License principally for works whose purpose is + instruction or reference. + + 1. APPLICABILITY AND DEFINITIONS + + This License applies to any manual or other work, in any medium, + that contains a notice placed by the copyright holder saying it can + be distributed under the terms of this License. Such a notice + grants a world-wide, royalty-free license, unlimited in duration, + to use that work under the conditions stated herein. The + "Document", below, refers to any such manual or work. Any member + of the public is a licensee, and is addressed as "you". You accept + the license if you copy, modify or distribute the work in a way + requiring permission under copyright law. + + A "Modified Version" of the Document means any work containing the + Document or a portion of it, either copied verbatim, or with + modifications and/or translated into another language. + + A "Secondary Section" is a named appendix or a front-matter section + of the Document that deals exclusively with the relationship of the + publishers or authors of the Document to the Document's overall + subject (or to related matters) and contains nothing that could + fall directly within that overall subject. (Thus, if the Document + is in part a textbook of mathematics, a Secondary Section may not + explain any mathematics.) The relationship could be a matter of + historical connection with the subject or with related matters, or + of legal, commercial, philosophical, ethical or political position + regarding them. + + The "Invariant Sections" are certain Secondary Sections whose + titles are designated, as being those of Invariant Sections, in the + notice that says that the Document is released under this License. + If a section does not fit the above definition of Secondary then it + is not allowed to be designated as Invariant. The Document may + contain zero Invariant Sections. If the Document does not identify + any Invariant Sections then there are none. + + The "Cover Texts" are certain short passages of text that are + listed, as Front-Cover Texts or Back-Cover Texts, in the notice + that says that the Document is released under this License. A + Front-Cover Text may be at most 5 words, and a Back-Cover Text may + be at most 25 words. + + A "Transparent" copy of the Document means a machine-readable copy, + represented in a format whose specification is available to the + general public, that is suitable for revising the document + straightforwardly with generic text editors or (for images composed + of pixels) generic paint programs or (for drawings) some widely + available drawing editor, and that is suitable for input to text + formatters or for automatic translation to a variety of formats + suitable for input to text formatters. A copy made in an otherwise + Transparent file format whose markup, or absence of markup, has + been arranged to thwart or discourage subsequent modification by + readers is not Transparent. An image format is not Transparent if + used for any substantial amount of text. A copy that is not + "Transparent" is called "Opaque". + + Examples of suitable formats for Transparent copies include plain + ASCII without markup, Texinfo input format, LaTeX input format, + SGML or XML using a publicly available DTD, and standard-conforming + simple HTML, PostScript or PDF designed for human modification. + Examples of transparent image formats include PNG, XCF and JPG. + Opaque formats include proprietary formats that can be read and + edited only by proprietary word processors, SGML or XML for which + the DTD and/or processing tools are not generally available, and + the machine-generated HTML, PostScript or PDF produced by some word + processors for output purposes only. + + The "Title Page" means, for a printed book, the title page itself, + plus such following pages as are needed to hold, legibly, the + material this License requires to appear in the title page. For + works in formats which do not have any title page as such, "Title + Page" means the text near the most prominent appearance of the + work's title, preceding the beginning of the body of the text. + + A section "Entitled XYZ" means a named subunit of the Document + whose title either is precisely XYZ or contains XYZ in parentheses + following text that translates XYZ in another language. (Here XYZ + stands for a specific section name mentioned below, such as + "Acknowledgements", "Dedications", "Endorsements", or "History".) + To "Preserve the Title" of such a section when you modify the + Document means that it remains a section "Entitled XYZ" according + to this definition. + + The Document may include Warranty Disclaimers next to the notice + which states that this License applies to the Document. These + Warranty Disclaimers are considered to be included by reference in + this License, but only as regards disclaiming warranties: any other + implication that these Warranty Disclaimers may have is void and + has no effect on the meaning of this License. + + 2. VERBATIM COPYING + + You may copy and distribute the Document in any medium, either + commercially or noncommercially, provided that this License, the + copyright notices, and the license notice saying this License + applies to the Document are reproduced in all copies, and that you + add no other conditions whatsoever to those of this License. You + may not use technical measures to obstruct or control the reading + or further copying of the copies you make or distribute. However, + you may accept compensation in exchange for copies. If you + distribute a large enough number of copies you must also follow the + conditions in section 3. + + You may also lend copies, under the same conditions stated above, + and you may publicly display copies. + + 3. COPYING IN QUANTITY + + If you publish printed copies (or copies in media that commonly + have printed covers) of the Document, numbering more than 100, and + the Document's license notice requires Cover Texts, you must + enclose the copies in covers that carry, clearly and legibly, all + these Cover Texts: Front-Cover Texts on the front cover, and + Back-Cover Texts on the back cover. Both covers must also clearly + and legibly identify you as the publisher of these copies. The + front cover must present the full title with all words of the title + equally prominent and visible. You may add other material on the + covers in addition. Copying with changes limited to the covers, as + long as they preserve the title of the Document and satisfy these + conditions, can be treated as verbatim copying in other respects. + + If the required texts for either cover are too voluminous to fit + legibly, you should put the first ones listed (as many as fit + reasonably) on the actual cover, and continue the rest onto + adjacent pages. + + If you publish or distribute Opaque copies of the Document + numbering more than 100, you must either include a machine-readable + Transparent copy along with each Opaque copy, or state in or with + each Opaque copy a computer-network location from which the general + network-using public has access to download using public-standard + network protocols a complete Transparent copy of the Document, free + of added material. If you use the latter option, you must take + reasonably prudent steps, when you begin distribution of Opaque + copies in quantity, to ensure that this Transparent copy will + remain thus accessible at the stated location until at least one + year after the last time you distribute an Opaque copy (directly or + through your agents or retailers) of that edition to the public. + + It is requested, but not required, that you contact the authors of + the Document well before redistributing any large number of copies, + to give them a chance to provide you with an updated version of the + Document. + + 4. MODIFICATIONS + + You may copy and distribute a Modified Version of the Document + under the conditions of sections 2 and 3 above, provided that you + release the Modified Version under precisely this License, with the + Modified Version filling the role of the Document, thus licensing + distribution and modification of the Modified Version to whoever + possesses a copy of it. In addition, you must do these things in + the Modified Version: + + A. Use in the Title Page (and on the covers, if any) a title + distinct from that of the Document, and from those of previous + versions (which should, if there were any, be listed in the + History section of the Document). You may use the same title + as a previous version if the original publisher of that + version gives permission. + + B. List on the Title Page, as authors, one or more persons or + entities responsible for authorship of the modifications in + the Modified Version, together with at least five of the + principal authors of the Document (all of its principal + authors, if it has fewer than five), unless they release you + from this requirement. + + C. State on the Title page the name of the publisher of the + Modified Version, as the publisher. + + D. Preserve all the copyright notices of the Document. + + E. Add an appropriate copyright notice for your modifications + adjacent to the other copyright notices. + + F. Include, immediately after the copyright notices, a license + notice giving the public permission to use the Modified + Version under the terms of this License, in the form shown in + the Addendum below. + + G. Preserve in that license notice the full lists of Invariant + Sections and required Cover Texts given in the Document's + license notice. + + H. Include an unaltered copy of this License. + + I. Preserve the section Entitled "History", Preserve its Title, + and add to it an item stating at least the title, year, new + authors, and publisher of the Modified Version as given on the + Title Page. If there is no section Entitled "History" in the + Document, create one stating the title, year, authors, and + publisher of the Document as given on its Title Page, then add + an item describing the Modified Version as stated in the + previous sentence. + + J. Preserve the network location, if any, given in the Document + for public access to a Transparent copy of the Document, and + likewise the network locations given in the Document for + previous versions it was based on. These may be placed in the + "History" section. You may omit a network location for a work + that was published at least four years before the Document + itself, or if the original publisher of the version it refers + to gives permission. + + K. For any section Entitled "Acknowledgements" or "Dedications", + Preserve the Title of the section, and preserve in the section + all the substance and tone of each of the contributor + acknowledgements and/or dedications given therein. + + L. Preserve all the Invariant Sections of the Document, unaltered + in their text and in their titles. Section numbers or the + equivalent are not considered part of the section titles. + + M. Delete any section Entitled "Endorsements". Such a section + may not be included in the Modified Version. + + N. Do not retitle any existing section to be Entitled + "Endorsements" or to conflict in title with any Invariant + Section. + + O. Preserve any Warranty Disclaimers. + + If the Modified Version includes new front-matter sections or + appendices that qualify as Secondary Sections and contain no + material copied from the Document, you may at your option designate + some or all of these sections as invariant. To do this, add their + titles to the list of Invariant Sections in the Modified Version's + license notice. These titles must be distinct from any other + section titles. + + You may add a section Entitled "Endorsements", provided it contains + nothing but endorsements of your Modified Version by various + parties--for example, statements of peer review or that the text + has been approved by an organization as the authoritative + definition of a standard. + + You may add a passage of up to five words as a Front-Cover Text, + and a passage of up to 25 words as a Back-Cover Text, to the end of + the list of Cover Texts in the Modified Version. Only one passage + of Front-Cover Text and one of Back-Cover Text may be added by (or + through arrangements made by) any one entity. If the Document + already includes a cover text for the same cover, previously added + by you or by arrangement made by the same entity you are acting on + behalf of, you may not add another; but you may replace the old + one, on explicit permission from the previous publisher that added + the old one. + + The author(s) and publisher(s) of the Document do not by this + License give permission to use their names for publicity for or to + assert or imply endorsement of any Modified Version. + + 5. COMBINING DOCUMENTS + + You may combine the Document with other documents released under + this License, under the terms defined in section 4 above for + modified versions, provided that you include in the combination all + of the Invariant Sections of all of the original documents, + unmodified, and list them all as Invariant Sections of your + combined work in its license notice, and that you preserve all + their Warranty Disclaimers. + + The combined work need only contain one copy of this License, and + multiple identical Invariant Sections may be replaced with a single + copy. If there are multiple Invariant Sections with the same name + but different contents, make the title of each such section unique + by adding at the end of it, in parentheses, the name of the + original author or publisher of that section if known, or else a + unique number. Make the same adjustment to the section titles in + the list of Invariant Sections in the license notice of the + combined work. + + In the combination, you must combine any sections Entitled + "History" in the various original documents, forming one section + Entitled "History"; likewise combine any sections Entitled + "Acknowledgements", and any sections Entitled "Dedications". You + must delete all sections Entitled "Endorsements." + + 6. COLLECTIONS OF DOCUMENTS + + You may make a collection consisting of the Document and other + documents released under this License, and replace the individual + copies of this License in the various documents with a single copy + that is included in the collection, provided that you follow the + rules of this License for verbatim copying of each of the documents + in all other respects. + + You may extract a single document from such a collection, and + distribute it individually under this License, provided you insert + a copy of this License into the extracted document, and follow this + License in all other respects regarding verbatim copying of that + document. + + 7. AGGREGATION WITH INDEPENDENT WORKS + + A compilation of the Document or its derivatives with other + separate and independent documents or works, in or on a volume of a + storage or distribution medium, is called an "aggregate" if the + copyright resulting from the compilation is not used to limit the + legal rights of the compilation's users beyond what the individual + works permit. When the Document is included in an aggregate, this + License does not apply to the other works in the aggregate which + are not themselves derivative works of the Document. + + If the Cover Text requirement of section 3 is applicable to these + copies of the Document, then if the Document is less than one half + of the entire aggregate, the Document's Cover Texts may be placed + on covers that bracket the Document within the aggregate, or the + electronic equivalent of covers if the Document is in electronic + form. Otherwise they must appear on printed covers that bracket + the whole aggregate. + + 8. TRANSLATION + + Translation is considered a kind of modification, so you may + distribute translations of the Document under the terms of section + 4. Replacing Invariant Sections with translations requires special + permission from their copyright holders, but you may include + translations of some or all Invariant Sections in addition to the + original versions of these Invariant Sections. You may include a + translation of this License, and all the license notices in the + Document, and any Warranty Disclaimers, provided that you also + include the original English version of this License and the + original versions of those notices and disclaimers. In case of a + disagreement between the translation and the original version of + this License or a notice or disclaimer, the original version will + prevail. + + If a section in the Document is Entitled "Acknowledgements", + "Dedications", or "History", the requirement (section 4) to + Preserve its Title (section 1) will typically require changing the + actual title. + + 9. TERMINATION + + You may not copy, modify, sublicense, or distribute the Document + except as expressly provided for under this License. Any other + attempt to copy, modify, sublicense or distribute the Document is + void, and will automatically terminate your rights under this + License. However, parties who have received copies, or rights, + from you under this License will not have their licenses terminated + so long as such parties remain in full compliance. + + 10. FUTURE REVISIONS OF THIS LICENSE + + The Free Software Foundation may publish new, revised versions of + the GNU Free Documentation License from time to time. Such new + versions will be similar in spirit to the present version, but may + differ in detail to address new problems or concerns. See + . + + Each version of the License is given a distinguishing version + number. If the Document specifies that a particular numbered + version of this License "or any later version" applies to it, you + have the option of following the terms and conditions either of + that specified version or of any later version that has been + published (not as a draft) by the Free Software Foundation. If the + Document does not specify a version number of this License, you may + choose any version ever published (not as a draft) by the Free + Software Foundation. + +ADDENDUM: How to use this License for your documents +==================================================== + +To use this License in a document you have written, include a copy of +the License in the document and put the following copyright and license +notices just after the title page: + + Copyright (C) YEAR YOUR NAME. + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.2 + or any later version published by the Free Software Foundation; + with no Invariant Sections, no Front-Cover Texts, and no Back-Cover + Texts. A copy of the license is included in the section entitled ``GNU + Free Documentation License''. + +If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, +replace the "with...Texts." line with this: + + with the Invariant Sections being LIST THEIR TITLES, with + the Front-Cover Texts being LIST, and with the Back-Cover Texts + being LIST. + +If you have Invariant Sections without Cover Texts, or some other +combination of the three, merge those two alternatives to suit the +situation. + +If your document contains nontrivial examples of program code, we +recommend releasing these examples in parallel under your choice of free +software license, such as the GNU General Public License, to permit +their use in free software. + + +File: libcdio.info, Node: General Index, Prev: GNU Free Documentation License, Up: Top + +General Index +************* + +